shopify_api 4.9.0 → 5.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/CODEOWNERS +1 -0
- data/.github/probots.yml +2 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +8 -0
- data/.travis.yml +0 -4
- data/CHANGELOG +63 -0
- data/README.md +36 -14
- data/lib/active_resource/detailed_log_subscriber.rb +25 -2
- data/lib/shopify_api/connection.rb +5 -3
- data/lib/shopify_api/limits.rb +1 -2
- data/lib/shopify_api/resources/abandoned_checkout.rb +7 -0
- data/lib/shopify_api/resources/access_scope.rb +5 -0
- data/lib/shopify_api/resources/api_permission.rb +9 -0
- data/lib/shopify_api/resources/asset.rb +8 -8
- data/lib/shopify_api/resources/billing_address.rb +1 -1
- data/lib/shopify_api/resources/checkout.rb +27 -1
- data/lib/shopify_api/resources/collection_publication.rb +10 -0
- data/lib/shopify_api/resources/currency.rb +6 -0
- data/lib/shopify_api/resources/custom_collection.rb +3 -3
- data/lib/shopify_api/resources/{customer_invite_message.rb → customer_invite.rb} +0 -0
- data/lib/shopify_api/resources/graphql.rb +22 -0
- data/lib/shopify_api/resources/image.rb +2 -2
- data/lib/shopify_api/resources/inventory_item.rb +6 -0
- data/lib/shopify_api/resources/inventory_level.rb +55 -0
- data/lib/shopify_api/resources/line_item.rb +9 -1
- data/lib/shopify_api/resources/location.rb +4 -0
- data/lib/shopify_api/resources/o_auth.rb +8 -0
- data/lib/shopify_api/resources/order.rb +16 -4
- data/lib/shopify_api/resources/payment.rb +7 -0
- data/lib/shopify_api/resources/ping.rb +3 -0
- data/lib/shopify_api/resources/ping/conversation.rb +42 -0
- data/lib/shopify_api/resources/ping/delivery_confirmation_details.rb +10 -0
- data/lib/shopify_api/resources/ping/message.rb +8 -0
- data/lib/shopify_api/resources/product.rb +4 -4
- data/lib/shopify_api/resources/product_publication.rb +10 -0
- data/lib/shopify_api/resources/publication.rb +5 -0
- data/lib/shopify_api/resources/shipping_line.rb +1 -1
- data/lib/shopify_api/resources/shipping_rate.rb +7 -0
- data/lib/shopify_api/resources/shop.rb +4 -4
- data/lib/shopify_api/resources/smart_collection.rb +6 -2
- data/lib/shopify_api/resources/tender_transaction.rb +6 -0
- data/lib/shopify_api/session.rb +1 -1
- data/lib/shopify_api/version.rb +1 -1
- data/service.yml +8 -0
- data/shopify_api.gemspec +4 -1
- data/test/abandoned_checkouts_test.rb +29 -0
- data/test/api_permission_test.rb +9 -0
- data/test/checkouts_test.rb +72 -4
- data/test/collection_publication_test.rb +40 -0
- data/test/currency_test.rb +21 -0
- data/test/detailed_log_subscriber_test.rb +19 -1
- data/test/fixtures/abandoned_checkout.json +184 -0
- data/test/fixtures/abandoned_checkouts.json +186 -0
- data/test/fixtures/checkout.json +160 -0
- data/test/fixtures/checkouts.json +25 -49
- data/test/fixtures/collection_publication.json +11 -0
- data/test/fixtures/collection_publications.json +13 -0
- data/test/fixtures/currencies.json +25 -0
- data/test/fixtures/inventory_level.json +7 -0
- data/test/fixtures/inventory_levels.json +24 -0
- data/test/fixtures/order_with_properties.json +373 -0
- data/test/fixtures/payment.json +7 -0
- data/test/fixtures/payments.json +9 -0
- data/test/fixtures/ping/conversation.json +1 -0
- data/test/fixtures/ping/failed_delivery_confirmation.json +1 -0
- data/test/fixtures/ping/message.json +1 -0
- data/test/fixtures/ping/successful_delivery_confirmation.json +1 -0
- data/test/fixtures/product_publication.json +11 -0
- data/test/fixtures/product_publications.json +13 -0
- data/test/fixtures/publications.json +9 -0
- data/test/fixtures/shipping_rates.json +12 -0
- data/test/fixtures/smart_collection_products.json +155 -0
- data/test/fixtures/tender_transactions.json +52 -0
- data/test/inventory_level_test.rb +59 -0
- data/test/location_test.rb +14 -0
- data/test/order_test.rb +29 -1
- data/test/payment_test.rb +19 -0
- data/test/ping/conversation_test.rb +71 -0
- data/test/ping/message_test.rb +23 -0
- data/test/product_publication_test.rb +40 -0
- data/test/publication_test.rb +12 -0
- data/test/session_test.rb +11 -11
- data/test/shipping_rate_test.rb +17 -0
- data/test/smart_collection_test.rb +25 -0
- data/test/tender_transaction_test.rb +18 -0
- data/test/test_helper.rb +8 -5
- data/test/variant_test.rb +4 -1
- metadata +102 -10
- data/lib/shopify_api/resources/discount.rb +0 -11
- data/test/discount_test.rb +0 -52
- data/test/fixtures/discount.json +0 -17
- data/test/fixtures/discount_disabled.json +0 -17
- data/test/fixtures/discounts.json +0 -34
@@ -0,0 +1,160 @@
|
|
1
|
+
{
|
2
|
+
"checkout": {
|
3
|
+
"applied_discount": "0.00",
|
4
|
+
"clone_url": "",
|
5
|
+
"completed_at": null,
|
6
|
+
"created_at": "2012-10-12T07:05:27-04:00",
|
7
|
+
"credit_card": null,
|
8
|
+
"currency": "USD",
|
9
|
+
"presentment_currency": "USD",
|
10
|
+
"email": "bob.norman@hostmail.com",
|
11
|
+
"note": null,
|
12
|
+
"shipping_line": [
|
13
|
+
{
|
14
|
+
"title": "Free Shipping",
|
15
|
+
"price": "0.00",
|
16
|
+
"code": "Free Shipping",
|
17
|
+
"source": "shopify"
|
18
|
+
}
|
19
|
+
],
|
20
|
+
"shipping_rates": [
|
21
|
+
{
|
22
|
+
"id": "canada_post-INT.TP.BOGUS-4.00",
|
23
|
+
"price": "4.00",
|
24
|
+
"title": "Small Packet International Air Bogus"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"id": "canada_post-INT.TP.BOGUS-8.00",
|
28
|
+
"price": "8.00",
|
29
|
+
"title": "Medium Packet International Air Bogus"
|
30
|
+
}
|
31
|
+
],
|
32
|
+
"source_identifier": null,
|
33
|
+
"source_name": "web",
|
34
|
+
"source_url": null,
|
35
|
+
"subtotal_price": "398.00",
|
36
|
+
"shipping_policy_url": null,
|
37
|
+
"taxes_included": false,
|
38
|
+
"token": "2a1ace52255252df566af0faaedfbfa7",
|
39
|
+
"total_line_items_price": "398.00",
|
40
|
+
"total_price": "409.94",
|
41
|
+
"total_tax": "11.94",
|
42
|
+
"updated_at": "2012-10-12T07:05:27-04:00",
|
43
|
+
"line_items": [
|
44
|
+
{
|
45
|
+
"applied_discounts": [
|
46
|
+
|
47
|
+
],
|
48
|
+
"compare_at_price": null,
|
49
|
+
"fulfillment_service": "manual",
|
50
|
+
"gift_card": false,
|
51
|
+
"grams": 200,
|
52
|
+
"id": 49148385,
|
53
|
+
"line_price": "199.00",
|
54
|
+
"price": "199.00",
|
55
|
+
"product_id": 632910392,
|
56
|
+
"properties": null,
|
57
|
+
"quantity": 1,
|
58
|
+
"requires_shipping": true,
|
59
|
+
"sku": "IPOD2008RED",
|
60
|
+
"tax_lines": [
|
61
|
+
|
62
|
+
],
|
63
|
+
"taxable": true,
|
64
|
+
"title": "IPod Nano - 8GB",
|
65
|
+
"variant_id": 49148385,
|
66
|
+
"variant_title": "Red",
|
67
|
+
"vendor": "Apple"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"applied_discounts": [
|
71
|
+
|
72
|
+
],
|
73
|
+
"compare_at_price": null,
|
74
|
+
"fulfillment_service": "manual",
|
75
|
+
"gift_card": false,
|
76
|
+
"grams": 200,
|
77
|
+
"id": 808950810,
|
78
|
+
"line_price": "199.00",
|
79
|
+
"price": "199.00",
|
80
|
+
"product_id": 632910392,
|
81
|
+
"properties": null,
|
82
|
+
"quantity": 1,
|
83
|
+
"requires_shipping": true,
|
84
|
+
"sku": "IPOD2008PINK",
|
85
|
+
"tax_lines": [
|
86
|
+
|
87
|
+
],
|
88
|
+
"taxable": true,
|
89
|
+
"title": "IPod Nano - 8GB",
|
90
|
+
"variant_id": 808950810,
|
91
|
+
"variant_title": "Pink",
|
92
|
+
"vendor": "Apple"
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"name": "#450789469",
|
96
|
+
"note_attributes": [
|
97
|
+
{
|
98
|
+
"name": "custom engraving",
|
99
|
+
"value": "Happy Birthday"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"name": "colour",
|
103
|
+
"value": "green"
|
104
|
+
}
|
105
|
+
],
|
106
|
+
"discount_code": [
|
107
|
+
{
|
108
|
+
"code": "TENOFF",
|
109
|
+
"amount": "10.00"
|
110
|
+
}
|
111
|
+
],
|
112
|
+
"tax_lines": [
|
113
|
+
{
|
114
|
+
"price": "11.94",
|
115
|
+
"rate": 0.06,
|
116
|
+
"title": "State Tax"
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"billing_address": {
|
120
|
+
"address1": "Chestnut Street 92",
|
121
|
+
"address2": "",
|
122
|
+
"city": "Louisville",
|
123
|
+
"company": null,
|
124
|
+
"country": "United States",
|
125
|
+
"first_name": "Bob",
|
126
|
+
"last_name": "Norman",
|
127
|
+
"latitude": "45.41634",
|
128
|
+
"longitude": "-75.6868",
|
129
|
+
"phone": "555-625-1199",
|
130
|
+
"province": "Kentucky",
|
131
|
+
"zip": "40202",
|
132
|
+
"name": "Bob Norman",
|
133
|
+
"country_code": "US",
|
134
|
+
"province_code": "KY"
|
135
|
+
},
|
136
|
+
"shipping_address": {
|
137
|
+
"address1": "Chestnut Street 92",
|
138
|
+
"address2": "",
|
139
|
+
"city": "Louisville",
|
140
|
+
"company": null,
|
141
|
+
"country": "United States",
|
142
|
+
"first_name": "Bob",
|
143
|
+
"last_name": "Norman",
|
144
|
+
"latitude": "45.41634",
|
145
|
+
"longitude": "-75.6868",
|
146
|
+
"phone": "555-625-1199",
|
147
|
+
"province": "Kentucky",
|
148
|
+
"zip": "40202",
|
149
|
+
"name": "Bob Norman",
|
150
|
+
"country_code": "US",
|
151
|
+
"province_code": "KY"
|
152
|
+
},
|
153
|
+
"customer_id": null,
|
154
|
+
"customer_locale": "en-CA",
|
155
|
+
"device_id": "12",
|
156
|
+
"order": null,
|
157
|
+
"order_id": null,
|
158
|
+
"order_status_url": ""
|
159
|
+
}
|
160
|
+
}
|
@@ -1,19 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"checkouts": [
|
3
3
|
{
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"closed_at": null,
|
4
|
+
"applied_discount": "0.00",
|
5
|
+
"clone_url": "",
|
7
6
|
"completed_at": null,
|
8
7
|
"created_at": "2012-10-12T07:05:27-04:00",
|
8
|
+
"credit_card": null,
|
9
9
|
"currency": "USD",
|
10
|
+
"presentment_currency": "USD",
|
10
11
|
"email": "bob.norman@hostmail.com",
|
11
|
-
"gateway": null,
|
12
|
-
"id": 450789469,
|
13
|
-
"landing_site": null,
|
14
12
|
"note": null,
|
15
|
-
"
|
16
|
-
"shipping_lines": [
|
13
|
+
"shipping_line": [
|
17
14
|
{
|
18
15
|
"title": "Free Shipping",
|
19
16
|
"price": "0.00",
|
@@ -21,18 +18,28 @@
|
|
21
18
|
"source": "shopify"
|
22
19
|
}
|
23
20
|
],
|
24
|
-
"
|
21
|
+
"shipping_rates": [
|
22
|
+
{
|
23
|
+
"id": "canada_post-INT.TP.BOGUS-4.00",
|
24
|
+
"price": "4.00",
|
25
|
+
"title": "Small Packet International Air Bogus"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"id": "canada_post-INT.TP.BOGUS-8.00",
|
29
|
+
"price": "8.00",
|
30
|
+
"title": "Medium Packet International Air Bogus"
|
31
|
+
}
|
32
|
+
],
|
25
33
|
"source_identifier": null,
|
26
34
|
"source_name": "web",
|
27
35
|
"source_url": null,
|
28
36
|
"subtotal_price": "398.00",
|
37
|
+
"shipping_policy_url": null,
|
29
38
|
"taxes_included": false,
|
30
39
|
"token": "2a1ace52255252df566af0faaedfbfa7",
|
31
|
-
"total_discounts": "0.00",
|
32
40
|
"total_line_items_price": "398.00",
|
33
41
|
"total_price": "409.94",
|
34
42
|
"total_tax": "11.94",
|
35
|
-
"total_weight": 400,
|
36
43
|
"updated_at": "2012-10-12T07:05:27-04:00",
|
37
44
|
"line_items": [
|
38
45
|
{
|
@@ -97,13 +104,12 @@
|
|
97
104
|
"value": "green"
|
98
105
|
}
|
99
106
|
],
|
100
|
-
"
|
107
|
+
"discount_code": [
|
101
108
|
{
|
102
109
|
"code": "TENOFF",
|
103
110
|
"amount": "10.00"
|
104
111
|
}
|
105
112
|
],
|
106
|
-
"abandoned_checkout_url": "https://checkout.local/orders/690933842/2a1ace52255252df566af0faaedfbfa7?recovered=1",
|
107
113
|
"tax_lines": [
|
108
114
|
{
|
109
115
|
"price": "11.94",
|
@@ -145,42 +151,12 @@
|
|
145
151
|
"country_code": "US",
|
146
152
|
"province_code": "KY"
|
147
153
|
},
|
148
|
-
"
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
"last_name": "Norman",
|
155
|
-
"last_order_id": null,
|
156
|
-
"multipass_identifier": null,
|
157
|
-
"note": null,
|
158
|
-
"orders_count": 0,
|
159
|
-
"state": "disabled",
|
160
|
-
"total_spent": "0.00",
|
161
|
-
"updated_at": "2014-03-07T16:12:37-05:00",
|
162
|
-
"verified_email": true,
|
163
|
-
"tags": "",
|
164
|
-
"last_order_name": null,
|
165
|
-
"default_address": {
|
166
|
-
"address1": "Chestnut Street 92",
|
167
|
-
"address2": "",
|
168
|
-
"city": "Louisville",
|
169
|
-
"company": null,
|
170
|
-
"country": "United States",
|
171
|
-
"first_name": null,
|
172
|
-
"id": 207119551,
|
173
|
-
"last_name": null,
|
174
|
-
"phone": "555-625-1199",
|
175
|
-
"province": "Kentucky",
|
176
|
-
"zip": "40202",
|
177
|
-
"name": null,
|
178
|
-
"province_code": "KY",
|
179
|
-
"country_code": "US",
|
180
|
-
"country_name": "United States",
|
181
|
-
"default": true
|
182
|
-
}
|
183
|
-
}
|
154
|
+
"customer_id": null,
|
155
|
+
"customer_locale": "en-CA",
|
156
|
+
"device_id": "12",
|
157
|
+
"order": null,
|
158
|
+
"order_id": null,
|
159
|
+
"order_status_url": ""
|
184
160
|
}
|
185
161
|
]
|
186
162
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"collection_publication": {
|
3
|
+
"id": 96062799894,
|
4
|
+
"publication_id": 55650051,
|
5
|
+
"published_at": "2018-09-05T17:22:31-04:00",
|
6
|
+
"published": true,
|
7
|
+
"created_at": "2018-09-05T17:22:31-04:00",
|
8
|
+
"updated_at": "2018-09-14T14:31:19-04:00",
|
9
|
+
"collection_id": 60941828118
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"collection_publications": [
|
3
|
+
{
|
4
|
+
"id": 96062799894,
|
5
|
+
"publication_id": 55650051,
|
6
|
+
"published_at": "2018-09-05T17:22:31-04:00",
|
7
|
+
"published": true,
|
8
|
+
"created_at": "2018-09-05T17:22:31-04:00",
|
9
|
+
"updated_at": "2018-09-14T14:31:19-04:00",
|
10
|
+
"collection_id": 60941828118
|
11
|
+
}
|
12
|
+
]
|
13
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"currencies": [
|
3
|
+
{
|
4
|
+
"currency": "AUD",
|
5
|
+
"rate_updated_at": "2018-10-03T14:44:08-04:00",
|
6
|
+
"enabled": true
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"currency": "EUR",
|
10
|
+
"rate_updated_at": "2018-10-03T14:44:08-04:00",
|
11
|
+
"enabled": true
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"currency": "GBP",
|
15
|
+
"rate_updated_at": "2018-10-03T14:44:08-04:00",
|
16
|
+
"enabled": true
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"currency": "HKD",
|
20
|
+
"rate_updated_at": "2018-10-03T14:44:08-04:00",
|
21
|
+
"enabled": false
|
22
|
+
}
|
23
|
+
]
|
24
|
+
}
|
25
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"inventory_levels": [
|
3
|
+
{
|
4
|
+
"inventory_item_id": 39072856,
|
5
|
+
"location_id": 487838322,
|
6
|
+
"available": 27
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"inventory_item_id": 808950810,
|
10
|
+
"location_id": 905684977,
|
11
|
+
"available": 1
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"inventory_item_id": 808950810,
|
15
|
+
"location_id": 487838322,
|
16
|
+
"available": 9
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"inventory_item_id": 39072856,
|
20
|
+
"location_id": 905684977,
|
21
|
+
"available": 3
|
22
|
+
}
|
23
|
+
]
|
24
|
+
}
|
@@ -0,0 +1,373 @@
|
|
1
|
+
{
|
2
|
+
"order": {
|
3
|
+
"buyer_accepts_marketing": false,
|
4
|
+
"cancel_reason": null,
|
5
|
+
"cancelled_at": null,
|
6
|
+
"cart_token": "68778783ad298f1c80c3bafcddeea02f",
|
7
|
+
"checkout_token": null,
|
8
|
+
"closed_at": null,
|
9
|
+
"confirmed": false,
|
10
|
+
"created_at": "2008-01-10T11:00:00-05:00",
|
11
|
+
"currency": "USD",
|
12
|
+
"email": "bob.norman@hostmail.com",
|
13
|
+
"financial_status": "authorized",
|
14
|
+
"fulfillment_status": null,
|
15
|
+
"gateway": "authorize_net",
|
16
|
+
"id": 450789469,
|
17
|
+
"landing_site": "http://www.example.com?source=abc",
|
18
|
+
"location_id": null,
|
19
|
+
"name": "#1001",
|
20
|
+
"note": "Test note",
|
21
|
+
"number": 1,
|
22
|
+
"reference": "fhwdgads",
|
23
|
+
"referring_site": "http://www.otherexample.com",
|
24
|
+
"source": null,
|
25
|
+
"source_identifier": "fhwdgads",
|
26
|
+
"source_name": "web",
|
27
|
+
"source_url": null,
|
28
|
+
"subtotal_price": "398.00",
|
29
|
+
"taxes_included": false,
|
30
|
+
"test": false,
|
31
|
+
"token": "b1946ac92492d2347c6235b4d2611184",
|
32
|
+
"total_discounts": "0.00",
|
33
|
+
"total_line_items_price": "398.00",
|
34
|
+
"total_price": "409.94",
|
35
|
+
"total_price_usd": "409.94",
|
36
|
+
"total_tax": "11.94",
|
37
|
+
"total_weight": 0,
|
38
|
+
"updated_at": "2008-01-10T11:00:00-05:00",
|
39
|
+
"user_id": null,
|
40
|
+
"browser_ip": null,
|
41
|
+
"landing_site_ref": "abc",
|
42
|
+
"order_number": 1001,
|
43
|
+
"discount_codes": [],
|
44
|
+
"note_attributes": [],
|
45
|
+
"processing_method": "direct",
|
46
|
+
"checkout_id": 450789469,
|
47
|
+
"tax_lines": [
|
48
|
+
{
|
49
|
+
"price": "11.94",
|
50
|
+
"rate": 0.06,
|
51
|
+
"title": "State Tax"
|
52
|
+
}
|
53
|
+
],
|
54
|
+
"tags": "",
|
55
|
+
"line_items": [
|
56
|
+
{
|
57
|
+
"fulfillment_service": "manual",
|
58
|
+
"fulfillment_status": null,
|
59
|
+
"grams": 1361,
|
60
|
+
"id": 466157049,
|
61
|
+
"price": "45.00",
|
62
|
+
"product_id": 632910392,
|
63
|
+
"quantity": 1,
|
64
|
+
"requires_shipping": true,
|
65
|
+
"sku": "",
|
66
|
+
"taxable": true,
|
67
|
+
"title": "Create Your Own Coffee 3 Pack",
|
68
|
+
"variant_id": 39072856,
|
69
|
+
"variant_title": "",
|
70
|
+
"vendor": "VCR",
|
71
|
+
"name": "Create Your Own Coffee 3 Pack",
|
72
|
+
"variant_inventory_management": null,
|
73
|
+
"properties": [
|
74
|
+
{
|
75
|
+
"name": "1st Coffee",
|
76
|
+
"value": "Coffee1"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"name": "2nd Coffee",
|
80
|
+
"value": "Coffee2"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"name": "3rd Coffee",
|
84
|
+
"value": "Coffee3"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"name": "Select Your Grind",
|
88
|
+
"value": "Ground"
|
89
|
+
}
|
90
|
+
],
|
91
|
+
"product_exists": true,
|
92
|
+
"tax_lines": [
|
93
|
+
|
94
|
+
]
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"fulfillment_service": "manual",
|
98
|
+
"fulfillment_status": null,
|
99
|
+
"grams": 680,
|
100
|
+
"id": 641254555689,
|
101
|
+
"price": "24.00",
|
102
|
+
"product_id": 288331137065,
|
103
|
+
"quantity": 1,
|
104
|
+
"requires_shipping": true,
|
105
|
+
"sku": "",
|
106
|
+
"taxable": true,
|
107
|
+
"title": "Create Your Own Coffee 3 Pack (8oz bags)",
|
108
|
+
"variant_id": 4107806867497,
|
109
|
+
"variant_title": "",
|
110
|
+
"vendor": "OMC",
|
111
|
+
"name": "Create Your Own Coffee 3 Pack (8oz bags)",
|
112
|
+
"variant_inventory_management": null,
|
113
|
+
"properties": [
|
114
|
+
{
|
115
|
+
"name": "By default may label with \"Roasted for ",
|
116
|
+
"value": {
|
117
|
+
"Your First Name": {
|
118
|
+
"\". If you want something specific on the label, enter it here:": ""
|
119
|
+
}
|
120
|
+
}
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"name": "Select Your Grind",
|
124
|
+
"value": "Ground"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"name": "Coffees",
|
128
|
+
"value": "Coffee blend 1"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"name": "Coffees",
|
132
|
+
"value": "Coffee blend 2"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"name": "Coffees",
|
136
|
+
"value": "Coffee blend 3"
|
137
|
+
}
|
138
|
+
],
|
139
|
+
"product_exists": true,
|
140
|
+
"tax_lines": [
|
141
|
+
|
142
|
+
]
|
143
|
+
}
|
144
|
+
],
|
145
|
+
"shipping_lines": [
|
146
|
+
{
|
147
|
+
"code": "Free Shipping",
|
148
|
+
"price": "0.00",
|
149
|
+
"source": "shopify",
|
150
|
+
"title": "Free Shipping",
|
151
|
+
"tax_lines": [
|
152
|
+
|
153
|
+
]
|
154
|
+
}
|
155
|
+
],
|
156
|
+
"payment_details": {
|
157
|
+
"avs_result_code": null,
|
158
|
+
"credit_card_bin": null,
|
159
|
+
"cvv_result_code": null,
|
160
|
+
"credit_card_number": "XXXX-XXXX-XXXX-4242",
|
161
|
+
"credit_card_company": "Visa"
|
162
|
+
},
|
163
|
+
"billing_address": {
|
164
|
+
"address1": "Chestnut Street 92",
|
165
|
+
"address2": "",
|
166
|
+
"city": "Louisville",
|
167
|
+
"company": null,
|
168
|
+
"country": "United States",
|
169
|
+
"first_name": "Bob",
|
170
|
+
"last_name": "Norman",
|
171
|
+
"latitude": "45.41634",
|
172
|
+
"longitude": "-75.6868",
|
173
|
+
"phone": "555-625-1199",
|
174
|
+
"province": "Kentucky",
|
175
|
+
"zip": "40202",
|
176
|
+
"name": "Bob Norman",
|
177
|
+
"country_code": "US",
|
178
|
+
"province_code": "KY"
|
179
|
+
},
|
180
|
+
"shipping_address": {
|
181
|
+
"address1": "Chestnut Street 92",
|
182
|
+
"address2": "",
|
183
|
+
"city": "Louisville",
|
184
|
+
"company": null,
|
185
|
+
"country": "United States",
|
186
|
+
"first_name": "Bob",
|
187
|
+
"last_name": "Norman",
|
188
|
+
"latitude": "45.41634",
|
189
|
+
"longitude": "-75.6868",
|
190
|
+
"phone": "555-625-1199",
|
191
|
+
"province": "Kentucky",
|
192
|
+
"zip": "40202",
|
193
|
+
"name": "Bob Norman",
|
194
|
+
"country_code": "US",
|
195
|
+
"province_code": "KY"
|
196
|
+
},
|
197
|
+
"fulfillments": [
|
198
|
+
{
|
199
|
+
"created_at": "2014-03-07T16:14:08-05:00",
|
200
|
+
"id": 255858046,
|
201
|
+
"order_id": 450789469,
|
202
|
+
"service": "manual",
|
203
|
+
"status": "failure",
|
204
|
+
"tracking_company": null,
|
205
|
+
"updated_at": "2014-03-07T16:14:08-05:00",
|
206
|
+
"tracking_number": "1Z2345",
|
207
|
+
"tracking_numbers": [
|
208
|
+
"1Z2345"
|
209
|
+
],
|
210
|
+
"tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
|
211
|
+
"tracking_urls": [
|
212
|
+
"http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
|
213
|
+
],
|
214
|
+
"receipt": {
|
215
|
+
"testcase": true,
|
216
|
+
"authorization": "123456"
|
217
|
+
},
|
218
|
+
"line_items": [
|
219
|
+
{
|
220
|
+
"fulfillment_service": "manual",
|
221
|
+
"fulfillment_status": null,
|
222
|
+
"grams": 680,
|
223
|
+
"id": 641254555689,
|
224
|
+
"price": "24.00",
|
225
|
+
"product_id": 288331137065,
|
226
|
+
"quantity": 1,
|
227
|
+
"requires_shipping": true,
|
228
|
+
"sku": "",
|
229
|
+
"taxable": true,
|
230
|
+
"title": "Create Your Own Coffee 3 Pack (8oz bags)",
|
231
|
+
"variant_id": 4107806867497,
|
232
|
+
"variant_title": "",
|
233
|
+
"vendor": "OMC",
|
234
|
+
"name": "Create Your Own Coffee 3 Pack (8oz bags)",
|
235
|
+
"variant_inventory_management": null,
|
236
|
+
"properties": [
|
237
|
+
{
|
238
|
+
"name": "By default may label with \"Roasted for ",
|
239
|
+
"value": {
|
240
|
+
"Your First Name": {
|
241
|
+
"\". If you want something specific on the label, enter it here:": ""
|
242
|
+
}
|
243
|
+
}
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"name": "Select Your Grind",
|
247
|
+
"value": "Ground"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"name": "Coffees",
|
251
|
+
"value": "Coffee blend 1"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"name": "Coffees",
|
255
|
+
"value": "Coffee blend 2"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"name": "Coffees",
|
259
|
+
"value": "Coffee blend 3"
|
260
|
+
}
|
261
|
+
],
|
262
|
+
"product_exists": true,
|
263
|
+
"tax_lines": [
|
264
|
+
|
265
|
+
]
|
266
|
+
}
|
267
|
+
]
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"created_at": "2014-03-07T16:14:08-05:00",
|
271
|
+
"id": 255858046,
|
272
|
+
"order_id": 450789469,
|
273
|
+
"service": "manual",
|
274
|
+
"status": "failure",
|
275
|
+
"tracking_company": null,
|
276
|
+
"updated_at": "2014-03-07T16:14:08-05:00",
|
277
|
+
"tracking_number": "1Z2345",
|
278
|
+
"tracking_numbers": [
|
279
|
+
"1Z2345"
|
280
|
+
],
|
281
|
+
"tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
|
282
|
+
"tracking_urls": [
|
283
|
+
"http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
|
284
|
+
],
|
285
|
+
"receipt": {},
|
286
|
+
"line_items": [
|
287
|
+
{
|
288
|
+
"fulfillment_service": "manual",
|
289
|
+
"fulfillment_status": null,
|
290
|
+
"grams": 1361,
|
291
|
+
"id": 466157049,
|
292
|
+
"price": "45.00",
|
293
|
+
"product_id": 632910392,
|
294
|
+
"quantity": 1,
|
295
|
+
"requires_shipping": true,
|
296
|
+
"sku": "",
|
297
|
+
"taxable": true,
|
298
|
+
"title": "Create Your Own Coffee 3 Pack",
|
299
|
+
"variant_id": 39072856,
|
300
|
+
"variant_title": "",
|
301
|
+
"vendor": "VCR",
|
302
|
+
"name": "Create Your Own Coffee 3 Pack",
|
303
|
+
"variant_inventory_management": null,
|
304
|
+
"properties": [
|
305
|
+
{
|
306
|
+
"name": "1st Coffee",
|
307
|
+
"value": "Coffee1"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"name": "2nd Coffee",
|
311
|
+
"value": "Coffee2"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"name": "3rd Coffee",
|
315
|
+
"value": "Coffee3"
|
316
|
+
},
|
317
|
+
{
|
318
|
+
"name": "Select Your Grind",
|
319
|
+
"value": "Ground"
|
320
|
+
}
|
321
|
+
],
|
322
|
+
"product_exists": true,
|
323
|
+
"tax_lines": [
|
324
|
+
|
325
|
+
]
|
326
|
+
}
|
327
|
+
]
|
328
|
+
}
|
329
|
+
],
|
330
|
+
"client_details": {
|
331
|
+
"accept_language": null,
|
332
|
+
"browser_ip": "0.0.0.0",
|
333
|
+
"session_hash": null,
|
334
|
+
"user_agent": null
|
335
|
+
},
|
336
|
+
"customer": {
|
337
|
+
"accepts_marketing": false,
|
338
|
+
"created_at": "2014-03-07T16:14:08-05:00",
|
339
|
+
"email": "bob.norman@hostmail.com",
|
340
|
+
"first_name": "Bob",
|
341
|
+
"id": 207119551,
|
342
|
+
"last_name": "Norman",
|
343
|
+
"last_order_id": null,
|
344
|
+
"multipass_identifier": null,
|
345
|
+
"note": null,
|
346
|
+
"orders_count": 0,
|
347
|
+
"state": "disabled",
|
348
|
+
"total_spent": "0.00",
|
349
|
+
"updated_at": "2014-03-07T16:14:08-05:00",
|
350
|
+
"verified_email": true,
|
351
|
+
"tags": "",
|
352
|
+
"last_order_name": null,
|
353
|
+
"default_address": {
|
354
|
+
"address1": "Chestnut Street 92",
|
355
|
+
"address2": "",
|
356
|
+
"city": "Louisville",
|
357
|
+
"company": null,
|
358
|
+
"country": "United States",
|
359
|
+
"first_name": null,
|
360
|
+
"id": 207119551,
|
361
|
+
"last_name": null,
|
362
|
+
"phone": "555-625-1199",
|
363
|
+
"province": "Kentucky",
|
364
|
+
"zip": "40202",
|
365
|
+
"name": null,
|
366
|
+
"province_code": "KY",
|
367
|
+
"country_code": "US",
|
368
|
+
"country_name": "United States",
|
369
|
+
"default": true
|
370
|
+
}
|
371
|
+
}
|
372
|
+
}
|
373
|
+
}
|