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,53 @@
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=293da6763df7cb3b894a1831addcb52d
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/"8800c06c6bd0c8549d58c2201f4c54f5"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 60850788-fcbb-4c13-b5b4-771f0169ee7d
39
+ X-Runtime:
40
+ - '0.534084'
41
+ Date:
42
+ - Sat, 25 Mar 2017 23:09:22 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
+ RIPE, Not Shipped","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-25T14:06:54-07:00","created_at":"2017-03-25T16:07:55-07:00"}'
51
+ http_version:
52
+ recorded_at: Sat, 25 Mar 2017 23:09:22 GMT
53
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,53 @@
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=c574bc2f5f4e9da1975e7ae1103eea24
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/"c914906526948d673b81e2c36858da50"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 9022332d-53cd-49be-885a-1ffd964659b0
39
+ X-Runtime:
40
+ - '2.130336'
41
+ Date:
42
+ - Sat, 25 Mar 2017 23:47:57 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},"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:44:53-07:00","created_at":"2017-03-25T16:45:54-07:00"}'
51
+ http_version:
52
+ recorded_at: Sat, 25 Mar 2017 23:47:57 GMT
53
+ 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/orders/retrieve.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: order_id=359887509&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/"9a17fef1262e80950bc9615373c78a5d"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 7633b35b-7110-4065-bdb5-c87871d2b976
39
+ X-Runtime:
40
+ - '0.043379'
41
+ Date:
42
+ - Sat, 25 Mar 2017 23:09: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
+ RIPE, Not Shipped","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-25T14:06:54-07:00","created_at":"2017-03-25T16:07:55-07:00"}'
51
+ http_version:
52
+ recorded_at: Sat, 25 Mar 2017 23:09:22 GMT
53
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,81 @@
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=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/"24c92ec13cfc95547df3f24f5c7c600e"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 21b2c686-e4df-4b09-811a-b0585157ddf9
39
+ X-Runtime:
40
+ - '0.681000'
41
+ Date:
42
+ - Sat, 25 Mar 2017 23:09:21 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: Sat, 25 Mar 2017 23:09:21 GMT
81
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://tophatter.dev/merchant_api/v1/products.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: status=&category=&page=1&per_page=5&pagination=&sort=&access_token=293da6763df7cb3b894a1831addcb52d
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Length:
15
+ - '99'
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/"6ef8bbc3e687134c71bb1c0069b63ed9"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - cf775ca6-719f-46cf-97be-7f985eb864dc
39
+ X-Runtime:
40
+ - '0.053070'
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},{"identifier":"C
51
+ T.3","category":"Apparel | Tops | Shirts","title":"Cute Top 3 - Sizes & Colors","description":"This
52
+ 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":"PFTBNU3","category":"Apparel
53
+ | Tops | Shirts","title":"Pay Flow Test, Buy Now Canada","description":"This
54
+ is the lot description.","condition":"New","brand":"Foo","material":null,"available_quantity":100,"variations":[{"identifier":"PFTBNU3","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":5,"shipping_origin":"United
55
+ States","weight":6,"days_to_fulfill":4,"days_to_deliver":4,"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/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":"PFTBNU3","internal_id":491790261},{"identifier":"PFTBNU2","category":"Apparel
56
+ | Tops | Shirts","title":"Pay Flow Test, Buy Now With Expedited Shipping","description":"This
57
+ is the lot description.","condition":"New","brand":"Foo","material":null,"available_quantity":100,"variations":[{"identifier":"PFTBNU2","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":0,"shipping_origin":"United
58
+ States","weight":6,"days_to_fulfill":4,"days_to_deliver":4,"expedited_shipping_price":5,"expedited_days_to_deliver":1,"buy_one_get_one_price":null,"accessory_price":null,"accessory_description":null,"primary_image":"https://d38eepresuu519.cloudfront.net/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg","all_images":[{"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"},{"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"}],"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":"PFTBNU2","internal_id":482541585},{"identifier":"PFTBNU4","category":"Apparel
59
+ | Tops | Shirts","title":"Pay Flow Test, Buy Now, Scheduled Lot","description":"This
60
+ is the lot description.","condition":"New","brand":"Foo","material":null,"available_quantity":100,"variations":[{"identifier":"PFTBNU4","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":5,"shipping_origin":"United
61
+ States","weight":6,"days_to_fulfill":4,"days_to_deliver":4,"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/60ded7eee5b92cdaffa13dd1ee5c0305/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/0127b02033b5ec927eef961f74688d5d/original.jpg","all_images":[{"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"},{"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"}],"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":"PFTBNU4","internal_id":413333653}]'
62
+ http_version:
63
+ recorded_at: Sat, 25 Mar 2017 22:19:56 GMT
64
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://tophatter.dev/merchant_api/v1/products.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: identifier=6631A&category=Electronics%7CHardware%20(Computers%2FTablets%2FPhones)%7CMobile&title=Apple%20iPhone%206S&description=This%20is%20the%20description.&condition=Refurbished%20-%20Manufacturer&starting_bid=1&buy_now_price=150&cost_basis=75&shipping_price=5.0&success_fee_bid=0.5&shipping_origin=United%20States&weight=6&days_to_fulfill=3&days_to_deliver=5&variations[6631A-WHITE][identifier]=6631A-WHITE&variations[6631A-WHITE][color]=White&variations[6631A-WHITE][quantity]=1&variations[6631A-BLACK][identifier]=6631A-BLACK&variations[6631A-BLACK][color]=Black&variations[6631A-BLACK][quantity]=2&primary_image=https%3A%2F%2Fd38eepresuu519.cloudfront.net%2Fb2aa7d2708324f756ffee551ba43a74f%2Foriginal.jpg&extra_images=https%3A%2F%2Fd38eepresuu519.cloudfront.net%2Fe615c55184c06f391dbd768f855904e6%2Foriginal.jpg%7Chttps%3A%2F%2Fd38eepresuu519.cloudfront.net%2F7cd125f0fa42c965675eabaf3309aa6d%2Foriginal.jpg&access_token=293da6763df7cb3b894a1831addcb52d
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Length:
15
+ - '962'
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/"76bff7b3a144b8fa29b96a9f5d1906c2"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - ca32ed68-3d5b-4120-a5f4-b641e5f18499
39
+ X-Runtime:
40
+ - '9.720093'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:20:06 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"identifier":"6631A","category":"Electronics | Hardware (Computers/Tablets/Phones)
48
+ | Mobile","title":"Apple iPhone 6S","description":"This is the description.","condition":"Refurbished
49
+ - Manufacturer","brand":null,"material":null,"available_quantity":0,"variations":[{"identifier":"6631A-BLACK","size":null,"color":"Black","quantity":2,"created_at":"2017-03-25T15:20:05-07:00"},{"identifier":"6631A-WHITE","size":null,"color":"White","quantity":1,"created_at":"2017-03-25T15:20:05-07:00"}],"starting_bid":1,"buy_now_price":150,"retail_price":null,"cost_basis":"75.0","minimum_alerts_needed":0,"success_fee_bid":"0.5","shipping_price":5,"shipping_origin":"United
50
+ States","weight":6,"days_to_fulfill":3,"days_to_deliver":5,"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/b2aa7d2708324f756ffee551ba43a74f/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/original.jpg|https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/large.jpg","original":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/large.jpg","original":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/large.jpg","original":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:20:05-07:00","updated_at":"2017-03-25T15:20:05-07:00","disabled_at":null,"deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"6631A","internal_id":992996131}'
51
+ http_version:
52
+ recorded_at: Sat, 25 Mar 2017 22:20:06 GMT
53
+ 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=6631A&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/"ec60d17a676ed04f97f070b202540be3"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 7a1ba06b-cdb0-4290-a905-70b5906bcdbc
39
+ X-Runtime:
40
+ - '0.034980'
41
+ Date:
42
+ - Sat, 25 Mar 2017 22:33:13 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"identifier":"6631A","category":"Electronics | Hardware (Computers/Tablets/Phones)
48
+ | Mobile","title":"Apple iPhone 6S","description":"This is the description.","condition":"Refurbished
49
+ - Manufacturer","brand":null,"material":null,"available_quantity":3,"variations":[{"identifier":"6631A-BLACK","size":null,"color":"Black","quantity":2,"created_at":"2017-03-25T15:20:05-07:00"},{"identifier":"6631A-WHITE","size":null,"color":"White","quantity":1,"created_at":"2017-03-25T15:20:05-07:00"}],"starting_bid":1,"buy_now_price":150,"retail_price":null,"cost_basis":"75.0","minimum_alerts_needed":0,"success_fee_bid":"0.5","shipping_price":5,"shipping_origin":"United
50
+ States","weight":6,"days_to_fulfill":3,"days_to_deliver":5,"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/b2aa7d2708324f756ffee551ba43a74f/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/original.jpg|https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/large.jpg","original":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/large.jpg","original":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/large.jpg","original":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:20:05-07:00","updated_at":"2017-03-25T15:20:05-07:00","disabled_at":null,"deleted_at":null,"blacklisted_at":null,"admin_hold_at":null,"slug":"6631A","internal_id":992996131}'
51
+ http_version:
52
+ recorded_at: Sat, 25 Mar 2017 22:33:13 GMT
53
+ - request:
54
+ method: post
55
+ uri: http://tophatter.dev/merchant_api/v1/products/delete.json
56
+ body:
57
+ encoding: UTF-8
58
+ string: identifier=6631A&access_token=293da6763df7cb3b894a1831addcb52d
59
+ headers:
60
+ Accept:
61
+ - "*/*; q=0.5, application/xml"
62
+ Accept-Encoding:
63
+ - gzip, deflate
64
+ Content-Length:
65
+ - '62'
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/"ae15184f71e6b3b0df0d08ece54c6c64"
85
+ Cache-Control:
86
+ - max-age=0, private, must-revalidate
87
+ X-Request-Id:
88
+ - 6803f769-3aec-4cc7-a42b-b0a1a00ba4be
89
+ X-Runtime:
90
+ - '0.044500'
91
+ Date:
92
+ - Sat, 25 Mar 2017 22:33:13 GMT
93
+ Connection:
94
+ - close
95
+ body:
96
+ encoding: UTF-8
97
+ string: '{"identifier":"6631A-f43d76-DELETED","category":"Electronics | Hardware
98
+ (Computers/Tablets/Phones) | Mobile","title":"Apple iPhone 6S","description":"This
99
+ is the description.","condition":"Refurbished - Manufacturer","brand":null,"material":null,"available_quantity":3,"variations":[{"identifier":"6631A-BLACK-ef2a6f-DELETED","size":null,"color":"Black","quantity":2,"created_at":"2017-03-25T15:20:05-07:00"},{"identifier":"6631A-WHITE-b76777-DELETED","size":null,"color":"White","quantity":1,"created_at":"2017-03-25T15:20:05-07:00"}],"starting_bid":1,"buy_now_price":150,"retail_price":null,"cost_basis":"75.0","minimum_alerts_needed":0,"success_fee_bid":"0.5","shipping_price":5,"shipping_origin":"United
100
+ States","weight":6,"days_to_fulfill":3,"days_to_deliver":5,"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/b2aa7d2708324f756ffee551ba43a74f/original.jpg","extra_images":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/original.jpg|https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/original.jpg","all_images":[{"thumbnail":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/large.jpg","original":"https://d38eepresuu519.cloudfront.net/b2aa7d2708324f756ffee551ba43a74f/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/large.jpg","original":"https://d38eepresuu519.cloudfront.net/e615c55184c06f391dbd768f855904e6/original.jpg"},{"thumbnail":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/thumbnail.jpg","square":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/square.jpg","medium":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/medium.jpg","large":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/large.jpg","original":"https://d38eepresuu519.cloudfront.net/7cd125f0fa42c965675eabaf3309aa6d/original.jpg"}],"ratings_count":null,"ratings_average":null,"created_at":"2017-03-25T15:20:05-07:00","updated_at":"2017-03-25T15:33:13-07:00","disabled_at":"2017-03-25T15:33:13-07:00","deleted_at":"2017-03-25T15:33:13-07:00","blacklisted_at":null,"admin_hold_at":null,"slug":"6631A","internal_id":992996131}'
101
+ http_version:
102
+ recorded_at: Sat, 25 Mar 2017 22:33:13 GMT
103
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,103 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://tophatter.dev/merchant_api/v1/products/enable.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/"cf8644931ece09e5bcc4495769daf3ef"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - fa5bf7d8-8bc8-4590-a9d9-f753e1d45ab7
39
+ X-Runtime:
40
+ - '0.037580'
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":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:26:27 GMT
53
+ - request:
54
+ method: post
55
+ uri: http://tophatter.dev/merchant_api/v1/products/disable.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/"d0b44d9c79770f613d988a192266c7c3"
85
+ Cache-Control:
86
+ - max-age=0, private, must-revalidate
87
+ X-Request-Id:
88
+ - 3e6abe31-87e3-40f9-becc-eb9770dd3f37
89
+ X-Runtime:
90
+ - '0.039369'
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":"2017-03-25T15:26:27-07:00","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