tophatter-merchant 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.gitignore +4 -3
- data/.travis.yml +10 -0
- data/Gemfile +6 -0
- data/README.md +4 -0
- data/Rakefile +3 -0
- data/VERSION +1 -1
- data/lib/tophatter_merchant/product.rb +4 -6
- data/lib/tophatter_merchant/version.rb +1 -1
- data/spec/cassettes/TophatterMerchant_Metadata/_carriers/returns_carriers.yml +56 -50
- data/spec/cassettes/TophatterMerchant_Metadata/_categories/returns_categories.yml +101 -67
- data/spec/cassettes/TophatterMerchant_Metadata/_colors/returns_colors.yml +20 -37
- data/spec/cassettes/TophatterMerchant_Metadata/_conditions/returns_conditions.yml +22 -37
- data/spec/cassettes/TophatterMerchant_Metadata/_countries/returns_countries.yml +97 -70
- data/spec/cassettes/TophatterMerchant_Metadata/_country_codes/returns_country_codes.yml +129 -87
- data/spec/cassettes/TophatterMerchant_Metadata/_materials/returns_materials.yml +39 -52
- data/spec/cassettes/TophatterMerchant_Metadata/_metadata/returns_metadata.yml +509 -288
- data/spec/cassettes/TophatterMerchant_Metadata/_provinces/returns_provinces.yml +22 -39
- data/spec/cassettes/TophatterMerchant_Metadata/_sizes/returns_sizes.yml +28 -45
- data/spec/cassettes/TophatterMerchant_Metadata/_states/returns_states.yml +28 -48
- data/spec/cassettes/TophatterMerchant_Metadata/_territories/returns_territories.yml +22 -38
- data/spec/cassettes/TophatterMerchant_Order/_all/returns_all_orders.yml +11 -11
- data/spec/cassettes/TophatterMerchant_Order/_fulfill/fulfills_an_order.yml +8 -8
- data/spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml +8 -8
- data/spec/cassettes/TophatterMerchant_Order/_retrieve/retrieves_an_order.yml +8 -8
- data/spec/cassettes/TophatterMerchant_Order/_schema/returns_the_schema.yml +5 -5
- data/spec/cassettes/TophatterMerchant_Product/_all/returns_all_products.yml +15 -15
- data/spec/cassettes/TophatterMerchant_Product/_create/creates_a_product.yml +8 -8
- data/spec/cassettes/TophatterMerchant_Product/_delete/deletes_a_product.yml +17 -17
- data/spec/cassettes/TophatterMerchant_Product/_disable/disables_a_product.yml +16 -16
- data/spec/cassettes/TophatterMerchant_Product/_enable/enables_a_product.yml +16 -16
- data/spec/cassettes/TophatterMerchant_Product/_retrieve/retrieves_a_product.yml +8 -8
- data/spec/cassettes/TophatterMerchant_Product/_schema/returns_the_schema.yml +33 -33
- data/spec/cassettes/TophatterMerchant_Product/_search/returns_products_matching_search_terms.yml +11 -11
- data/spec/cassettes/TophatterMerchant_Product/_update/updates_a_product.yml +16 -16
- data/spec/cassettes/TophatterMerchant_Variation/_create/creates_a_variation.yml +7 -7
- data/spec/cassettes/TophatterMerchant_Variation/_retrieve/retrieves_a_variation.yml +7 -7
- data/spec/cassettes/TophatterMerchant_Variation/_schema/returns_the_schema.yml +10 -7
- data/spec/cassettes/TophatterMerchant_Variation/_update/updates_a_variation.yml +14 -14
- data/spec/spec_helper.rb +6 -0
- data/spec/tophatter_merchant/metadata_spec.rb +7 -7
- data/spec/tophatter_merchant/order_spec.rb +1 -6
- data/spec/tophatter_merchant/product_spec.rb +0 -5
- data/spec/tophatter_merchant/variation_spec.rb +0 -5
- data/tophatter-merchant.gemspec +1 -0
- metadata +6 -5
- data/spec/cassettes/TophatterMerchant_Metadata/_brands/returns_brands.yml +0 -161
@@ -2,17 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: http://tophatter.dev/merchant_api/v1/metadata/provinces.json
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Content-Length:
|
15
|
-
- '
|
15
|
+
- '45'
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
User-Agent:
|
@@ -22,48 +22,31 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
29
31
|
Content-Type:
|
30
32
|
- application/json; charset=utf-8
|
31
|
-
Date:
|
32
|
-
- Sat, 25 Mar 2017 22:19:55 GMT
|
33
33
|
Etag:
|
34
34
|
- W/"c1aa6972986763942242a220c78625ba"
|
35
|
-
|
36
|
-
-
|
37
|
-
Status:
|
38
|
-
- 200 OK
|
39
|
-
Vary:
|
40
|
-
- Accept-Encoding
|
41
|
-
X-Content-Type-Options:
|
42
|
-
- nosniff
|
43
|
-
X-Frame-Options:
|
44
|
-
- SAMEORIGIN
|
45
|
-
X-Powered-By:
|
46
|
-
- Phusion Passenger Enterprise
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
47
37
|
X-Request-Id:
|
48
|
-
-
|
49
|
-
X-Request-Start:
|
50
|
-
- t=1490480395.710
|
38
|
+
- 1e8061e0-5c9d-4096-840b-5e63c8e9223b
|
51
39
|
X-Runtime:
|
52
|
-
- '0.
|
53
|
-
|
54
|
-
-
|
55
|
-
Content-Length:
|
56
|
-
- '216'
|
40
|
+
- '0.023460'
|
41
|
+
Date:
|
42
|
+
- Fri, 31 Mar 2017 23:33:13 GMT
|
57
43
|
Connection:
|
58
|
-
-
|
44
|
+
- close
|
59
45
|
body:
|
60
|
-
encoding:
|
61
|
-
string:
|
62
|
-
|
63
|
-
|
64
|
-
7gZpVHqOq8rxT35wo7QBJWfvCEEgsVjhaAV+gJsi1+fH4/RUUpeOpboZRcdZ
|
65
|
-
MhYLZwsbwaNVw5vimSpIZsXzqHiRTBHdIXWQ5N6KzWp2OWh2bRgwKl3t+gnK
|
66
|
-
CjUu2IHUTe/q7m1l+h/9Un2f/c8vAAAA//8DAPYM4y8RAQAA
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"Alberta":"AB","British Columbia":"BC","Manitoba":"MB","New Brunswick":"NB","Newfoundland
|
48
|
+
and Labrador":"NL","Nova Scotia":"NS","Northwest Territories":"NT","Nunavut":"NU","Ontario":"ON","Prince
|
49
|
+
Edward Island":"PE","Quebec":"QC","Saskatchewan":"SK","Yukon Territory":"YT"}'
|
67
50
|
http_version:
|
68
|
-
recorded_at:
|
51
|
+
recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
|
69
52
|
recorded_with: VCR 3.0.3
|
@@ -2,17 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: http://tophatter.dev/merchant_api/v1/metadata/sizes.json
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Content-Length:
|
15
|
-
- '
|
15
|
+
- '45'
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
User-Agent:
|
@@ -22,54 +22,37 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
29
31
|
Content-Type:
|
30
32
|
- application/json; charset=utf-8
|
31
|
-
Date:
|
32
|
-
- Sat, 25 Mar 2017 22:19:53 GMT
|
33
33
|
Etag:
|
34
34
|
- W/"718f127ecfc0beb33efe0e0f0cf38056"
|
35
|
-
|
36
|
-
-
|
37
|
-
Status:
|
38
|
-
- 200 OK
|
39
|
-
Vary:
|
40
|
-
- Accept-Encoding
|
41
|
-
X-Content-Type-Options:
|
42
|
-
- nosniff
|
43
|
-
X-Frame-Options:
|
44
|
-
- SAMEORIGIN
|
45
|
-
X-Powered-By:
|
46
|
-
- Phusion Passenger Enterprise
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
47
37
|
X-Request-Id:
|
48
|
-
-
|
49
|
-
X-Request-Start:
|
50
|
-
- t=1490480393.571
|
38
|
+
- 5dfe9a87-364f-4920-ae42-2378e6441c99
|
51
39
|
X-Runtime:
|
52
|
-
- '0.
|
53
|
-
|
54
|
-
-
|
55
|
-
Content-Length:
|
56
|
-
- '487'
|
40
|
+
- '0.020799'
|
41
|
+
Date:
|
42
|
+
- Fri, 31 Mar 2017 23:33:13 GMT
|
57
43
|
Connection:
|
58
|
-
-
|
44
|
+
- close
|
59
45
|
body:
|
60
|
-
encoding:
|
61
|
-
string:
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
+FYynptxlfGeZCiQd1XVuLJeDZ0jASABLHPEfaqrflF043DwQ5PpbbjYbnqU
|
71
|
-
Py7qSz/D7zkvG4XD09NBmPFuM+Mhmf1tQbz5Lrn/dSu9C7jkemmPCukYShfS
|
72
|
-
M1RcSNdQSSF9QwkITwvpHeq6CO5/PQMAAP//AwCg4OeIfgQAAA==
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"Accessories":["Small","Medium","Large","Extra Large"],"Apparel":["XS","S","M","L","XL","XXL","XXXL","1x","2x","3x","4x","0","2","4","6","8","10","12","14","16","18","20","22","24","26","28","30"],"Beauty":["Full","Travel","Deluxe
|
48
|
+
Sample","Sample","Tester","Palette","Set","Mini"],"Shoes":["5","5.5","6","6.5","7","7.5","8","8.5","9","9.5","10","10.5","11","11.5","12"],"Rings":["4","4.5","5","5.5","6","6.5","7","7.5","8","8.5","9","9.5","10","10.5","11","11.5","12","12.5","13","13.5","14"],"Necklaces":["Extra
|
49
|
+
Short (Under 16 Inches)","Short (16-20 Inches)","Medium (20-24 Inches)","Long
|
50
|
+
(24-28 Inches)","Extra Long (Over 28 Inches)"],"Baby Apparel":["Preemie (P)","Newborn
|
51
|
+
(NB)","0/3","3M","3/6","6M","6/9","9M","12M","18M","24M"],"Toddler Apparel":["2T","3T","4T","5T"],"Kids/Youth
|
52
|
+
Apparel":["4","5","6","6X","7","8","10","12","14","16","18","XS","S","M","L","XL"],"Baby
|
53
|
+
Shoes":["0","0.5","1","1.5","2","2.5","3","3.5","4","4.5","5","5.5","6","6.5","7"],"Toddler
|
54
|
+
Shoes":["7.5","8","8.5","9","9.5","10","10.5","11","11.5","12"],"Kids/Youth
|
55
|
+
Shoes":["12.5","13","13.5","1Y","1.5Y","2Y","2.5Y","3Y","3.5Y","4Y","4.5Y","5Y","5.5Y","6Y","6.5Y","7Y"]}'
|
73
56
|
http_version:
|
74
|
-
recorded_at:
|
57
|
+
recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
|
75
58
|
recorded_with: VCR 3.0.3
|
@@ -2,17 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: http://tophatter.dev/merchant_api/v1/metadata/states.json
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Content-Length:
|
15
|
-
- '
|
15
|
+
- '45'
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
User-Agent:
|
@@ -22,57 +22,37 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
29
31
|
Content-Type:
|
30
32
|
- application/json; charset=utf-8
|
31
|
-
Date:
|
32
|
-
- Sat, 25 Mar 2017 22:19:55 GMT
|
33
33
|
Etag:
|
34
34
|
- W/"168de2f5d680a792d990cea44b206b1c"
|
35
|
-
|
36
|
-
-
|
37
|
-
Status:
|
38
|
-
- 200 OK
|
39
|
-
Vary:
|
40
|
-
- Accept-Encoding
|
41
|
-
X-Content-Type-Options:
|
42
|
-
- nosniff
|
43
|
-
X-Frame-Options:
|
44
|
-
- SAMEORIGIN
|
45
|
-
X-Powered-By:
|
46
|
-
- Phusion Passenger Enterprise
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
47
37
|
X-Request-Id:
|
48
|
-
-
|
49
|
-
X-Request-Start:
|
50
|
-
- t=1490480395.295
|
38
|
+
- 5bb2bbb7-b829-481d-819c-a97645ff5408
|
51
39
|
X-Runtime:
|
52
|
-
- '0.
|
53
|
-
|
54
|
-
-
|
55
|
-
Content-Length:
|
56
|
-
- '618'
|
40
|
+
- '0.022820'
|
41
|
+
Date:
|
42
|
+
- Fri, 31 Mar 2017 23:33:13 GMT
|
57
43
|
Connection:
|
58
|
-
-
|
44
|
+
- close
|
59
45
|
body:
|
60
|
-
encoding:
|
61
|
-
string:
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
XcHlPIvMK8Wp5fvh/sW6CzBsLBoNZYFsxaWV6cQ1LLCVheOzhTsFlrBkY/yt
|
71
|
-
faX7hpWwt+zZBavW9+dKyNaNrXkwRrg1jN3Y/u+uN8mDfXS9Qddbxgg8o8Nt
|
72
|
-
Hon3uAPb7wJ2Rgeu1SZQYK9kXNapog/tTZvzp1ns0PYuUIMzXN9r2dR72fvJ
|
73
|
-
A3+K2KPKPbtOpgWIoAOJ1eYcogMHhB20r6zxOhKIOLAP6lPyAxw+3GwncYAv
|
74
|
-
8S/tpOS5dZWUPPzIXn3h94qvQTwxMpyv+Icn/4lP0I4HzVjNemevPJa+67pl
|
75
|
-
NSOPWiezf+NKqvRJV7grR7//AAAA//8DAPKRPwNrBAAA
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"Alaska":"AK","Alabama":"AL","Arkansas":"AR","American Samoa":"AS","Arizona":"AZ","California":"CA","Colorado":"CO","Connecticut":"CT","District
|
48
|
+
of Columbia":"DC","Delaware":"DE","Florida":"FL","Georgia":"GA","Guam":"GU","Hawaii":"HI","Iowa":"IA","Idaho":"ID","Illinois":"IL","Indiana":"IN","Kansas":"KS","Kentucky":"KY","Louisiana":"LA","Massachusetts":"MA","Maryland":"MD","Maine":"ME","Michigan":"MI","Minnesota":"MN","Missouri":"MO","Northern
|
49
|
+
Mariana Islands":"MP","Mississippi":"MS","Montana":"MT","North Carolina":"NC","North
|
50
|
+
Dakota":"ND","Nebraska":"NE","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","Nevada":"NV","New
|
51
|
+
York":"NY","Ohio":"OH","Oklahoma":"OK","Oregon":"OR","Pennsylvania":"PA","Puerto
|
52
|
+
Rico":"PR","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD","Tennessee":"TN","Texas":"TX","United
|
53
|
+
States Minor Outlying Islands":"UM","Utah":"UT","Virginia":"VA","Virgin Islands":"VI","Vermont":"VT","Washington":"WA","Wisconsin":"WI","West
|
54
|
+
Virginia":"WV","Wyoming":"WY","Armed Forces Americas (except Canada)":"AA","Armed
|
55
|
+
Forces Africa, Canada, Europe, Middle East":"AE","Armed Forces Pacific":"AP"}'
|
76
56
|
http_version:
|
77
|
-
recorded_at:
|
57
|
+
recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
|
78
58
|
recorded_with: VCR 3.0.3
|
@@ -2,17 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: http://tophatter.dev/merchant_api/v1/metadata/territories.json
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: access_token=d8f979fc7d14fec0b075c0b73dbafb59
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Content-Length:
|
15
|
-
- '
|
15
|
+
- '45'
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
User-Agent:
|
@@ -22,47 +22,31 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
29
31
|
Content-Type:
|
30
32
|
- application/json; charset=utf-8
|
31
|
-
Date:
|
32
|
-
- Sat, 25 Mar 2017 22:19:56 GMT
|
33
33
|
Etag:
|
34
34
|
- W/"f40bc133c742ae36ce6e734ba319a0c0"
|
35
|
-
|
36
|
-
-
|
37
|
-
Status:
|
38
|
-
- 200 OK
|
39
|
-
Vary:
|
40
|
-
- Accept-Encoding
|
41
|
-
X-Content-Type-Options:
|
42
|
-
- nosniff
|
43
|
-
X-Frame-Options:
|
44
|
-
- SAMEORIGIN
|
45
|
-
X-Powered-By:
|
46
|
-
- Phusion Passenger Enterprise
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
47
37
|
X-Request-Id:
|
48
|
-
-
|
49
|
-
X-Request-Start:
|
50
|
-
- t=1490480396.165
|
38
|
+
- 555f9872-b5b7-45ba-a5d6-ceaf4932eda8
|
51
39
|
X-Runtime:
|
52
|
-
- '0.
|
53
|
-
|
54
|
-
-
|
55
|
-
Content-Length:
|
56
|
-
- '154'
|
40
|
+
- '0.025085'
|
41
|
+
Date:
|
42
|
+
- Fri, 31 Mar 2017 23:33:13 GMT
|
57
43
|
Connection:
|
58
|
-
-
|
44
|
+
- close
|
59
45
|
body:
|
60
|
-
encoding:
|
61
|
-
string:
|
62
|
-
|
63
|
-
|
64
|
-
4vpX8aMxrUS1F6wXlel0UPoMfP/Ug1WO2K9YtxxtUJjzWZc2mI9OIVGXcfJb
|
65
|
-
TRZebwAAAP//AwDsikfevQAAAA==
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"Australian Capital Territory":"ACT","New South Wales":"NSW","Northern
|
48
|
+
Territory":"NT","Queensland":"QLD","South Australia":"SA","Tasmania":"TAS","Victoria":"VIC","Western
|
49
|
+
Australia":"WA"}'
|
66
50
|
http_version:
|
67
|
-
recorded_at:
|
51
|
+
recorded_at: Fri, 31 Mar 2017 23:33:13 GMT
|
68
52
|
recorded_with: VCR 3.0.3
|
@@ -5,14 +5,14 @@ http_interactions:
|
|
5
5
|
uri: http://tophatter.dev/merchant_api/v1/orders.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: filter
|
8
|
+
string: filter=unfulfilled&page=1&per_page=50&access_token=d8f979fc7d14fec0b075c0b73dbafb59
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Content-Length:
|
15
|
-
- '
|
15
|
+
- '83'
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
User-Agent:
|
@@ -31,26 +31,26 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"7b46a655a5f5d77a7d98d51aceb5de74"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- 2630a206-807e-4e6e-a1ea-d4bd9e2f8294
|
39
39
|
X-Runtime:
|
40
|
-
- '0.
|
40
|
+
- '0.675904'
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Fri, 31 Mar 2017 23:32:52 GMT
|
43
43
|
Connection:
|
44
44
|
- close
|
45
45
|
body:
|
46
46
|
encoding: UTF-8
|
47
47
|
string: '[{"order_id":359887509,"status":"paid","carrier":null,"tracking_number":null,"product_name":"Paid
|
48
|
-
|
48
|
+
Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
|
49
49
|
Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
|
50
|
-
Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0},"refund_amount":0.0,"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-03-
|
51
|
-
|
50
|
+
Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0,"shipping_fee":3.0},"refund_amount":0.0,"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-03-31T14:31:19-07:00","created_at":"2017-03-31T16:32:24-07:00"},{"order_id":113126549,"status":"paid","carrier":null,"tracking_number":null,"product_name":"Paid,
|
51
|
+
Fullfillable 2","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
|
52
52
|
Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
|
53
|
-
Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0},"refund_amount":0.0,"disbursement_amount":
|
53
|
+
Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0,"shipping_fee":5.0},"refund_amount":0.0,"disbursement_amount":363.6,"seller_fees_amount":40.4,"seller_fees":[{"type":"commission_fee","amount":40.4}],"paid_at":"2017-03-30T16:32:19-07:00","created_at":"2017-03-30T16:32:19-07:00"}]'
|
54
54
|
http_version:
|
55
|
-
recorded_at:
|
55
|
+
recorded_at: Fri, 31 Mar 2017 23:32:52 GMT
|
56
56
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://tophatter.dev/merchant_api/v1/orders/fulfill.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: order_id=359887509&carrier=USPS&tracking_number=CX263292019US&access_token=
|
8
|
+
string: order_id=359887509&carrier=USPS&tracking_number=CX263292019US&access_token=d8f979fc7d14fec0b075c0b73dbafb59
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*; q=0.5, application/xml"
|
@@ -31,23 +31,23 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"9e98225a188444c5917d0603361e88c7"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- 656b0f8a-07ba-440e-8334-93ca905117be
|
39
39
|
X-Runtime:
|
40
|
-
- '0.
|
40
|
+
- '0.743266'
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Fri, 31 Mar 2017 23:32:53 GMT
|
43
43
|
Connection:
|
44
44
|
- close
|
45
45
|
body:
|
46
46
|
encoding: UTF-8
|
47
47
|
string: '{"order_id":359887509,"status":"shipped","carrier":"usps","tracking_number":"CX263292019US","product_name":"Paid
|
48
|
-
|
48
|
+
Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
|
49
49
|
Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
|
50
|
-
Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0},"refund_amount":0.0,"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-03-
|
50
|
+
Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0,"shipping_fee":3.0},"refund_amount":0.0,"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-03-31T14:31:19-07:00","created_at":"2017-03-31T16:32:24-07:00"}'
|
51
51
|
http_version:
|
52
|
-
recorded_at:
|
52
|
+
recorded_at: Fri, 31 Mar 2017 23:32:53 GMT
|
53
53
|
recorded_with: VCR 3.0.3
|