shipwire 0.0.5 → 2.0.0
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 +3 -3
- data/.rspec +2 -0
- data/.ruby-version +1 -1
- data/Gemfile +0 -1
- data/README.md +53 -29
- data/Rakefile +2 -3
- data/lib/generators/shipwire/install/install_generator.rb +13 -0
- data/lib/generators/shipwire/install/templates/config/initializers/shipwire.rb +27 -0
- data/lib/shipwire.rb +26 -33
- data/lib/shipwire/api.rb +7 -0
- data/lib/shipwire/configuration.rb +13 -3
- data/lib/shipwire/orders.rb +39 -0
- data/lib/shipwire/param_converter.rb +39 -0
- data/lib/shipwire/products.rb +53 -0
- data/lib/shipwire/products/base.rb +9 -0
- data/lib/shipwire/products/insert.rb +9 -0
- data/lib/shipwire/products/kit.rb +9 -0
- data/lib/shipwire/products/virtual_kit.rb +9 -0
- data/lib/shipwire/rate.rb +7 -0
- data/lib/shipwire/receivings.rb +50 -0
- data/lib/shipwire/request.rb +73 -0
- data/lib/shipwire/response.rb +79 -0
- data/lib/shipwire/returns.rb +35 -0
- data/lib/shipwire/secret.rb +20 -0
- data/lib/shipwire/stock.rb +7 -0
- data/lib/shipwire/utility.rb +22 -0
- data/lib/shipwire/version.rb +1 -1
- data/lib/shipwire/webhooks.rb +24 -0
- data/shipwire.gemspec +12 -15
- data/spec/features/access_spec.rb +61 -0
- data/spec/features/orders_spec.rb +280 -0
- data/spec/features/product_types_spec.rb +219 -0
- data/spec/features/products_spec.rb +282 -0
- data/spec/features/rate_spec.rb +50 -0
- data/spec/features/receivings_spec.rb +333 -0
- data/spec/features/returns_spec.rb +239 -0
- data/spec/features/secret_spec.rb +57 -0
- data/spec/features/stock_spec.rb +41 -0
- data/spec/features/webhooks_spec.rb +106 -0
- data/spec/spec_helper.rb +33 -12
- data/spec/support/shipwire.rb +10 -0
- data/spec/support/vcr.rb +9 -0
- data/spec/support/vcr_cassettes/credentials_incorrect.yml +47 -0
- data/spec/support/vcr_cassettes/credentials_missing.yml +47 -0
- data/spec/support/vcr_cassettes/order.yml +48 -0
- data/spec/support/vcr_cassettes/order_cancel.yml +54 -0
- data/spec/support/vcr_cassettes/order_cancel_fail.yml +47 -0
- data/spec/support/vcr_cassettes/order_find.yml +45 -0
- data/spec/support/vcr_cassettes/order_find_fail.yml +45 -0
- data/spec/support/vcr_cassettes/order_find_with_params.yml +45 -0
- data/spec/support/vcr_cassettes/order_holds.yml +50 -0
- data/spec/support/vcr_cassettes/order_holds_fail.yml +45 -0
- data/spec/support/vcr_cassettes/order_holds_with_params.yml +50 -0
- data/spec/support/vcr_cassettes/order_items.yml +45 -0
- data/spec/support/vcr_cassettes/order_items_fail.yml +45 -0
- data/spec/support/vcr_cassettes/order_returns.yml +47 -0
- data/spec/support/vcr_cassettes/order_returns_fail.yml +47 -0
- data/spec/support/vcr_cassettes/order_trackings.yml +45 -0
- data/spec/support/vcr_cassettes/order_trackings_fail.yml +45 -0
- data/spec/support/vcr_cassettes/order_update.yml +48 -0
- data/spec/support/vcr_cassettes/order_update_fail.yml +50 -0
- data/spec/support/vcr_cassettes/order_update_with_params.yml +48 -0
- data/spec/support/vcr_cassettes/order_with_warnings.yml +96 -0
- data/spec/support/vcr_cassettes/orders_list.yml +47 -0
- data/spec/support/vcr_cassettes/orders_list_with_params.yml +47 -0
- data/spec/support/vcr_cassettes/product.yml +48 -0
- data/spec/support/vcr_cassettes/product_base.yml +48 -0
- data/spec/support/vcr_cassettes/product_base_find.yml +48 -0
- data/spec/support/vcr_cassettes/product_base_find_fail.yml +47 -0
- data/spec/support/vcr_cassettes/product_base_retire_id.yml +47 -0
- data/spec/support/vcr_cassettes/product_base_retire_nonexistent.yml +47 -0
- data/spec/support/vcr_cassettes/product_base_update.yml +48 -0
- data/spec/support/vcr_cassettes/product_base_update_fail.yml +48 -0
- data/spec/support/vcr_cassettes/product_create_fail_with_invalid_classification.yml +51 -0
- data/spec/support/vcr_cassettes/product_find.yml +48 -0
- data/spec/support/vcr_cassettes/product_find_fail.yml +47 -0
- data/spec/support/vcr_cassettes/product_insert.yml +50 -0
- data/spec/support/vcr_cassettes/product_insert_find.yml +48 -0
- data/spec/support/vcr_cassettes/product_insert_find_fail.yml +47 -0
- data/spec/support/vcr_cassettes/product_insert_retire_id.yml +47 -0
- data/spec/support/vcr_cassettes/product_insert_retire_nonexistent.yml +47 -0
- data/spec/support/vcr_cassettes/product_insert_update.yml +49 -0
- data/spec/support/vcr_cassettes/product_insert_update_fail.yml +48 -0
- data/spec/support/vcr_cassettes/product_kit.yml +48 -0
- data/spec/support/vcr_cassettes/product_kit_find.yml +48 -0
- data/spec/support/vcr_cassettes/product_kit_find_fail.yml +47 -0
- data/spec/support/vcr_cassettes/product_kit_retire_id.yml +47 -0
- data/spec/support/vcr_cassettes/product_kit_retire_nonexistent.yml +47 -0
- data/spec/support/vcr_cassettes/product_kit_update.yml +48 -0
- data/spec/support/vcr_cassettes/product_kit_update_fail.yml +47 -0
- data/spec/support/vcr_cassettes/product_multiple_create_fail.yml +102 -0
- data/spec/support/vcr_cassettes/product_multiple_create_success.yml +100 -0
- data/spec/support/vcr_cassettes/product_retire_id.yml +47 -0
- data/spec/support/vcr_cassettes/product_retire_nonexistent.yml +47 -0
- data/spec/support/vcr_cassettes/product_update.yml +48 -0
- data/spec/support/vcr_cassettes/product_update_fail.yml +48 -0
- data/spec/support/vcr_cassettes/product_virtual_kit.yml +48 -0
- data/spec/support/vcr_cassettes/product_virtual_kit_find.yml +48 -0
- data/spec/support/vcr_cassettes/product_virtual_kit_find_fail.yml +47 -0
- data/spec/support/vcr_cassettes/product_virtual_kit_retire_id.yml +47 -0
- data/spec/support/vcr_cassettes/product_virtual_kit_retire_nonexistent.yml +47 -0
- data/spec/support/vcr_cassettes/product_virtual_kit_update.yml +49 -0
- data/spec/support/vcr_cassettes/product_virtual_kit_update_fail.yml +47 -0
- data/spec/support/vcr_cassettes/products_base_list.yml +49 -0
- data/spec/support/vcr_cassettes/products_base_list_with_params.yml +49 -0
- data/spec/support/vcr_cassettes/products_insert_list.yml +47 -0
- data/spec/support/vcr_cassettes/products_insert_list_with_params.yml +47 -0
- data/spec/support/vcr_cassettes/products_kit_list.yml +47 -0
- data/spec/support/vcr_cassettes/products_kit_list_with_params.yml +47 -0
- data/spec/support/vcr_cassettes/products_list.yml +49 -0
- data/spec/support/vcr_cassettes/products_list_with_params.yml +49 -0
- data/spec/support/vcr_cassettes/products_virtual_kit_list.yml +47 -0
- data/spec/support/vcr_cassettes/products_virtual_kit_list_with_params.yml +47 -0
- data/spec/support/vcr_cassettes/rate_find.yml +53 -0
- data/spec/support/vcr_cassettes/rate_find_fail.yml +50 -0
- data/spec/support/vcr_cassettes/receiving.yml +53 -0
- data/spec/support/vcr_cassettes/receiving_cancel.yml +98 -0
- data/spec/support/vcr_cassettes/receiving_cancel_label.yml +47 -0
- data/spec/support/vcr_cassettes/receiving_cancel_label_nonexistent.yml +47 -0
- data/spec/support/vcr_cassettes/receiving_find.yml +46 -0
- data/spec/support/vcr_cassettes/receiving_find_fail.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_find_with_params.yml +48 -0
- data/spec/support/vcr_cassettes/receiving_holds.yml +47 -0
- data/spec/support/vcr_cassettes/receiving_holds_fail.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_holds_with_params.yml +47 -0
- data/spec/support/vcr_cassettes/receiving_instructions_recipients.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_instructions_recipients_fail.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_items.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_items_fail.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_shipments.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_shipments_fail.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_tracking.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_tracking_fail.yml +45 -0
- data/spec/support/vcr_cassettes/receiving_update.yml +53 -0
- data/spec/support/vcr_cassettes/receiving_update_fail.yml +49 -0
- data/spec/support/vcr_cassettes/receiving_update_with_params.yml +55 -0
- data/spec/support/vcr_cassettes/receivings_list.yml +53 -0
- data/spec/support/vcr_cassettes/receivings_list_with_params.yml +46 -0
- data/spec/support/vcr_cassettes/return.yml +98 -0
- data/spec/support/vcr_cassettes/return_cancel.yml +55 -0
- data/spec/support/vcr_cassettes/return_cancel_fail.yml +47 -0
- data/spec/support/vcr_cassettes/return_find.yml +47 -0
- data/spec/support/vcr_cassettes/return_find_fail.yml +45 -0
- data/spec/support/vcr_cassettes/return_find_with_params.yml +47 -0
- data/spec/support/vcr_cassettes/return_holds.yml +45 -0
- data/spec/support/vcr_cassettes/return_holds_fail.yml +45 -0
- data/spec/support/vcr_cassettes/return_holds_with_params.yml +45 -0
- data/spec/support/vcr_cassettes/return_items.yml +45 -0
- data/spec/support/vcr_cassettes/return_items_fail.yml +45 -0
- data/spec/support/vcr_cassettes/return_labels.yml +45 -0
- data/spec/support/vcr_cassettes/return_labels_fail.yml +45 -0
- data/spec/support/vcr_cassettes/return_trackings.yml +45 -0
- data/spec/support/vcr_cassettes/return_trackings_fail.yml +45 -0
- data/spec/support/vcr_cassettes/returns_list.yml +47 -0
- data/spec/support/vcr_cassettes/returns_list_with_params.yml +47 -0
- data/spec/support/vcr_cassettes/secret.yml +47 -0
- data/spec/support/vcr_cassettes/secret_find.yml +45 -0
- data/spec/support/vcr_cassettes/secret_find_fail.yml +43 -0
- data/spec/support/vcr_cassettes/secret_list.yml +45 -0
- data/spec/support/vcr_cassettes/secret_remove.yml +45 -0
- data/spec/support/vcr_cassettes/stock_with_params.yml +45 -0
- data/spec/support/vcr_cassettes/stock_with_params_no_sku.yml +45 -0
- data/spec/support/vcr_cassettes/stock_without_params.yml +45 -0
- data/spec/support/vcr_cassettes/webhook.yml +47 -0
- data/spec/support/vcr_cassettes/webhooks_create_insecure.yml +50 -0
- data/spec/support/vcr_cassettes/webhooks_find.yml +47 -0
- data/spec/support/vcr_cassettes/webhooks_find_fail.yml +47 -0
- data/spec/support/vcr_cassettes/webhooks_list.yml +47 -0
- data/spec/support/vcr_cassettes/webhooks_remove.yml +47 -0
- data/spec/support/vcr_cassettes/webhooks_update.yml +47 -0
- data/spec/support/vcr_cassettes/webhooks_update_fail.yml +49 -0
- data/spec/unit/shipwire/response_spec.rb +46 -0
- metadata +354 -80
- data/.env +0 -4
- data/.env.example +0 -4
- data/Gemfile.lock +0 -69
- data/lib/shipwire/fulfillment.rb +0 -100
- data/lib/shipwire/inventory.rb +0 -72
- data/lib/shipwire/service_request.rb +0 -42
- data/lib/shipwire/shipping_rate.rb +0 -121
- data/lib/shipwire/tracking.rb +0 -101
- data/spec/shipwire/fulfillment_spec.rb +0 -36
- data/spec/shipwire/inventory_spec.rb +0 -25
- data/spec/shipwire/shipping_rate_spec.rb +0 -62
- data/spec/shipwire/tracking_spec.rb +0 -20
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/products
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '[{"sku":"Y-9669","externalId":"F10","description":"Subsche Air Adapter","classification":"fake","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":1,"weight":1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0}},{"sku":"I88","externalId":"G-4037","description":"Reusche
|
|
9
|
+
Disc Side Compressor","classification":"marketingInsert","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":0.1,"weight":0.1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0},"masterCase":{"individualItemsPerCase":1,"sku":"M79","description":"Finsync
|
|
10
|
+
Direct Tag Bridge","dimensions":{"length":1,"width":1,"height":1,"weight":1}},"inclusionRules":{"insertWhenWorthCurrency":"USD"}},{"sku":"L64","externalId":"P26","description":"ZYO
|
|
11
|
+
Audible System","classification":"kit","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":1,"weight":1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0},"kitContent":[{"externalId":"TEST-PRODUCT","quantity":1},{"externalId":"TEST-PRODUCT2","quantity":1}]},{"sku":"A-4516","externalId":"K-4977","description":"Ponce
|
|
12
|
+
Performance Disc Compressor","classification":"virtualKit","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":1,"weight":1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0},"virtualKitContent":[{"externalId":"TEST-PRODUCT","quantity":1},{"externalId":"TEST-PRODUCT2","quantity":1}]}]'
|
|
13
|
+
headers:
|
|
14
|
+
Content-Type:
|
|
15
|
+
- application/json
|
|
16
|
+
Accept-Encoding:
|
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
18
|
+
Accept:
|
|
19
|
+
- "*/*"
|
|
20
|
+
User-Agent:
|
|
21
|
+
- Ruby
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 200
|
|
25
|
+
message: OK
|
|
26
|
+
headers:
|
|
27
|
+
Date:
|
|
28
|
+
- Mon, 22 Jun 2015 20:36:39 GMT
|
|
29
|
+
Server:
|
|
30
|
+
- Apache
|
|
31
|
+
X-Process-Time-Seconds:
|
|
32
|
+
- '0.372687'
|
|
33
|
+
X-Request-Id:
|
|
34
|
+
- a823503f5932f42d74f8c00a4356e41e
|
|
35
|
+
Vary:
|
|
36
|
+
- Accept-Encoding
|
|
37
|
+
Strict-Transport-Security:
|
|
38
|
+
- max-age=31536000; includeSubDomains
|
|
39
|
+
P3p:
|
|
40
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
41
|
+
OUR IND"
|
|
42
|
+
Content-Length:
|
|
43
|
+
- '802'
|
|
44
|
+
Content-Type:
|
|
45
|
+
- application/json
|
|
46
|
+
body:
|
|
47
|
+
encoding: UTF-8
|
|
48
|
+
string: '{"status":200,"message":"Successful","errors":[{"message":"Product
|
|
49
|
+
Classification not detected. Please pass classification for each product.","type":"error","code":400,"sku":"Y-9669"}],"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products?offset=0&limit=3","resource":{"offset":0,"total":3,"previous":null,"next":null,"items":[{"errors":[{"message":"Product
|
|
50
|
+
Classification not detected. Please pass classification for each product.","type":"error","code":400,"sku":"Y-9669"}],"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/kits\/203501","resource":{"id":203501,"externalId":"P26","sku":"L64","description":"ZYO
|
|
51
|
+
Audible System","hsCode":null,"countryOfOrigin":null,"creationDate":"2015-06-22T13:36:39-07:00","archivedDate":null,"status":"notinuse","storageConfiguration":"KIT","batteryConfiguration":"NOBATTERY","classification":"kit","category":"OTHER","itemCount":1,"vendorId":null,"vendorExternalId":null,"dimensions":{"resourceLocation":null},"values":{"resourceLocation":null},"alternateNames":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/kits\/203501\/alternateNames?offset=0&limit=20"},"kitContent":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/kits\/203501\/content?offset=0&limit=20"},"technicalData":{"resourceLocation":null},"flags":{"resourceLocation":null},"enqueuedDimensions":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/kits\/203501\/enqueuedDimensions?offset=0&limit=20"},"innerPack":{"resourceLocation":null},"masterCase":{"resourceLocation":null},"pallet":{"resourceLocation":null}}},{"errors":[{"message":"Product
|
|
52
|
+
Classification not detected. Please pass classification for each product.","type":"error","code":400,"sku":"Y-9669"}],"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/marketingInserts\/203502","resource":{"id":203502,"externalId":"G-4037","sku":"I88","description":"Reusche
|
|
53
|
+
Disc Side Compressor","inclusionRuleType":"CUSTOM","creationDate":"2015-06-22T13:36:39-07:00","archivedDate":null,"status":"notinuse","storageConfiguration":"INDIVIDUAL_ITEM","classification":"marketingInsert","itemCount":1,"vendorId":null,"vendorExternalId":null,"dimensions":{"resourceLocation":null},"alternateNames":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/marketingInserts\/203502\/alternateNames?offset=0&limit=20"},"flags":{"resourceLocation":null},"inclusionRules":{"resourceLocation":null},"masterCase":{"resourceLocation":null}}},{"errors":[{"message":"Product
|
|
54
|
+
Classification not detected. Please pass classification for each product.","type":"error","code":400,"sku":"Y-9669"}],"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/virtualKits\/510000029","resource":{"id":510000029,"externalId":"K-4977","sku":"A-4516","creationDate":"2015-06-22T13:36:39-07:00","description":"Ponce
|
|
55
|
+
Performance Disc Compressor","status":"instock","classification":"virtualKit","virtualKitContent":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/virtualKits\/510000029\/content?offset=0&limit=20"},"flags":{"resourceLocation":null}}}]}}'
|
|
56
|
+
http_version:
|
|
57
|
+
recorded_at: Mon, 22 Jun 2015 20:36:39 GMT
|
|
58
|
+
- request:
|
|
59
|
+
method: post
|
|
60
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/products/retire
|
|
61
|
+
body:
|
|
62
|
+
encoding: UTF-8
|
|
63
|
+
string: '{"ids":[203501,203502,510000029]}'
|
|
64
|
+
headers:
|
|
65
|
+
Content-Type:
|
|
66
|
+
- application/json
|
|
67
|
+
Accept-Encoding:
|
|
68
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
69
|
+
Accept:
|
|
70
|
+
- "*/*"
|
|
71
|
+
User-Agent:
|
|
72
|
+
- Ruby
|
|
73
|
+
response:
|
|
74
|
+
status:
|
|
75
|
+
code: 200
|
|
76
|
+
message: OK
|
|
77
|
+
headers:
|
|
78
|
+
Date:
|
|
79
|
+
- Mon, 22 Jun 2015 20:36:39 GMT
|
|
80
|
+
Server:
|
|
81
|
+
- Apache
|
|
82
|
+
X-Process-Time-Seconds:
|
|
83
|
+
- '0.099810'
|
|
84
|
+
X-Request-Id:
|
|
85
|
+
- 7179f9f59eb86b19426bc432b531bd3b
|
|
86
|
+
Vary:
|
|
87
|
+
- Accept-Encoding
|
|
88
|
+
Strict-Transport-Security:
|
|
89
|
+
- max-age=31536000; includeSubDomains
|
|
90
|
+
P3p:
|
|
91
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
92
|
+
OUR IND"
|
|
93
|
+
Content-Length:
|
|
94
|
+
- '259'
|
|
95
|
+
Content-Type:
|
|
96
|
+
- application/json
|
|
97
|
+
body:
|
|
98
|
+
encoding: UTF-8
|
|
99
|
+
string: '{"status":200,"message":"Successful","moreInfo":[[{"id":203501,"externalId":"P26","status":"deprecated","sku":"L64","configuration":"KIT","success":true}],[{"id":203502,"externalId":"G-4037","status":"deprecated","sku":"I88","configuration":"INDIVIDUAL_ITEM","success":true},{"id":203503,"externalId":null,"status":"deprecated","sku":"M79","configuration":"MASTER_CASE","success":true}],[{"id":510000029,"externalId":"K-4977","status":"deleted","sku":"A-4516","configuration":"virtualKit","success":true}]],"resourceLocation":null}'
|
|
100
|
+
http_version:
|
|
101
|
+
recorded_at: Mon, 22 Jun 2015 20:36:40 GMT
|
|
102
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/products
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '[{"sku":"K-136","externalId":"C69","description":"Brione Performance
|
|
9
|
+
System","classification":"baseProduct","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":1,"weight":1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0}},{"sku":"X56","externalId":"W87","description":"Techbalt
|
|
10
|
+
Electric Audible Kit","classification":"marketingInsert","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":0.1,"weight":0.1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0},"masterCase":{"individualItemsPerCase":1,"sku":"A28","description":"Bruckwood
|
|
11
|
+
Tag Power Controller","dimensions":{"length":1,"width":1,"height":1,"weight":1}},"inclusionRules":{"insertWhenWorthCurrency":"USD"}},{"sku":"O29","externalId":"U-1712","description":"Triffe
|
|
12
|
+
Air Filter","classification":"kit","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":1,"weight":1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0},"kitContent":[{"externalId":"TEST-PRODUCT","quantity":1},{"externalId":"TEST-PRODUCT2","quantity":1}]},{"sku":"C-1181","externalId":"Y47","description":"Brineforge
|
|
13
|
+
Direct Mount","classification":"virtualKit","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":1,"weight":1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0},"virtualKitContent":[{"externalId":"TEST-PRODUCT","quantity":1},{"externalId":"TEST-PRODUCT2","quantity":1}]}]'
|
|
14
|
+
headers:
|
|
15
|
+
Content-Type:
|
|
16
|
+
- application/json
|
|
17
|
+
Accept-Encoding:
|
|
18
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
19
|
+
Accept:
|
|
20
|
+
- "*/*"
|
|
21
|
+
User-Agent:
|
|
22
|
+
- Ruby
|
|
23
|
+
response:
|
|
24
|
+
status:
|
|
25
|
+
code: 200
|
|
26
|
+
message: OK
|
|
27
|
+
headers:
|
|
28
|
+
Date:
|
|
29
|
+
- Mon, 22 Jun 2015 20:36:37 GMT
|
|
30
|
+
Server:
|
|
31
|
+
- Apache
|
|
32
|
+
X-Process-Time-Seconds:
|
|
33
|
+
- '0.308291'
|
|
34
|
+
X-Request-Id:
|
|
35
|
+
- e4bde6ca549a869b4a8c8be5519af3db
|
|
36
|
+
Vary:
|
|
37
|
+
- Accept-Encoding
|
|
38
|
+
Strict-Transport-Security:
|
|
39
|
+
- max-age=31536000; includeSubDomains
|
|
40
|
+
P3p:
|
|
41
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
42
|
+
OUR IND"
|
|
43
|
+
Content-Length:
|
|
44
|
+
- '797'
|
|
45
|
+
Content-Type:
|
|
46
|
+
- application/json
|
|
47
|
+
body:
|
|
48
|
+
encoding: UTF-8
|
|
49
|
+
string: '{"status":200,"message":"Successful","resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products?offset=0&limit=4","resource":{"offset":0,"total":4,"previous":null,"next":null,"items":[{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/baseProducts\/203497","resource":{"id":203497,"externalId":"C69","sku":"K-136","description":"Brione
|
|
50
|
+
Performance System","hsCode":null,"countryOfOrigin":null,"creationDate":"2015-06-22T13:36:37-07:00","archivedDate":null,"status":"notinuse","storageConfiguration":"INDIVIDUAL_ITEM","batteryConfiguration":"NOBATTERY","classification":"baseProduct","category":"OTHER","itemCount":1,"vendorId":null,"vendorExternalId":null,"dimensions":{"resourceLocation":null},"values":{"resourceLocation":null},"alternateNames":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/baseProducts\/203497\/alternateNames?offset=0&limit=20"},"technicalData":{"resourceLocation":null},"flags":{"resourceLocation":null},"enqueuedDimensions":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/baseProducts\/203497\/enqueuedDimensions?offset=0&limit=20"},"innerPack":{"resourceLocation":null},"masterCase":{"resourceLocation":null},"pallet":{"resourceLocation":null}}},{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/kits\/203498","resource":{"id":203498,"externalId":"U-1712","sku":"O29","description":"Triffe
|
|
51
|
+
Air Filter","hsCode":null,"countryOfOrigin":null,"creationDate":"2015-06-22T13:36:38-07:00","archivedDate":null,"status":"notinuse","storageConfiguration":"KIT","batteryConfiguration":"NOBATTERY","classification":"kit","category":"OTHER","itemCount":1,"vendorId":null,"vendorExternalId":null,"dimensions":{"resourceLocation":null},"values":{"resourceLocation":null},"alternateNames":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/kits\/203498\/alternateNames?offset=0&limit=20"},"kitContent":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/kits\/203498\/content?offset=0&limit=20"},"technicalData":{"resourceLocation":null},"flags":{"resourceLocation":null},"enqueuedDimensions":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/kits\/203498\/enqueuedDimensions?offset=0&limit=20"},"innerPack":{"resourceLocation":null},"masterCase":{"resourceLocation":null},"pallet":{"resourceLocation":null}}},{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/marketingInserts\/203499","resource":{"id":203499,"externalId":"W87","sku":"X56","description":"Techbalt
|
|
52
|
+
Electric Audible Kit","inclusionRuleType":"CUSTOM","creationDate":"2015-06-22T13:36:38-07:00","archivedDate":null,"status":"notinuse","storageConfiguration":"INDIVIDUAL_ITEM","classification":"marketingInsert","itemCount":1,"vendorId":null,"vendorExternalId":null,"dimensions":{"resourceLocation":null},"alternateNames":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/marketingInserts\/203499\/alternateNames?offset=0&limit=20"},"flags":{"resourceLocation":null},"inclusionRules":{"resourceLocation":null},"masterCase":{"resourceLocation":null}}},{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/virtualKits\/510000028","resource":{"id":510000028,"externalId":"Y47","sku":"C-1181","creationDate":"2015-06-22T13:36:38-07:00","description":"Brineforge
|
|
53
|
+
Direct Mount","status":"instock","classification":"virtualKit","virtualKitContent":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/virtualKits\/510000028\/content?offset=0&limit=20"},"flags":{"resourceLocation":null}}}]}}'
|
|
54
|
+
http_version:
|
|
55
|
+
recorded_at: Mon, 22 Jun 2015 20:36:38 GMT
|
|
56
|
+
- request:
|
|
57
|
+
method: post
|
|
58
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/products/retire
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: '{"ids":[203497,203498,203499,510000028]}'
|
|
62
|
+
headers:
|
|
63
|
+
Content-Type:
|
|
64
|
+
- application/json
|
|
65
|
+
Accept-Encoding:
|
|
66
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
67
|
+
Accept:
|
|
68
|
+
- "*/*"
|
|
69
|
+
User-Agent:
|
|
70
|
+
- Ruby
|
|
71
|
+
response:
|
|
72
|
+
status:
|
|
73
|
+
code: 200
|
|
74
|
+
message: OK
|
|
75
|
+
headers:
|
|
76
|
+
Date:
|
|
77
|
+
- Mon, 22 Jun 2015 20:36:38 GMT
|
|
78
|
+
Server:
|
|
79
|
+
- Apache
|
|
80
|
+
X-Process-Time-Seconds:
|
|
81
|
+
- '0.125093'
|
|
82
|
+
X-Request-Id:
|
|
83
|
+
- bcb3ce4e1aed47c19336fcff390f1d2f
|
|
84
|
+
Vary:
|
|
85
|
+
- Accept-Encoding
|
|
86
|
+
Strict-Transport-Security:
|
|
87
|
+
- max-age=31536000; includeSubDomains
|
|
88
|
+
P3p:
|
|
89
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
90
|
+
OUR IND"
|
|
91
|
+
Content-Length:
|
|
92
|
+
- '274'
|
|
93
|
+
Content-Type:
|
|
94
|
+
- application/json
|
|
95
|
+
body:
|
|
96
|
+
encoding: UTF-8
|
|
97
|
+
string: '{"status":200,"message":"Successful","moreInfo":[[{"id":203497,"externalId":"C69","status":"deprecated","sku":"K-136","configuration":"INDIVIDUAL_ITEM","success":true}],[{"id":203498,"externalId":"U-1712","status":"deprecated","sku":"O29","configuration":"KIT","success":true}],[{"id":203499,"externalId":"W87","status":"deprecated","sku":"X56","configuration":"INDIVIDUAL_ITEM","success":true},{"id":203500,"externalId":null,"status":"deprecated","sku":"A28","configuration":"MASTER_CASE","success":true}],[{"id":510000028,"externalId":"Y47","status":"deleted","sku":"C-1181","configuration":"virtualKit","success":true}]],"resourceLocation":null}'
|
|
98
|
+
http_version:
|
|
99
|
+
recorded_at: Mon, 22 Jun 2015 20:36:38 GMT
|
|
100
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/products/retire
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"ids":[203496]}'
|
|
9
|
+
headers:
|
|
10
|
+
Content-Type:
|
|
11
|
+
- application/json
|
|
12
|
+
Accept-Encoding:
|
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
14
|
+
Accept:
|
|
15
|
+
- "*/*"
|
|
16
|
+
User-Agent:
|
|
17
|
+
- Ruby
|
|
18
|
+
response:
|
|
19
|
+
status:
|
|
20
|
+
code: 200
|
|
21
|
+
message: OK
|
|
22
|
+
headers:
|
|
23
|
+
Date:
|
|
24
|
+
- Mon, 22 Jun 2015 20:36:42 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.058836'
|
|
29
|
+
X-Request-Id:
|
|
30
|
+
- 73d2de346b9782c4cd8a67c15175b590
|
|
31
|
+
Vary:
|
|
32
|
+
- Accept-Encoding
|
|
33
|
+
Strict-Transport-Security:
|
|
34
|
+
- max-age=31536000; includeSubDomains
|
|
35
|
+
P3p:
|
|
36
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
37
|
+
OUR IND"
|
|
38
|
+
Content-Length:
|
|
39
|
+
- '175'
|
|
40
|
+
Content-Type:
|
|
41
|
+
- application/json
|
|
42
|
+
body:
|
|
43
|
+
encoding: UTF-8
|
|
44
|
+
string: '{"status":200,"message":"Successful","moreInfo":[[{"id":203496,"externalId":"SE-1828","status":"deprecated","sku":"K64","configuration":"INDIVIDUAL_ITEM","success":true}]],"resourceLocation":null}'
|
|
45
|
+
http_version:
|
|
46
|
+
recorded_at: Mon, 22 Jun 2015 20:36:42 GMT
|
|
47
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/products/retire
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"ids":[0]}'
|
|
9
|
+
headers:
|
|
10
|
+
Content-Type:
|
|
11
|
+
- application/json
|
|
12
|
+
Accept-Encoding:
|
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
14
|
+
Accept:
|
|
15
|
+
- "*/*"
|
|
16
|
+
User-Agent:
|
|
17
|
+
- Ruby
|
|
18
|
+
response:
|
|
19
|
+
status:
|
|
20
|
+
code: 200
|
|
21
|
+
message: OK
|
|
22
|
+
headers:
|
|
23
|
+
Date:
|
|
24
|
+
- Mon, 22 Jun 2015 20:36:43 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.026229'
|
|
29
|
+
X-Request-Id:
|
|
30
|
+
- b8a9a070be1880fb541a0dc8d194711d
|
|
31
|
+
Vary:
|
|
32
|
+
- Accept-Encoding
|
|
33
|
+
Strict-Transport-Security:
|
|
34
|
+
- max-age=31536000; includeSubDomains
|
|
35
|
+
P3p:
|
|
36
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
37
|
+
OUR IND"
|
|
38
|
+
Content-Length:
|
|
39
|
+
- '79'
|
|
40
|
+
Content-Type:
|
|
41
|
+
- application/json
|
|
42
|
+
body:
|
|
43
|
+
encoding: UTF-8
|
|
44
|
+
string: '{"status":200,"message":"Successful","resourceLocation":null}'
|
|
45
|
+
http_version:
|
|
46
|
+
recorded_at: Mon, 22 Jun 2015 20:36:43 GMT
|
|
47
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: put
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/products/203496
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '[{"sku":"M-5135","externalId":"A16","description":"Super awesome description","classification":"baseProduct","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":1,"weight":1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0}}]'
|
|
9
|
+
headers:
|
|
10
|
+
Content-Type:
|
|
11
|
+
- application/json
|
|
12
|
+
Accept-Encoding:
|
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
14
|
+
Accept:
|
|
15
|
+
- "*/*"
|
|
16
|
+
User-Agent:
|
|
17
|
+
- Ruby
|
|
18
|
+
response:
|
|
19
|
+
status:
|
|
20
|
+
code: 200
|
|
21
|
+
message: OK
|
|
22
|
+
headers:
|
|
23
|
+
Date:
|
|
24
|
+
- Mon, 22 Jun 2015 20:36:41 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.186784'
|
|
29
|
+
X-Request-Id:
|
|
30
|
+
- 76a2df2ba269d3bca00ffa88b9737e85
|
|
31
|
+
Vary:
|
|
32
|
+
- Accept-Encoding
|
|
33
|
+
Strict-Transport-Security:
|
|
34
|
+
- max-age=31536000; includeSubDomains
|
|
35
|
+
P3p:
|
|
36
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
37
|
+
OUR IND"
|
|
38
|
+
Content-Length:
|
|
39
|
+
- '522'
|
|
40
|
+
Content-Type:
|
|
41
|
+
- application/json
|
|
42
|
+
body:
|
|
43
|
+
encoding: UTF-8
|
|
44
|
+
string: '{"status":200,"message":"Successful","resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/baseProducts?offset=0&limit=1","resource":{"offset":0,"total":1,"previous":null,"next":null,"items":[{"resourceLocation":"https:\/\/api.beta.shipwire.com\/products\/baseProducts\/203496","resource":{"id":203496,"externalId":"SE-1828","sku":"K64","description":"Sopod
|
|
45
|
+
Direct Amplifier","hsCode":null,"countryOfOrigin":null,"creationDate":"2015-06-22T13:36:36-07:00","archivedDate":null,"status":"notinuse","storageConfiguration":"INDIVIDUAL_ITEM","batteryConfiguration":"NOBATTERY","classification":"baseProduct","category":"OTHER","itemCount":1,"vendorId":null,"vendorExternalId":null,"dimensions":{"resourceLocation":null},"values":{"resourceLocation":null},"alternateNames":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/products\/baseProducts\/203496\/alternateNames?offset=0&limit=20"},"technicalData":{"resourceLocation":null},"flags":{"resourceLocation":null},"enqueuedDimensions":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/products\/baseProducts\/203496\/enqueuedDimensions?offset=0&limit=20"},"innerPack":{"resourceLocation":null},"masterCase":{"resourceLocation":null},"pallet":{"resourceLocation":null}}}]}}'
|
|
46
|
+
http_version:
|
|
47
|
+
recorded_at: Mon, 22 Jun 2015 20:36:41 GMT
|
|
48
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: put
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/products/0
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '[{"sku":"L-7843","externalId":"GM-4868","description":"Super awesome
|
|
9
|
+
description","classification":"baseProduct","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":1,"weight":1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0}}]'
|
|
10
|
+
headers:
|
|
11
|
+
Content-Type:
|
|
12
|
+
- application/json
|
|
13
|
+
Accept-Encoding:
|
|
14
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
15
|
+
Accept:
|
|
16
|
+
- "*/*"
|
|
17
|
+
User-Agent:
|
|
18
|
+
- Ruby
|
|
19
|
+
response:
|
|
20
|
+
status:
|
|
21
|
+
code: 404
|
|
22
|
+
message: Not Found
|
|
23
|
+
headers:
|
|
24
|
+
Date:
|
|
25
|
+
- Mon, 22 Jun 2015 20:36:42 GMT
|
|
26
|
+
Server:
|
|
27
|
+
- Apache
|
|
28
|
+
X-Process-Time-Seconds:
|
|
29
|
+
- '0.027381'
|
|
30
|
+
X-Request-Id:
|
|
31
|
+
- 5b8cf19f45915fb4ab9ce6ab212f7d6c
|
|
32
|
+
Vary:
|
|
33
|
+
- Accept-Encoding
|
|
34
|
+
Strict-Transport-Security:
|
|
35
|
+
- max-age=31536000; includeSubDomains
|
|
36
|
+
P3p:
|
|
37
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
38
|
+
OUR IND"
|
|
39
|
+
Content-Length:
|
|
40
|
+
- '88'
|
|
41
|
+
Content-Type:
|
|
42
|
+
- application/json
|
|
43
|
+
body:
|
|
44
|
+
encoding: UTF-8
|
|
45
|
+
string: '{"status":404,"message":"Product not found.","resourceLocation":null}'
|
|
46
|
+
http_version:
|
|
47
|
+
recorded_at: Mon, 22 Jun 2015 20:36:42 GMT
|
|
48
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/products
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '[{"sku":"F-5977","externalId":"F32","description":"Phunt Side Controller","category":"OTHER","batteryConfiguration":"NOBATTERY","values":{"costValue":1,"retailValue":4},"dimensions":{"length":1,"width":1,"height":1,"weight":1},"flags":{"isPackagedReadyToShip":1,"isFragile":0,"isDangerous":0,"isPerishable":0,"isLiquid":0,"isMedia":0,"isAdult":0,"hasInnerPack":0,"hasMasterCase":0,"hasPallet":0},"virtualKitContent":[{"externalId":"TEST-PRODUCT","quantity":1},{"externalId":"TEST-PRODUCT2","quantity":1}],"classification":"virtualKit"}]'
|
|
9
|
+
headers:
|
|
10
|
+
Content-Type:
|
|
11
|
+
- application/json
|
|
12
|
+
Accept-Encoding:
|
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
14
|
+
Accept:
|
|
15
|
+
- "*/*"
|
|
16
|
+
User-Agent:
|
|
17
|
+
- Ruby
|
|
18
|
+
response:
|
|
19
|
+
status:
|
|
20
|
+
code: 200
|
|
21
|
+
message: OK
|
|
22
|
+
headers:
|
|
23
|
+
Date:
|
|
24
|
+
- Mon, 22 Jun 2015 16:30:32 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.102471'
|
|
29
|
+
X-Request-Id:
|
|
30
|
+
- 3606a3c679b97119fe7e7f7e53752eb4
|
|
31
|
+
Vary:
|
|
32
|
+
- Accept-Encoding
|
|
33
|
+
Strict-Transport-Security:
|
|
34
|
+
- max-age=31536000; includeSubDomains
|
|
35
|
+
P3p:
|
|
36
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
37
|
+
OUR IND"
|
|
38
|
+
Content-Length:
|
|
39
|
+
- '333'
|
|
40
|
+
Content-Type:
|
|
41
|
+
- application/json
|
|
42
|
+
body:
|
|
43
|
+
encoding: UTF-8
|
|
44
|
+
string: '{"status":200,"message":"Successful","resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products?offset=0&limit=1","resource":{"offset":0,"total":1,"previous":null,"next":null,"items":[{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/virtualKits\/510000014","resource":{"id":510000014,"externalId":"F32","sku":"F-5977","creationDate":"2015-06-22T09:30:32-07:00","description":"Phunt
|
|
45
|
+
Side Controller","status":"instock","classification":"virtualKit","virtualKitContent":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/products\/virtualKits\/510000014\/content?offset=0&limit=20"},"flags":{"resourceLocation":null}}}]}}'
|
|
46
|
+
http_version:
|
|
47
|
+
recorded_at: Mon, 22 Jun 2015 16:30:32 GMT
|
|
48
|
+
recorded_with: VCR 2.9.3
|