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,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/returns
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
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
|
+
- Tue, 09 Jun 2015 23:33:59 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.061224'
|
|
29
|
+
Vary:
|
|
30
|
+
- Accept-Encoding
|
|
31
|
+
Strict-Transport-Security:
|
|
32
|
+
- max-age=31536000; includeSubDomains
|
|
33
|
+
P3p:
|
|
34
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
35
|
+
OUR IND"
|
|
36
|
+
Content-Length:
|
|
37
|
+
- '531'
|
|
38
|
+
Content-Type:
|
|
39
|
+
- application/json
|
|
40
|
+
body:
|
|
41
|
+
encoding: UTF-8
|
|
42
|
+
string: |2-
|
|
43
|
+
|
|
44
|
+
{"status":200,"message":"Successful","resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns?offset=0&limit=20","resource":{"offset":0,"total":1,"previous":null,"next":null,"items":[{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947","resource":{"externalId":null,"id":91302947,"transactionId":"1433890406","expectedDate":"2015-06-09T15:53:26-07:00","commerceName":null,"lastUpdatedDate":"2015-06-09T16:01:36-07:00","status":"cancelled","items":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947\/items?offset=0&limit=20"},"holds":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947\/holds?offset=0&limit=20"},"trackings":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947\/trackings?offset=0&limit=20"},"labels":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947\/labels?offset=0&limit=20"},"routing":{"resourceLocation":null,"resource":{"warehouseId":8391,"warehouseExternalId":null,"warehouseName":"Death Star","originLongitude":38.5798,"originLatitude":-121.489,"warehouseRegion":"DEATH1"}},"events":{"resourceLocation":null,"resource":{"createdDate":"2015-06-09T15:53:26-07:00","pickedUpDate":null,"submittedDate":"2015-06-09T16:01:36-07:00","processedDate":"2015-06-09T16:01:36-07:00","completedDate":"2015-06-09T16:01:36-07:00","expectedDate":"2015-06-09T15:53:26-07:00","deliveredDate":null,"cancelledDate":"2015-06-09T16:01:36-07:00","returnedDate":null,"lastManualUpdateDate":null}},"originalOrder":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/orders\/91302943"}}}]}}
|
|
45
|
+
http_version:
|
|
46
|
+
recorded_at: Tue, 09 Jun 2015 23:33:59 GMT
|
|
47
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/returns?status=canceled
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
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
|
+
- Tue, 09 Jun 2015 23:33:59 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.052561'
|
|
29
|
+
Vary:
|
|
30
|
+
- Accept-Encoding
|
|
31
|
+
Strict-Transport-Security:
|
|
32
|
+
- max-age=31536000; includeSubDomains
|
|
33
|
+
P3p:
|
|
34
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
35
|
+
OUR IND"
|
|
36
|
+
Content-Length:
|
|
37
|
+
- '539'
|
|
38
|
+
Content-Type:
|
|
39
|
+
- application/json
|
|
40
|
+
body:
|
|
41
|
+
encoding: UTF-8
|
|
42
|
+
string: |2-
|
|
43
|
+
|
|
44
|
+
{"status":200,"message":"Successful","resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns?offset=0&limit=20&status=canceled","resource":{"offset":0,"total":1,"previous":null,"next":null,"items":[{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947","resource":{"externalId":null,"id":91302947,"transactionId":"1433890406","expectedDate":"2015-06-09T15:53:26-07:00","commerceName":null,"lastUpdatedDate":"2015-06-09T16:01:36-07:00","status":"cancelled","items":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947\/items?offset=0&limit=20&status=canceled"},"holds":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947\/holds?offset=0&limit=20&status=canceled"},"trackings":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947\/trackings?offset=0&limit=20&status=canceled"},"labels":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/returns\/91302947\/labels?offset=0&limit=20&status=canceled"},"routing":{"resourceLocation":null,"resource":{"warehouseId":8391,"warehouseExternalId":null,"warehouseName":"Death Star","originLongitude":38.5798,"originLatitude":-121.489,"warehouseRegion":"DEATH1"}},"events":{"resourceLocation":null,"resource":{"createdDate":"2015-06-09T15:53:26-07:00","pickedUpDate":null,"submittedDate":"2015-06-09T16:01:36-07:00","processedDate":"2015-06-09T16:01:36-07:00","completedDate":"2015-06-09T16:01:36-07:00","expectedDate":"2015-06-09T15:53:26-07:00","deliveredDate":null,"cancelledDate":"2015-06-09T16:01:36-07:00","returnedDate":null,"lastManualUpdateDate":null}},"originalOrder":{"resourceLocation":"https:\/\/api.beta.shipwire.com\/api\/v3\/orders\/91302943"}}}]}}
|
|
45
|
+
http_version:
|
|
46
|
+
recorded_at: Tue, 09 Jun 2015 23:33:59 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/secret
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Content-Type:
|
|
11
|
+
- application/json
|
|
12
|
+
Content-Length:
|
|
13
|
+
- '0'
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
16
|
+
Accept:
|
|
17
|
+
- "*/*"
|
|
18
|
+
User-Agent:
|
|
19
|
+
- Ruby
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Date:
|
|
26
|
+
- Tue, 09 Jun 2015 23:26:56 GMT
|
|
27
|
+
Server:
|
|
28
|
+
- Apache
|
|
29
|
+
X-Process-Time-Seconds:
|
|
30
|
+
- '0.079502'
|
|
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
|
+
- '229'
|
|
40
|
+
Content-Type:
|
|
41
|
+
- application/json
|
|
42
|
+
body:
|
|
43
|
+
encoding: UTF-8
|
|
44
|
+
string: '{"status":200,"message":"Successful","resourceLocation":"https:\/\/api.beta.shipwire.com\/secret\/130","resource":{"id":130,"secret":"42f14f48ff2bd4c9e67ad437c69adb15bd0db0cbcd30e140afd57e4e36128a27f2bbdfdc5832cc3479e4b752b8df5816dac54b42e4e48be05b9e89a1cbc16cbf","expiration":null}}'
|
|
45
|
+
http_version:
|
|
46
|
+
recorded_at: Tue, 09 Jun 2015 23:26:56 GMT
|
|
47
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/secret/130
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
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
|
+
- Tue, 09 Jun 2015 23:26:57 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.024818'
|
|
29
|
+
Vary:
|
|
30
|
+
- Accept-Encoding
|
|
31
|
+
Strict-Transport-Security:
|
|
32
|
+
- max-age=31536000; includeSubDomains
|
|
33
|
+
P3p:
|
|
34
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
35
|
+
OUR IND"
|
|
36
|
+
Content-Length:
|
|
37
|
+
- '229'
|
|
38
|
+
Content-Type:
|
|
39
|
+
- application/json
|
|
40
|
+
body:
|
|
41
|
+
encoding: UTF-8
|
|
42
|
+
string: '{"status":200,"message":"Successful","resourceLocation":"https:\/\/api.beta.shipwire.com\/secret\/130","resource":{"id":130,"secret":"42f14f48ff2bd4c9e67ad437c69adb15bd0db0cbcd30e140afd57e4e36128a27f2bbdfdc5832cc3479e4b752b8df5816dac54b42e4e48be05b9e89a1cbc16cbf","expiration":null}}'
|
|
43
|
+
http_version:
|
|
44
|
+
recorded_at: Tue, 09 Jun 2015 23:26:57 GMT
|
|
45
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/secret/1
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
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: 404
|
|
21
|
+
message: Not Found
|
|
22
|
+
headers:
|
|
23
|
+
Date:
|
|
24
|
+
- Tue, 09 Jun 2015 23:26:57 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
Vary:
|
|
28
|
+
- Accept-Encoding
|
|
29
|
+
Strict-Transport-Security:
|
|
30
|
+
- max-age=31536000; includeSubDomains
|
|
31
|
+
P3p:
|
|
32
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
33
|
+
OUR IND"
|
|
34
|
+
Content-Length:
|
|
35
|
+
- '80'
|
|
36
|
+
Content-Type:
|
|
37
|
+
- application/json
|
|
38
|
+
body:
|
|
39
|
+
encoding: UTF-8
|
|
40
|
+
string: '{"status":404,"message":"Not found","resourceLocation":null}'
|
|
41
|
+
http_version:
|
|
42
|
+
recorded_at: Tue, 09 Jun 2015 23:26:57 GMT
|
|
43
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/secret
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
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
|
+
- Tue, 09 Jun 2015 23:26:56 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.024640'
|
|
29
|
+
Vary:
|
|
30
|
+
- Accept-Encoding
|
|
31
|
+
Strict-Transport-Security:
|
|
32
|
+
- max-age=31536000; includeSubDomains
|
|
33
|
+
P3p:
|
|
34
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
35
|
+
OUR IND"
|
|
36
|
+
Content-Length:
|
|
37
|
+
- '378'
|
|
38
|
+
Content-Type:
|
|
39
|
+
- application/json
|
|
40
|
+
body:
|
|
41
|
+
encoding: UTF-8
|
|
42
|
+
string: '{"status":200,"message":"Successful","resourceLocation":"https:\/\/api.beta.shipwire.com\/secret?offset=0&limit=20","resource":{"offset":0,"total":2,"previous":null,"next":null,"items":[{"resourceLocation":"https:\/\/api.beta.shipwire.com\/secret\/126","resource":{"id":126,"secret":"37c3a0c6675de1ebd6c60ab9cfecf9bfcc774ee7abb6518598f8bab37039a55553b2294fc48efc8598354a6767ed563cecefee66775b556f6e4a1c9d13f7384d","expiration":null}},{"resourceLocation":"https:\/\/api.beta.shipwire.com\/secret\/127","resource":{"id":127,"secret":"08e3420739c0680b846a2a4f0761e9f01b55ffc1153acd39d9a761682e56523ec066156f132ae697e0a8baa2d06d4b54b0242ea4903ef331f6699dd18455209c","expiration":null}}]}}'
|
|
43
|
+
http_version:
|
|
44
|
+
recorded_at: Tue, 09 Jun 2015 23:26:56 GMT
|
|
45
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: delete
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/secret/130
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
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
|
+
- Tue, 09 Jun 2015 23:26:58 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.024748'
|
|
29
|
+
Vary:
|
|
30
|
+
- Accept-Encoding
|
|
31
|
+
Strict-Transport-Security:
|
|
32
|
+
- max-age=31536000; includeSubDomains
|
|
33
|
+
P3p:
|
|
34
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
35
|
+
OUR IND"
|
|
36
|
+
Content-Length:
|
|
37
|
+
- '79'
|
|
38
|
+
Content-Type:
|
|
39
|
+
- application/json
|
|
40
|
+
body:
|
|
41
|
+
encoding: UTF-8
|
|
42
|
+
string: '{"status":200,"message":"Successful","resourceLocation":null}'
|
|
43
|
+
http_version:
|
|
44
|
+
recorded_at: Tue, 09 Jun 2015 23:26:58 GMT
|
|
45
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/stock?sku=TEST-PRODUCT
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
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
|
+
- Tue, 09 Jun 2015 23:26:47 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.074993'
|
|
29
|
+
Vary:
|
|
30
|
+
- Accept-Encoding
|
|
31
|
+
Strict-Transport-Security:
|
|
32
|
+
- max-age=31536000; includeSubDomains
|
|
33
|
+
P3p:
|
|
34
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
35
|
+
OUR IND"
|
|
36
|
+
Content-Length:
|
|
37
|
+
- '364'
|
|
38
|
+
Content-Type:
|
|
39
|
+
- application/json
|
|
40
|
+
body:
|
|
41
|
+
encoding: UTF-8
|
|
42
|
+
string: '{"status":200,"message":"Successful","resourceLocation":null,"resource":{"offset":0,"total":2,"previous":null,"next":null,"items":[{"resourceLocation":null,"resource":{"productId":202574,"productExternalId":null,"sku":"TEST-PRODUCT","isBundle":0,"isAlias":0,"warehouseRegion":"LAX","warehouseId":11,"warehouseExternalId":null,"pending":15,"good":0,"reserved":0,"backordered":1,"shipping":0,"shipped":0,"creating":0,"consuming":0,"consumed":0,"created":0,"damaged":0,"returned":0,"inreview":0,"availableDate":null,"shippedLastDay":0,"shippedLastWeek":0,"shippedLast4Weeks":0,"orderedLastDay":0,"orderedLastWeek":0,"orderedLast4Weeks":0}},{"resourceLocation":null,"resource":{"productId":202574,"productExternalId":null,"sku":"TEST-PRODUCT","isBundle":0,"isAlias":0,"warehouseRegion":"DEATH1","warehouseId":8391,"warehouseExternalId":null,"pending":0,"good":13,"reserved":17,"backordered":0,"shipping":0,"shipped":0,"creating":0,"consuming":0,"consumed":0,"created":0,"damaged":0,"returned":0,"inreview":0,"availableDate":null,"shippedLastDay":0,"shippedLastWeek":0,"shippedLast4Weeks":0,"orderedLastDay":0,"orderedLastWeek":0,"orderedLast4Weeks":0}}]}}'
|
|
43
|
+
http_version:
|
|
44
|
+
recorded_at: Tue, 09 Jun 2015 23:26:47 GMT
|
|
45
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/stock?sku=FAKE-PRODUCT
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
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
|
+
- Tue, 09 Jun 2015 23:26:47 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.040987'
|
|
29
|
+
Vary:
|
|
30
|
+
- Accept-Encoding
|
|
31
|
+
Strict-Transport-Security:
|
|
32
|
+
- max-age=31536000; includeSubDomains
|
|
33
|
+
P3p:
|
|
34
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
35
|
+
OUR IND"
|
|
36
|
+
Content-Length:
|
|
37
|
+
- '122'
|
|
38
|
+
Content-Type:
|
|
39
|
+
- application/json
|
|
40
|
+
body:
|
|
41
|
+
encoding: UTF-8
|
|
42
|
+
string: '{"status":200,"message":"Successful","resourceLocation":null,"resource":{"offset":0,"total":0,"previous":null,"next":null,"items":[]}}'
|
|
43
|
+
http_version:
|
|
44
|
+
recorded_at: Tue, 09 Jun 2015 23:26:48 GMT
|
|
45
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://david.freerksen%40groundctrl.com:gOg6maBr6E@api.beta.shipwire.com/api/v3/stock
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
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
|
+
- Tue, 09 Jun 2015 23:26:46 GMT
|
|
25
|
+
Server:
|
|
26
|
+
- Apache
|
|
27
|
+
X-Process-Time-Seconds:
|
|
28
|
+
- '0.066025'
|
|
29
|
+
Vary:
|
|
30
|
+
- Accept-Encoding
|
|
31
|
+
Strict-Transport-Security:
|
|
32
|
+
- max-age=31536000; includeSubDomains
|
|
33
|
+
P3p:
|
|
34
|
+
- policyref="/w3c/p3p.xml", CP="COM CNT INT NAV PUR STA UNI CAO DSP CUR o i
|
|
35
|
+
OUR IND"
|
|
36
|
+
Content-Length:
|
|
37
|
+
- '388'
|
|
38
|
+
Content-Type:
|
|
39
|
+
- application/json
|
|
40
|
+
body:
|
|
41
|
+
encoding: UTF-8
|
|
42
|
+
string: '{"status":200,"message":"Successful","resourceLocation":null,"resource":{"offset":0,"total":3,"previous":null,"next":null,"items":[{"resourceLocation":null,"resource":{"productId":202574,"productExternalId":null,"sku":"TEST-PRODUCT","isBundle":0,"isAlias":0,"warehouseRegion":"LAX","warehouseId":11,"warehouseExternalId":null,"pending":15,"good":0,"reserved":0,"backordered":1,"shipping":0,"shipped":0,"creating":0,"consuming":0,"consumed":0,"created":0,"damaged":0,"returned":0,"inreview":0,"availableDate":null,"shippedLastDay":0,"shippedLastWeek":0,"shippedLast4Weeks":0,"orderedLastDay":0,"orderedLastWeek":0,"orderedLast4Weeks":0}},{"resourceLocation":null,"resource":{"productId":202574,"productExternalId":null,"sku":"TEST-PRODUCT","isBundle":0,"isAlias":0,"warehouseRegion":"DEATH1","warehouseId":8391,"warehouseExternalId":null,"pending":0,"good":13,"reserved":17,"backordered":0,"shipping":0,"shipped":0,"creating":0,"consuming":0,"consumed":0,"created":0,"damaged":0,"returned":0,"inreview":0,"availableDate":null,"shippedLastDay":0,"shippedLastWeek":0,"shippedLast4Weeks":0,"orderedLastDay":0,"orderedLastWeek":0,"orderedLast4Weeks":0}},{"resourceLocation":null,"resource":{"productId":202946,"productExternalId":null,"sku":"TEST-PRODUCT2","isBundle":0,"isAlias":0,"warehouseRegion":"DEATH1","warehouseId":8391,"warehouseExternalId":null,"pending":0,"good":15,"reserved":0,"backordered":0,"shipping":0,"shipped":0,"creating":0,"consuming":0,"consumed":0,"created":0,"damaged":0,"returned":0,"inreview":0,"availableDate":null,"shippedLastDay":0,"shippedLastWeek":0,"shippedLast4Weeks":0,"orderedLastDay":0,"orderedLastWeek":0,"orderedLast4Weeks":0}}]}}'
|
|
43
|
+
http_version:
|
|
44
|
+
recorded_at: Tue, 09 Jun 2015 23:26:47 GMT
|
|
45
|
+
recorded_with: VCR 2.9.3
|