tophatter-merchant 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +5 -0
  3. data/Gemfile +1 -0
  4. data/README.md +2 -2
  5. data/VERSION +1 -1
  6. data/bin/console +1 -1
  7. data/lib/tophatter_merchant/metadata.rb +18 -16
  8. data/lib/tophatter_merchant/order.rb +4 -4
  9. data/lib/tophatter_merchant/product.rb +18 -17
  10. data/lib/tophatter_merchant/resource.rb +7 -3
  11. data/lib/tophatter_merchant/variation.rb +3 -1
  12. data/lib/tophatter_merchant/version.rb +1 -1
  13. data/lib/tophatter_merchant.rb +1 -4
  14. data/spec/cassettes/TophatterMerchant_Metadata/_brands/returns_brands.yml +161 -0
  15. data/spec/cassettes/TophatterMerchant_Metadata/_carriers/returns_carriers.yml +81 -0
  16. data/spec/cassettes/TophatterMerchant_Metadata/_categories/returns_categories.yml +97 -0
  17. data/spec/cassettes/TophatterMerchant_Metadata/_colors/returns_colors.yml +67 -0
  18. data/spec/cassettes/TophatterMerchant_Metadata/_conditions/returns_conditions.yml +67 -0
  19. data/spec/cassettes/TophatterMerchant_Metadata/_countries/returns_countries.yml +101 -0
  20. data/spec/cassettes/TophatterMerchant_Metadata/_country_codes/returns_country_codes.yml +119 -0
  21. data/spec/cassettes/TophatterMerchant_Metadata/_materials/returns_materials.yml +82 -0
  22. data/spec/cassettes/TophatterMerchant_Metadata/_metadata/returns_metadata.yml +319 -0
  23. data/spec/cassettes/TophatterMerchant_Metadata/_provinces/returns_provinces.yml +69 -0
  24. data/spec/cassettes/TophatterMerchant_Metadata/_sizes/returns_sizes.yml +75 -0
  25. data/spec/cassettes/TophatterMerchant_Metadata/_states/returns_states.yml +78 -0
  26. data/spec/cassettes/TophatterMerchant_Metadata/_territories/returns_territories.yml +68 -0
  27. data/spec/cassettes/TophatterMerchant_Order/_all/returns_all_orders.yml +56 -0
  28. data/spec/cassettes/TophatterMerchant_Order/_fulfill/fulfills_an_order.yml +53 -0
  29. data/spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml +53 -0
  30. data/spec/cassettes/TophatterMerchant_Order/_retrieve/retrieves_an_order.yml +53 -0
  31. data/spec/cassettes/TophatterMerchant_Order/_schema/returns_the_schema.yml +81 -0
  32. data/spec/cassettes/TophatterMerchant_Product/_all/returns_all_products.yml +64 -0
  33. data/spec/cassettes/TophatterMerchant_Product/_create/creates_a_product.yml +53 -0
  34. data/spec/cassettes/TophatterMerchant_Product/_delete/deletes_a_product.yml +103 -0
  35. data/spec/cassettes/TophatterMerchant_Product/_disable/disables_a_product.yml +103 -0
  36. data/spec/cassettes/TophatterMerchant_Product/_enable/enables_a_product.yml +103 -0
  37. data/spec/cassettes/TophatterMerchant_Product/_retrieve/retrieves_a_product.yml +53 -0
  38. data/spec/cassettes/TophatterMerchant_Product/_schema/returns_the_schema.yml +124 -0
  39. data/spec/cassettes/TophatterMerchant_Product/_search/returns_products_matching_search_terms.yml +57 -0
  40. data/spec/cassettes/TophatterMerchant_Product/_update/updates_a_product.yml +103 -0
  41. data/spec/cassettes/TophatterMerchant_Variation/_create/creates_a_variation.yml +50 -0
  42. data/spec/cassettes/TophatterMerchant_Variation/_retrieve/retrieves_a_variation.yml +50 -0
  43. data/spec/cassettes/TophatterMerchant_Variation/_schema/returns_the_schema.yml +61 -0
  44. data/spec/cassettes/TophatterMerchant_Variation/_update/updates_a_variation.yml +97 -0
  45. data/spec/spec_helper.rb +6 -18
  46. data/spec/tophatter_merchant/metadata_spec.rb +111 -30
  47. data/spec/tophatter_merchant/order_spec.rb +55 -0
  48. data/spec/tophatter_merchant/product_spec.rb +102 -3
  49. data/spec/tophatter_merchant/variation_spec.rb +47 -0
  50. metadata +68 -10
  51. data/CHANGELOG +0 -3
  52. data/lib/tophatter_merchant/account.rb +0 -47
  53. data/lib/tophatter_merchant/api_key.rb +0 -42
  54. data/lib/tophatter_merchant/exceptions.rb +0 -8
  55. data/lib/tophatter_merchant/image.rb +0 -21
  56. data/tmp/stubs/metadata/conditions.json +0 -12
  57. data/tmp/stubs/metadata/gemstones.json +0 -12
  58. data/tmp/stubs/metadata.json +0 -12
