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,97 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://tophatter.dev/merchant_api/v1/variations/update.json
6
- body:
7
- encoding: UTF-8
8
- string: quantity=99&identifier=CT1-S&access_token=d8f979fc7d14fec0b075c0b73dbafb59
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '74'
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/"6b51bc9a54481322b63c540fe3a1971b"
35
- Cache-Control:
36
- - max-age=0, private, must-revalidate
37
- X-Request-Id:
38
- - 9ef9edaf-bad4-4701-b2b9-70f4b8a76c95
39
- X-Runtime:
40
- - '0.055918'
41
- Date:
42
- - Fri, 31 Mar 2017 23:33:08 GMT
43
- Connection:
44
- - close
45
- body:
46
- encoding: UTF-8
47
- string: '{"product_identifier":"C-T-1","identifier":"CT1-S","size":"S","color":null,"quantity":99,"created_at":"2017-03-31T16:32:25-07:00","disabled_at":null,"deleted_at":null}'
48
- http_version:
49
- recorded_at: Fri, 31 Mar 2017 23:33:08 GMT
50
- - request:
51
- method: post
52
- uri: http://tophatter.dev/merchant_api/v1/variations/update.json
53
- body:
54
- encoding: UTF-8
55
- string: quantity=999&identifier=CT1-S&access_token=d8f979fc7d14fec0b075c0b73dbafb59
56
- headers:
57
- Accept:
58
- - "*/*; q=0.5, application/xml"
59
- Accept-Encoding:
60
- - gzip, deflate
61
- Content-Length:
62
- - '75'
63
- Content-Type:
64
- - application/x-www-form-urlencoded
65
- User-Agent:
66
- - Ruby
67
- response:
68
- status:
69
- code: 200
70
- message: OK
71
- headers:
72
- X-Frame-Options:
73
- - SAMEORIGIN
74
- X-Xss-Protection:
75
- - 1; mode=block
76
- X-Content-Type-Options:
77
- - nosniff
78
- Content-Type:
79
- - application/json; charset=utf-8
80
- Etag:
81
- - W/"09668dab21ffc7b969b26dc0a71fec1a"
82
- Cache-Control:
83
- - max-age=0, private, must-revalidate
84
- X-Request-Id:
85
- - c183b6f8-9ef6-4c4e-b9a5-508757c44ef2
86
- X-Runtime:
87
- - '0.054949'
88
- Date:
89
- - Fri, 31 Mar 2017 23:33:08 GMT
90
- Connection:
91
- - close
92
- body:
93
- encoding: UTF-8
94
- string: '{"product_identifier":"C-T-1","identifier":"CT1-S","size":"S","color":null,"quantity":999,"created_at":"2017-03-31T16:32:25-07:00","disabled_at":null,"deleted_at":null}'
95
- http_version:
96
- recorded_at: Fri, 31 Mar 2017 23:33:08 GMT
97
- recorded_with: VCR 3.0.3