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.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -7
- data/Gemfile +1 -3
- data/README.md +0 -5
- data/lib/tophatter_merchant.rb +3 -8
- data/lib/tophatter_merchant/metadata.rb +0 -13
- data/lib/tophatter_merchant/order.rb +45 -24
- data/lib/tophatter_merchant/product.rb +46 -79
- data/lib/tophatter_merchant/resource.rb +23 -47
- data/lib/tophatter_merchant/variation.rb +15 -15
- data/spec/spec_helper.rb +0 -10
- data/spec/tophatter_merchant/metadata_spec.rb +12 -20
- data/spec/tophatter_merchant/order_spec.rb +4 -11
- data/spec/tophatter_merchant/product_spec.rb +11 -27
- data/spec/tophatter_merchant/variation_spec.rb +3 -10
- data/tophatter-merchant.gemspec +1 -2
- metadata +3 -77
- data/spec/cassettes/TophatterMerchant_Metadata/_carriers/returns_carriers.yml +0 -87
- data/spec/cassettes/TophatterMerchant_Metadata/_categories/returns_categories.yml +0 -131
- data/spec/cassettes/TophatterMerchant_Metadata/_colors/returns_colors.yml +0 -50
- data/spec/cassettes/TophatterMerchant_Metadata/_conditions/returns_conditions.yml +0 -52
- data/spec/cassettes/TophatterMerchant_Metadata/_countries/returns_countries.yml +0 -128
- data/spec/cassettes/TophatterMerchant_Metadata/_country_codes/returns_country_codes.yml +0 -161
- data/spec/cassettes/TophatterMerchant_Metadata/_materials/returns_materials.yml +0 -69
- data/spec/cassettes/TophatterMerchant_Metadata/_metadata/returns_metadata.yml +0 -540
- data/spec/cassettes/TophatterMerchant_Metadata/_provinces/returns_provinces.yml +0 -52
- data/spec/cassettes/TophatterMerchant_Metadata/_sizes/returns_sizes.yml +0 -58
- data/spec/cassettes/TophatterMerchant_Metadata/_states/returns_states.yml +0 -58
- data/spec/cassettes/TophatterMerchant_Metadata/_territories/returns_territories.yml +0 -52
- data/spec/cassettes/TophatterMerchant_Order/_all/returns_all_orders.yml +0 -56
- data/spec/cassettes/TophatterMerchant_Order/_fulfill/fulfills_an_order.yml +0 -53
- data/spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml +0 -53
- data/spec/cassettes/TophatterMerchant_Order/_retrieve/retrieves_an_order.yml +0 -53
- data/spec/cassettes/TophatterMerchant_Order/_schema/returns_the_schema.yml +0 -81
- data/spec/cassettes/TophatterMerchant_Product/_all/returns_all_products.yml +0 -64
- data/spec/cassettes/TophatterMerchant_Product/_create/creates_a_product.yml +0 -53
- data/spec/cassettes/TophatterMerchant_Product/_delete/deletes_a_product.yml +0 -103
- data/spec/cassettes/TophatterMerchant_Product/_disable/disables_a_product.yml +0 -103
- data/spec/cassettes/TophatterMerchant_Product/_enable/enables_a_product.yml +0 -103
- data/spec/cassettes/TophatterMerchant_Product/_retrieve/retrieves_a_product.yml +0 -53
- data/spec/cassettes/TophatterMerchant_Product/_schema/returns_the_schema.yml +0 -124
- data/spec/cassettes/TophatterMerchant_Product/_search/returns_products_matching_search_terms.yml +0 -57
- data/spec/cassettes/TophatterMerchant_Product/_update/updates_a_product.yml +0 -103
- data/spec/cassettes/TophatterMerchant_Variation/_create/creates_a_variation.yml +0 -50
- data/spec/cassettes/TophatterMerchant_Variation/_retrieve/retrieves_a_variation.yml +0 -50
- data/spec/cassettes/TophatterMerchant_Variation/_schema/returns_the_schema.yml +0 -64
- data/spec/cassettes/TophatterMerchant_Variation/_update/updates_a_variation.yml +0 -97
@@ -1,124 +0,0 @@
|
|
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=d8f979fc7d14fec0b075c0b73dbafb59
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- "*/*; q=0.5, application/xml"
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
Content-Length:
|
15
|
-
- '45'
|
16
|
-
Content-Type:
|
17
|
-
- application/x-www-form-urlencoded
|
18
|
-
User-Agent:
|
19
|
-
- Ruby
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
X-Frame-Options:
|
26
|
-
- SAMEORIGIN
|
27
|
-
X-Xss-Protection:
|
28
|
-
- 1; mode=block
|
29
|
-
X-Content-Type-Options:
|
30
|
-
- nosniff
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
Etag:
|
34
|
-
- W/"6dca85d24e48b7e1b8fa05197b323666"
|
35
|
-
Cache-Control:
|
36
|
-
- max-age=0, private, must-revalidate
|
37
|
-
X-Request-Id:
|
38
|
-
- a72289da-fae2-4f7f-93b4-ee19ca80d7ef
|
39
|
-
X-Runtime:
|
40
|
-
- '0.060902'
|
41
|
-
Date:
|
42
|
-
- Fri, 31 Mar 2017 23:32:54 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":"shipping_price","name":"Shipping
|
73
|
-
Price","required":true,"readonly":false,"description":"The shipping price
|
74
|
-
of the product when someone in the US purchases one. This price determines
|
75
|
-
the shipping price to other countries when you set up your [shipping rates](https://tophatter.com/sellers/shipping_rates)."},{"field":"days_to_deliver","name":"Days
|
76
|
-
To Deliver","required":true,"readonly":false,"description":"The number of
|
77
|
-
days you expect the shipment to be in transit to the buyer. Do not include
|
78
|
-
the number of days it will take to fulfill the order."},{"field":"expedited_shipping_price","name":"Expedited
|
79
|
-
Shipping Price","required":false,"readonly":false,"description":"The shipping
|
80
|
-
price of the product when someone in the US purchases one and chooses expedited
|
81
|
-
shipping."},{"field":"expedited_days_to_deliver","name":"Expedited Days To
|
82
|
-
Deliver","required":false,"readonly":false,"description":"The number of days
|
83
|
-
you expect the shipment to be in transit to the buyer when the buyer chooses
|
84
|
-
expedited shipping."},{"field":"days_to_fulfill","name":"Days To Process Order","required":true,"readonly":false,"description":"The
|
85
|
-
number of days (after purchase) that it will take you to process & fulfill
|
86
|
-
the order by shipping the item."},{"field":"shipping_origin","name":"Shipping
|
87
|
-
Origin","required":true,"readonly":false,"description":"The country the product
|
88
|
-
ships from."},{"field":"weight","name":"Shipping Weight In Ounces","required":false,"readonly":false,"description":"The
|
89
|
-
weight (in ounces) of the package when you ship this item. Used to help determine
|
90
|
-
shipping costs in certain scenarios."},{"field":"buy_one_get_one_price","name":"Buy
|
91
|
-
One Get One Price","required":false,"readonly":false,"description":"Offer
|
92
|
-
\"Buy One Get One\" for $XX (should include any additional shipping cost)."},{"field":"accessory_price","name":"Accessory
|
93
|
-
Price","required":false,"readonly":false,"description":"Offer an accessory
|
94
|
-
for $XX."},{"field":"accessory_description","name":"Accessory Description","required":false,"readonly":false,"description":"Description
|
95
|
-
of the accessory."},{"field":"primary_image","name":"Primary Image","required":true,"readonly":false,"description":"URL
|
96
|
-
of a photo of your product. Link directly to the image, not the page where
|
97
|
-
it is located. We accept JPEG, PNG or GIF format. Images should be at least
|
98
|
-
500x480 pixels in size."},{"field":"extra_images","name":"Extra Images","required":true,"readonly":false,"description":"URLs
|
99
|
-
of extra photos of your product. Link directly to the image, not the page
|
100
|
-
where it is located. Same rules apply as primary_image. At least one extra
|
101
|
-
image is required. You can specify multiple URLs separated by the character
|
102
|
-
\"|\". Example: http://imgur.com/foo|http://imgur.com/bar"},{"field":"all_images","name":"All
|
103
|
-
Images","required":false,"readonly":true,"description":"All images in all
|
104
|
-
available sizes (large, thumbnail, etc.)"},{"field":"ratings_average","name":"Ratings
|
105
|
-
Average","required":false,"readonly":true,"description":"For internal use."},{"field":"ratings_count","name":"Ratings
|
106
|
-
Count","required":false,"readonly":true,"description":"For internal use."},{"field":"created_at","name":"Created
|
107
|
-
At","required":false,"readonly":true,"description":"The date and time the
|
108
|
-
product was created."},{"field":"updated_at","name":"Updated At","required":false,"readonly":true,"description":"The
|
109
|
-
date and time the product was last updated."},{"field":"disabled_at","name":"Disabled
|
110
|
-
At","required":false,"readonly":false,"description":"The date and time the
|
111
|
-
product was disabled (if it is disabled)."},{"field":"deleted_at","name":"Deleted
|
112
|
-
At","required":false,"readonly":true,"description":"The date and time the
|
113
|
-
product was deleted (if it is deleted)."},{"field":"internal_id","name":"Internal
|
114
|
-
ID","required":false,"readonly":true,"description":"For internal use."},{"field":"slug","name":"Slug","required":false,"readonly":true,"description":"For
|
115
|
-
internal use."},{"field":"admin_banned_at","name":"Admin Banned At","required":false,"readonly":true,"description":"For
|
116
|
-
internal use."},{"field":"admin_hold_at","name":"Admin Hold At","required":false,"readonly":true,"description":"For
|
117
|
-
internal use."},{"field":"admin_reason","name":"Admin Reason","required":false,"readonly":true,"description":"For
|
118
|
-
internal use."},{"field":"success_fee_bid_enabled","name":"Success Fee Bid
|
119
|
-
Enabled?","required":false,"readonly":true,"description":"For internal use."},{"field":"success_fee_bid","name":"Success
|
120
|
-
Fee Bid Amount","required":false,"readonly":true,"description":"For internal
|
121
|
-
use."}]'
|
122
|
-
http_version:
|
123
|
-
recorded_at: Fri, 31 Mar 2017 23:32:54 GMT
|
124
|
-
recorded_with: VCR 3.0.3
|
data/spec/cassettes/TophatterMerchant_Product/_search/returns_products_matching_search_terms.yml
DELETED
@@ -1,57 +0,0 @@
|
|
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=d8f979fc7d14fec0b075c0b73dbafb59
|
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/"23065de290e4c6491446a03eed8f3372"
|
35
|
-
Cache-Control:
|
36
|
-
- max-age=0, private, must-revalidate
|
37
|
-
X-Request-Id:
|
38
|
-
- 157ae329-56f9-476c-95e7-458c0d02a649
|
39
|
-
X-Runtime:
|
40
|
-
- '1.003186'
|
41
|
-
Date:
|
42
|
-
- Fri, 31 Mar 2017 23:32:55 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-31T16:32:25-07:00"},{"identifier":"CT3-S-PINK","size":"S","color":"Pink","quantity":10,"created_at":"2017-03-31T16:32:25-07:00"},{"identifier":"CT3-M-BLUE","size":"M","color":"Blue","quantity":10,"created_at":"2017-03-31T16:32:25-07:00"},{"identifier":"CT3-M-PINK","size":"M","color":"Pink","quantity":10,"created_at":"2017-03-31T16:32:25-07:00"}],"starting_bid":1,"buy_now_price":10,"retail_price":15,"cost_basis":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-31T16:32:25-07:00","updated_at":"2017-03-31T16:32:29-07:00","disabled_at":null,"deleted_at":null,"internal_id":623229114,"slug":"C:T~3","admin_banned_at":null,"admin_hold_at":null,"admin_reason":null,"success_fee_bid_enabled":false,"success_fee_bid":null},{"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-31T16:32:25-07:00"},{"identifier":"CT2-PINK","size":null,"color":"Pink","quantity":10,"created_at":"2017-03-31T16:32:25-07:00"}],"starting_bid":1,"buy_now_price":10,"retail_price":15,"cost_basis":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-31T16:32:25-07:00","updated_at":"2017-03-31T16:32:29-07:00","disabled_at":null,"deleted_at":null,"internal_id":304252963,"slug":"C_T_2","admin_banned_at":null,"admin_hold_at":null,"admin_reason":null,"success_fee_bid_enabled":false,"success_fee_bid":null},{"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-31T16:32:25-07:00"}],"starting_bid":1,"buy_now_price":10,"retail_price":15,"cost_basis":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-31T16:32:25-07:00","updated_at":"2017-03-31T16:32:29-07:00","disabled_at":null,"deleted_at":null,"internal_id":187423131,"slug":"C-T-1","admin_banned_at":null,"admin_hold_at":null,"admin_reason":null,"success_fee_bid_enabled":false,"success_fee_bid":null}]'
|
55
|
-
http_version:
|
56
|
-
recorded_at: Fri, 31 Mar 2017 23:32:55 GMT
|
57
|
-
recorded_with: VCR 3.0.3
|
@@ -1,103 +0,0 @@
|
|
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=d8f979fc7d14fec0b075c0b73dbafb59
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- "*/*; q=0.5, application/xml"
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
Content-Length:
|
15
|
-
- '64'
|
16
|
-
Content-Type:
|
17
|
-
- application/x-www-form-urlencoded
|
18
|
-
User-Agent:
|
19
|
-
- Ruby
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
X-Frame-Options:
|
26
|
-
- SAMEORIGIN
|
27
|
-
X-Xss-Protection:
|
28
|
-
- 1; mode=block
|
29
|
-
X-Content-Type-Options:
|
30
|
-
- nosniff
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
Etag:
|
34
|
-
- W/"a301a512e1d5de695255e03b9ac4a119"
|
35
|
-
Cache-Control:
|
36
|
-
- max-age=0, private, must-revalidate
|
37
|
-
X-Request-Id:
|
38
|
-
- fb72c0d0-c06a-465a-a8cd-4520af723248
|
39
|
-
X-Runtime:
|
40
|
-
- '0.066648'
|
41
|
-
Date:
|
42
|
-
- Fri, 31 Mar 2017 23:33:07 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-31T16:32:25-07:00"}],"starting_bid":18,"buy_now_price":399,"retail_price":1099,"cost_basis":"300.0","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-31T16:32:25-07:00","updated_at":"2017-03-31T16:32:25-07:00","disabled_at":null,"deleted_at":null,"internal_id":992996129,"slug":"PFTBNU5","admin_banned_at":null,"admin_hold_at":null,"admin_reason":null,"success_fee_bid_enabled":false,"success_fee_bid":null}'
|
51
|
-
http_version:
|
52
|
-
recorded_at: Fri, 31 Mar 2017 23:33:07 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=d8f979fc7d14fec0b075c0b73dbafb59
|
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/"ddabc2df9c830db453f65bb6c176a844"
|
85
|
-
Cache-Control:
|
86
|
-
- max-age=0, private, must-revalidate
|
87
|
-
X-Request-Id:
|
88
|
-
- 3482e3cb-d5cb-4f93-a8ff-b8b0b4197a47
|
89
|
-
X-Runtime:
|
90
|
-
- '0.101590'
|
91
|
-
Date:
|
92
|
-
- Fri, 31 Mar 2017 23:33:07 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-31T16:32:25-07:00"}],"starting_bid":18,"buy_now_price":100,"retail_price":1099,"cost_basis":"300.0","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-31T16:32:25-07:00","updated_at":"2017-03-31T16:33:07-07:00","disabled_at":null,"deleted_at":null,"internal_id":992996129,"slug":"PFTBNU5","admin_banned_at":null,"admin_hold_at":null,"admin_reason":null,"success_fee_bid_enabled":false,"success_fee_bid":null}'
|
101
|
-
http_version:
|
102
|
-
recorded_at: Fri, 31 Mar 2017 23:33:07 GMT
|
103
|
-
recorded_with: VCR 3.0.3
|
@@ -1,50 +0,0 @@
|
|
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=d8f979fc7d14fec0b075c0b73dbafb59
|
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/"61c2fd4f91cfa7741c5726738e964d82"
|
35
|
-
Cache-Control:
|
36
|
-
- max-age=0, private, must-revalidate
|
37
|
-
X-Request-Id:
|
38
|
-
- 2324e3a0-70cb-401d-8a3c-574b2401efc2
|
39
|
-
X-Runtime:
|
40
|
-
- '0.106959'
|
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-M","size":"M","color":null,"quantity":99,"created_at":"2017-03-31T16:33:08-07:00","disabled_at":null,"deleted_at":null}'
|
48
|
-
http_version:
|
49
|
-
recorded_at: Fri, 31 Mar 2017 23:33:08 GMT
|
50
|
-
recorded_with: VCR 3.0.3
|
@@ -1,50 +0,0 @@
|
|
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=d8f979fc7d14fec0b075c0b73dbafb59
|
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/"a904bee91396bd30c9ea044d10f2d906"
|
35
|
-
Cache-Control:
|
36
|
-
- max-age=0, private, must-revalidate
|
37
|
-
X-Request-Id:
|
38
|
-
- 8ec3901f-19c5-462b-9c82-08f9491b42b5
|
39
|
-
X-Runtime:
|
40
|
-
- '0.031552'
|
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":10,"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
|
-
recorded_with: VCR 3.0.3
|
@@ -1,64 +0,0 @@
|
|
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=d8f979fc7d14fec0b075c0b73dbafb59
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- "*/*; q=0.5, application/xml"
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
Content-Length:
|
15
|
-
- '45'
|
16
|
-
Content-Type:
|
17
|
-
- application/x-www-form-urlencoded
|
18
|
-
User-Agent:
|
19
|
-
- Ruby
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
X-Frame-Options:
|
26
|
-
- SAMEORIGIN
|
27
|
-
X-Xss-Protection:
|
28
|
-
- 1; mode=block
|
29
|
-
X-Content-Type-Options:
|
30
|
-
- nosniff
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
Etag:
|
34
|
-
- W/"2997c4864dcc76d8828f1189f17a099d"
|
35
|
-
Cache-Control:
|
36
|
-
- max-age=0, private, must-revalidate
|
37
|
-
X-Request-Id:
|
38
|
-
- d05a2281-8713-49a9-b9fd-f3e34a9dd42b
|
39
|
-
X-Runtime:
|
40
|
-
- '0.055031'
|
41
|
-
Date:
|
42
|
-
- Fri, 31 Mar 2017 23:33:08 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."},{"field":"disabled_at","name":"Disabled At","required":false,"readonly":true,"description":"The
|
59
|
-
date and time the variation was disabled."},{"field":"deleted_at","name":"Deleted
|
60
|
-
At","required":false,"readonly":true,"description":"The date and time the
|
61
|
-
variation was deleted."}]'
|
62
|
-
http_version:
|
63
|
-
recorded_at: Fri, 31 Mar 2017 23:33:08 GMT
|
64
|
-
recorded_with: VCR 3.0.3
|