aboutsummaryrefslogtreecommitdiffstats
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/printjobcostreq.json23
-rw-r--r--testdata/printjobcostresp.json95
2 files changed, 118 insertions, 0 deletions
diff --git a/testdata/printjobcostreq.json b/testdata/printjobcostreq.json
new file mode 100644
index 0000000..d521f77
--- /dev/null
+++ b/testdata/printjobcostreq.json
@@ -0,0 +1,23 @@
+{
+ "line_items": [
+ {
+ "page_count": 32,
+ "pod_package_id": "0600X0900.BW.STD.PB.060UW444.MXX",
+ "quantity": 20
+ },
+ {
+ "page_count": 324,
+ "pod_package_id": "0425X0687.BW.STD.PB.060UW444.GXX",
+ "quantity": 200
+ }
+ ],
+ "shipping_address": {
+ "city": "Lübeck",
+ "country_code": "DE",
+ "postcode": "23552",
+ "state_code": "",
+ "street1": "Holstenstr. 40",
+ "phone_number": "844-212-0689"
+ },
+ "shipping_option": "EXPRESS"
+} \ No newline at end of file
diff --git a/testdata/printjobcostresp.json b/testdata/printjobcostresp.json
new file mode 100644
index 0000000..f633183
--- /dev/null
+++ b/testdata/printjobcostresp.json
@@ -0,0 +1,95 @@
+{
+ "shipping_address": {
+ "city": "Lübeck",
+ "postcode": "23552",
+ "street1": "Holstenstr. 40",
+ "phone_number": "844-212-0689",
+ "state": "",
+ "country": "DE",
+ "is_business": false,
+ "first_name": ".",
+ "last_name": ".",
+ "warnings": [
+ {
+ "type": "validation_warning",
+ "code": "REPLACED",
+ "path": "external",
+ "message": "street1: Holstenstr. 40 -> Holstenstraße 40"
+ }
+ ],
+ "suggested_address": {
+ "country_code": "DE",
+ "state_code": null,
+ "postcode": "23552",
+ "city": "Lübeck",
+ "street1": "Holstenstraße 40",
+ "street2": null
+ }
+ },
+ "fees": [
+ {
+ "currency": "USD",
+ "fee_type": "HANDLING_FEE",
+ "sku": "HANDLING_FEE",
+ "tax_rate": "0.060000",
+ "total_cost_excl_tax": "14.00",
+ "total_cost_incl_tax": "14.84",
+ "total_tax": "0.84"
+ },
+ {
+ "currency": "USD",
+ "fee_type": "FULFILLMENT_FEE",
+ "sku": "FULFILLMENT_FEE",
+ "tax_rate": "0.060000",
+ "total_cost_excl_tax": "0.75",
+ "total_cost_incl_tax": "0.80",
+ "total_tax": "0.05"
+ }
+ ],
+ "line_item_costs": [
+ {
+ "cost_excl_discounts": "4.95",
+ "total_tax": "6.93",
+ "tax_rate": "0.070000",
+ "quantity": 20,
+ "total_cost_excl_tax": "99.00",
+ "total_cost_excl_discounts": "99.00",
+ "total_cost_incl_tax": "105.93",
+ "discounts": [],
+ "unit_tier_cost": "4.95"
+ },
+ {
+ "cost_excl_discounts": "16.19",
+ "total_tax": "215.33",
+ "tax_rate": "0.070000",
+ "quantity": 200,
+ "total_cost_excl_tax": "3076.10",
+ "total_cost_excl_discounts": "3238.00",
+ "total_cost_incl_tax": "3291.43",
+ "discounts": [
+ {
+ "amount": "161.90",
+ "description": "Volume Discount 5%"
+ }
+ ],
+ "unit_tier_cost": "16.19"
+ }
+ ],
+ "shipping_cost": {
+ "total_cost_excl_tax": "1085.50",
+ "total_cost_incl_tax": "1161.49",
+ "total_tax": "75.99",
+ "tax_rate": "0.19"
+ },
+ "fulfillment_cost": {
+ "total_cost_excl_tax": "1.05",
+ "total_cost_incl_tax": "1.12",
+ "total_tax": "0.07",
+ "tax_rate": "0.19"
+ },
+ "total_tax": "298.32",
+ "total_cost_excl_tax": "4261.65",
+ "total_cost_incl_tax": "4559.97",
+ "total_discount_amount": "161.90",
+ "currency": "CAD"
+}