tophatter-merchant 1.2.2 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +4 -7
  3. data/Gemfile +1 -3
  4. data/README.md +0 -5
  5. data/lib/tophatter_merchant.rb +3 -8
  6. data/lib/tophatter_merchant/metadata.rb +0 -13
  7. data/lib/tophatter_merchant/order.rb +45 -24
  8. data/lib/tophatter_merchant/product.rb +46 -79
  9. data/lib/tophatter_merchant/resource.rb +23 -47
  10. data/lib/tophatter_merchant/variation.rb +15 -15
  11. data/spec/spec_helper.rb +0 -10
  12. data/spec/tophatter_merchant/metadata_spec.rb +12 -20
  13. data/spec/tophatter_merchant/order_spec.rb +4 -11
  14. data/spec/tophatter_merchant/product_spec.rb +11 -27
  15. data/spec/tophatter_merchant/variation_spec.rb +3 -10
  16. data/tophatter-merchant.gemspec +1 -2
  17. metadata +3 -77
  18. data/spec/cassettes/TophatterMerchant_Metadata/_carriers/returns_carriers.yml +0 -87
  19. data/spec/cassettes/TophatterMerchant_Metadata/_categories/returns_categories.yml +0 -131
  20. data/spec/cassettes/TophatterMerchant_Metadata/_colors/returns_colors.yml +0 -50
  21. data/spec/cassettes/TophatterMerchant_Metadata/_conditions/returns_conditions.yml +0 -52
  22. data/spec/cassettes/TophatterMerchant_Metadata/_countries/returns_countries.yml +0 -128
  23. data/spec/cassettes/TophatterMerchant_Metadata/_country_codes/returns_country_codes.yml +0 -161
  24. data/spec/cassettes/TophatterMerchant_Metadata/_materials/returns_materials.yml +0 -69
  25. data/spec/cassettes/TophatterMerchant_Metadata/_metadata/returns_metadata.yml +0 -540
  26. data/spec/cassettes/TophatterMerchant_Metadata/_provinces/returns_provinces.yml +0 -52
  27. data/spec/cassettes/TophatterMerchant_Metadata/_sizes/returns_sizes.yml +0 -58
  28. data/spec/cassettes/TophatterMerchant_Metadata/_states/returns_states.yml +0 -58
  29. data/spec/cassettes/TophatterMerchant_Metadata/_territories/returns_territories.yml +0 -52
  30. data/spec/cassettes/TophatterMerchant_Order/_all/returns_all_orders.yml +0 -56
  31. data/spec/cassettes/TophatterMerchant_Order/_fulfill/fulfills_an_order.yml +0 -53
  32. data/spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml +0 -53
  33. data/spec/cassettes/TophatterMerchant_Order/_retrieve/retrieves_an_order.yml +0 -53
  34. data/spec/cassettes/TophatterMerchant_Order/_schema/returns_the_schema.yml +0 -81
  35. data/spec/cassettes/TophatterMerchant_Product/_all/returns_all_products.yml +0 -64
  36. data/spec/cassettes/TophatterMerchant_Product/_create/creates_a_product.yml +0 -53
  37. data/spec/cassettes/TophatterMerchant_Product/_delete/deletes_a_product.yml +0 -103
  38. data/spec/cassettes/TophatterMerchant_Product/_disable/disables_a_product.yml +0 -103
  39. data/spec/cassettes/TophatterMerchant_Product/_enable/enables_a_product.yml +0 -103
  40. data/spec/cassettes/TophatterMerchant_Product/_retrieve/retrieves_a_product.yml +0 -53
  41. data/spec/cassettes/TophatterMerchant_Product/_schema/returns_the_schema.yml +0 -124
  42. data/spec/cassettes/TophatterMerchant_Product/_search/returns_products_matching_search_terms.yml +0 -57
  43. data/spec/cassettes/TophatterMerchant_Product/_update/updates_a_product.yml +0 -103
  44. data/spec/cassettes/TophatterMerchant_Variation/_create/creates_a_variation.yml +0 -50
  45. data/spec/cassettes/TophatterMerchant_Variation/_retrieve/retrieves_a_variation.yml +0 -50
  46. data/spec/cassettes/TophatterMerchant_Variation/_schema/returns_the_schema.yml +0 -64
  47. data/spec/cassettes/TophatterMerchant_Variation/_update/updates_a_variation.yml +0 -97
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://tophatter.dev/merchant_api/v1/metadata/provinces.json
6
- body:
7
- encoding: UTF-8
8
- string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '45'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- Content-Type:
32
- - application/json; charset=utf-8
33
- Etag:
34
- - W/"c1aa6972986763942242a220c78625ba"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 1e8061e0-5c9d-4096-840b-5e63c8e9223b
39
- X-Runtime:
40
- - '0.023460'
41
- Date:
42
- - Fri, 31 Mar 2017 23:33:13 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '{"Alberta":"AB","British Columbia":"BC","Manitoba":"MB","New Brunswick":"NB","Newfoundland
48
- and Labrador":"NL","Nova Scotia":"NS","Northwest Territories":"NT","Nunavut":"NU","Ontario":"ON","Prince
49
- Edward Island":"PE","Quebec":"QC","Saskatchewan":"SK","Yukon Territory":"YT"}'
50
- http_version:
51
- recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
52
- recorded_with: VCR 3.0.3
@@ -1,58 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://tophatter.dev/merchant_api/v1/metadata/sizes.json
6
- body:
7
- encoding: UTF-8
8
- string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '45'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- Content-Type:
32
- - application/json; charset=utf-8
33
- Etag:
34
- - W/"718f127ecfc0beb33efe0e0f0cf38056"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 5dfe9a87-364f-4920-ae42-2378e6441c99
39
- X-Runtime:
40
- - '0.020799'
41
- Date:
42
- - Fri, 31 Mar 2017 23:33:13 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '{"Accessories":["Small","Medium","Large","Extra Large"],"Apparel":["XS","S","M","L","XL","XXL","XXXL","1x","2x","3x","4x","0","2","4","6","8","10","12","14","16","18","20","22","24","26","28","30"],"Beauty":["Full","Travel","Deluxe
48
- Sample","Sample","Tester","Palette","Set","Mini"],"Shoes":["5","5.5","6","6.5","7","7.5","8","8.5","9","9.5","10","10.5","11","11.5","12"],"Rings":["4","4.5","5","5.5","6","6.5","7","7.5","8","8.5","9","9.5","10","10.5","11","11.5","12","12.5","13","13.5","14"],"Necklaces":["Extra
49
- Short (Under 16 Inches)","Short (16-20 Inches)","Medium (20-24 Inches)","Long
50
- (24-28 Inches)","Extra Long (Over 28 Inches)"],"Baby Apparel":["Preemie (P)","Newborn
51
- (NB)","0/3","3M","3/6","6M","6/9","9M","12M","18M","24M"],"Toddler Apparel":["2T","3T","4T","5T"],"Kids/Youth
52
- Apparel":["4","5","6","6X","7","8","10","12","14","16","18","XS","S","M","L","XL"],"Baby
53
- Shoes":["0","0.5","1","1.5","2","2.5","3","3.5","4","4.5","5","5.5","6","6.5","7"],"Toddler
54
- Shoes":["7.5","8","8.5","9","9.5","10","10.5","11","11.5","12"],"Kids/Youth
55
- Shoes":["12.5","13","13.5","1Y","1.5Y","2Y","2.5Y","3Y","3.5Y","4Y","4.5Y","5Y","5.5Y","6Y","6.5Y","7Y"]}'
56
- http_version:
57
- recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
58
- recorded_with: VCR 3.0.3
@@ -1,58 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://tophatter.dev/merchant_api/v1/metadata/states.json
6
- body:
7
- encoding: UTF-8
8
- string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '45'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- Content-Type:
32
- - application/json; charset=utf-8
33
- Etag:
34
- - W/"168de2f5d680a792d990cea44b206b1c"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 5bb2bbb7-b829-481d-819c-a97645ff5408
39
- X-Runtime:
40
- - '0.022820'
41
- Date:
42
- - Fri, 31 Mar 2017 23:33:13 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '{"Alaska":"AK","Alabama":"AL","Arkansas":"AR","American Samoa":"AS","Arizona":"AZ","California":"CA","Colorado":"CO","Connecticut":"CT","District
48
- of Columbia":"DC","Delaware":"DE","Florida":"FL","Georgia":"GA","Guam":"GU","Hawaii":"HI","Iowa":"IA","Idaho":"ID","Illinois":"IL","Indiana":"IN","Kansas":"KS","Kentucky":"KY","Louisiana":"LA","Massachusetts":"MA","Maryland":"MD","Maine":"ME","Michigan":"MI","Minnesota":"MN","Missouri":"MO","Northern
49
- Mariana Islands":"MP","Mississippi":"MS","Montana":"MT","North Carolina":"NC","North
50
- Dakota":"ND","Nebraska":"NE","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","Nevada":"NV","New
51
- York":"NY","Ohio":"OH","Oklahoma":"OK","Oregon":"OR","Pennsylvania":"PA","Puerto
52
- Rico":"PR","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD","Tennessee":"TN","Texas":"TX","United
53
- States Minor Outlying Islands":"UM","Utah":"UT","Virginia":"VA","Virgin Islands":"VI","Vermont":"VT","Washington":"WA","Wisconsin":"WI","West
54
- Virginia":"WV","Wyoming":"WY","Armed Forces Americas (except Canada)":"AA","Armed
55
- Forces Africa, Canada, Europe, Middle East":"AE","Armed Forces Pacific":"AP"}'
56
- http_version:
57
- recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
58
- recorded_with: VCR 3.0.3
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://tophatter.dev/merchant_api/v1/metadata/territories.json
6
- body:
7
- encoding: UTF-8
8
- string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '45'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- Content-Type:
32
- - application/json; charset=utf-8
33
- Etag:
34
- - W/"f40bc133c742ae36ce6e734ba319a0c0"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 555f9872-b5b7-45ba-a5d6-ceaf4932eda8
39
- X-Runtime:
40
- - '0.025085'
41
- Date:
42
- - Fri, 31 Mar 2017 23:33:13 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '{"Australian Capital Territory":"ACT","New South Wales":"NSW","Northern
48
- Territory":"NT","Queensland":"QLD","South Australia":"SA","Tasmania":"TAS","Victoria":"VIC","Western
49
- Australia":"WA"}'
50
- http_version:
51
- recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
52
- recorded_with: VCR 3.0.3
@@ -1,56 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://tophatter.dev/merchant_api/v1/orders.json
6
- body:
7
- encoding: UTF-8
8
- string: filter=unfulfilled&page=1&per_page=50&access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '83'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- Content-Type:
32
- - application/json; charset=utf-8
33
- Etag:
34
- - W/"7b46a655a5f5d77a7d98d51aceb5de74"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 2630a206-807e-4e6e-a1ea-d4bd9e2f8294
39
- X-Runtime:
40
- - '0.675904'
41
- Date:
42
- - Fri, 31 Mar 2017 23:32:52 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '[{"order_id":359887509,"status":"paid","carrier":null,"tracking_number":null,"product_name":"Paid
48
- Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
49
- Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
50
- Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0,"shipping_fee":3.0},"refund_amount":0.0,"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-03-31T14:31:19-07:00","created_at":"2017-03-31T16:32:24-07:00"},{"order_id":113126549,"status":"paid","carrier":null,"tracking_number":null,"product_name":"Paid,
51
- Fullfillable 2","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
52
- Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
53
- Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0,"shipping_fee":5.0},"refund_amount":0.0,"disbursement_amount":363.6,"seller_fees_amount":40.4,"seller_fees":[{"type":"commission_fee","amount":40.4}],"paid_at":"2017-03-30T16:32:19-07:00","created_at":"2017-03-30T16:32:19-07:00"}]'
54
- http_version:
55
- recorded_at: Fri, 31 Mar 2017 23:32:52 GMT
56
- recorded_with: VCR 3.0.3
@@ -1,53 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://tophatter.dev/merchant_api/v1/orders/fulfill.json
6
- body:
7
- encoding: UTF-8
8
- string: order_id=359887509&carrier=USPS&tracking_number=CX263292019US&access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '107'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- Content-Type:
32
- - application/json; charset=utf-8
33
- Etag:
34
- - W/"9e98225a188444c5917d0603361e88c7"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 656b0f8a-07ba-440e-8334-93ca905117be
39
- X-Runtime:
40
- - '0.743266'
41
- Date:
42
- - Fri, 31 Mar 2017 23:32:53 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '{"order_id":359887509,"status":"shipped","carrier":"usps","tracking_number":"CX263292019US","product_name":"Paid
48
- Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
49
- Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
50
- Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0,"shipping_fee":3.0},"refund_amount":0.0,"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-03-31T14:31:19-07:00","created_at":"2017-03-31T16:32:24-07:00"}'
51
- http_version:
52
- recorded_at: Fri, 31 Mar 2017 23:32:53 GMT
53
- recorded_with: VCR 3.0.3
@@ -1,53 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://tophatter.dev/merchant_api/v1/orders/refund.json
6
- body:
7
- encoding: UTF-8
8
- string: order_id=359887509&type=partial&reason=delay_in_shipping&fees[]=shipping_fee&access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '122'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- Content-Type:
32
- - application/json; charset=utf-8
33
- Etag:
34
- - W/"185bec251d52dc9d5d905f963efdd329"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 9e52b5ed-16f5-4fd1-8465-1258981b5eb2
39
- X-Runtime:
40
- - '1.057785'
41
- Date:
42
- - Fri, 31 Mar 2017 23:32:54 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '{"order_id":359887509,"status":"shipped","carrier":"usps","tracking_number":"CX263292019US","product_name":"Paid
48
- Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
49
- Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
50
- Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0},"refund_amount":0.0,"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-03-31T14:31:19-07:00","created_at":"2017-03-31T16:32:24-07:00"}'
51
- http_version:
52
- recorded_at: Fri, 31 Mar 2017 23:32:54 GMT
53
- recorded_with: VCR 3.0.3
@@ -1,53 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://tophatter.dev/merchant_api/v1/orders/retrieve.json
6
- body:
7
- encoding: UTF-8
8
- string: order_id=359887509&access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '64'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- Content-Type:
32
- - application/json; charset=utf-8
33
- Etag:
34
- - W/"feac9e8404d95561205c9fa75693a86f"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 229f5b1d-9fcb-4e8f-a1ea-c271fa7f23b4
39
- X-Runtime:
40
- - '0.067633'
41
- Date:
42
- - Fri, 14 Jul 2017 03:49:22 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '{"order_id":359887509,"status":"paid","carrier":null,"tracking_number":null,"product_name":"Paid
48
- Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
49
- Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
50
- Altos","state":"CA","postal_code":"94022","country":"USA","available_refunds":{"buyer_fee":399.0,"shipping_fee":3.0},"refund_amount":0.0,"line_items":[{"line_item":"Item","value":399,"type":"price"},{"line_item":"Shipping","value":3.0,"type":"shipping"},{"line_item":"Total","value":442.2,"type":"total"}],"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-07-13T16:20:24-07:00","created_at":"2017-07-13T18:21:26-07:00"}'
51
- http_version:
52
- recorded_at: Fri, 14 Jul 2017 03:49:22 GMT
53
- recorded_with: VCR 3.0.3
@@ -1,81 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://tophatter.dev/merchant_api/v1/orders/schema.json
6
- body:
7
- encoding: UTF-8
8
- string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '45'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- Content-Type:
32
- - application/json; charset=utf-8
33
- Etag:
34
- - W/"24c92ec13cfc95547df3f24f5c7c600e"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 2efc3ae7-37d0-4f24-a859-4339991f0cf1
39
- X-Runtime:
40
- - '0.070650'
41
- Date:
42
- - Fri, 31 Mar 2017 23:32:51 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '[{"field":"order_id","required":true,"readonly":true,"name":"Order
48
- ID","description":"The ID of the order."},{"field":"status","required":false,"readonly":true,"name":"Order
49
- Status","description":"The status of the order."},{"field":"carrier","required":true,"readonly":false,"name":"Carrier","description":"The
50
- carrier (USPS, China EMS, etc) used to ship this order. The list of accepted
51
- carries can be found [here](doc:carriers)."},{"field":"tracking_number","required":true,"readonly":false,"name":"Tracking
52
- Number","description":"The tracking number provided by the carrier when this
53
- order was shipped."},{"field":"product_name","required":false,"readonly":true,"name":"Product
54
- Name","description":"The name of the product."},{"field":"product_identifier","required":false,"readonly":true,"name":"Product
55
- Unique ID","description":"The unique id of the product."},{"field":"variation_identifier","required":false,"readonly":true,"name":"Variation
56
- Unique ID","description":"The unique id of the product variation selected
57
- by the customer during the checkout process."},{"field":"customer_id","required":false,"readonly":true,"name":"Customer
58
- ID","description":"The unique ID of the customer."},{"field":"customer_name","required":false,"readonly":true,"name":"Customer
59
- Name","description":"The full name of the customer."},{"field":"address1","required":false,"readonly":true,"name":"Address
60
- Line #1","description":"Shipping address line 1."},{"field":"address2","required":false,"readonly":true,"name":"Address
61
- Line #2","description":"Shipping address line 2."},{"field":"city","required":false,"readonly":true,"name":"City","description":"Shipping
62
- address city."},{"field":"state","required":false,"readonly":true,"name":"State","description":"Shipping
63
- address state."},{"field":"postal_code","required":false,"readonly":true,"name":"Postal
64
- Code","description":"Shipping address postal code."},{"field":"country","required":false,"readonly":true,"name":"Country","description":"Shipping
65
- address country."},{"field":"available_refunds","required":false,"readonly":true,"name":"Available
66
- Refunds","description":"The partial refunds available for this order. When
67
- you wish to partially refund an order you must specify on or more of these
68
- fees to refund. See the [refund an order](doc:refund-an-order) documentation
69
- for more info."},{"field":"refund_amount","required":false,"readonly":true,"name":"Refund
70
- Amount","description":"The amount refunded to the customer for this order."},{"field":"disbursement_amount","required":false,"readonly":true,"name":"Disbursement
71
- Amount","description":"The total amount that will be paid out (disbursed)
72
- to the seller for this order."},{"field":"seller_fees_amount","required":false,"readonly":true,"name":"Fees
73
- Amount","description":"The total amount of the fees charged to the seller
74
- for this order."},{"field":"seller_fees","required":false,"readonly":true,"name":"Fees
75
- Breakdown","description":"The breakdown of the fees charged to the seller
76
- for this order."},{"field":"paid_at","required":false,"readonly":true,"name":"Paid
77
- At","description":"The date and time the order was paid."},{"field":"created_at","required":false,"readonly":true,"name":"Created
78
- At","description":"The date and time the order was created."}]'
79
- http_version:
80
- recorded_at: Fri, 31 Mar 2017 23:32:51 GMT
81
- recorded_with: VCR 3.0.3