peddler 0.6.5 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +62 -81
  4. data/lib/mws/cart_information.rb +13 -0
  5. data/lib/mws/customer_information.rb +16 -0
  6. data/lib/mws/feeds.rb +110 -1
  7. data/lib/mws/fulfillment_inbound_shipment.rb +13 -1
  8. data/lib/mws/fulfillment_inventory.rb +15 -1
  9. data/lib/mws/fulfillment_outbound_shipment.rb +17 -1
  10. data/lib/mws/off_amazon_payments.rb +15 -1
  11. data/lib/mws/orders.rb +100 -1
  12. data/lib/mws/products.rb +238 -1
  13. data/lib/mws/recommendations.rb +13 -1
  14. data/lib/mws/reports.rb +221 -1
  15. data/lib/mws/sellers.rb +40 -1
  16. data/lib/mws/subscriptions.rb +175 -1
  17. data/lib/peddler/client.rb +77 -37
  18. data/lib/peddler/csv_parser.rb +42 -0
  19. data/lib/peddler/operation.rb +44 -0
  20. data/lib/peddler/parser.rb +21 -0
  21. data/lib/peddler/structured_list.rb +22 -0
  22. data/lib/peddler/version.rb +1 -1
  23. data/lib/peddler/xml_parser.rb +25 -0
  24. data/lib/peddler.rb +2 -0
  25. data/test/helper.rb +1 -1
  26. data/test/integration/test_feeds.rb +18 -0
  27. data/test/integration/test_orders.rb +22 -0
  28. data/test/integration/test_products.rb +53 -0
  29. data/test/integration/test_reports.rb +47 -0
  30. data/test/integration/test_sellers.rb +18 -0
  31. data/test/integration/test_subscriptions.rb +26 -0
  32. data/test/integration_helper.rb +41 -8
  33. data/test/mws.yml +32 -0
  34. data/test/mws.yml.example +4 -0
  35. data/test/unit/peddler/test_client.rb +97 -0
  36. data/test/unit/peddler/test_csv_parser.rb +24 -0
  37. data/test/unit/peddler/test_operation.rb +34 -0
  38. data/test/{peddler/request → unit/peddler}/test_structured_list.rb +5 -5
  39. data/test/unit/peddler/test_xml_parser.rb +19 -0
  40. data/test/{test_peddler.rb → unit/test_peddler.rb} +2 -2
  41. data/test/vcr_cassettes/Feeds.yml +695 -0
  42. data/test/vcr_cassettes/Orders.yml +29855 -0
  43. data/test/vcr_cassettes/Products.yml +8597 -0
  44. data/test/vcr_cassettes/Reports.yml +1881 -0
  45. data/test/vcr_cassettes/Sellers.yml +697 -0
  46. data/test/vcr_cassettes/Subscriptions.yml +1369 -0
  47. metadata +91 -297
  48. data/lib/mws/feeds/client.rb +0 -116
  49. data/lib/mws/feeds/parsers/feed.rb +0 -14
  50. data/lib/mws/feeds/parsers/feed_submission_count.rb +0 -10
  51. data/lib/mws/feeds/parsers/feed_submission_info.rb +0 -25
  52. data/lib/mws/feeds/parsers/feed_submission_list.rb +0 -23
  53. data/lib/mws/feeds/parsers/feed_submission_result.rb +0 -10
  54. data/lib/mws/feeds/parsers/feed_submissions.rb +0 -18
  55. data/lib/mws/feeds/requests/feed.rb +0 -38
  56. data/lib/mws/feeds/requests/feed_submission_count.rb +0 -20
  57. data/lib/mws/feeds/requests/feed_submission_list.rb +0 -30
  58. data/lib/mws/feeds/requests/feed_submission_result.rb +0 -18
  59. data/lib/mws/feeds/requests/feed_submissions.rb +0 -20
  60. data/lib/mws/fulfillment_inbound_shipment/client.rb +0 -7
  61. data/lib/mws/fulfillment_inventory/client.rb +0 -7
  62. data/lib/mws/fulfillment_outbound_shipment/client.rb +0 -7
  63. data/lib/mws/off_amazon_payments/client.rb +0 -7
  64. data/lib/mws/orders/client.rb +0 -98
  65. data/lib/mws/orders/parsers/invoice_data.rb +0 -25
  66. data/lib/mws/orders/parsers/order.rb +0 -113
  67. data/lib/mws/orders/parsers/order_item.rb +0 -110
  68. data/lib/mws/orders/parsers/order_items.rb +0 -23
  69. data/lib/mws/orders/parsers/orders.rb +0 -23
  70. data/lib/mws/orders/parsers/payment_execution_detail.rb +0 -20
  71. data/lib/mws/orders/parsers/payment_execution_detail_item.rb +0 -17
  72. data/lib/mws/orders/parsers/service_status.rb +0 -36
  73. data/lib/mws/orders/parsers/service_status_message.rb +0 -17
  74. data/lib/mws/orders/parsers/shipping_address.rb +0 -37
  75. data/lib/mws/orders/requests/order_items.rb +0 -28
  76. data/lib/mws/orders/requests/orders.rb +0 -41
  77. data/lib/mws/orders/requests/service_status.rb +0 -15
  78. data/lib/mws/products/client.rb +0 -7
  79. data/lib/mws/recommendations/client.rb +0 -7
  80. data/lib/mws/reports/client.rb +0 -249
  81. data/lib/mws/reports/parsers/report.rb +0 -10
  82. data/lib/mws/reports/parsers/report_acknowledgements.rb +0 -20
  83. data/lib/mws/reports/parsers/report_count.rb +0 -10
  84. data/lib/mws/reports/parsers/report_info.rb +0 -29
  85. data/lib/mws/reports/parsers/report_list.rb +0 -23
  86. data/lib/mws/reports/parsers/report_request.rb +0 -14
  87. data/lib/mws/reports/parsers/report_request_count.rb +0 -10
  88. data/lib/mws/reports/parsers/report_request_info.rb +0 -49
  89. data/lib/mws/reports/parsers/report_request_list.rb +0 -23
  90. data/lib/mws/reports/parsers/report_requests.rb +0 -18
  91. data/lib/mws/reports/parsers/report_schedule.rb +0 -21
  92. data/lib/mws/reports/parsers/report_schedule_count.rb +0 -10
  93. data/lib/mws/reports/parsers/report_schedule_list.rb +0 -23
  94. data/lib/mws/reports/parsers/report_scheduler.rb +0 -19
  95. data/lib/mws/reports/requests/report.rb +0 -18
  96. data/lib/mws/reports/requests/report_acknowledgements.rb +0 -27
  97. data/lib/mws/reports/requests/report_count.rb +0 -20
  98. data/lib/mws/reports/requests/report_list.rb +0 -30
  99. data/lib/mws/reports/requests/report_request.rb +0 -21
  100. data/lib/mws/reports/requests/report_request_count.rb +0 -20
  101. data/lib/mws/reports/requests/report_request_list.rb +0 -30
  102. data/lib/mws/reports/requests/report_requests.rb +0 -20
  103. data/lib/mws/reports/requests/report_schedule_count.rb +0 -19
  104. data/lib/mws/reports/requests/report_schedule_list.rb +0 -23
  105. data/lib/mws/reports/requests/report_scheduler.rb +0 -29
  106. data/lib/mws/sellers/client.rb +0 -53
  107. data/lib/mws/sellers/parsers/marketplace.rb +0 -33
  108. data/lib/mws/sellers/parsers/marketplace_participations.rb +0 -32
  109. data/lib/mws/sellers/parsers/participation.rb +0 -21
  110. data/lib/mws/sellers/parsers/service_status.rb +0 -36
  111. data/lib/mws/sellers/parsers/service_status_message.rb +0 -17
  112. data/lib/mws/sellers/requests/marketplace_participations.rb +0 -27
  113. data/lib/mws/sellers/requests/service_status.rb +0 -15
  114. data/lib/mws/subscriptions/client.rb +0 -7
  115. data/lib/peddler/parsers/base.rb +0 -15
  116. data/lib/peddler/parsers/collection.rb +0 -23
  117. data/lib/peddler/parsers/counter.rb +0 -13
  118. data/lib/peddler/parsers/model.rb +0 -42
  119. data/lib/peddler/parsers/text.rb +0 -8
  120. data/lib/peddler/parsers/tokenable.rb +0 -13
  121. data/lib/peddler/parsers/xml.rb +0 -30
  122. data/lib/peddler/request/parameters.rb +0 -57
  123. data/lib/peddler/request/structured_list.rb +0 -48
  124. data/lib/peddler/request.rb +0 -52
  125. data/lib/peddler/response/base.rb +0 -0
  126. data/lib/peddler/response/payload/base.rb +0 -0
  127. data/lib/peddler/response/payload/csv.rb +0 -0
  128. data/lib/peddler/response/payload/xml.rb +0 -0
  129. data/lib/peddler/response.rb +0 -27
  130. data/test/fixtures/feeds/feed_submission.xml +0 -14
  131. data/test/fixtures/feeds/feed_submission_count.xml +0 -9
  132. data/test/fixtures/feeds/feed_submission_list.xml +0 -17
  133. data/test/fixtures/feeds/feed_submissions.xml +0 -15
  134. data/test/fixtures/mws.yml +0 -12
  135. data/test/fixtures/mws.yml.example +0 -4
  136. data/test/fixtures/orders/order_items.xml +0 -83
  137. data/test/fixtures/orders/orders.xml +0 -109
  138. data/test/fixtures/orders/service_status.xml +0 -19
  139. data/test/fixtures/reports/report.xml +0 -8
  140. data/test/fixtures/reports/report_acknowledgements.xml +0 -18
  141. data/test/fixtures/reports/report_count.xml +0 -9
  142. data/test/fixtures/reports/report_list.xml +0 -17
  143. data/test/fixtures/reports/report_request_count.xml +0 -9
  144. data/test/fixtures/reports/report_request_list.xml +0 -24
  145. data/test/fixtures/reports/report_requests.xml +0 -19
  146. data/test/fixtures/reports/report_schedule_count.xml +0 -10
  147. data/test/fixtures/reports/report_schedule_list.xml +0 -16
  148. data/test/fixtures/reports/report_scheduler.xml +0 -15
  149. data/test/fixtures/sellers/market_participations.xml +0 -27
  150. data/test/fixtures/sellers/service_status.xml +0 -9
  151. data/test/integration/feeds/test_feed_submission_count.rb +0 -13
  152. data/test/integration/feeds/test_feed_submission_list.rb +0 -17
  153. data/test/integration/feeds/test_feed_submission_result.rb +0 -15
  154. data/test/integration/orders/test_order_items.rb +0 -19
  155. data/test/integration/orders/test_orders.rb +0 -23
  156. data/test/integration/orders/test_service_status.rb +0 -12
  157. data/test/integration/reports/test_report.rb +0 -15
  158. data/test/integration/reports/test_report_count.rb +0 -13
  159. data/test/integration/reports/test_report_list.rb +0 -17
  160. data/test/integration/reports/test_report_request_count.rb +0 -13
  161. data/test/integration/reports/test_report_request_list.rb +0 -17
  162. data/test/integration/reports/test_report_schedule_count.rb +0 -13
  163. data/test/integration/reports/test_report_schedule_list.rb +0 -13
  164. data/test/integration/reports/test_report_scheduler.rb +0 -16
  165. data/test/integration/sellers/test_marketplace_participations.rb +0 -13
  166. data/test/integration/sellers/test_service_status.rb +0 -12
  167. data/test/mws/feeds/parsers/test_feed.rb +0 -13
  168. data/test/mws/feeds/parsers/test_feed_submission_count.rb +0 -13
  169. data/test/mws/feeds/parsers/test_feed_submission_info.rb +0 -25
  170. data/test/mws/feeds/parsers/test_feed_submission_list.rb +0 -18
  171. data/test/mws/feeds/parsers/test_feed_submission_result.rb +0 -13
  172. data/test/mws/feeds/parsers/test_feed_submissions.rb +0 -17
  173. data/test/mws/feeds/requests/test_feed.rb +0 -63
  174. data/test/mws/feeds/requests/test_feed_submission_count.rb +0 -23
  175. data/test/mws/feeds/requests/test_feed_submission_list.rb +0 -37
  176. data/test/mws/feeds/requests/test_feed_submissions.rb +0 -29
  177. data/test/mws/orders/parsers/test_order.rb +0 -86
  178. data/test/mws/orders/parsers/test_order_item.rb +0 -69
  179. data/test/mws/orders/parsers/test_order_items.rb +0 -18
  180. data/test/mws/orders/parsers/test_orders.rb +0 -18
  181. data/test/mws/orders/parsers/test_payment_execution_detail.rb +0 -14
  182. data/test/mws/orders/parsers/test_payment_execution_detail_item.rb +0 -17
  183. data/test/mws/orders/parsers/test_service_status.rb +0 -39
  184. data/test/mws/orders/parsers/test_service_status_message.rb +0 -17
  185. data/test/mws/orders/parsers/test_shipping_address.rb +0 -36
  186. data/test/mws/orders/requests/test_order_items.rb +0 -36
  187. data/test/mws/orders/requests/test_orders.rb +0 -46
  188. data/test/mws/orders/requests/test_service_status.rb +0 -25
  189. data/test/mws/reports/parsers/test_report_acknowledgments.rb +0 -14
  190. data/test/mws/reports/parsers/test_report_count.rb +0 -13
  191. data/test/mws/reports/parsers/test_report_info.rb +0 -29
  192. data/test/mws/reports/parsers/test_report_list.rb +0 -18
  193. data/test/mws/reports/parsers/test_report_request.rb +0 -13
  194. data/test/mws/reports/parsers/test_report_request_count.rb +0 -13
  195. data/test/mws/reports/parsers/test_report_request_info.rb +0 -49
  196. data/test/mws/reports/parsers/test_report_request_list.rb +0 -18
  197. data/test/mws/reports/parsers/test_report_requests.rb +0 -17
  198. data/test/mws/reports/parsers/test_report_schedule_count.rb +0 -13
  199. data/test/mws/reports/parsers/test_report_schedule_list.rb +0 -18
  200. data/test/mws/reports/parsers/test_report_scheduler.rb +0 -17
  201. data/test/mws/reports/requests/test_acknowledgements.rb +0 -36
  202. data/test/mws/reports/requests/test_report_count.rb +0 -23
  203. data/test/mws/reports/requests/test_report_list.rb +0 -39
  204. data/test/mws/reports/requests/test_report_request.rb +0 -31
  205. data/test/mws/reports/requests/test_report_request_count.rb +0 -23
  206. data/test/mws/reports/requests/test_report_request_list.rb +0 -44
  207. data/test/mws/reports/requests/test_report_requests.rb +0 -29
  208. data/test/mws/reports/requests/test_report_schedule_count.rb +0 -22
  209. data/test/mws/reports/requests/test_report_schedule_list.rb +0 -36
  210. data/test/mws/reports/requests/test_report_scheduler.rb +0 -33
  211. data/test/mws/sellers/parsers/test_market_participations.rb +0 -19
  212. data/test/mws/sellers/parsers/test_service_status.rb +0 -35
  213. data/test/mws/sellers/requests/test_marketplace_participation_list.rb +0 -39
  214. data/test/mws/sellers/requests/test_service_status.rb +0 -25
  215. data/test/parser_helper.rb +0 -11
  216. data/test/peddler/parsers/test_collection.rb +0 -8
  217. data/test/peddler/parsers/test_model.rb +0 -70
  218. data/test/peddler/request/test_parameters.rb +0 -35
  219. data/test/peddler/test_client.rb +0 -42
  220. data/test/request_helper.rb +0 -20
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peddler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-16 00:00:00.000000000 Z
11
+ date: 2014-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeff
@@ -16,58 +16,58 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.2
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.2
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: money
28
+ name: multi_xml
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: 0.5.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.0'
40
+ version: 0.5.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: nokogiri
42
+ name: guard-minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.5'
48
- type: :runtime
47
+ version: '0'
48
+ type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.5'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: structure
56
+ name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.25.1
62
- type: :runtime
61
+ version: '5.0'
62
+ type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.25.1
68
+ version: '5.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: guard-minitest
70
+ name: minitest-emoji
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,21 +81,21 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: minitest
84
+ name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '5.0'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '5.0'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: pry
98
+ name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,7 +109,21 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: rake
112
+ name: vcr
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: yard
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ">="
@@ -122,207 +136,59 @@ dependencies:
122
136
  - - ">="
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
- description: A Ruby interface to the Amazon Marketplace Web Service (MWS) APIs
139
+ description: A Ruby interface to the Amazon MWS API
126
140
  email:
