You've already forked Promocode-API
mirror of
https://github.com/devitq/Promocode-API.git
synced 2026-05-22 23:17:10 +00:00
feat: added tests
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"description": "Повышенный кэшбек 10% для новых клиентов банка!",
|
||||
"image_url": "https://cdn2.thecatapi.com/images/3lo.jpg",
|
||||
"target": {},
|
||||
"max_count": 10,
|
||||
"active_from": "2025-01-10",
|
||||
"mode": "COMMON",
|
||||
"promo_common": "sale-10"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Повышенный кэшбек 40% для новых клиентов банка!",
|
||||
"image_url": "https://cdn2.thecatapi.com/images/3lo.jpg",
|
||||
"target": {
|
||||
"age_from": 15,
|
||||
"country": "fr"
|
||||
},
|
||||
"max_count": 100,
|
||||
"active_from": "2028-12-20",
|
||||
"mode": "COMMON",
|
||||
"promo_common": "sale-40"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"description": "Подарочная маска для сна при оформлении кредита на машину",
|
||||
"target": {
|
||||
"age_from": 28,
|
||||
"age_until": 50,
|
||||
"country": "ru"
|
||||
},
|
||||
"max_count": 1,
|
||||
"active_from": "2025-01-01",
|
||||
"active_until": "2028-12-30",
|
||||
"mode": "UNIQUE",
|
||||
"promo_unique": ["uniq1", "uniq2", "uniq3"]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Дарим глобус при оформлении заказа на 30000!",
|
||||
"target": {
|
||||
"age_from": 28,
|
||||
"age_until": 50,
|
||||
"country": "us"
|
||||
},
|
||||
"max_count": 1,
|
||||
"active_until": "2025-01-10",
|
||||
"mode": "UNIQUE",
|
||||
"promo_unique": ["only_youuuu", "not_only_you"]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"description": "Повышенный кэшбек 10000% для новых клиентов банка!",
|
||||
"target": {
|
||||
"country": "kz",
|
||||
"age_from": 20,
|
||||
"age_until": 100,
|
||||
"categories": ["tbankvpered", "KOTEkote", "dogseverywhere"]
|
||||
},
|
||||
"active_until": "2040-01-02",
|
||||
"max_count": 10,
|
||||
"mode": "COMMON",
|
||||
"promo_common": "sale-1000"
|
||||
}
|
||||
Reference in New Issue
Block a user