Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dataset/data/coupons/coupon_preset_spring15.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"code": "SPRING15",
"maxUsesNumber": 1000000,
"maxUsesPerUser": 1000000,
"expirationDate": "2030-01-01T00:00:00Z",
"promotionId": "promotion-acme-preset-spring-15-percent"
}
7 changes: 7 additions & 0 deletions dataset/data/coupons/coupon_preset_welcome20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"code": "WELCOME20",
"maxUsesNumber": 1000000,
"maxUsesPerUser": 1000000,
"expirationDate": "2030-01-01T00:00:00Z",
"promotionId": "promotion-acme-preset-welcome-20-off"
}
7 changes: 7 additions & 0 deletions dataset/data/coupons/coupon_qa_10_off.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"code": "QA10OFF",
"maxUsesNumber": 1000000,
"maxUsesPerUser": 1000000,
"expirationDate": "2030-01-01T00:00:00Z",
"promotionId": "promotion-acme-qa-10-percent-off-subtotal"
}
7 changes: 7 additions & 0 deletions dataset/data/coupons/coupon_qa_expired.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"code": "QAEXPIRED",
"maxUsesNumber": 1000000,
"maxUsesPerUser": 1000000,
"expirationDate": "2020-01-01T00:00:00Z",
"promotionId": "promotion-acme-qa-expired-5-off"
}
7 changes: 7 additions & 0 deletions dataset/data/coupons/coupon_qa_lowercase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"code": "agenttestlc062",
"maxUsesNumber": 1000000,
"maxUsesPerUser": 1000000,
"expirationDate": "2030-01-01T00:00:00Z",
"promotionId": "promotion-acme-qa-lowercase-5-percent"
}
7 changes: 7 additions & 0 deletions dataset/data/coupons/coupon_qa_min_subtotal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"code": "QAMINSUB100K",
"maxUsesNumber": 1000000,
"maxUsesPerUser": 1000000,
"expirationDate": "2030-01-01T00:00:00Z",
"promotionId": "promotion-acme-qa-min-subtotal-gate"
}
27 changes: 27 additions & 0 deletions dataset/data/prices/smartphones/sale_001.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"productId": "sale-001",
"product": {
"id": "sale-001",
"name": "QA Sale Test Product"
},
"prices": [
{
"catalog": "catalog-acme-electronics",
"currency": "USD",
"list": 29.99,
"sale": 19.99,
"minQuantity": 1,
"pricelistId": "pricelist-acme-usd",
"productId": "sale-001"
},
{
"catalog": "catalog-acme-electronics",
"currency": "EUR",
"list": 27.99,
"sale": 18.99,
"minQuantity": 1,
"pricelistId": "pricelist-acme-eur",
"productId": "sale-001"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"productId": "sale-001",
"sku": "SALE-001",
"productName": "QA Sale Test Product",
"fulfillmentCenterId": "ffc-usa-northgate-logistics-hub",
"fulfillmentCenterName": "NorthGate Logistics Hub - USA",
"inStockQuantity": 74085
}
32 changes: 32 additions & 0 deletions dataset/data/products/smartphones/sale_001.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"id": "sale-001",
"code": "SALE-001",
"catalogId": "catalog-acme-electronics",
"categoryId": "category-acme-electronics-smartphones",
"name": "QA Sale Test Product",
"vendor": "ACME",
"productType": "Physical",
"seoObjectType": "Product",
"seoInfos": [
{
"id": "seo-info-sale-001",
"isActive": true,
"languageCode": "en-US",
"pageTitle": "QA Sale Test Product",
"semanticUrl": "qa-sale-test-product",
"storeId": "store-acme"
}
],
"properties": [
{
"id": "catalog-property-general-brand",
"name": "Brand",
"valueType": "ShortText",
"values": [
{
"value": "ACME"
}
]
}
]
}
39 changes: 39 additions & 0 deletions dataset/data/promotions/cart_preset_spring_15_percent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"id": "promotion-acme-preset-spring-15-percent",
"name": "Spring Sale - 15% Off",
"localizedLabel": {
"values": {
"en-US": "15% Off - en"
}
},
"description": "Save 15% on your entire order this spring.",
"type": "DynamicPromotion",
"isActive": true,
"isPublic": true,
"endDate": "2030-06-30T23:59:59Z",
"storeIds": ["store-acme"],
"dynamicExpression": {
"all": true,
"not": false,
"id": "PromotionConditionAndRewardTree",
"children": [
{
"id": "BlockCustomerCondition",
"children": [
{
"id": "ConditionIsEveryone"
}
]
},
{
"id": "BlockReward",
"children": [
{
"id": "RewardCartGetOfRelSubtotal",
"amount": 15
}
]
}
]
}
}
38 changes: 38 additions & 0 deletions dataset/data/promotions/cart_preset_welcome_20_off.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id": "promotion-acme-preset-welcome-20-off",
"name": "Welcome Offer - $20 Off",
"localizedLabel": {
"values": {
"en-US": "$20 Off - en"
}
},
"description": "Enjoy $20 off your order as a welcome gift.",
"type": "DynamicPromotion",
"isActive": true,
"isPublic": true,
"storeIds": ["store-acme"],
"dynamicExpression": {
"all": true,
"not": false,
"id": "PromotionConditionAndRewardTree",
"children": [
{
"id": "BlockCustomerCondition",
"children": [
{
"id": "ConditionIsEveryone"
}
]
},
{
"id": "BlockReward",
"children": [
{
"id": "RewardCartGetOfAbsSubtotal",
"amount": 20
}
]
}
]
}
}
38 changes: 38 additions & 0 deletions dataset/data/promotions/cart_qa_10_percent_off_subtotal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id": "promotion-acme-qa-10-percent-off-subtotal",
"name": "QA 10% Off Subtotal",
"localizedLabel": {
"values": {
"en-US": "10% Off - en"
}
},
"description": "QA automation: 10% off the cart subtotal.",
"type": "DynamicPromotion",
"isActive": true,
"isPublic": true,
"storeIds": ["store-acme"],
"dynamicExpression": {
"all": true,
"not": false,
"id": "PromotionConditionAndRewardTree",
"children": [
{
"id": "BlockCustomerCondition",
"children": [
{
"id": "ConditionIsEveryone"
}
]
},
{
"id": "BlockReward",
"children": [
{
"id": "RewardCartGetOfRelSubtotal",
"amount": 10
}
]
}
]
}
}
38 changes: 38 additions & 0 deletions dataset/data/promotions/cart_qa_expired_5_off.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id": "promotion-acme-qa-expired-5-off",
"name": "QA Expired Coupon",
"localizedLabel": {
"values": {
"en-US": "$5 Off - en"
}
},
"description": "QA automation: promotion whose coupon is already expired.",
"type": "DynamicPromotion",
"isActive": true,
"isPublic": true,
"storeIds": ["store-acme"],
"dynamicExpression": {
"all": true,
"not": false,
"id": "PromotionConditionAndRewardTree",
"children": [
{
"id": "BlockCustomerCondition",
"children": [
{
"id": "ConditionIsEveryone"
}
]
},
{
"id": "BlockReward",
"children": [
{
"id": "RewardCartGetOfAbsSubtotal",
"amount": 5
}
]
}
]
}
}
38 changes: 38 additions & 0 deletions dataset/data/promotions/cart_qa_lowercase_5_percent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id": "promotion-acme-qa-lowercase-5-percent",
"name": "QA Lowercase 5% Off",
"localizedLabel": {
"values": {
"en-US": "5% Off - en"
}
},
"description": "QA automation: 5% off used to verify coupon-code case fidelity (VCST-5233).",
"type": "DynamicPromotion",
"isActive": true,
"isPublic": true,
"storeIds": ["store-acme"],
"dynamicExpression": {
"all": true,
"not": false,
"id": "PromotionConditionAndRewardTree",
"children": [
{
"id": "BlockCustomerCondition",
"children": [
{
"id": "ConditionIsEveryone"
}
]
},
{
"id": "BlockReward",
"children": [
{
"id": "RewardCartGetOfRelSubtotal",
"amount": 5
}
]
}
]
}
}
48 changes: 48 additions & 0 deletions dataset/data/promotions/cart_qa_min_subtotal_gate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"id": "promotion-acme-qa-min-subtotal-gate",
"name": "QA Min-Subtotal Gate",
"localizedLabel": {
"values": {
"en-US": "$50 Off over $100k - en"
}
},
"description": "QA automation: coupon-gated $50 off, gated behind an unreachable $100,000 subtotal minimum. Non-public so it never surfaces in promotionCoupons/preset tests.",
"type": "DynamicPromotion",
"isActive": true,
"isPublic": false,
"storeIds": ["store-acme"],
"dynamicExpression": {
"all": true,
"not": false,
"id": "PromotionConditionAndRewardTree",
"children": [
{
"id": "BlockCustomerCondition",
"children": [
{
"id": "ConditionIsEveryone"
}
]
},
{
"id": "BlockCartCondition",
"children": [
{
"id": "ConditionCartSubtotalLeast",
"subTotal": 100000.0,
"compareCondition": "AtLeast"
}
]
},
{
"id": "BlockReward",
"children": [
{
"id": "RewardCartGetOfAbsSubtotal",
"amount": 50
}
]
}
]
}
}
6 changes: 6 additions & 0 deletions dataset/data/promotions/cart_subtotal_100_of_for_coupon.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"id": "promotion-acme-100-off-for-cart-subtotal-by-coupon",
"name": "$100 off for cart subtotal by coupon",
"localizedLabel": {
"values": {
"en-US": "$100 Off - en"
}
},
"type": "DynamicPromotion",
"isActive": true,
"isPublic": true,
"storeIds": ["store-acme"],
"dynamicExpression": {
"all": true,
Expand Down
6 changes: 6 additions & 0 deletions dataset/data/promotions/cart_subtotal_100_off_for_4000.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"id": "promotion-acme-100-off-for-cart-subtotal",
"name": "$100 off for cart subtotal",
"localizedLabel": {
"values": {
"en-US": "$100 Off - en"
}
},
"type": "DynamicPromotion",
"isActive": true,
"isPublic": true,
"storeIds": ["store-acme"],
"dynamicExpression": {
"all": true,
Expand Down
Loading