amazon_seller_central 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/amazon_seller_central.gemspec +8 -2
- data/lib/amazon_seller_central/payment.rb +5 -0
- data/lib/amazon_seller_central/payments_page.rb +34 -0
- data/lib/amazon_seller_central.rb +2 -0
- data/spec/lib/inventory_page_spec.rb +16 -16
- data/spec/lib/listing_set_spec.rb +6 -6
- data/spec/lib/orders_page_spec.rb +1 -1
- data/spec/lib/payments_page_spec.rb +12 -0
- data/spec/support/sample_pages/Payments Page.html +908 -0
- data/spec/support/sample_pages/Seller Central Homepage.html +2178 -2175
- data/spec/support/sample_pages/Settlement Payment Reports 1.html +668 -0
- data/spec/support/sample_pages/Settlement Payment Reports 2.html +665 -0
- data/spec/support/sample_pages/listings_page_1.html +21596 -7144
- data/spec/support/sample_pages/update_inventory_result_from_page_1.html +21603 -7140
- data/spec/support/sample_pages.rb +5 -0
- metadata +37 -31
@@ -34,5 +34,10 @@ def mock_seller_central_page_results!
|
|
34
34
|
FakeWeb.register_uri(:get, "https://sellercentral.amazon.com/gp/orders-v2/list/ref=ag_myo_dos4_home?"+
|
35
35
|
"ie=UTF8&showCancelled=0&searchType=OrderStatus&ignoreSearchType=1&statusFilter=Pending&searchFulfillers=mfn&preSelectedRange=30"+
|
36
36
|
"&searchDateOption=preSelected&sortBy=OrderStatusDescending&itemsPerPage=100", :response => mock_pages[:manage_orders])
|
37
|
+
#Payments
|
38
|
+
FakeWeb.register_uri(:get, "https://sellercentral.amazon.com/gp/payments-account/settlement-summary.html/ref=ag_payments_mmap_home", :response => mock_pages[:payments_page])
|
39
|
+
FakeWeb.register_uri(:get, "https://sellercentral.amazon.com/gp/payments-account/past-settlements.html/ref=ag_xx_cont_payments
|
40
|
+
", :response => mock_pages[:settlement_payment_reports_1])
|
41
|
+
FakeWeb.register_uri(:get, "https://sellercentral.amazon.com/gp/payments-account/past-settlements.html?ie=UTF8&token=njdPQHK1musSlb0KlDGD99KUYKQ%23zV7lgX5Oj0Etu_bKiIQ1nIJTcWT6_qxMQV64LHg1q9uXdxmrudQIIJAyxRmi4b-i8hLn2IWNFflMXdYTq7M8pZjxhRHSeh3KzQ8xgG_aIEPfvQe8WgLo1mCtmWWEiHY_Ya0l3gGJHMI6t3vmul2srxOxOJ5Qr78jR-rYRKqH-cdfYxrnzyXwOs9uYGVIrZk_CYB6jfQJdkrVI4SqblrlDHbXNPkNSnupUT1re4FHW-eQw4utoUrQfdWHXEzzeeNh6Tqiuv6w8A9qrNeUcSfsibK4wgQkXay4uBA6hTDOSII2iZrwvPexL3OimCWfoFkFFKP8Wipmk8rMajsPPME0ao-IbyKkDjBi0cokkTg4CxVEmOM3kT-4OI4DofYrbw1vV7wf1nL5DWZVOD4o-Y8Pmw", :response => mock_pages[:settlement_payment_reports_2])
|
37
42
|
|
38
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amazon_seller_central
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-16 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mechanize
|
16
|
-
requirement: &
|
16
|
+
requirement: &11295200 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *11295200
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &11283040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.3.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *11283040
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &11279560 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *11279560
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jeweler
|
49
|
-
requirement: &
|
49
|
+
requirement: &11277540 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.6.3
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *11277540
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rcov
|
60
|
-
requirement: &
|
60
|
+
requirement: &11276080 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *11276080
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: yard
|
71
|
-
requirement: &
|
71
|
+
requirement: &11273000 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *11273000
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: guard
|
82
|
-
requirement: &
|
82
|
+
requirement: &11270980 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *11270980
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: guard-rspec
|
93
|
-
requirement: &
|
93
|
+
requirement: &11269180 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *11269180
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rb-inotify
|
104
|
-
requirement: &
|
104
|
+
requirement: &11267340 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 0.8.5
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *11267340
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: libnotify
|
115
|
-
requirement: &
|
115
|
+
requirement: &11256660 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *11256660
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: ffi
|
126
|
-
requirement: &
|
126
|
+
requirement: &11254520 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *11254520
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: faker
|
137
|
-
requirement: &
|
137
|
+
requirement: &11253500 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *11253500
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: fakeweb
|
148
|
-
requirement: &
|
148
|
+
requirement: &11251840 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: '0'
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *11251840
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: ruby-debug19
|
159
|
-
requirement: &
|
159
|
+
requirement: &11240880 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
version: '0'
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *11240880
|
168
168
|
description: This gem is intended to wrap Amazon's SellerCentral pages with a Ruby
|
169
169
|
API. Currently this gem supports accessing buyer feedback only.
|
170
170
|
email: dev@optoro.com
|
@@ -198,6 +198,8 @@ files:
|
|
198
198
|
- lib/amazon_seller_central/order.rb
|
199
199
|
- lib/amazon_seller_central/orders_page.rb
|
200
200
|
- lib/amazon_seller_central/page.rb
|
201
|
+
- lib/amazon_seller_central/payment.rb
|
202
|
+
- lib/amazon_seller_central/payments_page.rb
|
201
203
|
- spec/amazon_seller_central_spec.rb
|
202
204
|
- spec/lib/feedback_page_spec.rb
|
203
205
|
- spec/lib/feedback_spec.rb
|
@@ -207,6 +209,7 @@ files:
|
|
207
209
|
- spec/lib/listing_spec.rb
|
208
210
|
- spec/lib/mechanizer_spec.rb
|
209
211
|
- spec/lib/orders_page_spec.rb
|
212
|
+
- spec/lib/payments_page_spec.rb
|
210
213
|
- spec/spec_helper.rb
|
211
214
|
- spec/support/page_body_regexen.rb
|
212
215
|
- spec/support/page_examples.rb
|
@@ -216,9 +219,12 @@ files:
|
|
216
219
|
- spec/support/sample_pages/Feedback Page 2.html
|
217
220
|
- spec/support/sample_pages/Feedback Page Last.html
|
218
221
|
- spec/support/sample_pages/Manage Orders.html
|
222
|
+
- spec/support/sample_pages/Payments Page.html
|
219
223
|
- spec/support/sample_pages/Seller Central Homepage.html
|
220
224
|
- spec/support/sample_pages/Seller Central Redirect.html
|
221
225
|
- spec/support/sample_pages/Seller Central.html
|
226
|
+
- spec/support/sample_pages/Settlement Payment Reports 1.html
|
227
|
+
- spec/support/sample_pages/Settlement Payment Reports 2.html
|
222
228
|
- spec/support/sample_pages/another_listings_page.html
|
223
229
|
- spec/support/sample_pages/listings_last_page.html
|
224
230
|
- spec/support/sample_pages/listings_page_1.html
|
@@ -241,7 +247,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
241
247
|
version: '0'
|
242
248
|
segments:
|
243
249
|
- 0
|
244
|
-
hash:
|
250
|
+
hash: -2066054458027258578
|
245
251
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
252
|
none: false
|
247
253
|
requirements:
|