Skip to content

Commit

Permalink
chore(test): add seeder test data
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Jun 14, 2023
1 parent 034fe5f commit 3d09096
Show file tree
Hide file tree
Showing 18 changed files with 10,602 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/models/data/addresses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"reference": "address_1",
"business": true,
"company": "The Brand SRL",
"line_1": "Via Roma 123",
"city": "Firenze",
"zip_code": "50123",
"state_code": "FI",
"country_code": "IT",
"phone": "+39 055 1234567890",
"email": "[email protected]"
},
{
"reference": "address_2",
"business": true,
"company": "The Brand USA Inc.",
"line_1": "50 Hartz Way",
"city": "Secaucus, New York",
"zip_code": "7094",
"state_code": "NY",
"country_code": "US",
"phone": "+1.201.22.33.444",
"email": "[email protected]"
}
]
37 changes: 37 additions & 0 deletions test/models/data/delivery_lead_times.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
{
"reference": "delivery_lead_time_1",
"stock_location": "stock_location_1",
"shipping_method": "shipping_method_1",
"min_hours": 72,
"max_hours": 120
},
{
"reference": "delivery_lead_time_2",
"stock_location": "stock_location_1",
"shipping_method": "shipping_method_2",
"min_hours": 48,
"max_hours": 72
},
{
"reference": "delivery_lead_time_3",
"stock_location": "stock_location_2",
"shipping_method": "shipping_method_2",
"min_hours": 72,
"max_hours": 96
},
{
"reference": "delivery_lead_time_4",
"stock_location": "stock_location_1",
"shipping_method": "shipping_method_3",
"min_hours": 96,
"max_hours": 144
},
{
"reference": "delivery_lead_time_5",
"stock_location": "stock_location_2",
"shipping_method": "shipping_method_3",
"min_hours": 72,
"max_hours": 96
}
]
10 changes: 10 additions & 0 deletions test/models/data/inventory_models.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"reference": "inventory_model_1",
"name": "Europe's Inventory"
},
{
"reference": "inventory_model_2",
"name": "USA's Inventory"
}
]
26 changes: 26 additions & 0 deletions test/models/data/inventory_return_locations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"reference": "inventory_return_location_1",
"inventory_model": "inventory_model_1",
"stock_location": "stock_location_1",
"priority": 1
},
{
"reference": "inventory_return_location_2",
"inventory_model": "inventory_model_1",
"stock_location": "stock_location_2",
"priority": 2
},
{
"reference": "inventory_return_location_3",
"inventory_model": "inventory_model_2",
"stock_location": "stock_location_1",
"priority": 2
},
{
"reference": "inventory_return_location_4",
"inventory_model": "inventory_model_2",
"stock_location": "stock_location_2",
"priority": 1
}
]
27 changes: 27 additions & 0 deletions test/models/data/inventory_stock_locations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"reference": "inventory_stock_location_1",
"inventory_model": "inventory_model_1",
"stock_location": "stock_location_1",
"priority": 1
},
{
"reference": "inventory_stock_location_2",
"inventory_model": "inventory_model_1",
"stock_location": "stock_location_2",
"priority": 2,
"on_hold": true
},
{
"reference": "inventory_stock_location_3",
"inventory_model": "inventory_model_2",
"stock_location": "stock_location_1",
"priority": 2
},
{
"reference": "inventory_stock_location_4",
"inventory_model": "inventory_model_2",
"stock_location": "stock_location_2",
"priority": 1
}
]
23 changes: 23 additions & 0 deletions test/models/data/markets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"reference": "market_1",
"merchant": "merchant_1",
"inventory_model": "inventory_model_1",
"price_list": "price_list_1",
"name": "Europe"
},
{
"reference": "market_2",
"merchant": "merchant_1",
"inventory_model": "inventory_model_2",
"price_list": "price_list_2",
"name": "USA"
},
{
"reference": "market_3",
"merchant": "merchant_1",
"inventory_model": "inventory_model_1",
"price_list": "price_list_3",
"name": "UK"
}
]
7 changes: 7 additions & 0 deletions test/models/data/merchants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"reference": "merchant_1",
"name": "The Brand SRL",
"address": "address_1"
}
]
7 changes: 7 additions & 0 deletions test/models/data/payment_gateways.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"type": "manual_gateways",
"reference": "payment_gateway_1",
"name": "Manual Gateway"
}
]
20 changes: 20 additions & 0 deletions test/models/data/payment_methods.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"reference": "payment_method_1",
"market": "market_1",
"payment_source_type": "WireTransfer",
"payment_gateway": "payment_gateway_1"
},
{
"reference": "payment_method_2",
"market": "market_2",
"payment_source_type": "WireTransfer",
"payment_gateway": "payment_gateway_1"
},
{
"reference": "payment_method_3",
"market": "market_3",
"payment_source_type": "WireTransfer",
"payment_gateway": "payment_gateway_1"
}
]
18 changes: 18 additions & 0 deletions test/models/data/price_lists.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"reference": "price_list_1",
"name": "EUR Price List",
"currency_code": "EUR"
},
{
"reference": "price_list_2",
"name": "USD Price List",
"currency_code": "USD",
"tax_included": false
},
{
"reference": "price_list_3",
"name": "GBP Price List",
"currency_code": "GBP"
}
]
Loading

0 comments on commit 3d09096

Please sign in to comment.