@@ -0,0 +1,103 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://tophatter.dev/merchant_api/v1/products/disable.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: identifier=PFTBNU5&access_token=293da6763df7cb3b894a1831addcb52d
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/"d0b44d9c79770f613d988a192266c7c3"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 7cf68d55-75a1-4fe3-92f7-3b03b190432c
39
+ X-Runtime:
40
+ - '0.040179'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:26:27 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"identifier":"PFTBNU5","category":"Apparel | Tops | Shirts","title":"Pay
48
+ Flow Test, With Shipping Price","description":"This is the lot description.","condition":"New","brand":"Foo","material":null,"available_quantity":100,"variations":[{"identifier":"PFTBNU5","size":null,"color":null,"quantity":100,"created_at":"2017-03-25T15:17:23-07:00"}],"starting_bid":18,"buy_now_price":100,"retail_price":1099,"cost_basis":"300.0","minimum_alerts_needed":0,"success_fee_bid":null,"shipping_price":13,"shipping_origin":"United
49
+ States","weight":6,"days_to_fulfill":4,"days_to_deliver":4,"expedited_shipping_price":23,"expedited_days_to_deliver":1,"buy_one_get_one_price":50,"accessory_price":25,"accessory_description":"This
50
+ is a super awesome accessory.","primary_image":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/large.jpg","original":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/large.jpg","original":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:17:23-07:00","updated_at":"2017-03-25T15:26:27-07:00","disabled_at":"2017-03-25T15:26:27-07:00","deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"PFTBNU5","internal_id":992996129}'
51
+ http_version:
52
+ recorded_at: Sat, 25 Mar 2017 22:26:27 GMT
53
+ - request:
54
+ method: post
55
+ uri: http://tophatter.dev/merchant_api/v1/products/enable.json
56
+ body:
57
+ encoding: UTF-8
58
+ string: identifier=PFTBNU5&access_token=293da6763df7cb3b894a1831addcb52d
59
+ headers:
60
+ Accept:
61
+ - "*/*; q=0.5, application/xml"
62
+ Accept-Encoding:
63
+ - gzip, deflate
64
+ Content-Length:
65
+ - '64'
66
+ Content-Type:
67
+ - application/x-www-form-urlencoded
68
+ User-Agent:
69
+ - Ruby
70
+ response:
71
+ status:
72
+ code: 200
73
+ message: OK
74
+ headers:
75
+ X-Frame-Options:
76
+ - SAMEORIGIN
77
+ X-Xss-Protection:
78
+ - 1; mode=block
79
+ X-Content-Type-Options:
80
+ - nosniff
81
+ Content-Type:
82
+ - application/json; charset=utf-8
83
+ Etag:
84
+ - W/"cf8644931ece09e5bcc4495769daf3ef"
85
+ Cache-Control:
86
+ - max-age=0, private, must-revalidate
87
+ X-Request-Id:
88
+ - 452a7994-bce1-4329-b2fc-23e7a6939238
89
+ X-Runtime:
90
+ - '0.035734'
91
+ Date:
92
+ - Sat, 25 Mar 2017 22:26:27 GMT
93
+ Connection:
94
+ - close
95
+ body:
96
+ encoding: UTF-8
97
+ string: '{"identifier":"PFTBNU5","category":"Apparel | Tops | Shirts","title":"Pay
98
+ Flow Test, With Shipping Price","description":"This is the lot description.","condition":"New","brand":"Foo","material":null,"available_quantity":100,"variations":[{"identifier":"PFTBNU5","size":null,"color":null,"quantity":100,"created_at":"2017-03-25T15:17:23-07:00"}],"starting_bid":18,"buy_now_price":100,"retail_price":1099,"cost_basis":"300.0","minimum_alerts_needed":0,"success_fee_bid":null,"shipping_price":13,"shipping_origin":"United
99
+ States","weight":6,"days_to_fulfill":4,"days_to_deliver":4,"expedited_shipping_price":23,"expedited_days_to_deliver":1,"buy_one_get_one_price":50,"accessory_price":25,"accessory_description":"This
100
+ is a super awesome accessory.","primary_image":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/large.jpg","original":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/large.jpg","original":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:17:23-07:00","updated_at":"2017-03-25T15:26:27-07:00","disabled_at":null,"deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"PFTBNU5","internal_id":992996129}'
101
+ http_version:
102
+ recorded_at: Sat, 25 Mar 2017 22:26:27 GMT
103
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://tophatter.dev/merchant_api/v1/products/retrieve.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: identifier=PFTBNU5&access_token=293da6763df7cb3b894a1831addcb52d
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/"6787c2c8ae064e4583cc4a877055a884"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 10d43727-3d3c-4506-aae2-7771c2305d3b
39
+ X-Runtime:
40
+ - '0.037609'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:19:56 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"identifier":"PFTBNU5","category":"Apparel | Tops | Shirts","title":"Pay
48
+ Flow Test, With Shipping Price","description":"This is the lot description.","condition":"New","brand":"Foo","material":null,"available_quantity":100,"variations":[{"identifier":"PFTBNU5","size":null,"color":null,"quantity":100,"created_at":"2017-03-25T15:17:23-07:00"}],"starting_bid":18,"buy_now_price":399,"retail_price":1099,"cost_basis":"300.0","minimum_alerts_needed":0,"success_fee_bid":null,"shipping_price":13,"shipping_origin":"United
49
+ States","weight":6,"days_to_fulfill":4,"days_to_deliver":4,"expedited_shipping_price":23,"expedited_days_to_deliver":1,"buy_one_get_one_price":50,"accessory_price":25,"accessory_description":"This
50
+ is a super awesome accessory.","primary_image":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/large.jpg","original":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/large.jpg","original":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:17:23-07:00","updated_at":"2017-03-25T15:17:23-07:00","disabled_at":null,"deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"PFTBNU5","internal_id":992996129}'
51
+ http_version:
52
+ recorded_at: Sat, 25 Mar 2017 22:19:56 GMT
53
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,124 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://tophatter.dev/merchant_api/v1/products/schema.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: access_token=293da6763df7cb3b894a1831addcb52d
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/"d30532b5aa5255482defc6602f9682b4"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - aba8f939-841a-4be0-9ebb-575224046511
39
+ X-Runtime:
40
+ - '0.018778'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:19:55 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '[{"field":"identifier","name":"Unique ID","required":true,"readonly":false,"description":"The
48
+ unique identifier or SKU that your system uses to recognize this product.
49
+ Only letters, numbers, spaces, dashes and underscores are allowed."},{"field":"category","name":"Category","required":true,"readonly":false,"description":"The
50
+ category of the product. The list of valid categories can be found [here](doc:categories)."},{"field":"title","name":"Title","required":true,"readonly":false,"description":"The
51
+ name of the product."},{"field":"description","name":"Description","required":true,"readonly":false,"description":"The
52
+ description of the product. Should not contain HTML. Newlines are okay."},{"field":"condition","name":"Condition","required":true,"readonly":false,"description":"The
53
+ condition of the product. The list of valid conditions can be found [here](doc:conditions)."},{"field":"brand","name":"Brand","required":false,"readonly":false,"description":"The
54
+ brand of the product (if any). The list of valid brands can be found [here](doc:brands)."},{"field":"material","name":"Material","required":false,"readonly":false,"description":"The
55
+ material the product consists of. The list of recommended materials can be
56
+ found [here](doc:materials)."},{"field":"available_quantity","name":"Available
57
+ Quantity","required":false,"readonly":true,"description":"The sum of quantity
58
+ for each variation minus the number of items which have been won and are awaiting
59
+ payment."},{"field":"variations","name":"Variations","required":true,"readonly":false,"description":"A
60
+ hash of product variations, keyed by the unique identifier of each variation.
61
+ A product variation consists of a unique id, size, color, and quantity. Both
62
+ size and color are optional. When specifying a size or color please refer
63
+ to the list of recommended [sizes](doc:size) and [color](doc:colors)."},{"field":"starting_bid","name":"Starting
64
+ Bid","required":false,"readonly":false,"description":"The starting price of
65
+ a product when it is sold in an auction. All new products must start at $1."},{"field":"buy_now_price","name":"Buy
66
+ Now Price","required":true,"readonly":false,"description":"The price of the
67
+ product when a user purchases one via the \"Buy Now\" option."},{"field":"retail_price","name":"Retail
68
+ Price","required":false,"readonly":false,"description":"The Manufacturer''s
69
+ Suggested Retail Price. This field is recommended as it will show as a strikethrough
70
+ price and appears next to the selling price for the product."},{"field":"cost_basis","name":"Cost
71
+ Basis","required":false,"readonly":false,"description":"The original cost
72
+ (to you) of a product. Specifying it will allow you to easily see your profits."},{"field":"success_fee_bid","name":"Success
73
+ Fee Bid","required":false,"readonly":false,"description":"The Success Fee
74
+ Bid for this product."},{"field":"shipping_price","name":"Shipping Price","required":true,"readonly":false,"description":"The
75
+ shipping price of the product when someone in the US purchases one. This price
76
+ determines the shipping price to other countries when you set up your [shipping
77
+ rates](https://tophatter.com/sellers/shipping_rates)."},{"field":"shipping_origin","name":"Shipping
78
+ Origin","required":true,"readonly":false,"description":"The country the product
79
+ ships from."},{"field":"weight","name":"Shipping Weight In Ounces","required":false,"readonly":false,"description":"The
80
+ weight (in ounces) of the package when you ship this item. Used to help determine
81
+ shipping costs in certain scenarios."},{"field":"days_to_fulfill","name":"Days
82
+ To Process Order","required":true,"readonly":false,"description":"The number
83
+ of days (after purchase) that it will take you to process & fulfill the order
84
+ by shipping the item."},{"field":"days_to_deliver","name":"Days To Deliver","required":true,"readonly":false,"description":"The
85
+ number of days you expect the shipment to be in transit to the buyer. Do not
86
+ include the number of days it will take to fulfill the order."},{"field":"expedited_shipping_price","name":"Expedited
87
+ Shipping Price","required":false,"readonly":false,"description":"The shipping
88
+ price of the product when someone in the US purchases one and chooses expedited
89
+ shipping."},{"field":"expedited_days_to_deliver","name":"Expedited Delivery
90
+ Time","required":false,"readonly":false,"description":"The number of days
91
+ you expect the shipment to be in transit to the buyer when the buyer chooses
92
+ expedited shipping."},{"field":"buy_one_get_one_price","name":"Buy One Get
93
+ One Price","required":false,"readonly":false,"description":"Offer \"Buy One
94
+ Get One\" for $XX (should include any additional shipping cost)."},{"field":"accessory_price","name":"Accessory
95
+ Price","required":false,"readonly":false,"description":"Offer an accessory
96
+ for $XX."},{"field":"accessory_description","name":"Accessory Description","required":false,"readonly":false,"description":"Description
97
+ of the accessory."},{"field":"primary_image","name":"Primary Image","required":true,"readonly":false,"description":"URL
98
+ of a photo of your product. Link directly to the image, not the page where
99
+ it is located. We accept JPEG, PNG or GIF format. Images should be at least
100
+ 500x480 pixels in size."},{"field":"extra_images","name":"Extra Images","required":true,"readonly":false,"description":"URLs
101
+ of extra photos of your product. Link directly to the image, not the page
102
+ where it is located. Same rules apply as primary_image. At least one extra
103
+ image is required. You can specify multiple URLs separated by the character
104
+ \"|\". Example: http://imgur.com/foo|http://imgur.com/bar"},{"field":"all_images","name":"All
105
+ Images","required":false,"readonly":true,"description":"All images in all
106
+ available sizes (large, thumbnail, etc.)"},{"field":"ratings_average","name":"Ratings
107
+ Average","required":false,"readonly":true,"description":"For internal use."},{"field":"ratings_count","name":"Ratings
108
+ Count","required":false,"readonly":true,"description":"For internal use."},{"field":"created_at","name":"Created
109
+ At","required":false,"readonly":true,"description":"The date and time the
110
+ product was created."},{"field":"updated_at","name":"Updated At","required":false,"readonly":true,"description":"The
111
+ date and time the product was last updated."},{"field":"disabled_at","name":"Disabled
112
+ At","required":false,"readonly":false,"description":"The date and time the
113
+ product was disabled (if it is disabled)."},{"field":"deleted_at","name":"Deleted
114
+ At","required":false,"readonly":true,"description":"The date and time the
115
+ product was deleted (if it is deleted)."},{"field":"blacklisted_at","name":"Blacklisted
116
+ At","required":false,"readonly":true,"description":"For internal use."},{"field":"admin_hold_at","name":"Admin
117
+ Hold At","required":false,"readonly":true,"description":"For internal use."},{"field":"minimum_alerts_needed","name":"Minimum
118
+ Alerts Needed","required":false,"readonly":true,"description":"For internal
119
+ use."},{"field":"slug","name":"Slug","required":false,"readonly":true,"description":"For
120
+ internal use."},{"field":"internal_id","name":"Internal ID","required":false,"readonly":true,"description":"For
121
+ internal use."}]'
122
+ http_version:
123
+ recorded_at: Sat, 25 Mar 2017 22:19:55 GMT
124
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://tophatter.dev/merchant_api/v1/products/search.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: query=Cute&page=1&per_page=5&pagination=&access_token=293da6763df7cb3b894a1831addcb52d
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Length:
15
+ - '86'
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/"b7c8bdaf8a524f735a6698c280296bda"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 3d1c4167-b94f-431c-93b2-93dbbc3dec64
39
+ X-Runtime:
40
+ - '0.486159'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:19:56 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '[{"identifier":"C T.3","category":"Apparel | Tops | Shirts","title":"Cute
48
+ Top 3 - Sizes & Colors","description":"This is a cute top.","condition":"New","brand":null,"material":null,"available_quantity":39,"variations":[{"identifier":"CT3-S-BLUE","size":"S","color":"Blue","quantity":10,"created_at":"2017-03-25T15:17:23-07:00"},{"identifier":"CT3-S-PINK","size":"S","color":"Pink","quantity":10,"created_at":"2017-03-25T15:17:23-07:00"},{"identifier":"CT3-M-BLUE","size":"M","color":"Blue","quantity":10,"created_at":"2017-03-25T15:17:23-07:00"},{"identifier":"CT3-M-PINK","size":"M","color":"Pink","quantity":10,"created_at":"2017-03-25T15:17:23-07:00"}],"starting_bid":1,"buy_now_price":10,"retail_price":15,"cost_basis":null,"minimum_alerts_needed":0,"success_fee_bid":null,"shipping_price":5,"shipping_origin":"Canada","weight":null,"days_to_fulfill":5,"days_to_deliver":10,"expedited_shipping_price":null,"expedited_days_to_deliver":null,"buy_one_get_one_price":null,"accessory_price":null,"accessory_description":null,"primary_image":"https://d38eepresuu519.cloudfront.net/56a63fd91ba79ff0abb7fe35b86db375/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/10633836e10239001fa830ab6f36071a/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/56a63fd91ba79ff0abb7fe35b86db375/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/56a63fd91ba79ff0abb7fe35b86db375/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/56a63fd91ba79ff0abb7fe35b86db375/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/56a63fd91ba79ff0abb7fe35b86db375/large.jpg","original":"https://d38eepresuu519.cloudfront.net/56a63fd91ba79ff0abb7fe35b86db375/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/10633836e10239001fa830ab6f36071a/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/10633836e10239001fa830ab6f36071a/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/10633836e10239001fa830ab6f36071a/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/10633836e10239001fa830ab6f36071a/large.jpg","original":"https://d38eepresuu519.cloudfront.net/10633836e10239001fa830ab6f36071a/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:17:23-07:00","updated_at":"2017-03-25T15:17:24-07:00","disabled_at":null,"deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"C:T~3","internal_id":623229114},{"identifier":"C_T_2","category":"Apparel
49
+ | Tops | Shirts","title":"Cute Top 2 - Colors","description":"This is a cute
50
+ top.","condition":"New","brand":null,"material":null,"available_quantity":17,"variations":[{"identifier":"CT2-BLUE","size":null,"color":"Blue","quantity":10,"created_at":"2017-03-25T15:17:23-07:00"},{"identifier":"CT2-PINK","size":null,"color":"Pink","quantity":10,"created_at":"2017-03-25T15:17:23-07:00"}],"starting_bid":1,"buy_now_price":10,"retail_price":15,"cost_basis":null,"minimum_alerts_needed":0,"success_fee_bid":null,"shipping_price":5,"shipping_origin":"United
51
+ States","weight":null,"days_to_fulfill":5,"days_to_deliver":10,"expedited_shipping_price":null,"expedited_days_to_deliver":null,"buy_one_get_one_price":null,"accessory_price":null,"accessory_description":null,"primary_image":"https://d38eepresuu519.cloudfront.net/4abc117c40f5f5064f2919af4be095bf/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/5d9419e28dfb7cb8c4542e5c525ccba3/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/4abc117c40f5f5064f2919af4be095bf/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/4abc117c40f5f5064f2919af4be095bf/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/4abc117c40f5f5064f2919af4be095bf/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/4abc117c40f5f5064f2919af4be095bf/large.jpg","original":"https://d38eepresuu519.cloudfront.net/4abc117c40f5f5064f2919af4be095bf/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/5d9419e28dfb7cb8c4542e5c525ccba3/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/5d9419e28dfb7cb8c4542e5c525ccba3/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/5d9419e28dfb7cb8c4542e5c525ccba3/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/5d9419e28dfb7cb8c4542e5c525ccba3/large.jpg","original":"https://d38eepresuu519.cloudfront.net/5d9419e28dfb7cb8c4542e5c525ccba3/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:17:23-07:00","updated_at":"2017-03-25T15:17:24-07:00","disabled_at":null,"deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"C_T_2","internal_id":304252963},{"identifier":"C-T-1","category":"Apparel
52
+ | Tops | Shirts","title":"Cute Top 1 - Sizes","description":"This is a cute
53
+ top.","condition":"New","brand":null,"material":null,"available_quantity":8,"variations":[{"identifier":"CT1-S","size":"S","color":null,"quantity":10,"created_at":"2017-03-25T15:17:23-07:00"}],"starting_bid":1,"buy_now_price":10,"retail_price":15,"cost_basis":null,"minimum_alerts_needed":0,"success_fee_bid":null,"shipping_price":5,"shipping_origin":"United
54
+ States","weight":null,"days_to_fulfill":5,"days_to_deliver":10,"expedited_shipping_price":null,"expedited_days_to_deliver":null,"buy_one_get_one_price":null,"accessory_price":null,"accessory_description":null,"primary_image":"https://d38eepresuu519.cloudfront.net/e3011018dd9fba13ba8094ff9411bb46/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/69ba52559996f45811d85eed9f807861/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/e3011018dd9fba13ba8094ff9411bb46/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/e3011018dd9fba13ba8094ff9411bb46/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/e3011018dd9fba13ba8094ff9411bb46/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/e3011018dd9fba13ba8094ff9411bb46/large.jpg","original":"https://d38eepresuu519.cloudfront.net/e3011018dd9fba13ba8094ff9411bb46/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/69ba52559996f45811d85eed9f807861/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/69ba52559996f45811d85eed9f807861/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/69ba52559996f45811d85eed9f807861/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/69ba52559996f45811d85eed9f807861/large.jpg","original":"https://d38eepresuu519.cloudfront.net/69ba52559996f45811d85eed9f807861/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:17:23-07:00","updated_at":"2017-03-25T15:17:24-07:00","disabled_at":null,"deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"C-T-1","internal_id":187423131}]'
55
+ http_version:
56
+ recorded_at: Sat, 25 Mar 2017 22:19:56 GMT
57
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,103 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://tophatter.dev/merchant_api/v1/products/retrieve.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: identifier=PFTBNU5&access_token=293da6763df7cb3b894a1831addcb52d
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/"f000b8382cb77d819553cfe7d070efee"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 95faff0d-9cf1-46fc-829b-0fb9618cad80
39
+ X-Runtime:
40
+ - '0.033118'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:25:46 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"identifier":"PFTBNU5","category":"Apparel | Tops | Shirts","title":"Pay
48
+ Flow Test, With Shipping Price","description":"This is the lot description.","condition":"New","brand":"Foo","material":null,"available_quantity":100,"variations":[{"identifier":"PFTBNU5","size":null,"color":null,"quantity":100,"created_at":"2017-03-25T15:17:23-07:00"}],"starting_bid":18,"buy_now_price":399,"retail_price":1099,"cost_basis":"300.0","minimum_alerts_needed":0,"success_fee_bid":null,"shipping_price":13,"shipping_origin":"United
49
+ States","weight":6,"days_to_fulfill":4,"days_to_deliver":4,"expedited_shipping_price":23,"expedited_days_to_deliver":1,"buy_one_get_one_price":50,"accessory_price":25,"accessory_description":"This
50
+ is a super awesome accessory.","primary_image":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/large.jpg","original":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/large.jpg","original":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:17:23-07:00","updated_at":"2017-03-25T15:25:07-07:00","disabled_at":null,"deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"PFTBNU5","internal_id":992996129}'
51
+ http_version:
52
+ recorded_at: Sat, 25 Mar 2017 22:25:46 GMT
53
+ - request:
54
+ method: post
55
+ uri: http://tophatter.dev/merchant_api/v1/products/update.json
56
+ body:
57
+ encoding: UTF-8
58
+ string: buy_now_price=100&identifier=PFTBNU5&access_token=293da6763df7cb3b894a1831addcb52d
59
+ headers:
60
+ Accept:
61
+ - "*/*; q=0.5, application/xml"
62
+ Accept-Encoding:
63
+ - gzip, deflate
64
+ Content-Length:
65
+ - '82'
66
+ Content-Type:
67
+ - application/x-www-form-urlencoded
68
+ User-Agent:
69
+ - Ruby
70
+ response:
71
+ status:
72
+ code: 200
73
+ message: OK
74
+ headers:
75
+ X-Frame-Options:
76
+ - SAMEORIGIN
77
+ X-Xss-Protection:
78
+ - 1; mode=block
79
+ X-Content-Type-Options:
80
+ - nosniff
81
+ Content-Type:
82
+ - application/json; charset=utf-8
83
+ Etag:
84
+ - W/"d62e257af692836255a2aa3b9ab5f426"
85
+ Cache-Control:
86
+ - max-age=0, private, must-revalidate
87
+ X-Request-Id:
88
+ - 95228b7f-bd15-45c3-915e-86d5e1e526cf
89
+ X-Runtime:
90
+ - '0.072526'
91
+ Date:
92
+ - Sat, 25 Mar 2017 22:25:47 GMT
93
+ Connection:
94
+ - close
95
+ body:
96
+ encoding: UTF-8
97
+ string: '{"identifier":"PFTBNU5","category":"Apparel | Tops | Shirts","title":"Pay
98
+ Flow Test, With Shipping Price","description":"This is the lot description.","condition":"New","brand":"Foo","material":null,"available_quantity":100,"variations":[{"identifier":"PFTBNU5","size":null,"color":null,"quantity":100,"created_at":"2017-03-25T15:17:23-07:00"}],"starting_bid":18,"buy_now_price":100,"retail_price":1099,"cost_basis":"300.0","minimum_alerts_needed":0,"success_fee_bid":null,"shipping_price":13,"shipping_origin":"United
99
+ States","weight":6,"days_to_fulfill":4,"days_to_deliver":4,"expedited_shipping_price":23,"expedited_days_to_deliver":1,"buy_one_get_one_price":50,"accessory_price":25,"accessory_description":"This
100
+ is a super awesome accessory.","primary_image":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/large.jpg","original":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/large.jpg","original":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:17:23-07:00","updated_at":"2017-03-25T15:25:47-07:00","disabled_at":null,"deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"PFTBNU5","internal_id":992996129}'
101
+ http_version:
102
+ recorded_at: Sat, 25 Mar 2017 22:25:47 GMT
103
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://tophatter.dev/merchant_api/v1/variations.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: product_identifier=C-T-1&identifier=CT1-M&size=M&quantity=99&access_token=293da6763df7cb3b894a1831addcb52d
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Length:
15
+ - '106'
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/"261be41a22777e966b1ac9996bedc231"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 19aa5824-ea6c-43a4-9708-650bf7124592
39
+ X-Runtime:
40
+ - '0.249668'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:51:01 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"product_identifier":"C-T-1","identifier":"CT1-M","size":"M","color":null,"quantity":99,"created_at":"2017-03-25T15:51:00-07:00"}'
48
+ http_version:
49
+ recorded_at: Sat, 25 Mar 2017 22:51:01 GMT
50
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://tophatter.dev/merchant_api/v1/variations/retrieve.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: identifier=CT1-S&access_token=293da6763df7cb3b894a1831addcb52d
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Length:
15
+ - '62'
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/"c8a1f6ecccd46d2a313a1f258f8ba01b"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 24d177fe-9ad3-499e-899c-e3ee762b6da5
39
+ X-Runtime:
40
+ - '0.086472'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:51:00 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":999,"created_at":"2017-03-25T15:17:23-07:00"}'
48
+ http_version:
49
+ recorded_at: Sat, 25 Mar 2017 22:51:00 GMT
50
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://tophatter.dev/merchant_api/v1/variations/schema.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: access_token=293da6763df7cb3b894a1831addcb52d
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/"4cca3ba8135e44f1993e296fef83396e"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 43aedc38-c07f-4ba0-88f0-1129dd6f6eec
39
+ X-Runtime:
40
+ - '0.509169'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:51:00 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '[{"field":"product_identifier","name":"Product Unique ID","required":true,"readonly":true,"description":"The
48
+ unique identifier of the product this variation belongs to."},{"field":"identifier","name":"Variation
49
+ Unique ID (SKU)","required":true,"readonly":true,"description":"The unique
50
+ identifier or SKU that your system uses to recognize this product variation.
51
+ Only letters, numbers, spaces, dashes and underscores are allowed."},{"field":"size","name":"Size","required":false,"readonly":true,"description":"The
52
+ size of the variation. You can specify any size you''d like, but we recommend
53
+ you use a size from our standardized list of sizes here: https://tophatter.readme.io/docs/sizes."},{"field":"color","name":"Color","required":false,"readonly":true,"description":"You
54
+ can specify any color you''d like, but we recommend you use a size from our
55
+ standardized list of colors here: https://tophatter.readme.io/docs/colors."},{"field":"quantity","name":"Quantity","required":true,"readonly":false,"description":"The
56
+ quantity available to sell for this variation."},{"field":"created_at","name":"Created
57
+ At","required":false,"readonly":true,"description":"The date and time the
58
+ variation was created."}]'
59
+ http_version:
60
+ recorded_at: Sat, 25 Mar 2017 22:51:00 GMT
61
+ recorded_with: VCR 3.0.3