127
- - hakan.ensari@papercavalier.com
141
+ - hakanensari@me.com
128
142
  executables: []
129
143
  extensions: []
130
144
  extra_rdoc_files: []
131
145
  files:
132
146
  - LICENSE
133
147
  - README.md
148
+ - lib/mws/cart_information.rb
149
+ - lib/mws/customer_information.rb
134
150
  - lib/mws/feeds.rb
135
- - lib/mws/feeds/client.rb
136
- - lib/mws/feeds/parsers/feed.rb
137
- - lib/mws/feeds/parsers/feed_submission_count.rb
138
- - lib/mws/feeds/parsers/feed_submission_info.rb
139
- - lib/mws/feeds/parsers/feed_submission_list.rb
140
- - lib/mws/feeds/parsers/feed_submission_result.rb
141
- - lib/mws/feeds/parsers/feed_submissions.rb
142
- - lib/mws/feeds/requests/feed.rb
143
- - lib/mws/feeds/requests/feed_submission_count.rb
144
- - lib/mws/feeds/requests/feed_submission_list.rb
145
- - lib/mws/feeds/requests/feed_submission_result.rb
146
- - lib/mws/feeds/requests/feed_submissions.rb
147
151
  - lib/mws/fulfillment_inbound_shipment.rb
148
- - lib/mws/fulfillment_inbound_shipment/client.rb
149
152
  - lib/mws/fulfillment_inventory.rb
