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,30 +1,30 @@
|
|
1
1
|
module TophatterMerchant
|
2
2
|
class Variation < Resource
|
3
|
-
|
4
|
-
|
5
|
-
:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
# http://merchant-api.tophatter.com/docs/variation-schema
|
4
|
+
attr_accessor :product_identifier,
|
5
|
+
:identifier,
|
6
|
+
:internal_id,
|
7
|
+
:size,
|
8
|
+
:color,
|
9
|
+
:quantity,
|
10
|
+
:created_at,
|
11
|
+
:disabled_at,
|
12
|
+
:deleted_at
|
10
13
|
|
11
14
|
class << self
|
12
|
-
#
|
13
|
-
|
14
|
-
get(url: "#{path}/schema.json")
|
15
|
-
end
|
16
|
-
|
17
|
-
# ap TophatterMerchant::Variation.retrieve('FOOBAR-R').to_h
|
15
|
+
# http://merchant-api.tophatter.com/docs/variation-retrieve
|
16
|
+
# TophatterMerchant::Variation.retrieve('B01J90O7KK')
|
18
17
|
def retrieve(identifier)
|
19
18
|
Variation.new get(url: "#{path}/retrieve.json", params: { identifier: identifier })
|
20
19
|
end
|
21
20
|
|
22
|
-
#
|
21
|
+
# http://merchant-api.tophatter.com/docs/variation-create
|
23
22
|
def create(params)
|
24
23
|
Variation.new post(url: "#{path}.json", params: params)
|
25
24
|
end
|
26
25
|
|
27
|
-
#
|
26
|
+
# http://merchant-api.tophatter.com/docs/variation-update
|
27
|
+
# TophatterMerchant::Variation.update('B01J90O7KK', quantity: 1).quantity
|
28
28
|
def update(identifier, data)
|
29
29
|
Variation.new post(url: "#{path}/update.json", params: data.merge(identifier: identifier))
|
30
30
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,13 +4,3 @@ Coveralls.wear!
|
|
4
4
|
require 'rest-client'
|
5
5
|
require 'awesome_print'
|
6
6
|
require 'tophatter_merchant'
|
7
|
-
require 'vcr'
|
8
|
-
|
9
|
-
VCR.configure do |c|
|
10
|
-
c.cassette_library_dir = 'spec/cassettes'
|
11
|
-
c.hook_into :webmock
|
12
|
-
c.configure_rspec_metadata!
|
13
|
-
end
|
14
|
-
|
15
|
-
TophatterMerchant.api_path = 'http://tophatter.dev/merchant_api/v1'
|
16
|
-
TophatterMerchant.access_token = 'd8f979fc7d14fec0b075c0b73dbafb59' # megatron@autobot.com
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
# rspec spec/tophatter_merchant/metadata_spec.rb
|
4
4
|
describe TophatterMerchant::Metadata do
|
5
5
|
describe '.metadata' do
|
6
|
-
|
6
|
+
xit 'returns metadata' do
|
7
7
|
result = TophatterMerchant::Metadata.all
|
8
8
|
expect(result.keys.include?('categories')).to be(true)
|
9
9
|
expect(result.keys.include?('conditions')).to be(true)
|
@@ -21,14 +21,14 @@ describe TophatterMerchant::Metadata do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
describe '.categories' do
|
24
|
-
|
24
|
+
xit 'returns categories' do
|
25
25
|
result = TophatterMerchant::Metadata.categories
|
26
26
|
expect(result.include?('Apparel | Swim | Tops')).to be(true)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
describe '.conditions' do
|
31
|
-
|
31
|
+
xit 'returns conditions' do
|
32
32
|
result = TophatterMerchant::Metadata.conditions
|
33
33
|
expect(result.include?('New')).to be(true)
|
34
34
|
expect(result.include?('New with Tags')).to be(true)
|
@@ -38,16 +38,8 @@ describe TophatterMerchant::Metadata do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
# describe '.brands' do
|
42
|
-
# it 'returns brands', :vcr do
|
43
|
-
# result = TophatterMerchant::Metadata.brands
|
44
|
-
# expect(result.key?('Home')).to be(true)
|
45
|
-
# expect(result['Home'].include?('Ninja')).to be(true)
|
46
|
-
# end
|
47
|
-
# end
|
48
|
-
|
49
41
|
describe '.materials' do
|
50
|
-
|
42
|
+
xit 'returns materials' do
|
51
43
|
result = TophatterMerchant::Metadata.materials
|
52
44
|
expect(result.key?('Gemstones')).to be(true)
|
53
45
|
expect(result['Gemstones'].include?('Star Ruby')).to be(true)
|
@@ -55,7 +47,7 @@ describe TophatterMerchant::Metadata do
|
|
55
47
|
end
|
56
48
|
|
57
49
|
describe '.sizes' do
|
58
|
-
|
50
|
+
xit 'returns sizes' do
|
59
51
|
result = TophatterMerchant::Metadata.sizes
|
60
52
|
expect(result.key?('Accessories')).to be(true)
|
61
53
|
expect(result['Accessories'].include?('Small')).to be(true)
|
@@ -63,21 +55,21 @@ describe TophatterMerchant::Metadata do
|
|
63
55
|
end
|
64
56
|
|
65
57
|
describe '.colors' do
|
66
|
-
|
58
|
+
xit 'returns colors' do
|
67
59
|
result = TophatterMerchant::Metadata.colors
|
68
60
|
expect(result.include?('Red')).to be(true)
|
69
61
|
end
|
70
62
|
end
|
71
63
|
|
72
64
|
describe '.countries' do
|
73
|
-
|
65
|
+
xit 'returns countries' do
|
74
66
|
result = TophatterMerchant::Metadata.countries
|
75
67
|
expect(result.include?('United States')).to be(true)
|
76
68
|
end
|
77
69
|
end
|
78
70
|
|
79
71
|
describe '.country_codes' do
|
80
|
-
|
72
|
+
xit 'returns country codes' do
|
81
73
|
result = TophatterMerchant::Metadata.country_codes
|
82
74
|
expect(result.key?('United States')).to be(true)
|
83
75
|
expect(result['United States']).to eq('USA')
|
@@ -85,7 +77,7 @@ describe TophatterMerchant::Metadata do
|
|
85
77
|
end
|
86
78
|
|
87
79
|
describe '.states' do
|
88
|
-
|
80
|
+
xit 'returns states' do
|
89
81
|
result = TophatterMerchant::Metadata.states
|
90
82
|
expect(result.key?('California')).to be(true)
|
91
83
|
expect(result['California']).to eq('CA')
|
@@ -93,7 +85,7 @@ describe TophatterMerchant::Metadata do
|
|
93
85
|
end
|
94
86
|
|
95
87
|
describe '.provinces' do
|
96
|
-
|
88
|
+
xit 'returns provinces' do
|
97
89
|
result = TophatterMerchant::Metadata.provinces
|
98
90
|
expect(result.key?('Alberta')).to be(true)
|
99
91
|
expect(result['Alberta']).to eq('AB')
|
@@ -101,7 +93,7 @@ describe TophatterMerchant::Metadata do
|
|
101
93
|
end
|
102
94
|
|
103
95
|
describe '.territories' do
|
104
|
-
|
96
|
+
xit 'returns territories' do
|
105
97
|
result = TophatterMerchant::Metadata.territories
|
106
98
|
expect(result.key?('New South Wales')).to be(true)
|
107
99
|
expect(result['New South Wales']).to eq('NSW')
|
@@ -109,7 +101,7 @@ describe TophatterMerchant::Metadata do
|
|
109
101
|
end
|
110
102
|
|
111
103
|
describe '.carriers' do
|
112
|
-
|
104
|
+
xit 'returns carriers' do
|
113
105
|
result = TophatterMerchant::Metadata.carriers
|
114
106
|
expect(result.key?('USPS')).to be(true)
|
115
107
|
end
|
@@ -2,22 +2,15 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
# rspec spec/tophatter_merchant/order_spec.rb
|
4
4
|
describe TophatterMerchant::Order do
|
5
|
-
describe '.schema', :vcr do
|
6
|
-
it 'returns the schema' do
|
7
|
-
schema = TophatterMerchant::Order.schema
|
8
|
-
expect(schema.find { |component| component['field'] == 'order_id' }['name']).to eq('Order ID')
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
5
|
describe '.all' do
|
13
|
-
|
6
|
+
xit 'returns all orders' do
|
14
7
|
orders = TophatterMerchant::Order.all(filter: 'unfulfilled')
|
15
8
|
expect(orders.length).to be(2)
|
16
9
|
end
|
17
10
|
end
|
18
11
|
|
19
12
|
describe '.retrieve' do
|
20
|
-
|
13
|
+
xit 'retrieves an order' do
|
21
14
|
order = TophatterMerchant::Order.retrieve(359887509)
|
22
15
|
expect(order.order_id).to eq(359887509)
|
23
16
|
expect(order.status).to eq('paid')
|
@@ -34,7 +27,7 @@ describe TophatterMerchant::Order do
|
|
34
27
|
end
|
35
28
|
|
36
29
|
describe '.fulfill' do
|
37
|
-
|
30
|
+
xit 'fulfills an order' do
|
38
31
|
order = TophatterMerchant::Order.fulfill(359887509, carrier: 'USPS', tracking_number: 'CX263292019US')
|
39
32
|
expect(order.status).to eq('shipped')
|
40
33
|
expect(order.carrier).to eq('usps')
|
@@ -43,7 +36,7 @@ describe TophatterMerchant::Order do
|
|
43
36
|
end
|
44
37
|
|
45
38
|
describe '.refund' do
|
46
|
-
|
39
|
+
xit 'refunds an order' do
|
47
40
|
order = TophatterMerchant::Order.refund(359887509, type: 'partial', reason: 'delay_in_shipping', fees: ['shipping_fee'])
|
48
41
|
expect(order.available_refunds).to eq('buyer_fee' => 399.0)
|
49
42
|
end
|
@@ -2,36 +2,29 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
# rspec spec/tophatter_merchant/product_spec.rb
|
4
4
|
describe TophatterMerchant::Product do
|
5
|
-
describe '.schema' do
|
6
|
-
it 'returns the schema', :vcr do
|
7
|
-
schema = TophatterMerchant::Product.schema
|
8
|
-
expect(schema.find { |component| component['field'] == 'identifier' }['name']).to eq('Unique ID')
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
5
|
describe '.all' do
|
13
|
-
|
6
|
+
xit 'returns all products' do
|
14
7
|
products = TophatterMerchant::Product.all(page: 1, per_page: 5)
|
15
8
|
expect(products.length).to be(5)
|
16
9
|
end
|
17
10
|
end
|
18
11
|
|
19
12
|
describe '.search' do
|
20
|
-
|
13
|
+
xit 'returns products matching search terms' do
|
21
14
|
products = TophatterMerchant::Product.search(query: 'Cute', page: 1, per_page: 5)
|
22
15
|
expect(products.first.title.include?('Cute')).to be(true)
|
23
16
|
end
|
24
17
|
end
|
25
18
|
|
26
19
|
describe '.retrieve' do
|
27
|
-
|
20
|
+
xit 'retrieves a product' do
|
28
21
|
product = TophatterMerchant::Product.retrieve('PFTBNU5')
|
29
22
|
expect(product.identifier).to eq('PFTBNU5')
|
30
23
|
end
|
31
24
|
end
|
32
25
|
|
33
26
|
describe '.create' do
|
34
|
-
|
27
|
+
xit 'creates a product' do
|
35
28
|
product = TophatterMerchant::Product.create(
|
36
29
|
identifier: '6631A',
|
37
30
|
category: 'Electronics|Hardware (Computers/Tablets/Phones)|Mobile',
|
@@ -66,7 +59,7 @@ describe TophatterMerchant::Product do
|
|
66
59
|
end
|
67
60
|
|
68
61
|
describe '.update' do
|
69
|
-
|
62
|
+
xit 'updates a product' do
|
70
63
|
product = TophatterMerchant::Product.retrieve('PFTBNU5')
|
71
64
|
expect(product.buy_now_price).to eq(399)
|
72
65
|
product = TophatterMerchant::Product.update('PFTBNU5', buy_now_price: 100)
|
@@ -75,29 +68,20 @@ describe TophatterMerchant::Product do
|
|
75
68
|
end
|
76
69
|
|
77
70
|
describe '.disable' do
|
78
|
-
|
71
|
+
xit 'disables a product' do
|
79
72
|
product = TophatterMerchant::Product.enable('PFTBNU5')
|
80
|
-
expect(product.disabled_at
|
73
|
+
expect(product.disabled_at).to be_nil
|
81
74
|
product = TophatterMerchant::Product.disable('PFTBNU5')
|
82
|
-
expect(product.disabled_at
|
75
|
+
expect(product.disabled_at).to be_present
|
83
76
|
end
|
84
77
|
end
|
85
78
|
|
86
79
|
describe '.enable' do
|
87
|
-
|
80
|
+
xit 'enables a product' do
|
88
81
|
product = TophatterMerchant::Product.disable('PFTBNU5')
|
89
|
-
expect(product.disabled_at
|
82
|
+
expect(product.disabled_at).to be_present
|
90
83
|
product = TophatterMerchant::Product.enable('PFTBNU5')
|
91
|
-
expect(product.disabled_at
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe '.delete' do
|
96
|
-
it 'deletes a product', :vcr do
|
97
|
-
product = TophatterMerchant::Product.retrieve('6631A')
|
98
|
-
expect(product.deleted_at.nil?).to be(true)
|
99
|
-
product = TophatterMerchant::Product.delete('6631A')
|
100
|
-
expect(product.deleted_at.present?).to be(true)
|
84
|
+
expect(product.disabled_at).to be_nil
|
101
85
|
end
|
102
86
|
end
|
103
87
|
end
|
@@ -2,15 +2,8 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
# rspec spec/tophatter_merchant/variation_spec.rb
|
4
4
|
describe TophatterMerchant::Variation do
|
5
|
-
describe '.schema', :vcr do
|
6
|
-
it 'returns the schema' do
|
7
|
-
schema = TophatterMerchant::Variation.schema
|
8
|
-
expect(schema.find { |component| component['field'] == 'identifier' }['name']).to eq('Variation Unique ID (SKU)')
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
5
|
describe '.retrieve' do
|
13
|
-
|
6
|
+
xit 'retrieves a variation' do
|
14
7
|
variation = TophatterMerchant::Variation.retrieve('CT1-S')
|
15
8
|
expect(variation.identifier).to eq('CT1-S')
|
16
9
|
expect(variation.size).to eq('S')
|
@@ -18,7 +11,7 @@ describe TophatterMerchant::Variation do
|
|
18
11
|
end
|
19
12
|
|
20
13
|
describe '.create' do
|
21
|
-
|
14
|
+
xit 'creates a variation' do
|
22
15
|
variation = TophatterMerchant::Variation.create(
|
23
16
|
product_identifier: 'C-T-1',
|
24
17
|
identifier: 'CT1-M',
|
@@ -32,7 +25,7 @@ describe TophatterMerchant::Variation do
|
|
32
25
|
end
|
33
26
|
|
34
27
|
describe '.update' do
|
35
|
-
|
28
|
+
xit 'updates a variation' do
|
36
29
|
variation = TophatterMerchant::Variation.update('CT1-S', quantity: 99)
|
37
30
|
expect(variation.quantity).to eq(99)
|
38
31
|
variation = TophatterMerchant::Variation.update('CT1-S', quantity: 999)
|
data/tophatter-merchant.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# gem push tophatter-merchant-{VERSION}.gem
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'tophatter-merchant'
|
8
|
-
s.version = '1.
|
8
|
+
s.version = '1.3.0'
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.licenses = ['MIT']
|
11
11
|
s.authors = ['Chris Estreich']
|
@@ -19,7 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.required_ruby_version = '~> 2.0'
|
20
20
|
|
21
21
|
s.add_dependency 'rest-client', '~> 1.6'
|
22
|
-
s.add_dependency 'activemodel', '~> 4.2'
|
23
22
|
|
24
23
|
s.post_install_message = 'Documentation is available at: https://tophatter.readme.io/'
|
25
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tophatter-merchant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Estreich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: activemodel
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '4.2'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '4.2'
|
41
27
|
description: The Tophatter merchant platform is an e-commerce platform. It allows
|
42
28
|
merchants to manage inventory and fulfill orders on Tophatter.
|
43
29
|
email:
|
@@ -64,36 +50,6 @@ files:
|
|
64
50
|
- lib/tophatter_merchant/product.rb
|
65
51
|
- lib/tophatter_merchant/resource.rb
|
66
52
|
- lib/tophatter_merchant/variation.rb
|
67
|
-
- spec/cassettes/TophatterMerchant_Metadata/_carriers/returns_carriers.yml
|
68
|
-
- spec/cassettes/TophatterMerchant_Metadata/_categories/returns_categories.yml
|
69
|
-
- spec/cassettes/TophatterMerchant_Metadata/_colors/returns_colors.yml
|
70
|
-
- spec/cassettes/TophatterMerchant_Metadata/_conditions/returns_conditions.yml
|
71
|
-
- spec/cassettes/TophatterMerchant_Metadata/_countries/returns_countries.yml
|
72
|
-
- spec/cassettes/TophatterMerchant_Metadata/_country_codes/returns_country_codes.yml
|
73
|
-
- spec/cassettes/TophatterMerchant_Metadata/_materials/returns_materials.yml
|
74
|
-
- spec/cassettes/TophatterMerchant_Metadata/_metadata/returns_metadata.yml
|
75
|
-
- spec/cassettes/TophatterMerchant_Metadata/_provinces/returns_provinces.yml
|
76
|
-
- spec/cassettes/TophatterMerchant_Metadata/_sizes/returns_sizes.yml
|
77
|
-
- spec/cassettes/TophatterMerchant_Metadata/_states/returns_states.yml
|
78
|
-
- spec/cassettes/TophatterMerchant_Metadata/_territories/returns_territories.yml
|
79
|
-
- spec/cassettes/TophatterMerchant_Order/_all/returns_all_orders.yml
|
80
|
-
- spec/cassettes/TophatterMerchant_Order/_fulfill/fulfills_an_order.yml
|
81
|
-
- spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml
|
82
|
-
- spec/cassettes/TophatterMerchant_Order/_retrieve/retrieves_an_order.yml
|
83
|
-
- spec/cassettes/TophatterMerchant_Order/_schema/returns_the_schema.yml
|
84
|
-
- spec/cassettes/TophatterMerchant_Product/_all/returns_all_products.yml
|
85
|
-
- spec/cassettes/TophatterMerchant_Product/_create/creates_a_product.yml
|
86
|
-
- spec/cassettes/TophatterMerchant_Product/_delete/deletes_a_product.yml
|
87
|
-
- spec/cassettes/TophatterMerchant_Product/_disable/disables_a_product.yml
|
88
|
-
- spec/cassettes/TophatterMerchant_Product/_enable/enables_a_product.yml
|
89
|
-
- spec/cassettes/TophatterMerchant_Product/_retrieve/retrieves_a_product.yml
|
90
|
-
- spec/cassettes/TophatterMerchant_Product/_schema/returns_the_schema.yml
|
91
|
-
- spec/cassettes/TophatterMerchant_Product/_search/returns_products_matching_search_terms.yml
|
92
|
-
- spec/cassettes/TophatterMerchant_Product/_update/updates_a_product.yml
|
93
|
-
- spec/cassettes/TophatterMerchant_Variation/_create/creates_a_variation.yml
|
94
|
-
- spec/cassettes/TophatterMerchant_Variation/_retrieve/retrieves_a_variation.yml
|
95
|
-
- spec/cassettes/TophatterMerchant_Variation/_schema/returns_the_schema.yml
|
96
|
-
- spec/cassettes/TophatterMerchant_Variation/_update/updates_a_variation.yml
|
97
53
|
- spec/spec_helper.rb
|
98
54
|
- spec/tophatter_merchant/metadata_spec.rb
|
99
55
|
- spec/tophatter_merchant/order_spec.rb
|
@@ -120,41 +76,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
76
|
version: '0'
|
121
77
|
requirements: []
|
122
78
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.6.
|
79
|
+
rubygems_version: 2.6.14
|
124
80
|
signing_key:
|
125
81
|
specification_version: 4
|
126
82
|
summary: Manage your inventory and fulfill orders on Tophatter.
|
127
83
|
test_files:
|
128
|
-
- spec/cassettes/TophatterMerchant_Metadata/_carriers/returns_carriers.yml
|
129
|
-
- spec/cassettes/TophatterMerchant_Metadata/_categories/returns_categories.yml
|
130
|
-
- spec/cassettes/TophatterMerchant_Metadata/_colors/returns_colors.yml
|
131
|
-
- spec/cassettes/TophatterMerchant_Metadata/_conditions/returns_conditions.yml
|
132
|
-
- spec/cassettes/TophatterMerchant_Metadata/_countries/returns_countries.yml
|
133
|
-
- spec/cassettes/TophatterMerchant_Metadata/_country_codes/returns_country_codes.yml
|
134
|
-
- spec/cassettes/TophatterMerchant_Metadata/_materials/returns_materials.yml
|
135
|
-
- spec/cassettes/TophatterMerchant_Metadata/_metadata/returns_metadata.yml
|
136
|
-
- spec/cassettes/TophatterMerchant_Metadata/_provinces/returns_provinces.yml
|
137
|
-
- spec/cassettes/TophatterMerchant_Metadata/_sizes/returns_sizes.yml
|
138
|
-
- spec/cassettes/TophatterMerchant_Metadata/_states/returns_states.yml
|
139
|
-
- spec/cassettes/TophatterMerchant_Metadata/_territories/returns_territories.yml
|
140
|
-
- spec/cassettes/TophatterMerchant_Order/_all/returns_all_orders.yml
|
141
|
-
- spec/cassettes/TophatterMerchant_Order/_fulfill/fulfills_an_order.yml
|
142
|
-
- spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml
|
143
|
-
- spec/cassettes/TophatterMerchant_Order/_retrieve/retrieves_an_order.yml
|
144
|
-
- spec/cassettes/TophatterMerchant_Order/_schema/returns_the_schema.yml
|
145
|
-
- spec/cassettes/TophatterMerchant_Product/_all/returns_all_products.yml
|
146
|
-
- spec/cassettes/TophatterMerchant_Product/_create/creates_a_product.yml
|
147
|
-
- spec/cassettes/TophatterMerchant_Product/_delete/deletes_a_product.yml
|
148
|
-
- spec/cassettes/TophatterMerchant_Product/_disable/disables_a_product.yml
|
149
|
-
- spec/cassettes/TophatterMerchant_Product/_enable/enables_a_product.yml
|
150
|
-
- spec/cassettes/TophatterMerchant_Product/_retrieve/retrieves_a_product.yml
|
151
|
-
- spec/cassettes/TophatterMerchant_Product/_schema/returns_the_schema.yml
|
152
|
-
- spec/cassettes/TophatterMerchant_Product/_search/returns_products_matching_search_terms.yml
|
153
|
-
- spec/cassettes/TophatterMerchant_Product/_update/updates_a_product.yml
|
154
|
-
- spec/cassettes/TophatterMerchant_Variation/_create/creates_a_variation.yml
|
155
|
-
- spec/cassettes/TophatterMerchant_Variation/_retrieve/retrieves_a_variation.yml
|
156
|
-
- spec/cassettes/TophatterMerchant_Variation/_schema/returns_the_schema.yml
|
157
|
-
- spec/cassettes/TophatterMerchant_Variation/_update/updates_a_variation.yml
|
158
84
|
- spec/spec_helper.rb
|
159
85
|
- spec/tophatter_merchant/metadata_spec.rb
|
160
86
|
- spec/tophatter_merchant/order_spec.rb
|