tophatter-merchant 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +4 -3
  4. data/.travis.yml +10 -0
  5. data/Gemfile +6 -0
  6. data/README.md +4 -0
  7. data/Rakefile +3 -0
  8. data/VERSION +1 -1
  9. data/lib/tophatter_merchant/product.rb +4 -6
  10. data/lib/tophatter_merchant/version.rb +1 -1
  11. data/spec/cassettes/TophatterMerchant_Metadata/_carriers/returns_carriers.yml +56 -50
  12. data/spec/cassettes/TophatterMerchant_Metadata/_categories/returns_categories.yml +101 -67
  13. data/spec/cassettes/TophatterMerchant_Metadata/_colors/returns_colors.yml +20 -37
  14. data/spec/cassettes/TophatterMerchant_Metadata/_conditions/returns_conditions.yml +22 -37
  15. data/spec/cassettes/TophatterMerchant_Metadata/_countries/returns_countries.yml +97 -70
  16. data/spec/cassettes/TophatterMerchant_Metadata/_country_codes/returns_country_codes.yml +129 -87
  17. data/spec/cassettes/TophatterMerchant_Metadata/_materials/returns_materials.yml +39 -52
  18. data/spec/cassettes/TophatterMerchant_Metadata/_metadata/returns_metadata.yml +509 -288
  19. data/spec/cassettes/TophatterMerchant_Metadata/_provinces/returns_provinces.yml +22 -39
  20. data/spec/cassettes/TophatterMerchant_Metadata/_sizes/returns_sizes.yml +28 -45
  21. data/spec/cassettes/TophatterMerchant_Metadata/_states/returns_states.yml +28 -48
  22. data/spec/cassettes/TophatterMerchant_Metadata/_territories/returns_territories.yml +22 -38
  23. data/spec/cassettes/TophatterMerchant_Order/_all/returns_all_orders.yml +11 -11
  24. data/spec/cassettes/TophatterMerchant_Order/_fulfill/fulfills_an_order.yml +8 -8
  25. data/spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml +8 -8
  26. data/spec/cassettes/TophatterMerchant_Order/_retrieve/retrieves_an_order.yml +8 -8
  27. data/spec/cassettes/TophatterMerchant_Order/_schema/returns_the_schema.yml +5 -5
  28. data/spec/cassettes/TophatterMerchant_Product/_all/returns_all_products.yml +15 -15
  29. data/spec/cassettes/TophatterMerchant_Product/_create/creates_a_product.yml +8 -8
  30. data/spec/cassettes/TophatterMerchant_Product/_delete/deletes_a_product.yml +17 -17
  31. data/spec/cassettes/TophatterMerchant_Product/_disable/disables_a_product.yml +16 -16
  32. data/spec/cassettes/TophatterMerchant_Product/_enable/enables_a_product.yml +16 -16
  33. data/spec/cassettes/TophatterMerchant_Product/_retrieve/retrieves_a_product.yml +8 -8
  34. data/spec/cassettes/TophatterMerchant_Product/_schema/returns_the_schema.yml +33 -33
  35. data/spec/cassettes/TophatterMerchant_Product/_search/returns_products_matching_search_terms.yml +11 -11
  36. data/spec/cassettes/TophatterMerchant_Product/_update/updates_a_product.yml +16 -16
  37. data/spec/cassettes/TophatterMerchant_Variation/_create/creates_a_variation.yml +7 -7
  38. data/spec/cassettes/TophatterMerchant_Variation/_retrieve/retrieves_a_variation.yml +7 -7
  39. data/spec/cassettes/TophatterMerchant_Variation/_schema/returns_the_schema.yml +10 -7
  40. data/spec/cassettes/TophatterMerchant_Variation/_update/updates_a_variation.yml +14 -14
  41. data/spec/spec_helper.rb +6 -0
  42. data/spec/tophatter_merchant/metadata_spec.rb +7 -7
  43. data/spec/tophatter_merchant/order_spec.rb +1 -6
  44. data/spec/tophatter_merchant/product_spec.rb +0 -5
  45. data/spec/tophatter_merchant/variation_spec.rb +0 -5
  46. data/tophatter-merchant.gemspec +1 -0
  47. metadata +6 -5
  48. data/spec/cassettes/TophatterMerchant_Metadata/_brands/returns_brands.yml +0 -161
@@ -2,17 +2,17 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://tophatter.com/merchant_api/v1/metadata/provinces.json
5
+ uri: http://tophatter.dev/merchant_api/v1/metadata/provinces.json
6
6
  body:
7
- encoding: ASCII-8BIT
8
- string: ''
7
+ encoding: UTF-8
8
+ string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Length:
15
- - '0'
15
+ - '45'
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  User-Agent:
@@ -22,48 +22,31 @@ http_interactions:
22
22
  code: 200
23
23
  message: OK
24
24
  headers:
25
- Cache-Control:
26
- - max-age=0, private, must-revalidate
27
- Content-Encoding:
28
- - gzip
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ X-Content-Type-Options:
30
+ - nosniff
29
31
  Content-Type:
30
32
  - application/json; charset=utf-8
31
- Date:
32
- - Sat, 25 Mar 2017 22:19:55 GMT
33
33
  Etag:
34
34
  - W/"c1aa6972986763942242a220c78625ba"
35
- Server:
36
- - nginx + Phusion Passenger
37
- Status:
38
- - 200 OK
39
- Vary:
40
- - Accept-Encoding
41
- X-Content-Type-Options:
42
- - nosniff
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Powered-By:
46
- - Phusion Passenger Enterprise
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
47
37
  X-Request-Id:
48
- - 24acd4b4-eaa3-468d-9e0a-d67b7928d76f
49
- X-Request-Start:
50
- - t=1490480395.710
38
+ - 1e8061e0-5c9d-4096-840b-5e63c8e9223b
51
39
  X-Runtime:
52
- - '0.002371'
53
- X-Xss-Protection:
54
- - 1; mode=block
55
- Content-Length:
56
- - '216'
40
+ - '0.023460'
41
+ Date:
42
+ - Fri, 31 Mar 2017 23:33:13 GMT
57
43
  Connection:
58
- - keep-alive
44
+ - close
59
45
  body:
60
- encoding: ASCII-8BIT
61
- string: !binary |-
62
- H4sIAAAAAAAAAzyOMW7DMAxFryJo7gm6xUGGoomTwM6QkZJYWLBLApQUoSh6
63
- 95JB0UHDe/9Dn99+twWUCv7V7wb/4gfJNZfF7XlrnyGbH/bqT0C5cjA+WW/E
64
- 7gZpVHqOq8rxT35wo7QBJWfvCEEgsVjhaAV+gJsi1+fH4/RUUpeOpboZRcdZ
65
- MhYLZwsbwaNVw5vimSpIZsXzqHiRTBHdIXWQ5N6KzWp2OWh2bRgwKl3t+gnK
66
- CjUu2IHUTe/q7m1l+h/9Un2f/c8vAAAA//8DAPYM4y8RAQAA
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"}'
67
50
  http_version:
68
- recorded_at: Sat, 25 Mar 2017 22:19:55 GMT
51
+ recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
69
52
  recorded_with: VCR 3.0.3
@@ -2,17 +2,17 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://tophatter.com/merchant_api/v1/metadata/sizes.json
5
+ uri: http://tophatter.dev/merchant_api/v1/metadata/sizes.json
6
6
  body:
7
- encoding: ASCII-8BIT
8
- string: ''
7
+ encoding: UTF-8
8
+ string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Length:
15
- - '0'
15
+ - '45'
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  User-Agent:
@@ -22,54 +22,37 @@ http_interactions:
22
22
  code: 200
23
23
  message: OK
24
24
  headers:
25
- Cache-Control:
26
- - max-age=0, private, must-revalidate
27
- Content-Encoding:
28
- - gzip
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ X-Content-Type-Options:
30
+ - nosniff
29
31
  Content-Type:
30
32
  - application/json; charset=utf-8
31
- Date:
32
- - Sat, 25 Mar 2017 22:19:53 GMT
33
33
  Etag:
34
34
  - W/"718f127ecfc0beb33efe0e0f0cf38056"
35
- Server:
36
- - nginx + Phusion Passenger
37
- Status:
38
- - 200 OK
39
- Vary:
40
- - Accept-Encoding
41
- X-Content-Type-Options:
42
- - nosniff
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Powered-By:
46
- - Phusion Passenger Enterprise
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
47
37
  X-Request-Id:
48
- - 01913084-7a07-40d9-822b-905732207069
49
- X-Request-Start:
50
- - t=1490480393.571
38
+ - 5dfe9a87-364f-4920-ae42-2378e6441c99
51
39
  X-Runtime:
52
- - '0.003034'
53
- X-Xss-Protection:
54
- - 1; mode=block
55
- Content-Length:
56
- - '487'
40
+ - '0.020799'
41
+ Date:
42
+ - Fri, 31 Mar 2017 23:33:13 GMT
57
43
  Connection:
58
- - keep-alive
44
+ - close
59
45
  body:
60
- encoding: ASCII-8BIT
61
- string: !binary |-
62
- H4sIAAAAAAAAA6xTTW/TQBD9KyufgtQQe+24gVsrQELUISJGioV62NqjxMKx
63
- o7VdUiH+e/fNmGgPFUiIw7x5npmdj93xz+CmLKnvO1tTH7z9FmyPpmmCqyCj
64
- qh6PjtwZuyen358Ha5R83V8FN6eTsdTgyG7r3JAM4U52DBOyis4ONCAGJIAQ
65
- Jnw4SZ2sEAdjBGsEcwR7BIfmaDg0HBoODUccoptbMuPwhGY+jNx+bs0jgbyj
66
- ZjyT2prjqcEYF5JTP5B1ZGMaGgb20YAp6rZGzu2hkytZOuPy9XJqM2V2DWGG
67
- JlbM3kCYyRih8IhBuEbiL3W758SYJGHHfy0BEB4zCE9Qek3l98aUMpe8qBvT
68
- Dmr2ta3IqihVH9vyQP2rgC8Aniid69Azy2aomQ7nOvHsd127d9ZkrleedVob
69
- 9n1+dCU8Lx7OPDwpb5c2luhYk5ptcHhNPx4626rZ+haf4QIDxVizeMEXBZou
70
- +FYynptxlfGeZCiQd1XVuLJeDZ0jASABLHPEfaqrflF043DwQ5PpbbjYbnqU
71
- Py7qSz/D7zkvG4XD09NBmPFuM+Mhmf1tQbz5Lrn/dSu9C7jkemmPCukYShfS
72
- M1RcSNdQSSF9QwkITwvpHeq6CO5/PQMAAP//AwCg4OeIfgQAAA==
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"]}'
73
56
  http_version:
74
- recorded_at: Sat, 25 Mar 2017 22:19:52 GMT
57
+ recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
75
58
  recorded_with: VCR 3.0.3
@@ -2,17 +2,17 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://tophatter.com/merchant_api/v1/metadata/states.json
5
+ uri: http://tophatter.dev/merchant_api/v1/metadata/states.json
6
6
  body:
7
- encoding: ASCII-8BIT
8
- string: ''
7
+ encoding: UTF-8
8
+ string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Length:
15
- - '0'
15
+ - '45'
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  User-Agent:
@@ -22,57 +22,37 @@ http_interactions:
22
22
  code: 200
23
23
  message: OK
24
24
  headers:
25
- Cache-Control:
26
- - max-age=0, private, must-revalidate
27
- Content-Encoding:
28
- - gzip
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ X-Content-Type-Options:
30
+ - nosniff
29
31
  Content-Type:
30
32
  - application/json; charset=utf-8
31
- Date:
32
- - Sat, 25 Mar 2017 22:19:55 GMT
33
33
  Etag:
34
34
  - W/"168de2f5d680a792d990cea44b206b1c"
35
- Server:
36
- - nginx + Phusion Passenger
37
- Status:
38
- - 200 OK
39
- Vary:
40
- - Accept-Encoding
41
- X-Content-Type-Options:
42
- - nosniff
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Powered-By:
46
- - Phusion Passenger Enterprise
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
47
37
  X-Request-Id:
48
- - 2938fbdd-8bd9-4981-a121-e4d67139254f
49
- X-Request-Start:
50
- - t=1490480395.295
38
+ - 5bb2bbb7-b829-481d-819c-a97645ff5408
51
39
  X-Runtime:
52
- - '0.003018'
53
- X-Xss-Protection:
54
- - 1; mode=block
55
- Content-Length:
56
- - '618'
40
+ - '0.022820'
41
+ Date:
42
+ - Fri, 31 Mar 2017 23:33:13 GMT
57
43
  Connection:
58
- - keep-alive
44
+ - close
59
45
  body:
60
- encoding: ASCII-8BIT
61
- string: !binary |-
62
- H4sIAAAAAAAAA2RTy47bMAz8FSGnFsgX9BY4ycab+IE8u70xNhMLsaVAknc3
63
- Lfrv5SjeYNsCPmhGQ4oc0r9Gk5b8hUbfRpPlaAx0pC7CFaC7kPHkgdfAHTtd
64
- kVEb6mxUbaJK/7Qmwh8CE2r1yTqjwSQTMLa1jmoLXERsDFdBV30AtRVqqn2Q
65
- 1EHZkxJ53x1j+DTBHbf0Ro6BZ4Lnkk3XuJ6jyCe27hzVT3jsqacO552cFxKn
66
- taBFKii1b1ClUKU1NagnnQK0rTZWo80UGVNTa4oNpbnA5YcHS3S7ZBP66nID
67
- fhG8sr32g3yF1Bl5T1XTew4BUdmddLeWTA08jVgbNJShoUxXjT6TAU4jFn+8
68
- DUiZ5ZHw3vYOnWQwMLcuNOyMkrR4WqUeyeNr5aDHd73GEJSdWRPuRWbbjwwq
69
- IWeldbB58mCndLm/naPSnI9uWJF8FvGbWlB39Y2OI8kXA/nMzjNsyZ8HJuN3
70
- XcHlPIvMK8Wp5fvh/sW6CzBsLBoNZYFsxaWV6cQ1LLCVheOzhTsFlrBkY/yt
71
- faX7hpWwt+zZBavW9+dKyNaNrXkwRrg1jN3Y/u+uN8mDfXS9Qddbxgg8o8Nt
72
- Hon3uAPb7wJ2Rgeu1SZQYK9kXNapog/tTZvzp1ns0PYuUIMzXN9r2dR72fvJ
73
- A3+K2KPKPbtOpgWIoAOJ1eYcogMHhB20r6zxOhKIOLAP6lPyAxw+3GwncYAv
74
- 8S/tpOS5dZWUPPzIXn3h94qvQTwxMpyv+Icn/4lP0I4HzVjNemevPJa+67pl
75
- NSOPWiezf+NKqvRJV7grR7//AAAA//8DAPKRPwNrBAAA
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"}'
76
56
  http_version:
77
- recorded_at: Sat, 25 Mar 2017 22:19:54 GMT
57
+ recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
78
58
  recorded_with: VCR 3.0.3
@@ -2,17 +2,17 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://tophatter.com/merchant_api/v1/metadata/territories.json
5
+ uri: http://tophatter.dev/merchant_api/v1/metadata/territories.json
6
6
  body:
7
- encoding: ASCII-8BIT
8
- string: ''
7
+ encoding: UTF-8
8
+ string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Length:
15
- - '0'
15
+ - '45'
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  User-Agent:
@@ -22,47 +22,31 @@ http_interactions:
22
22
  code: 200
23
23
  message: OK
24
24
  headers:
25
- Cache-Control:
26
- - max-age=0, private, must-revalidate
27
- Content-Encoding:
28
- - gzip
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ X-Content-Type-Options:
30
+ - nosniff
29
31
  Content-Type:
30
32
  - application/json; charset=utf-8
31
- Date:
32
- - Sat, 25 Mar 2017 22:19:56 GMT
33
33
  Etag:
34
34
  - W/"f40bc133c742ae36ce6e734ba319a0c0"
35
- Server:
36
- - nginx + Phusion Passenger
37
- Status:
38
- - 200 OK
39
- Vary:
40
- - Accept-Encoding
41
- X-Content-Type-Options:
42
- - nosniff
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Powered-By:
46
- - Phusion Passenger Enterprise
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
47
37
  X-Request-Id:
48
- - 4d5ee40a-068d-4459-b003-c6c6d6a2e5a3
49
- X-Request-Start:
50
- - t=1490480396.165
38
+ - 555f9872-b5b7-45ba-a5d6-ceaf4932eda8
51
39
  X-Runtime:
52
- - '0.002481'
53
- X-Xss-Protection:
54
- - 1; mode=block
55
- Content-Length:
56
- - '154'
40
+ - '0.025085'
41
+ Date:
42
+ - Fri, 31 Mar 2017 23:33:13 GMT
57
43
  Connection:
58
- - keep-alive
44
+ - close
59
45
  body:
60
- encoding: ASCII-8BIT
61
- string: !binary |-
62
- H4sIAAAAAAAAA1TNwQoCMQwE0F8pOfsF3kq9CFJYWrbnoIEt1FbSLCLiv5uu
63
- IHqcBzPzBLt2YSwZq3F4y4LFRGLO0vgBe7Auwg483U1oqywmYaGu7kMa3lgW
64
- 4vpX8aMxrUS1F6wXlel0UPoMfP/Ug1WO2K9YtxxtUJjzWZc2mI9OIVGXcfJb
65
- TRZebwAAAP//AwDsikfevQAAAA==
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"}'
66
50
  http_version:
67
- recorded_at: Sat, 25 Mar 2017 22:19:55 GMT
51
+ recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
68
52
  recorded_with: VCR 3.0.3
@@ -5,14 +5,14 @@ http_interactions:
5
5
  uri: http://tophatter.dev/merchant_api/v1/orders.json
6
6
  body:
7
7
  encoding: UTF-8
8
- string: filter=&page=1&per_page=50&access_token=293da6763df7cb3b894a1831addcb52d
8
+ string: filter=unfulfilled&page=1&per_page=50&access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Length:
15
- - '72'
15
+ - '83'
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  User-Agent:
@@ -31,26 +31,26 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
33
  Etag:
34
- - W/"9553249edeaaca58a2259b57b23f7944"
34
+ - W/"7b46a655a5f5d77a7d98d51aceb5de74"
35
35
  Cache-Control:
36
36
  - max-age=0, private, must-revalidate
37
37
  X-Request-Id:
38
- - 8cf16c7f-1c61-4beb-b3b7-d42e21597fee
38
+ - 2630a206-807e-4e6e-a1ea-d4bd9e2f8294
39
39
  X-Runtime:
40
- - '0.344292'
40
+ - '0.675904'
41
41
  Date:
42
- - Sat, 25 Mar 2017 23:09:22 GMT
42
+ - Fri, 31 Mar 2017 23:32:52 GMT
43
43
  Connection:
44
44
  - close
45
45
  body:
46
46
  encoding: UTF-8
47
47
  string: '[{"order_id":359887509,"status":"paid","carrier":null,"tracking_number":null,"product_name":"Paid
48
- RIPE, Not Shipped","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
48
+ Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
49
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-25T14:06:54-07:00","created_at":"2017-03-25T16:07:55-07:00"},{"order_id":204240611,"status":"shipped","carrier":null,"tracking_number":null,"product_name":"Shipped
51
- 62 days ago (Yanwen - Not Returnable)","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
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
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},"refund_amount":0.0,"disbursement_amount":275.55,"seller_fees_amount":123.45,"seller_fees":[{"type":"commission_fee","amount":123.45}],"paid_at":"2017-03-24T16:07:54-07:00","created_at":"2017-03-25T16:07:55-07:00"}]'
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
54
  http_version:
55
- recorded_at: Sat, 25 Mar 2017 23:09:22 GMT
55
+ recorded_at: Fri, 31 Mar 2017 23:32:52 GMT
56
56
  recorded_with: VCR 3.0.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://tophatter.dev/merchant_api/v1/orders/fulfill.json
6
6
  body:
7
7
  encoding: UTF-8
8
- string: order_id=359887509&carrier=USPS&tracking_number=CX263292019US&access_token=293da6763df7cb3b894a1831addcb52d
8
+ string: order_id=359887509&carrier=USPS&tracking_number=CX263292019US&access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -31,23 +31,23 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
33
  Etag:
34
- - W/"8800c06c6bd0c8549d58c2201f4c54f5"
34
+ - W/"9e98225a188444c5917d0603361e88c7"
35
35
  Cache-Control:
36
36
  - max-age=0, private, must-revalidate
37
37
  X-Request-Id:
38
- - 60850788-fcbb-4c13-b5b4-771f0169ee7d
38
+ - 656b0f8a-07ba-440e-8334-93ca905117be
39
39
  X-Runtime:
40
- - '0.534084'
40
+ - '0.743266'
41
41
  Date:
42
- - Sat, 25 Mar 2017 23:09:22 GMT
42
+ - Fri, 31 Mar 2017 23:32:53 GMT
43
43
  Connection:
44
44
  - close
45
45
  body:
46
46
  encoding: UTF-8
47
47
  string: '{"order_id":359887509,"status":"shipped","carrier":"usps","tracking_number":"CX263292019US","product_name":"Paid
48
- RIPE, Not Shipped","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
48
+ Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
49
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-25T14:06:54-07:00","created_at":"2017-03-25T16:07:55-07:00"}'
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
51
  http_version:
52
- recorded_at: Sat, 25 Mar 2017 23:09:22 GMT
52
+ recorded_at: Fri, 31 Mar 2017 23:32:53 GMT
53
53
  recorded_with: VCR 3.0.3