150
- - lib/mws/fulfillment_inventory/client.rb
151
153
  - lib/mws/fulfillment_outbound_shipment.rb
152
- - lib/mws/fulfillment_outbound_shipment/client.rb
153
154
  - lib/mws/off_amazon_payments.rb
154
- - lib/mws/off_amazon_payments/client.rb
155
155
  - lib/mws/orders.rb
156
- - lib/mws/orders/client.rb
157
- - lib/mws/orders/parsers/invoice_data.rb
158
- - lib/mws/orders/parsers/order.rb
159
- - lib/mws/orders/parsers/order_item.rb
160
- - lib/mws/orders/parsers/order_items.rb
161
- - lib/mws/orders/parsers/orders.rb
162
- - lib/mws/orders/parsers/payment_execution_detail.rb
163
- - lib/mws/orders/parsers/payment_execution_detail_item.rb
164
- - lib/mws/orders/parsers/service_status.rb
165
- - lib/mws/orders/parsers/service_status_message.rb
166
- - lib/mws/orders/parsers/shipping_address.rb
167
- - lib/mws/orders/requests/order_items.rb
168
- - lib/mws/orders/requests/orders.rb
169
- - lib/mws/orders/requests/service_status.rb
170
156
  - lib/mws/products.rb
171
- - lib/mws/products/client.rb
172
157
  - lib/mws/recommendations.rb
