xpost 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/TODO.md +28 -1
- data/lib/.DS_Store +0 -0
- data/lib/xpost.rb +8 -6
- data/lib/xpost/.DS_Store +0 -0
- data/lib/xpost/address.rb +77 -0
- data/lib/xpost/authentication.rb +5 -0
- data/lib/xpost/configuration.rb +15 -0
- data/lib/xpost/item.rb +44 -0
- data/lib/xpost/order.rb +137 -0
- data/lib/xpost/orders.rb +53 -12
- data/lib/xpost/statuses.rb +29 -0
- data/lib/xpost/version.rb +1 -1
- data/sample/sample_essential_order_details.json +64 -0
- data/sample/sample_xpost_order-confirmed.json +317 -0
- data/sample/sample_xpost_order-for-pickup.json +379 -0
- data/sample/sample_xpost_order-pending.json +306 -0
- data/sample/webhook_sample.json +105 -0
- data/spec/factories/addresses.rb +46 -28
- data/spec/factories/items.rb +10 -10
- data/spec/factories/orders.rb +39 -16
- data/spec/{address_spec.rb → order/address/address_spec.rb} +0 -0
- data/spec/order/cancel_spec.rb +37 -0
- data/spec/order/confirm_spec.rb +38 -0
- data/spec/order/create_spec.rb +97 -0
- data/spec/order/for_pickup_spec.rb +42 -0
- data/spec/order/get_shipping_label_spec.rb +60 -0
- data/spec/{item_spec.rb → order/items/item_spec.rb} +5 -5
- data/spec/order/order_spec.rb +97 -0
- data/spec/orders/{orders_find_spec.rb → find_spec.rb} +3 -2
- data/spec/orders/{orders_track_spec.rb → track_spec.rb} +2 -2
- data/spec/spec_helper.rb +1 -0
- data/spec/xpost_spec.rb +27 -0
- data/xpost.gemspec +5 -2
- metadata +67 -15
- data/lib/xpost/models.rb +0 -5
- data/lib/xpost/models/address.rb +0 -38
- data/lib/xpost/models/item.rb +0 -31
- data/lib/xpost/models/order.rb +0 -54
- data/spec/line_item_spec.rb +0 -16
- data/spec/orders/order_create_spec.rb +0 -46
- data/spec/orders/order_for_pickup_spec.rb +0 -17
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
require 'set'
|
|
3
|
+
require 'typhoeus'
|
|
4
|
+
|
|
5
|
+
module Xpost
|
|
6
|
+
class Statuses
|
|
7
|
+
def self.all(auth_token)
|
|
8
|
+
get_url("orders/statuses", headers: auth_header(auth_token))
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
private
|
|
12
|
+
|
|
13
|
+
def self.base_url
|
|
14
|
+
Xpost.configuration.production_url
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def self.auth_header(auth_token)
|
|
18
|
+
{"Authorization" => "Bearer #{auth_token}"}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def self.get_url(url, options = {})
|
|
22
|
+
req_url = "#{base_url}/#{url}"
|
|
23
|
+
req_options = {headers: options[:headers]}
|
|
24
|
+
|
|
25
|
+
res = Typhoeus::Request.get(req_url, req_options).body
|
|
26
|
+
res = JSON.parse(res, symbolize_names: true)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
data/lib/xpost/version.rb
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"currency": "PHP",
|
|
3
|
+
"total": "1750.00",
|
|
4
|
+
"payment_method": "cod",
|
|
5
|
+
"status" : "for_pickup",
|
|
6
|
+
"payment_provider": "lbcx",
|
|
7
|
+
"shipment": "box",
|
|
8
|
+
"service": "next_day",
|
|
9
|
+
"buyer_name": "Thea Lizardo",
|
|
10
|
+
"buyer_id": "12345",
|
|
11
|
+
"parcel": {
|
|
12
|
+
"dimensions": {
|
|
13
|
+
"uom": "cm",
|
|
14
|
+
"length": 22,
|
|
15
|
+
"width": 22,
|
|
16
|
+
"height": 22
|
|
17
|
+
},
|
|
18
|
+
"weight": {
|
|
19
|
+
"uom": "kg",
|
|
20
|
+
"value": "22"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"metadata": {"key_1":"value_1","key_2":"value_2"},
|
|
24
|
+
"pickup_at": "2017-07-06",
|
|
25
|
+
"pickup_address": {
|
|
26
|
+
"name": "Thea Lizardo",
|
|
27
|
+
"company": "xpanse",
|
|
28
|
+
"phone_number": "",
|
|
29
|
+
"mobile_number": "+639171234567",
|
|
30
|
+
"line_1": "Payless Warehouse",
|
|
31
|
+
"line_2": "",
|
|
32
|
+
"city": "Paranaque City",
|
|
33
|
+
"state": "Metro Manila",
|
|
34
|
+
"postal_code": "1634",
|
|
35
|
+
"country": "PH",
|
|
36
|
+
"remarks": "Optional notes / remarks go here."
|
|
37
|
+
},
|
|
38
|
+
"delivery_address": {
|
|
39
|
+
"name": "Thea Lizardo",
|
|
40
|
+
"company": "",
|
|
41
|
+
"phone_number": "",
|
|
42
|
+
"mobile_number": "+639171234567",
|
|
43
|
+
"line_1": "Payless Warehouse",
|
|
44
|
+
"line_2": "",
|
|
45
|
+
"city": "Paranaque City",
|
|
46
|
+
"state": "Metro Manila",
|
|
47
|
+
"postal_code": "1634",
|
|
48
|
+
"country": "PH",
|
|
49
|
+
"remarks": "Optional notes / remarks go here."
|
|
50
|
+
},
|
|
51
|
+
"preferred_pickup_time": "morning",
|
|
52
|
+
"preferred_delivery_time": "3pm - 5pm",
|
|
53
|
+
"email": "thealizardo@gmail.com",
|
|
54
|
+
"contact_number": "+639176788488",
|
|
55
|
+
"items": [
|
|
56
|
+
{
|
|
57
|
+
"type": "product",
|
|
58
|
+
"description": "Women's Abby Pointed Sling",
|
|
59
|
+
"amount": 1750,
|
|
60
|
+
"quantity": 1,
|
|
61
|
+
"metadata": {"size":"7","color":"Floral", "width": "Regular", "sku":"FSRI-174290070"}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 789566,
|
|
3
|
+
"party_id": 6191,
|
|
4
|
+
"service_id": 6191,
|
|
5
|
+
"currency": "PHP",
|
|
6
|
+
"reference_id": "2309174223312",
|
|
7
|
+
"tracking_number": "0078-9566-ABLV",
|
|
8
|
+
"payment_method": "cod",
|
|
9
|
+
"payment_provider": "lbcx",
|
|
10
|
+
"service": "next_day",
|
|
11
|
+
"status": "confirmed",
|
|
12
|
+
"status_updated_at": "2018-08-13 11:55:20.723494+00",
|
|
13
|
+
"buyer_name": "Thea Lizardo",
|
|
14
|
+
"email": "thealizardo@gmail.com",
|
|
15
|
+
"contact_number": "+639176788488",
|
|
16
|
+
"subtotal": "1750.00",
|
|
17
|
+
"tax": "0.00",
|
|
18
|
+
"fee": "0.00",
|
|
19
|
+
"insurance": "0.00",
|
|
20
|
+
"discount": "0.00",
|
|
21
|
+
"shipping": "0.00",
|
|
22
|
+
"total": "1750.00",
|
|
23
|
+
"transaction_fee": "61.25",
|
|
24
|
+
"insurance_fee": "17.50",
|
|
25
|
+
"shipping_fee": "240.00",
|
|
26
|
+
"metadata": {
|
|
27
|
+
"key_1": "value_1",
|
|
28
|
+
"key_2": "value_2"
|
|
29
|
+
},
|
|
30
|
+
"preferred_pickup_time": "morning",
|
|
31
|
+
"preferred_delivery_time": "3pm - 5pm",
|
|
32
|
+
"created_at": "2018-08-13 11:52:15+00",
|
|
33
|
+
"tat": {
|
|
34
|
+
"confirmed": 1534161320,
|
|
35
|
+
"for_pickup": 1534161135
|
|
36
|
+
},
|
|
37
|
+
"shipment": "box",
|
|
38
|
+
"remarks": null,
|
|
39
|
+
"buyer_id": "12345",
|
|
40
|
+
"parcel": {
|
|
41
|
+
"weight": {
|
|
42
|
+
"uom": "kg",
|
|
43
|
+
"value": "4"
|
|
44
|
+
},
|
|
45
|
+
"dimensions": {
|
|
46
|
+
"uom": "cm",
|
|
47
|
+
"width": 22,
|
|
48
|
+
"height": 22,
|
|
49
|
+
"length": 22
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"updated_at": "2018-08-13 11:55:20.723494+00",
|
|
53
|
+
"client": "Xpanse",
|
|
54
|
+
"organization": {
|
|
55
|
+
"party_id": 6191,
|
|
56
|
+
"name": "Xpanse",
|
|
57
|
+
"external_id": null
|
|
58
|
+
},
|
|
59
|
+
"pickup_address": {
|
|
60
|
+
"id": 1600969,
|
|
61
|
+
"code": null,
|
|
62
|
+
"name": "Thea Lizardo",
|
|
63
|
+
"title": null,
|
|
64
|
+
"email": null,
|
|
65
|
+
"phone_number": "",
|
|
66
|
+
"mobile_number": "+639171234567",
|
|
67
|
+
"fax_number": null,
|
|
68
|
+
"company": "xpanse",
|
|
69
|
+
"line_1": "Payless Warehouse",
|
|
70
|
+
"line_2": "",
|
|
71
|
+
"district": null,
|
|
72
|
+
"city": "Paranaque City",
|
|
73
|
+
"state": "Metro Manila",
|
|
74
|
+
"postal_code": "1634",
|
|
75
|
+
"region": "Mmb",
|
|
76
|
+
"country": {
|
|
77
|
+
"code": "PH",
|
|
78
|
+
"name": "Philippines"
|
|
79
|
+
},
|
|
80
|
+
"city_approximation": "Paranaque City",
|
|
81
|
+
"branch_code": null
|
|
82
|
+
},
|
|
83
|
+
"delivery_address": {
|
|
84
|
+
"id": 1600609,
|
|
85
|
+
"code": null,
|
|
86
|
+
"name": "Thea Lizardo",
|
|
87
|
+
"title": null,
|
|
88
|
+
"email": null,
|
|
89
|
+
"phone_number": "",
|
|
90
|
+
"mobile_number": "+639171234567",
|
|
91
|
+
"fax_number": null,
|
|
92
|
+
"company": "",
|
|
93
|
+
"line_1": "Payless Warehouse",
|
|
94
|
+
"line_2": "",
|
|
95
|
+
"district": null,
|
|
96
|
+
"city": "Paranaque City",
|
|
97
|
+
"state": "Metro Manila",
|
|
98
|
+
"postal_code": "1634",
|
|
99
|
+
"region": "Mmb",
|
|
100
|
+
"country": {
|
|
101
|
+
"code": "PH",
|
|
102
|
+
"name": "Philippines"
|
|
103
|
+
},
|
|
104
|
+
"city_approximation": "Paranaque City"
|
|
105
|
+
},
|
|
106
|
+
"return_address": {
|
|
107
|
+
"id": null,
|
|
108
|
+
"code": null,
|
|
109
|
+
"name": null,
|
|
110
|
+
"title": null,
|
|
111
|
+
"email": null,
|
|
112
|
+
"phone_number": null,
|
|
113
|
+
"mobile_number": null,
|
|
114
|
+
"fax_number": null,
|
|
115
|
+
"company": null,
|
|
116
|
+
"line_1": null,
|
|
117
|
+
"line_2": null,
|
|
118
|
+
"district": null,
|
|
119
|
+
"city": null,
|
|
120
|
+
"state": null,
|
|
121
|
+
"postal_code": null,
|
|
122
|
+
"region": null,
|
|
123
|
+
"country": {
|
|
124
|
+
"code": null,
|
|
125
|
+
"name": null
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"dropoff_address": {
|
|
129
|
+
"id": null,
|
|
130
|
+
"code": null,
|
|
131
|
+
"name": null,
|
|
132
|
+
"title": null,
|
|
133
|
+
"email": null,
|
|
134
|
+
"phone_number": null,
|
|
135
|
+
"mobile_number": null,
|
|
136
|
+
"fax_number": null,
|
|
137
|
+
"company": null,
|
|
138
|
+
"line_1": null,
|
|
139
|
+
"line_2": null,
|
|
140
|
+
"district": null,
|
|
141
|
+
"city": null,
|
|
142
|
+
"state": null,
|
|
143
|
+
"postal_code": null,
|
|
144
|
+
"region": null,
|
|
145
|
+
"country": {
|
|
146
|
+
"code": null,
|
|
147
|
+
"name": null
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"charge": {
|
|
151
|
+
"order_id": 789566,
|
|
152
|
+
"status": "pending",
|
|
153
|
+
"reference_id": "71001373530487",
|
|
154
|
+
"total_amount": "1750.00",
|
|
155
|
+
"tendered_amount": "0.00",
|
|
156
|
+
"change_amount": "0.00",
|
|
157
|
+
"remarks": null,
|
|
158
|
+
"created_at": "2018-08-13 11:52:15+00",
|
|
159
|
+
"updated_at": "2018-08-13 11:52:16+00"
|
|
160
|
+
},
|
|
161
|
+
"claim": {
|
|
162
|
+
"status": null,
|
|
163
|
+
"amount": null,
|
|
164
|
+
"shipping_fee_flag": null,
|
|
165
|
+
"insurance_fee_flag": null,
|
|
166
|
+
"transaction_fee_flag": null,
|
|
167
|
+
"assets": null,
|
|
168
|
+
"reason": null,
|
|
169
|
+
"remarks": null,
|
|
170
|
+
"created_at": null,
|
|
171
|
+
"updated_at": null,
|
|
172
|
+
"tat": null,
|
|
173
|
+
"reference_id": null
|
|
174
|
+
},
|
|
175
|
+
"buyer_name_parsed": {
|
|
176
|
+
"first_name": "Thea Lizardo",
|
|
177
|
+
"middle_name": null,
|
|
178
|
+
"last_name": null
|
|
179
|
+
},
|
|
180
|
+
"items": [
|
|
181
|
+
{
|
|
182
|
+
"type": "product",
|
|
183
|
+
"description": "Women's Abby Pointed Sling",
|
|
184
|
+
"amount": "1750.00",
|
|
185
|
+
"quantity": 1,
|
|
186
|
+
"total": "1750.00",
|
|
187
|
+
"metadata": {
|
|
188
|
+
"sku": "FSRI-174290070",
|
|
189
|
+
"size": "7",
|
|
190
|
+
"color": "Floral",
|
|
191
|
+
"width": "Regular"
|
|
192
|
+
},
|
|
193
|
+
"insured_value": null
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"segments": [
|
|
197
|
+
{
|
|
198
|
+
"courier": "South Hub",
|
|
199
|
+
"type": "pick_up",
|
|
200
|
+
"barcode_format": "qr",
|
|
201
|
+
"tat": {
|
|
202
|
+
"end_date": null,
|
|
203
|
+
"start_date": null
|
|
204
|
+
},
|
|
205
|
+
"shipping_type": "land",
|
|
206
|
+
"currency": null,
|
|
207
|
+
"amount": null,
|
|
208
|
+
"reference_id": "0078-9566-ABLV",
|
|
209
|
+
"active": true,
|
|
210
|
+
"pickup_address": {
|
|
211
|
+
"name": "Thea Lizardo",
|
|
212
|
+
"title": null,
|
|
213
|
+
"email": null,
|
|
214
|
+
"phone_number": "",
|
|
215
|
+
"mobile_number": "+639171234567",
|
|
216
|
+
"fax_number": null,
|
|
217
|
+
"company": "xpanse",
|
|
218
|
+
"line_1": "Payless Warehouse",
|
|
219
|
+
"line_2": "",
|
|
220
|
+
"district": null,
|
|
221
|
+
"city": "Paranaque City",
|
|
222
|
+
"state": "Metro Manila",
|
|
223
|
+
"postal_code": "1634",
|
|
224
|
+
"region": "Mmb",
|
|
225
|
+
"country": {
|
|
226
|
+
"code": "PH",
|
|
227
|
+
"name": "Philippines"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"delivery_address": {
|
|
231
|
+
"name": "South Hub",
|
|
232
|
+
"title": null,
|
|
233
|
+
"email": null,
|
|
234
|
+
"phone_number": null,
|
|
235
|
+
"mobile_number": null,
|
|
236
|
+
"fax_number": null,
|
|
237
|
+
"company": null,
|
|
238
|
+
"line_1": "",
|
|
239
|
+
"line_2": null,
|
|
240
|
+
"district": "",
|
|
241
|
+
"city": "Manila City",
|
|
242
|
+
"state": "Metro Manila",
|
|
243
|
+
"postal_code": "",
|
|
244
|
+
"region": "MMB",
|
|
245
|
+
"country": {
|
|
246
|
+
"code": "PH",
|
|
247
|
+
"name": "Philippines"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"courier": "South Hub",
|
|
253
|
+
"type": "delivery",
|
|
254
|
+
"barcode_format": "qr",
|
|
255
|
+
"tat": {
|
|
256
|
+
"end_date": null,
|
|
257
|
+
"start_date": null
|
|
258
|
+
},
|
|
259
|
+
"shipping_type": "land",
|
|
260
|
+
"currency": null,
|
|
261
|
+
"amount": null,
|
|
262
|
+
"reference_id": "71001373530487",
|
|
263
|
+
"active": false,
|
|
264
|
+
"pickup_address": {
|
|
265
|
+
"name": "South Hub",
|
|
266
|
+
"title": null,
|
|
267
|
+
"email": null,
|
|
268
|
+
"phone_number": null,
|
|
269
|
+
"mobile_number": null,
|
|
270
|
+
"fax_number": null,
|
|
271
|
+
"company": null,
|
|
272
|
+
"line_1": "",
|
|
273
|
+
"line_2": null,
|
|
274
|
+
"district": "",
|
|
275
|
+
"city": "Manila City",
|
|
276
|
+
"state": "Metro Manila",
|
|
277
|
+
"postal_code": "",
|
|
278
|
+
"region": "MMB",
|
|
279
|
+
"country": {
|
|
280
|
+
"code": "PH",
|
|
281
|
+
"name": "Philippines"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"delivery_address": {
|
|
285
|
+
"name": "Thea Lizardo",
|
|
286
|
+
"title": null,
|
|
287
|
+
"email": null,
|
|
288
|
+
"phone_number": "",
|
|
289
|
+
"mobile_number": "+639171234567",
|
|
290
|
+
"fax_number": null,
|
|
291
|
+
"company": "",
|
|
292
|
+
"line_1": "Payless Warehouse",
|
|
293
|
+
"line_2": "",
|
|
294
|
+
"district": null,
|
|
295
|
+
"city": "Paranaque City",
|
|
296
|
+
"state": "Metro Manila",
|
|
297
|
+
"postal_code": "1634",
|
|
298
|
+
"region": "Mmb",
|
|
299
|
+
"country": {
|
|
300
|
+
"code": "PH",
|
|
301
|
+
"name": "Philippines"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"events": [
|
|
307
|
+
{
|
|
308
|
+
"id": 2197070,
|
|
309
|
+
"status": "confirmed",
|
|
310
|
+
"created_at": "2018-08-13 11:55:20.723494+00",
|
|
311
|
+
"remarks": null,
|
|
312
|
+
"status_updated_at": "2018-08-13 11:55:20.723494+00",
|
|
313
|
+
"status_name": "Confirmed"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"children": []
|
|
317
|
+
}
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 789566,
|
|
3
|
+
"party_id": 6191,
|
|
4
|
+
"service_id": 6191,
|
|
5
|
+
"currency": "PHP",
|
|
6
|
+
"reference_id": "2309174223312",
|
|
7
|
+
"tracking_number": "0078-9566-ABLV",
|
|
8
|
+
"payment_method": "cod",
|
|
9
|
+
"payment_provider": "lbcx",
|
|
10
|
+
"service": "next_day",
|
|
11
|
+
"status": "for_pickup",
|
|
12
|
+
"status_updated_at": "2018-08-13 11:56:12.948396+00",
|
|
13
|
+
"buyer_name": "Thea Lizardo",
|
|
14
|
+
"email": "thealizardo@gmail.com",
|
|
15
|
+
"contact_number": "+639176788488",
|
|
16
|
+
"subtotal": "1750.00",
|
|
17
|
+
"tax": "0.00",
|
|
18
|
+
"fee": "0.00",
|
|
19
|
+
"insurance": "0.00",
|
|
20
|
+
"discount": "0.00",
|
|
21
|
+
"shipping": "0.00",
|
|
22
|
+
"total": "1750.00",
|
|
23
|
+
"transaction_fee": "61.25",
|
|
24
|
+
"insurance_fee": "17.50",
|
|
25
|
+
"shipping_fee": "240.00",
|
|
26
|
+
"metadata": {
|
|
27
|
+
"key_1": "value_1",
|
|
28
|
+
"key_2": "value_2"
|
|
29
|
+
},
|
|
30
|
+
"preferred_pickup_time": "morning",
|
|
31
|
+
"preferred_delivery_time": "3pm - 5pm",
|
|
32
|
+
"created_at": "2018-08-13 11:52:15+00",
|
|
33
|
+
"tat": {
|
|
34
|
+
"confirmed": 1534161320,
|
|
35
|
+
"for_pickup": 1534161372
|
|
36
|
+
},
|
|
37
|
+
"shipment": "box",
|
|
38
|
+
"remarks": null,
|
|
39
|
+
"buyer_id": "12345",
|
|
40
|
+
"parcel": {
|
|
41
|
+
"weight": {
|
|
42
|
+
"uom": "kg",
|
|
43
|
+
"value": "4"
|
|
44
|
+
},
|
|
45
|
+
"dimensions": {
|
|
46
|
+
"uom": "cm",
|
|
47
|
+
"width": 22,
|
|
48
|
+
"height": 22,
|
|
49
|
+
"length": 22
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"updated_at": "2018-08-13 11:56:12.948396+00",
|
|
53
|
+
"client": "Xpanse",
|
|
54
|
+
"organization": {
|
|
55
|
+
"party_id": 6191,
|
|
56
|
+
"name": "Xpanse",
|
|
57
|
+
"external_id": null
|
|
58
|
+
},
|
|
59
|
+
"pickup_address": {
|
|
60
|
+
"id": 1600969,
|
|
61
|
+
"code": null,
|
|
62
|
+
"name": "Thea Lizardo",
|
|
63
|
+
"title": null,
|
|
64
|
+
"email": null,
|
|
65
|
+
"phone_number": "",
|
|
66
|
+
"mobile_number": "+639171234567",
|
|
67
|
+
"fax_number": null,
|
|
68
|
+
"company": "xpanse",
|
|
69
|
+
"line_1": "Payless Warehouse",
|
|
70
|
+
"line_2": "",
|
|
71
|
+
"district": null,
|
|
72
|
+
"city": "Paranaque City",
|
|
73
|
+
"state": "Metro Manila",
|
|
74
|
+
"postal_code": "1634",
|
|
75
|
+
"region": "Mmb",
|
|
76
|
+
"country": {
|
|
77
|
+
"code": "PH",
|
|
78
|
+
"name": "Philippines"
|
|
79
|
+
},
|
|
80
|
+
"city_approximation": "Paranaque City",
|
|
81
|
+
"branch_code": null
|
|
82
|
+
},
|
|
83
|
+
"delivery_address": {
|
|
84
|
+
"id": 1600609,
|
|
85
|
+
"code": null,
|
|
86
|
+
"name": "Thea Lizardo",
|
|
87
|
+
"title": null,
|
|
88
|
+
"email": null,
|
|
89
|
+
"phone_number": "",
|
|
90
|
+
"mobile_number": "+639171234567",
|
|
91
|
+
"fax_number": null,
|
|
92
|
+
"company": "",
|
|
93
|
+
"line_1": "Payless Warehouse",
|
|
94
|
+
"line_2": "",
|
|
95
|
+
"district": null,
|
|
96
|
+
"city": "Paranaque City",
|
|
97
|
+
"state": "Metro Manila",
|
|
98
|
+
"postal_code": "1634",
|
|
99
|
+
"region": "Mmb",
|
|
100
|
+
"country": {
|
|
101
|
+
"code": "PH",
|
|
102
|
+
"name": "Philippines"
|
|
103
|
+
},
|
|
104
|
+
"city_approximation": "Paranaque City"
|
|
105
|
+
},
|
|
106
|
+
"return_address": {
|
|
107
|
+
"id": null,
|
|
108
|
+
"code": null,
|
|
109
|
+
"name": null,
|
|
110
|
+
"title": null,
|
|
111
|
+
"email": null,
|
|
112
|
+
"phone_number": null,
|
|
113
|
+
"mobile_number": null,
|
|
114
|
+
"fax_number": null,
|
|
115
|
+
"company": null,
|
|
116
|
+
"line_1": null,
|
|
117
|
+
"line_2": null,
|
|
118
|
+
"district": null,
|
|
119
|
+
"city": null,
|
|
120
|
+
"state": null,
|
|
121
|
+
"postal_code": null,
|
|
122
|
+
"region": null,
|
|
123
|
+
"country": {
|
|
124
|
+
"code": null,
|
|
125
|
+
"name": null
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"dropoff_address": {
|
|
129
|
+
"id": null,
|
|
130
|
+
"code": null,
|
|
131
|
+
"name": null,
|
|
132
|
+
"title": null,
|
|
133
|
+
"email": null,
|
|
134
|
+
"phone_number": null,
|
|
135
|
+
"mobile_number": null,
|
|
136
|
+
"fax_number": null,
|
|
137
|
+
"company": null,
|
|
138
|
+
"line_1": null,
|
|
139
|
+
"line_2": null,
|
|
140
|
+
"district": null,
|
|
141
|
+
"city": null,
|
|
142
|
+
"state": null,
|
|
143
|
+
"postal_code": null,
|
|
144
|
+
"region": null,
|
|
145
|
+
"country": {
|
|
146
|
+
"code": null,
|
|
147
|
+
"name": null
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"charge": {
|
|
151
|
+
"order_id": 789566,
|
|
152
|
+
"status": "pending",
|
|
153
|
+
"reference_id": "71001373530487",
|
|
154
|
+
"total_amount": "1750.00",
|
|
155
|
+
"tendered_amount": "0.00",
|
|
156
|
+
"change_amount": "0.00",
|
|
157
|
+
"remarks": null,
|
|
158
|
+
"created_at": "2018-08-13 11:52:15+00",
|
|
159
|
+
"updated_at": "2018-08-13 11:52:16+00"
|
|
160
|
+
},
|
|
161
|
+
"claim": {
|
|
162
|
+
"status": null,
|
|
163
|
+
"amount": null,
|
|
164
|
+
"shipping_fee_flag": null,
|
|
165
|
+
"insurance_fee_flag": null,
|
|
166
|
+
"transaction_fee_flag": null,
|
|
167
|
+
"assets": null,
|
|
168
|
+
"reason": null,
|
|
169
|
+
"remarks": null,
|
|
170
|
+
"created_at": null,
|
|
171
|
+
"updated_at": null,
|
|
172
|
+
"tat": null,
|
|
173
|
+
"reference_id": null
|
|
174
|
+
},
|
|
175
|
+
"buyer_name_parsed": {
|
|
176
|
+
"first_name": "Thea Lizardo",
|
|
177
|
+
"middle_name": null,
|
|
178
|
+
"last_name": null
|
|
179
|
+
},
|
|
180
|
+
"items": [
|
|
181
|
+
{
|
|
182
|
+
"type": "product",
|
|
183
|
+
"description": "Women's Abby Pointed Sling",
|
|
184
|
+
"amount": "1750.00",
|
|
185
|
+
"quantity": 1,
|
|
186
|
+
"total": "1750.00",
|
|
187
|
+
"metadata": {
|
|
188
|
+
"sku": "FSRI-174290070",
|
|
189
|
+
"size": "7",
|
|
190
|
+
"color": "Floral",
|
|
191
|
+
"width": "Regular"
|
|
192
|
+
},
|
|
193
|
+
"insured_value": null
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"segments": [
|
|
197
|
+
{
|
|
198
|
+
"courier": "South Hub",
|
|
199
|
+
"type": "pick_up",
|
|
200
|
+
"barcode_format": "qr",
|
|
201
|
+
"tat": {
|
|
202
|
+
"end_date": null,
|
|
203
|
+
"start_date": null
|
|
204
|
+
},
|
|
205
|
+
"shipping_type": "land",
|
|
206
|
+
"currency": null,
|
|
207
|
+
"amount": null,
|
|
208
|
+
"reference_id": "0078-9566-ABLV",
|
|
209
|
+
"active": false,
|
|
210
|
+
"pickup_address": {
|
|
211
|
+
"name": "Thea Lizardo",
|
|
212
|
+
"title": null,
|
|
213
|
+
"email": null,
|
|
214
|
+
"phone_number": "",
|
|
215
|
+
"mobile_number": "+639171234567",
|
|
216
|
+
"fax_number": null,
|
|
217
|
+
"company": "xpanse",
|
|
218
|
+
"line_1": "Payless Warehouse",
|
|
219
|
+
"line_2": "",
|
|
220
|
+
"district": null,
|
|
221
|
+
"city": "Paranaque City",
|
|
222
|
+
"state": "Metro Manila",
|
|
223
|
+
"postal_code": "1634",
|
|
224
|
+
"region": "Mmb",
|
|
225
|
+
"country": {
|
|
226
|
+
"code": "PH",
|
|
227
|
+
"name": "Philippines"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"delivery_address": {
|
|
231
|
+
"name": "South Hub",
|
|
232
|
+
"title": null,
|
|
233
|
+
"email": null,
|
|
234
|
+
"phone_number": null,
|
|
235
|
+
"mobile_number": null,
|
|
236
|
+
"fax_number": null,
|
|
237
|
+
"company": null,
|
|
238
|
+
"line_1": "",
|
|
239
|
+
"line_2": null,
|
|
240
|
+
"district": "",
|
|
241
|
+
"city": "Manila City",
|
|
242
|
+
"state": "Metro Manila",
|
|
243
|
+
"postal_code": "",
|
|
244
|
+
"region": "MMB",
|
|
245
|
+
"country": {
|
|
246
|
+
"code": "PH",
|
|
247
|
+
"name": "Philippines"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"courier": "South Hub",
|
|
253
|
+
"type": "delivery",
|
|
254
|
+
"barcode_format": "qr",
|
|
255
|
+
"tat": {
|
|
256
|
+
"end_date": null,
|
|
257
|
+
"start_date": null
|
|
258
|
+
},
|
|
259
|
+
"shipping_type": "land",
|
|
260
|
+
"currency": null,
|
|
261
|
+
"amount": null,
|
|
262
|
+
"reference_id": "71001373530487",
|
|
263
|
+
"active": false,
|
|
264
|
+
"pickup_address": {
|
|
265
|
+
"name": "South Hub",
|
|
266
|
+
"title": null,
|
|
267
|
+
"email": null,
|
|
268
|
+
"phone_number": null,
|
|
269
|
+
"mobile_number": null,
|
|
270
|
+
"fax_number": null,
|
|
271
|
+
"company": null,
|
|
272
|
+
"line_1": "",
|
|
273
|
+
"line_2": null,
|
|
274
|
+
"district": "",
|
|
275
|
+
"city": "Manila City",
|
|
276
|
+
"state": "Metro Manila",
|
|
277
|
+
"postal_code": "",
|
|
278
|
+
"region": "MMB",
|
|
279
|
+
"country": {
|
|
280
|
+
"code": "PH",
|
|
281
|
+
"name": "Philippines"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"delivery_address": {
|
|
285
|
+
"name": "Thea Lizardo",
|
|
286
|
+
"title": null,
|
|
287
|
+
"email": null,
|
|
288
|
+
"phone_number": "",
|
|
289
|
+
"mobile_number": "+639171234567",
|
|
290
|
+
"fax_number": null,
|
|
291
|
+
"company": "",
|
|
292
|
+
"line_1": "Payless Warehouse",
|
|
293
|
+
"line_2": "",
|
|
294
|
+
"district": null,
|
|
295
|
+
"city": "Paranaque City",
|
|
296
|
+
"state": "Metro Manila",
|
|
297
|
+
"postal_code": "1634",
|
|
298
|
+
"region": "Mmb",
|
|
299
|
+
"country": {
|
|
300
|
+
"code": "PH",
|
|
301
|
+
"name": "Philippines"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"courier": "South Hub",
|
|
307
|
+
"type": "pick_up",
|
|
308
|
+
"barcode_format": "qr",
|
|
309
|
+
"tat": {
|
|
310
|
+
"end_date": null,
|
|
311
|
+
"start_date": null
|
|
312
|
+
},
|
|
313
|
+
"shipping_type": "land",
|
|
314
|
+
"currency": null,
|
|
315
|
+
"amount": null,
|
|
316
|
+
"reference_id": "0078-9566-ABLV",
|
|
317
|
+
"active": true,
|
|
318
|
+
"pickup_address": {
|
|
319
|
+
"name": "Thea Lizardo",
|
|
320
|
+
"title": null,
|
|
321
|
+
"email": null,
|
|
322
|
+
"phone_number": "",
|
|
323
|
+
"mobile_number": "+639171234567",
|
|
324
|
+
"fax_number": null,
|
|
325
|
+
"company": "xpanse",
|
|
326
|
+
"line_1": "Payless Warehouse",
|
|
327
|
+
"line_2": "",
|
|
328
|
+
"district": null,
|
|
329
|
+
"city": "Paranaque City",
|
|
330
|
+
"state": "Metro Manila",
|
|
331
|
+
"postal_code": "1634",
|
|
332
|
+
"region": "Mmb",
|
|
333
|
+
"country": {
|
|
334
|
+
"code": "PH",
|
|
335
|
+
"name": "Philippines"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"delivery_address": {
|
|
339
|
+
"name": "South Hub",
|
|
340
|
+
"title": null,
|
|
341
|
+
"email": null,
|
|
342
|
+
"phone_number": null,
|
|
343
|
+
"mobile_number": null,
|
|
344
|
+
"fax_number": null,
|
|
345
|
+
"company": null,
|
|
346
|
+
"line_1": "",
|
|
347
|
+
"line_2": null,
|
|
348
|
+
"district": "",
|
|
349
|
+
"city": "Manila City",
|
|
350
|
+
"state": "Metro Manila",
|
|
351
|
+
"postal_code": "",
|
|
352
|
+
"region": "MMB",
|
|
353
|
+
"country": {
|
|
354
|
+
"code": "PH",
|
|
355
|
+
"name": "Philippines"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"events": [
|
|
361
|
+
{
|
|
362
|
+
"id": 2197070,
|
|
363
|
+
"status": "confirmed",
|
|
364
|
+
"created_at": "2018-08-13 11:55:20.723494+00",
|
|
365
|
+
"remarks": null,
|
|
366
|
+
"status_updated_at": "2018-08-13 11:55:20.723494+00",
|
|
367
|
+
"status_name": "Confirmed"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"id": 2197071,
|
|
371
|
+
"status": "for_pickup",
|
|
372
|
+
"created_at": "2018-08-13 11:56:12.948396+00",
|
|
373
|
+
"remarks": null,
|
|
374
|
+
"status_updated_at": "2018-08-13 11:56:12.948396+00",
|
|
375
|
+
"status_name": "Ready for pickup"
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"children": []
|
|
379
|
+
}
|