173
- - lib/mws/recommendations/client.rb
174
158
  - lib/mws/reports.rb
175
- - lib/mws/reports/client.rb
176
- - lib/mws/reports/parsers/report.rb
177
- - lib/mws/reports/parsers/report_acknowledgements.rb
178
- - lib/mws/reports/parsers/report_count.rb
179
- - lib/mws/reports/parsers/report_info.rb
180
- - lib/mws/reports/parsers/report_list.rb
181
- - lib/mws/reports/parsers/report_request.rb
182
- - lib/mws/reports/parsers/report_request_count.rb
183
- - lib/mws/reports/parsers/report_request_info.rb
184
- - lib/mws/reports/parsers/report_request_list.rb
185
- - lib/mws/reports/parsers/report_requests.rb
186
- - lib/mws/reports/parsers/report_schedule.rb
187
- - lib/mws/reports/parsers/report_schedule_count.rb
188
- - lib/mws/reports/parsers/report_schedule_list.rb
189
- - lib/mws/reports/parsers/report_scheduler.rb
190
- - lib/mws/reports/requests/report.rb
191
- - lib/mws/reports/requests/report_acknowledgements.rb
192
- - lib/mws/reports/requests/report_count.rb
193
- - lib/mws/reports/requests/report_list.rb
194
- - lib/mws/reports/requests/report_request.rb
195
- - lib/mws/reports/requests/report_request_count.rb
196
- - lib/mws/reports/requests/report_request_list.rb
197
- - lib/mws/reports/requests/report_requests.rb
198
- - lib/mws/reports/requests/report_schedule_count.rb
199
- - lib/mws/reports/requests/report_schedule_list.rb
200
- - lib/mws/reports/requests/report_scheduler.rb
201
159
  - lib/mws/sellers.rb
202
- - lib/mws/sellers/client.rb
203
- - lib/mws/sellers/parsers/marketplace.rb
204
- - lib/mws/sellers/parsers/marketplace_participations.rb
205
- - lib/mws/sellers/parsers/participation.rb
206
- - lib/mws/sellers/parsers/service_status.rb
207
- - lib/mws/sellers/parsers/service_status_message.rb
208
- - lib/mws/sellers/requests/marketplace_participations.rb
209
- - lib/mws/sellers/requests/service_status.rb
210
160
  - lib/mws/subscriptions.rb
211
- - lib/mws/subscriptions/client.rb
212
161
  - lib/peddler.rb
213
162
  - lib/peddler/client.rb
214
- - lib/peddler/parsers/base.rb
215
- - lib/peddler/parsers/collection.rb
216
- - lib/peddler/parsers/counter.rb
217
- - lib/peddler/parsers/model.rb
218
- - lib/peddler/parsers/text.rb
219
- - lib/peddler/parsers/tokenable.rb
220
- - lib/peddler/parsers/xml.rb
221
- - lib/peddler/request.rb
222
- - lib/peddler/request/parameters.rb
223
- - lib/peddler/request/structured_list.rb
224
- - lib/peddler/response.rb
225
- - lib/peddler/response/base.rb
226
- - lib/peddler/response/payload/base.rb
227
- - lib/peddler/response/payload/csv.rb
228
- - lib/peddler/response/payload/xml.rb
163
+ - lib/peddler/csv_parser.rb
164
+ - lib/peddler/operation.rb
165
+ - lib/peddler/parser.rb
166
+ - lib/peddler/structured_list.rb
229
167
  - lib/peddler/version.rb
230
- - test/fixtures/feeds/feed_submission.xml
231
- - test/fixtures/feeds/feed_submission_count.xml
232
- - test/fixtures/feeds/feed_submission_list.xml
233
- - test/fixtures/feeds/feed_submissions.xml
234
- - test/fixtures/mws.yml
235
- - test/fixtures/mws.yml.example
236
- - test/fixtures/orders/order_items.xml
237
- - test/fixtures/orders/orders.xml
238
- - test/fixtures/orders/service_status.xml
239
- - test/fixtures/reports/report.xml
240
- - test/fixtures/reports/report_acknowledgements.xml
241
- - test/fixtures/reports/report_count.xml
242
- - test/fixtures/reports/report_list.xml
243
- - test/fixtures/reports/report_request_count.xml
244
- - test/fixtures/reports/report_request_list.xml
245
- - test/fixtures/reports/report_requests.xml
246
- - test/fixtures/reports/report_schedule_count.xml
247
- - test/fixtures/reports/report_schedule_list.xml
248
- - test/fixtures/reports/report_scheduler.xml
249
- - test/fixtures/sellers/market_participations.xml
250
- - test/fixtures/sellers/service_status.xml
168
+ - lib/peddler/xml_parser.rb
251
169
  - test/helper.rb
252
- - test/integration/feeds/test_feed_submission_count.rb
253
- - test/integration/feeds/test_feed_submission_list.rb
254
- - test/integration/feeds/test_feed_submission_result.rb
255
- - test/integration/orders/test_order_items.rb
256
- - test/integration/orders/test_orders.rb
257
- - test/integration/orders/test_service_status.rb
258
- - test/integration/reports/test_report.rb
259
- - test/integration/reports/test_report_count.rb
260
- - test/integration/reports/test_report_list.rb
261
- - test/integration/reports/test_report_request_count.rb
262
- - test/integration/reports/test_report_request_list.rb
263
- - test/integration/reports/test_report_schedule_count.rb
264
- - test/integration/reports/test_report_schedule_list.rb
265
- - test/integration/reports/test_report_scheduler.rb
266
- - test/integration/sellers/test_marketplace_participations.rb
267
- - test/integration/sellers/test_service_status.rb
170
+ - test/integration/test_feeds.rb
171
+ - test/integration/test_orders.rb
172
+ - test/integration/test_products.rb
173
+ - test/integration/test_reports.rb
174
+ - test/integration/test_sellers.rb
175
+ - test/integration/test_subscriptions.rb
268
176
  - test/integration_helper.rb
269
- - test/mws/feeds/parsers/test_feed.rb
270
- - test/mws/feeds/parsers/test_feed_submission_count.rb
271
- - test/mws/feeds/parsers/test_feed_submission_info.rb
272
- - test/mws/feeds/parsers/test_feed_submission_list.rb
273
- - test/mws/feeds/parsers/test_feed_submission_result.rb
274
- - test/mws/feeds/parsers/test_feed_submissions.rb
275
- - test/mws/feeds/requests/test_feed.rb
276
- - test/mws/feeds/requests/test_feed_submission_count.rb
277
- - test/mws/feeds/requests/test_feed_submission_list.rb
278
- - test/mws/feeds/requests/test_feed_submissions.rb
279
- - test/mws/orders/parsers/test_order.rb
280
- - test/mws/orders/parsers/test_order_item.rb
281
- - test/mws/orders/parsers/test_order_items.rb
282
- - test/mws/orders/parsers/test_orders.rb
283
- - test/mws/orders/parsers/test_payment_execution_detail.rb
284
- - test/mws/orders/parsers/test_payment_execution_detail_item.rb
285
- - test/mws/orders/parsers/test_service_status.rb
286
- - test/mws/orders/parsers/test_service_status_message.rb
287
- - test/mws/orders/parsers/test_shipping_address.rb
288
- - test/mws/orders/requests/test_order_items.rb
289
- - test/mws/orders/requests/test_orders.rb
290
- - test/mws/orders/requests/test_service_status.rb
291
- - test/mws/reports/parsers/test_report_acknowledgments.rb
292
- - test/mws/reports/parsers/test_report_count.rb
293
- - test/mws/reports/parsers/test_report_info.rb
294
- - test/mws/reports/parsers/test_report_list.rb
295
- - test/mws/reports/parsers/test_report_request.rb
296
- - test/mws/reports/parsers/test_report_request_count.rb
297
- - test/mws/reports/parsers/test_report_request_info.rb
298
- - test/mws/reports/parsers/test_report_request_list.rb
299
- - test/mws/reports/parsers/test_report_requests.rb
300
- - test/mws/reports/parsers/test_report_schedule_count.rb
301
- - test/mws/reports/parsers/test_report_schedule_list.rb
302
- - test/mws/reports/parsers/test_report_scheduler.rb
303
- - test/mws/reports/requests/test_acknowledgements.rb
304
- - test/mws/reports/requests/test_report_count.rb
305
- - test/mws/reports/requests/test_report_list.rb
306
- - test/mws/reports/requests/test_report_request.rb
307
- - test/mws/reports/requests/test_report_request_count.rb
308
- - test/mws/reports/requests/test_report_request_list.rb
309
- - test/mws/reports/requests/test_report_requests.rb
310
- - test/mws/reports/requests/test_report_schedule_count.rb
311
- - test/mws/reports/requests/test_report_schedule_list.rb
312
- - test/mws/reports/requests/test_report_scheduler.rb
313
- - test/mws/sellers/parsers/test_market_participations.rb
314
- - test/mws/sellers/parsers/test_service_status.rb
315
- - test/mws/sellers/requests/test_marketplace_participation_list.rb
316
- - test/mws/sellers/requests/test_service_status.rb
317
- - test/parser_helper.rb
318
- - test/peddler/parsers/test_collection.rb
319
- - test/peddler/parsers/test_model.rb
320
- - test/peddler/request/test_parameters.rb
321
- - test/peddler/request/test_structured_list.rb
322
- - test/peddler/test_client.rb
323
- - test/request_helper.rb
324
- - test/test_peddler.rb
325
- homepage: http://github.com/papercavalier/peddler
177
+ - test/mws.yml
178
+ - test/mws.yml.example
179
+ - test/unit/peddler/test_client.rb
180
+ - test/unit/peddler/test_csv_parser.rb
181
+ - test/unit/peddler/test_operation.rb
182
+ - test/unit/peddler/test_structured_list.rb
183
+ - test/unit/peddler/test_xml_parser.rb
184
+ - test/unit/test_peddler.rb
185
+ - test/vcr_cassettes/Feeds.yml
186
+ - test/vcr_cassettes/Orders.yml
187
+ - test/vcr_cassettes/Products.yml
188
+ - test/vcr_cassettes/Reports.yml
189
+ - test/vcr_cassettes/Sellers.yml
190
+ - test/vcr_cassettes/Subscriptions.yml
191
+ homepage: http://github.com/hakanensari/peddler
326
192
  licenses: []
327
193
  metadata: {}
328
194
  post_install_message:
@@ -341,103 +207,31 @@ required_rubygems_version: !ruby/object:Gem::Requirement
341
207
  version: '0'
342
208
  requirements: []
343
209
  rubyforge_project:
344
- rubygems_version: 2.2.0
210
+ rubygems_version: 2.2.2
345
211
  signing_key:
346
212
  specification_version: 4
347
213
  summary: Wraps the Amazon MWS APIs
348
214
  test_files:
349
- - test/fixtures/feeds/feed_submission.xml
350
- - test/fixtures/feeds/feed_submission_count.xml
351
- - test/fixtures/feeds/feed_submission_list.xml
352
- - test/fixtures/feeds/feed_submissions.xml
353
- - test/fixtures/mws.yml
354
- - test/fixtures/mws.yml.example
355
- - test/fixtures/orders/order_items.xml
356
- - test/fixtures/orders/orders.xml
357
- - test/fixtures/orders/service_status.xml
358
- - test/fixtures/reports/report.xml
359
- - test/fixtures/reports/report_acknowledgements.xml
360
- - test/fixtures/reports/report_count.xml
361
- - test/fixtures/reports/report_list.xml
362
- - test/fixtures/reports/report_request_count.xml
363
- - test/fixtures/reports/report_request_list.xml
364
- - test/fixtures/reports/report_requests.xml
365
- - test/fixtures/reports/report_schedule_count.xml
366
- - test/fixtures/reports/report_schedule_list.xml
367
- - test/fixtures/reports/report_scheduler.xml
368
- - test/fixtures/sellers/market_participations.xml
369
- - test/fixtures/sellers/service_status.xml
370
215
  - test/helper.rb
371
- - test/integration/feeds/test_feed_submission_count.rb
372
- - test/integration/feeds/test_feed_submission_list.rb
373
- - test/integration/feeds/test_feed_submission_result.rb
374
- - test/integration/orders/test_order_items.rb
375
- - test/integration/orders/test_orders.rb
376
- - test/integration/orders/test_service_status.rb
377
- - test/integration/reports/test_report.rb
378
- - test/integration/reports/test_report_count.rb
379
- - test/integration/reports/test_report_list.rb
380
- - test/integration/reports/test_report_request_count.rb
381
- - test/integration/reports/test_report_request_list.rb
382
- - test/integration/reports/test_report_schedule_count.rb
383
- - test/integration/reports/test_report_schedule_list.rb
384
- - test/integration/reports/test_report_scheduler.rb
385
- - test/integration/sellers/test_marketplace_participations.rb
386
- - test/integration/sellers/test_service_status.rb
216
+ - test/integration/test_feeds.rb
217
+ - test/integration/test_orders.rb
218
+ - test/integration/test_products.rb
219
+ - test/integration/test_reports.rb
220
+ - test/integration/test_sellers.rb
221
+ - test/integration/test_subscriptions.rb
387
222
  - test/integration_helper.rb
388
- - test/mws/feeds/parsers/test_feed.rb
389
- - test/mws/feeds/parsers/test_feed_submission_count.rb
390
- - test/mws/feeds/parsers/test_feed_submission_info.rb
391
- - test/mws/feeds/parsers/test_feed_submission_list.rb
392
- - test/mws/feeds/parsers/test_feed_submission_result.rb
393
- - test/mws/feeds/parsers/test_feed_submissions.rb
394
- - test/mws/feeds/requests/test_feed.rb
395
- - test/mws/feeds/requests/test_feed_submission_count.rb
396
- - test/mws/feeds/requests/test_feed_submission_list.rb
397
- - test/mws/feeds/requests/test_feed_submissions.rb
398
- - test/mws/orders/parsers/test_order.rb
399
- - test/mws/orders/parsers/test_order_item.rb
400
- - test/mws/orders/parsers/test_order_items.rb
401
- - test/mws/orders/parsers/test_orders.rb
402
- - test/mws/orders/parsers/test_payment_execution_detail.rb
403
- - test/mws/orders/parsers/test_payment_execution_detail_item.rb
404
- - test/mws/orders/parsers/test_service_status.rb
405
- - test/mws/orders/parsers/test_service_status_message.rb
406
- - test/mws/orders/parsers/test_shipping_address.rb
407
- - test/mws/orders/requests/test_order_items.rb
408
- - test/mws/orders/requests/test_orders.rb
409
- - test/mws/orders/requests/test_service_status.rb
410
- - test/mws/reports/parsers/test_report_acknowledgments.rb
411
- - test/mws/reports/parsers/test_report_count.rb
412
- - test/mws/reports/parsers/test_report_info.rb
413
- - test/mws/reports/parsers/test_report_list.rb
414
- - test/mws/reports/parsers/test_report_request.rb
415
- - test/mws/reports/parsers/test_report_request_count.rb
416
- - test/mws/reports/parsers/test_report_request_info.rb
417
- - test/mws/reports/parsers/test_report_request_list.rb
418
- - test/mws/reports/parsers/test_report_requests.rb
419
- - test/mws/reports/parsers/test_report_schedule_count.rb
420
- - test/mws/reports/parsers/test_report_schedule_list.rb
421
- - test/mws/reports/parsers/test_report_scheduler.rb
422
- - test/mws/reports/requests/test_acknowledgements.rb
423
- - test/mws/reports/requests/test_report_count.rb
424
- - test/mws/reports/requests/test_report_list.rb
425
- - test/mws/reports/requests/test_report_request.rb
426
- - test/mws/reports/requests/test_report_request_count.rb
427
- - test/mws/reports/requests/test_report_request_list.rb
428
- - test/mws/reports/requests/test_report_requests.rb
429
- - test/mws/reports/requests/test_report_schedule_count.rb
430
- - test/mws/reports/requests/test_report_schedule_list.rb
431
- - test/mws/reports/requests/test_report_scheduler.rb
432
- - test/mws/sellers/parsers/test_market_participations.rb
433
- - test/mws/sellers/parsers/test_service_status.rb
434
- - test/mws/sellers/requests/test_marketplace_participation_list.rb
435
- - test/mws/sellers/requests/test_service_status.rb
436
- - test/parser_helper.rb
437
- - test/peddler/parsers/test_collection.rb
438
- - test/peddler/parsers/test_model.rb
439
- - test/peddler/request/test_parameters.rb
440
- - test/peddler/request/test_structured_list.rb
441
- - test/peddler/test_client.rb
442
- - test/request_helper.rb
443
- - test/test_peddler.rb
223
+ - test/mws.yml
224
+ - test/mws.yml.example
225
+ - test/unit/peddler/test_client.rb
226
+ - test/unit/peddler/test_csv_parser.rb
227
+ - test/unit/peddler/test_operation.rb
228
+ - test/unit/peddler/test_structured_list.rb
229
+ - test/unit/peddler/test_xml_parser.rb
230
+ - test/unit/test_peddler.rb
231
+ - test/vcr_cassettes/Feeds.yml
232
+ - test/vcr_cassettes/Orders.yml
233
+ - test/vcr_cassettes/Products.yml
234
+ - test/vcr_cassettes/Reports.yml
235
+ - test/vcr_cassettes/Sellers.yml
236
+ - test/vcr_cassettes/Subscriptions.yml
237
+ has_rdoc:
@@ -1,116 +0,0 @@
1
- require 'mws/feeds/requests/feed'
2
- require 'mws/feeds/requests/feed_submission_list'
3
- require 'mws/feeds/requests/feed_submission_count'
4
- require 'mws/feeds/requests/feed_submission_result'
5
- require 'mws/feeds/requests/feed_submissions'
6
- require 'peddler/client'
7
-
8
- module MWS
9
- module Feeds
10
- # The MWS Feeds API lets you upload inventory and order data to Amazon. You
11
- # can also use this API to get information about the processing of feeds.
12
- class Client < ::Peddler::Client
13
- # Public: Upload a feed for processing by Amazon MWS.
14
- #
15
- # content - The String content of the feed, in XML or flat file format.
16
- # type - A String value indicating how the data should be processed.
17
- # options - Other optional Hash query parameters used to define the
18
- # submission.
19
- # :marketplace_id_list - A list of one or more marketplace Ids
20
- # that you want the feed to be applied
21
- # to (defaults to the client's default
22
- # country).
23
- # :purge_and_replace - A Boolean value that enables the purge
24
- # and replace functionality (default:
25
- # false).
26
- #
27
- # Examples
28
- #
29
- # client.submit_feed(body, '_POST_PRODUCT_DATA_')
30
- #
31
- # Returns a Feed Submission.
32
- def_delegator :feed, :submit, :submit_feed
33
-
34
- # Public: Get a list of feed submissions submitted during a specified time
35
- # frame.
36
- #
37
- # options - The Hash query parameters used to narrow the list. Refer to
38
- # the MWS Feeds API for available parameters.
39
- #
40
- # Examples
41
- #
42
- # client.get_feed_submission_list(submitted_from_date: 1.week.ago)
43
- #
44
- # Returns an enumerable Feed Submission List.
45
- def_delegator :feed_submission_list, :get, :get_feed_submission_list
46
-
47
- # Public: List the next page of the list of feed submissions.
48
- #
49
- # token - A String token (default: The token returned in the last
50
- # request).
51
- #
52
- # Examples
53
- #
54
- # client.get_feed_submission_list_by_next_token
55
- #
56
- # Returns an enumerable Feed Submission List or false if there are no more
57
- # pages left.
58
- def_delegator :feed_submission_list, :get_by_next_token, :get_feed_submission_list_by_next_token
59
-
60
- # Public: Get a count of the feeds submitted during a specified time
61
- # frame.
62
- #
63
- # options - The Hash query parameters used to narrow the list. Refer to
64
- # the MWS Feeds API for available parameters.
65
- #
66
- # Examples
67
- #
68
- # client.get_feed_submission_count(submitted_from_date: 1.week.ago)
69
- #
70
- # Returns the Feed Submission Count.
71
- def_delegator :feed_submission_count, :get, :get_feed_submission_count
72
-
73
- # Public: Get the feed processing report and the Content-MD5 header for
74
- # the returned HTTP body.
75
- #
76
- # feed_submission_id - The String Feed Submission Id.
77
- #
78
- # Examples
79
- #
80
- # client.get_feed_submission_result('123456')
81
- #
82
- # Returns the Feed Submission Result.
83
- def_delegator :feed_submission_result, :get, :get_feed_submission_result
84
-
85
- # Public: Cancel one or more feed submissions.
86
- #
87
- # options - The Hash query parameters used to narrow the list. Refer to
88
- # the MWS Feeds API for available parameters.
89
- #
90
- # Returns the canceled Feed Submissions and their count.
91
- def_delegator :feed_submissions, :cancel, :cancel_feed_submissions
92
-
93
- private
94
-
95
- def feed
96
- @feed ||= Requests::Feed.new(self)
97
- end
98
-
99
- def feed_submission_list
100
- @feed_submission_list ||= Requests::FeedSubmissionList.new(self)
101
- end
102
-
103
- def feed_submission_count
104
- @feed_submission_count ||= Requests::FeedSubmissionCount.new(self)
105
- end
106
-
107
- def feed_submission_result
108
- @feed_submission_result ||= Requests::FeedSubmissionResult.new(self)
109
- end
110
-
111
- def feed_submissions
112
- @feed_submissions ||= Requests::FeedSubmissions.new(self)
113
- end
114
- end
115
- end
116
- end
@@ -1,14 +0,0 @@
1
- require 'peddler/parsers/model'
2
- require 'mws/feeds/parsers/feed_submission_info'
3
-
4
- module MWS
5
- module Feeds
6
- module Parsers
7
- class Feed < Peddler::Parsers::Model
8
- value :submission_info do
9
- FeedSubmissionInfo.new(at_xpath('FeedSubmissionInfo'))
10
- end
11
- end
12
- end
13
- end
14
- end
@@ -1,10 +0,0 @@
1
- require 'peddler/parsers/counter'
2
-
3
- module MWS
4
- module Feeds
5
- module Parsers
6
- class FeedSubmissionCount < ::Peddler::Parsers::Counter
7
- end
8
- end
9
- end
10
- end
@@ -1,25 +0,0 @@
1
- require 'peddler/parsers/model'
2
-
3
- module MWS
4
- module Feeds
5
- module Parsers
6
- class FeedSubmissionInfo < ::Peddler::Parsers::Model
7
- value :id do
8
- text_at_xpath('FeedSubmissionId')
9
- end
10
-
11
- value :type do
12
- text_at_xpath('FeedType')
13
- end
14
-
15
- value :submitted_at do
16
- time_at_xpath('SubmittedDate')
17
- end
18
-
19
- value :processing_status do
20
- text_at_xpath('FeedProcessingStatus')
21
- end
22
- end
23
- end
24
- end
25
- end