peddler 2.1.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -41
  3. data/lib/mws.rb +2 -1
  4. data/lib/mws/easy_ship.rb +3 -0
  5. data/lib/mws/easy_ship/client.rb +93 -0
  6. data/lib/mws/fulfillment_outbound_shipment/client.rb +1 -1
  7. data/lib/mws/orders/client.rb +6 -6
  8. data/lib/mws/shipment_invoicing.rb +3 -0
  9. data/lib/mws/shipment_invoicing/client.rb +74 -0
  10. data/lib/peddler/client.rb +11 -10
  11. data/lib/peddler/content.rb +2 -2
  12. data/lib/peddler/errors/builder.rb +7 -2
  13. data/lib/peddler/errors/class_generator.rb +1 -1
  14. data/lib/peddler/errors/error.rb +6 -2
  15. data/lib/peddler/errors/parser.rb +1 -1
  16. data/lib/peddler/flat_file_parser.rb +5 -3
  17. data/lib/peddler/marketplace.rb +23 -19
  18. data/lib/peddler/mws.rb +2 -2
  19. data/lib/peddler/operation.rb +17 -11
  20. data/lib/peddler/parser.rb +1 -1
  21. data/lib/peddler/structured_list.rb +1 -1
  22. data/lib/peddler/vcr_matcher.rb +7 -7
  23. data/lib/peddler/version.rb +1 -1
  24. data/lib/peddler/xml_parser.rb +1 -1
  25. data/lib/peddler/xml_response_parser.rb +1 -1
  26. metadata +11 -146
  27. data/lib/mws/off_amazon_payments/client.rb +0 -362
  28. data/test/credentials.rb +0 -23
  29. data/test/helper.rb +0 -15
  30. data/test/integration/internals/test_errors.rb +0 -17
  31. data/test/integration/internals/test_multibyte_queries.rb +0 -17
  32. data/test/integration/internals/test_mws_headers.rb +0 -21
  33. data/test/integration/internals/test_string_encodings.rb +0 -38
  34. data/test/integration/test_feeds.rb +0 -37
  35. data/test/integration/test_fulfillment_inbound_shipment.rb +0 -35
  36. data/test/integration/test_fulfillment_inventory.rb +0 -20
  37. data/test/integration/test_fulfillment_outbound_shipment.rb +0 -13
  38. data/test/integration/test_merchant_fulfillment.rb +0 -69
  39. data/test/integration/test_off_amazon_payments.rb +0 -13
  40. data/test/integration/test_orders.rb +0 -30
  41. data/test/integration/test_products.rb +0 -97
  42. data/test/integration/test_recommendations.rb +0 -20
  43. data/test/integration/test_reports.rb +0 -51
  44. data/test/integration/test_sellers.rb +0 -13
  45. data/test/integration/test_subscriptions.rb +0 -27
  46. data/test/integration_helper.rb +0 -53
  47. data/test/mws.yml +0 -36
  48. data/test/mws.yml.example +0 -32
  49. data/test/null_client.rb +0 -25
  50. data/test/recorder.rb +0 -39
  51. data/test/unit/mws/test_feeds_client.rb +0 -103
  52. data/test/unit/mws/test_finances_client.rb +0 -74
  53. data/test/unit/mws/test_fulfillment_inbound_shipment_client.rb +0 -426
  54. data/test/unit/mws/test_fulfillment_inventory_client.rb +0 -48
  55. data/test/unit/mws/test_fulfillment_outbound_shipment_client.rb +0 -202
  56. data/test/unit/mws/test_merchant_fulfillment_client.rb +0 -109
  57. data/test/unit/mws/test_off_amazon_payments_client.rb +0 -286
  58. data/test/unit/mws/test_orders_client.rb +0 -111
  59. data/test/unit/mws/test_products_client.rb +0 -248
  60. data/test/unit/mws/test_recommendations_client.rb +0 -62
  61. data/test/unit/mws/test_reports_client.rb +0 -209
  62. data/test/unit/mws/test_sellers_client.rb +0 -47
  63. data/test/unit/mws/test_subscriptions_client.rb +0 -182
  64. data/test/unit/peddler/errors/test_builder.rb +0 -65
  65. data/test/unit/peddler/errors/test_class_generator.rb +0 -18
  66. data/test/unit/peddler/errors/test_error.rb +0 -33
  67. data/test/unit/peddler/errors/test_parser.rb +0 -44
  68. data/test/unit/peddler/test_client.rb +0 -203
  69. data/test/unit/peddler/test_flat_file_parser.rb +0 -111
  70. data/test/unit/peddler/test_headers.rb +0 -103
  71. data/test/unit/peddler/test_marketplace.rb +0 -47
  72. data/test/unit/peddler/test_operation.rb +0 -87
  73. data/test/unit/peddler/test_parser.rb +0 -36
  74. data/test/unit/peddler/test_structured_list.rb +0 -39
  75. data/test/unit/peddler/test_vcr_matcher.rb +0 -55
  76. data/test/unit/peddler/test_xml_parser.rb +0 -37
  77. data/test/unit/peddler/test_xml_response_parser.rb +0 -39
  78. data/test/unit/test_mws.rb +0 -11
  79. data/test/vcr_cassettes/CartInformation.yml +0 -433
  80. data/test/vcr_cassettes/CustomerInformation.yml +0 -433
  81. data/test/vcr_cassettes/Errors.yml +0 -444
  82. data/test/vcr_cassettes/Feeds.yml +0 -9957
  83. data/test/vcr_cassettes/FulfillmentInboundShipment.yml +0 -6166
  84. data/test/vcr_cassettes/FulfillmentInventory.yml +0 -850
  85. data/test/vcr_cassettes/FulfillmentOutboundShipment.yml +0 -433
  86. data/test/vcr_cassettes/MWSHeaders.yml +0 -2964
  87. data/test/vcr_cassettes/MerchantFulfillment.yml +0 -753
  88. data/test/vcr_cassettes/MultibyteQueries.yml +0 -437
  89. data/test/vcr_cassettes/OffAmazonPayments.yml +0 -433
  90. data/test/vcr_cassettes/Orders.yml +0 -4740
  91. data/test/vcr_cassettes/PeddlerVCRMatcher.yml +0 -41
  92. data/test/vcr_cassettes/Products.yml +0 -7139
  93. data/test/vcr_cassettes/Recommendations.yml +0 -3145
  94. data/test/vcr_cassettes/Reports.yml +0 -5549
  95. data/test/vcr_cassettes/Sellers.yml +0 -433
  96. data/test/vcr_cassettes/Subscriptions.yml +0 -1529
@@ -3,10 +3,10 @@
3
3
  module Peddler
4
4
  # Parses content metadata provided in the headers of a response
5
5
  class Content
6
- # @api private
6
+ # @!visibility private
7
7
  attr_reader :headers
8
8
 
9
- # @api private
9
+ # @!visibility private
10
10
  def initialize(headers)
11
11
  @headers = headers.select { |key| key.start_with?('Content') }
12
12
  end
@@ -7,7 +7,7 @@ require 'peddler/errors/parser'
7
7
 
8
8
  module Peddler
9
9
  module Errors
10
- # @api private
10
+ # @!visibility private
11
11
  class Builder
12
12
  extend Forwardable
13
13
 
@@ -28,6 +28,7 @@ module Peddler
28
28
 
29
29
  def build
30
30
  parse_original_response
31
+ return if no_error_response?
31
32
  return if bad_class_name?
32
33
 
33
34
  error_class.new(error_message, error)
@@ -36,7 +37,11 @@ module Peddler
36
37
  private
37
38
 
38
39
  def bad_class_name?
39
- error_name =~ DIGIT_AS_FIRST_CHAR
40
+ error_name.match?(DIGIT_AS_FIRST_CHAR)
41
+ end
42
+
43
+ def no_error_response?
44
+ response.parse.nil?
40
45
  end
41
46
 
42
47
  def error_class
@@ -5,7 +5,7 @@ require 'peddler/errors/error'
5
5
 
6
6
  module Peddler
7
7
  module Errors
8
- # @api private
8
+ # @!visibility private
9
9
  class ClassGenerator
10
10
  include Singleton
11
11
 
@@ -3,11 +3,15 @@
3
3
  require 'forwardable'
4
4
 
5
5
  module Peddler
6
- # @api private
6
+ # @!visibility private
7
7
  module Errors
8
8
  # These error codes are common to all Amazon MWS API sections.
9
9
  #
10
10
  # @see https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Errors.html
11
+ #
12
+ # There are quite a few other error types they do not explicitly document
13
+ # above. I decided not to define any for the sake of consistency and future
14
+ # maintenance.
11
15
  CODES = %w[
12
16
  AccessDenied
13
17
  InputStreamDisconnected
@@ -20,7 +24,7 @@ module Peddler
20
24
  SignatureDoesNotMatch
21
25
  ].freeze
22
26
 
23
- # @api private
27
+ # @!visibility private
24
28
  class Error < StandardError
25
29
  extend Forwardable
26
30
 
@@ -4,7 +4,7 @@ require 'peddler/xml_parser'
4
4
 
5
5
  module Peddler
6
6
  module Errors
7
- # @api private
7
+ # @!visibility private
8
8
  class Parser < XMLParser
9
9
  def message
10
10
  parse['Message']
@@ -6,7 +6,7 @@ require 'digest/md5'
6
6
  require 'peddler/headers'
7
7
 
8
8
  module Peddler
9
- # @api private
9
+ # @!visibility private
10
10
  class FlatFileParser < SimpleDelegator
11
11
  include Headers
12
12
 
@@ -23,7 +23,7 @@ module Peddler
23
23
  end
24
24
 
25
25
  def parse(&blk)
26
- CSV.parse(content, OPTIONS, &blk) unless content.empty?
26
+ CSV.parse(content, **OPTIONS, &blk) unless content.empty?
27
27
  end
28
28
 
29
29
  def records_count
@@ -44,7 +44,9 @@ module Peddler
44
44
 
45
45
  def extract_content_and_summary
46
46
  @content = body.encode('UTF-8', invalid: :replace, undef: :replace)
47
- @summary, @content = @content.split("\n\n", 2) if @content =~ /\t\t.*\n\n/
47
+ return unless @content.match?(/\t\t.*\n\n/)
48
+
49
+ @summary, @content = @content.split("\n\n", 2)
48
50
  end
49
51
 
50
52
  def summarize
@@ -1,29 +1,24 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peddler
4
- # @api private
4
+ # @!visibility private
5
5
  # @see https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html
6
- Marketplace = Struct.new(:id, :country_code, :host) do
6
+ class Marketplace
7
7
  class << self
8
8
  attr_reader :all
9
9
 
10
10
  def find(key)
11
- marketplace = if key.nil?
12
- missing_key!
13
- elsif key.size == 2
14
- find_by_country_code(key)
15
- else
16
- find_by_id(key)
17
- end
11
+ missing_key! unless key
12
+ marketplace = key.size == 2 ? find_by_country(key) : find_by_id(key)
18
13
 
19
14
  marketplace || not_found!(key)
20
15
  end
21
16
 
22
17
  private
23
18
 
24
- def find_by_country_code(country_code)
25
- country_code = 'GB' if country_code == 'UK'
26
- all.find { |marketplace| marketplace.country_code == country_code }
19
+ def find_by_country(code)
20
+ code = 'GB' if code == 'UK'
21
+ all.find { |marketplace| marketplace.country_code == code }
27
22
  end
28
23
 
29
24
  def find_by_id(id)
@@ -39,32 +34,41 @@ module Peddler
39
34
  end
40
35
  end
41
36
 
37
+ attr_reader :id, :country_code, :host
38
+
39
+ def initialize(id, country_code, host)
40
+ @id = id
41
+ @country_code = country_code
42
+ @host = host
43
+ end
44
+
42
45
  def encoding
43
46
  case country_code
44
47
  when 'JP'
45
48
  'Windows-31J'
46
- when 'CN'
47
- 'UTF-16'
48
49
  else
49
50
  'CP1252'
50
51
  end
51
52
  end
52
53
 
53
54
  @all = [
55
+ ['A2Q3Y263D00KWC', 'BR', 'mws.amazonservices.com'],
54
56
  ['A2EUQ1WTGCTBG2', 'CA', 'mws.amazonservices.com'],
55
57
  ['A1AM78C64UM0Y8', 'MX', 'mws.amazonservices.com'],
56
58
  ['ATVPDKIKX0DER', 'US', 'mws.amazonservices.com'],
57
- ['A2Q3Y263D00KWC', 'BR', 'mws.amazonservices.com'],
59
+ ['A2VIGQ35RCS4UG', 'AE', 'mws.amazonservices.ae'],
58
60
  ['A1PA6795UKMFR9', 'DE', 'mws-eu.amazonservices.com'],
61
+ ['ARBP9OOSHTCHU', 'EG', 'mws-eu.amazonservices.com'],
59
62
  ['A1RKKUPIHCS9HS', 'ES', 'mws-eu.amazonservices.com'],
60
63
  ['A13V1IB3VIYZZH', 'FR', 'mws-eu.amazonservices.com'],
61
- ['APJ6JRA9NG5V4', 'IT', 'mws-eu.amazonservices.com'],
62
64
  ['A1F83G8C2ARO7P', 'GB', 'mws-eu.amazonservices.com'],
63
- ['A33AVAJ2PDY3EV', 'TR', 'mws-eu.amazonservices.com'],
64
65
  ['A21TJRUUN4KGV', 'IN', 'mws.amazonservices.in'],
66
+ ['APJ6JRA9NG5V4', 'IT', 'mws-eu.amazonservices.com'],
67
+ ['A17E79C6D8DWNP', 'SA', 'mws-eu.amazonservices.com'],
68
+ ['A33AVAJ2PDY3EV', 'TR', 'mws-eu.amazonservices.com'],
69
+ ['A19VAU5U5O7RUS', 'SG', 'mws-fe.amazonservices.com'],
65
70
  ['A39IBJ37TRP1C6', 'AU', 'mws.amazonservices.com.au'],
66
- ['A1VC38T7YXB528', 'JP', 'mws.amazonservices.jp'],
67
- ['AAHKV2X7AFYLW', 'CN', 'mws.amazonservices.com.cn']
71
+ ['A1VC38T7YXB528', 'JP', 'mws.amazonservices.jp']
68
72
  ].map do |values|
69
73
  new(*values)
70
74
  end
@@ -3,10 +3,10 @@
3
3
  module Peddler
4
4
  # Parses MWS metadata provided in the headers of a response
5
5
  class MWS
6
- # @api private
6
+ # @!visibility private
7
7
  attr_reader :headers
8
8
 
9
- # @api private
9
+ # @!visibility private
10
10
  def initialize(headers)
11
11
  @headers = headers.select { |key| key.start_with?('x-mws') }
12
12
  end
@@ -5,7 +5,7 @@ require 'time'
5
5
  require 'peddler/structured_list'
6
6
 
7
7
  module Peddler
8
- # @api private
8
+ # @!visibility private
9
9
  class Operation < SimpleDelegator
10
10
  CAPITAL_LETTERS = /[A-Z]/.freeze
11
11
  ALL_CAPS = %w[sku cod].freeze
@@ -28,15 +28,12 @@ module Peddler
28
28
  self
29
29
  end
30
30
 
31
- def store(key, val, parent: '')
32
- key = camelize(key) if key.is_a?(Symbol)
33
- key = "#{parent}.#{key}" unless parent.empty?
34
-
35
- val = val.iso8601 if val.respond_to?(:iso8601)
36
- val = val.to_h if val.is_a?(Struct)
31
+ def store(key, val, parent = nil)
32
+ key = [parent, camelize(key)].compact.join('.')
33
+ val = format_known_types(val)
37
34
 
38
35
  if val.is_a?(Hash)
39
- val.each { |keyval| store(*keyval, parent: key) }
36
+ val.each { |keyval| store(*keyval, key) }
40
37
  else
41
38
  __getobj__.store(key, val)
42
39
  end
@@ -51,10 +48,11 @@ module Peddler
51
48
 
52
49
  private
53
50
 
54
- def camelize(sym)
55
- return sym.to_s if sym =~ CAPITAL_LETTERS
51
+ def camelize(key)
52
+ return key unless key.is_a?(Symbol)
53
+ return key.to_s if key.match?(CAPITAL_LETTERS)
56
54
 
57
- sym
55
+ key
58
56
  .to_s
59
57
  .split('_')
60
58
  .map { |token| capitalize(token) }
@@ -68,5 +66,13 @@ module Peddler
68
66
  word.capitalize
69
67
  end
70
68
  end
69
+
70
+ def format_known_types(val)
71
+ val = val.utc.iso8601(2) if val.is_a?(Time)
72
+ val = val.iso8601 if val.is_a?(Date)
73
+ val = val.to_h if val.is_a?(Struct)
74
+
75
+ val
76
+ end
71
77
  end
72
78
  end
@@ -4,7 +4,7 @@ require 'peddler/flat_file_parser'
4
4
  require 'peddler/xml_response_parser'
5
5
 
6
6
  module Peddler
7
- # @api private
7
+ # @!visibility private
8
8
  module Parser
9
9
  class << self
10
10
  # We're massaging data produced by a motley army of developers. It's
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peddler
4
- # @api private
4
+ # @!visibility private
5
5
  class StructuredList
6
6
  def initialize(*keys)
7
7
  @keys = keys
@@ -4,23 +4,23 @@ module Peddler
4
4
  # A custom matcher that can be used to record MWS interactions when
5
5
  # writing integration tests
6
6
  class VCRMatcher
7
- # @api private
7
+ # @!visibility private
8
8
  TRANSIENT_PARAMS = %w[
9
9
  Signature Timestamp StartDate CreatedAfter QueryStartDateTime
10
10
  ].freeze
11
11
 
12
- # @api private
12
+ # @!visibility private
13
13
  SELLER_PARAMS = %w[
14
14
  AWSAccessKeyId SellerId
15
15
  ].freeze
16
16
 
17
17
  class << self
18
- # @api private
18
+ # @!visibility private
19
19
  def call(*requests)
20
20
  new(*requests).compare
21
21
  end
22
22
 
23
- # @api private
23
+ # @!visibility private
24
24
  def ignored_params
25
25
  @ignored_params ||= TRANSIENT_PARAMS.dup
26
26
  end
@@ -33,15 +33,15 @@ module Peddler
33
33
  end
34
34
  end
35
35
 
36
- # @api private
36
+ # @!visibility private
37
37
  attr_reader :requests
38
38
 
39
- # @api private
39
+ # @!visibility private
40
40
  def initialize(*requests)
41
41
  @requests = requests
42
42
  end
43
43
 
44
- # @api private
44
+ # @!visibility private
45
45
  def compare
46
46
  compare_uris && compare_bodies
47
47
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peddler
4
- VERSION = '2.1.1'
4
+ VERSION = '2.3.0'
5
5
  end
@@ -6,7 +6,7 @@ require 'peddler/headers'
6
6
  require 'multi_xml'
7
7
 
8
8
  module Peddler
9
- # @api private
9
+ # @!visibility private
10
10
  class XMLParser < SimpleDelegator
11
11
  extend Forwardable
12
12
  include Headers
@@ -3,7 +3,7 @@
3
3
  require 'peddler/xml_parser'
4
4
 
5
5
  module Peddler
6
- # @api private
6
+ # @!visibility private
7
7
  class XMLResponseParser < XMLParser
8
8
  MATCHER = /^Message$|Report|Result/.freeze
9
9
  private_constant :MATCHER
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: 2.1.1
4
+ version: 2.3.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: 2019-04-05 00:00:00.000000000 Z
11
+ date: 2020-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -52,9 +52,9 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.5.0
55
- description: A Ruby interface to the Amazon MWS API
55
+ description:
56
56
  email:
57
- - hakanensari@gmail.com
57
+ - me@hakanensari.com
58
58
  executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
@@ -62,6 +62,8 @@ files:
62
62
  - LICENSE
63
63
  - README.md
64
64
  - lib/mws.rb
65
+ - lib/mws/easy_ship.rb
66
+ - lib/mws/easy_ship/client.rb
65
67
  - lib/mws/feeds.rb
66
68
  - lib/mws/feeds/client.rb
67
69
  - lib/mws/finances.rb
@@ -75,7 +77,6 @@ files:
75
77
  - lib/mws/merchant_fulfillment.rb
76
78
  - lib/mws/merchant_fulfillment/client.rb
77
79
  - lib/mws/off_amazon_payments.rb
78
- - lib/mws/off_amazon_payments/client.rb
79
80
  - lib/mws/orders.rb
80
81
  - lib/mws/orders/client.rb
81
82
  - lib/mws/products.rb
@@ -86,6 +87,8 @@ files:
86
87
  - lib/mws/reports/client.rb
87
88
  - lib/mws/sellers.rb
88
89
  - lib/mws/sellers/client.rb
90
+ - lib/mws/shipment_invoicing.rb
91
+ - lib/mws/shipment_invoicing/client.rb
89
92
  - lib/mws/subscriptions.rb
90
93
  - lib/mws/subscriptions/client.rb
91
94
  - lib/peddler.rb
@@ -106,75 +109,6 @@ files:
106
109
  - lib/peddler/version.rb
107
110
  - lib/peddler/xml_parser.rb
108
111
  - lib/peddler/xml_response_parser.rb
109
- - test/credentials.rb
110
- - test/helper.rb
111
- - test/integration/internals/test_errors.rb
112
- - test/integration/internals/test_multibyte_queries.rb
113
- - test/integration/internals/test_mws_headers.rb
114
- - test/integration/internals/test_string_encodings.rb
115
- - test/integration/test_feeds.rb
116
- - test/integration/test_fulfillment_inbound_shipment.rb
117
- - test/integration/test_fulfillment_inventory.rb
118
- - test/integration/test_fulfillment_outbound_shipment.rb
119
- - test/integration/test_merchant_fulfillment.rb
120
- - test/integration/test_off_amazon_payments.rb
121
- - test/integration/test_orders.rb
122
- - test/integration/test_products.rb
123
- - test/integration/test_recommendations.rb
124
- - test/integration/test_reports.rb
125
- - test/integration/test_sellers.rb
126
- - test/integration/test_subscriptions.rb
127
- - test/integration_helper.rb
128
- - test/mws.yml
129
- - test/mws.yml.example
130
- - test/null_client.rb
131
- - test/recorder.rb
132
- - test/unit/mws/test_feeds_client.rb
133
- - test/unit/mws/test_finances_client.rb
134
- - test/unit/mws/test_fulfillment_inbound_shipment_client.rb
135
- - test/unit/mws/test_fulfillment_inventory_client.rb
136
- - test/unit/mws/test_fulfillment_outbound_shipment_client.rb
137
- - test/unit/mws/test_merchant_fulfillment_client.rb
138
- - test/unit/mws/test_off_amazon_payments_client.rb
139
- - test/unit/mws/test_orders_client.rb
140
- - test/unit/mws/test_products_client.rb
141
- - test/unit/mws/test_recommendations_client.rb
142
- - test/unit/mws/test_reports_client.rb
143
- - test/unit/mws/test_sellers_client.rb
144
- - test/unit/mws/test_subscriptions_client.rb
145
- - test/unit/peddler/errors/test_builder.rb
146
- - test/unit/peddler/errors/test_class_generator.rb
147
- - test/unit/peddler/errors/test_error.rb
148
- - test/unit/peddler/errors/test_parser.rb
149
- - test/unit/peddler/test_client.rb
150
- - test/unit/peddler/test_flat_file_parser.rb
151
- - test/unit/peddler/test_headers.rb
152
- - test/unit/peddler/test_marketplace.rb
153
- - test/unit/peddler/test_operation.rb
154
- - test/unit/peddler/test_parser.rb
155
- - test/unit/peddler/test_structured_list.rb
156
- - test/unit/peddler/test_vcr_matcher.rb
157
- - test/unit/peddler/test_xml_parser.rb
158
- - test/unit/peddler/test_xml_response_parser.rb
159
- - test/unit/test_mws.rb
160
- - test/vcr_cassettes/CartInformation.yml
161
- - test/vcr_cassettes/CustomerInformation.yml
162
- - test/vcr_cassettes/Errors.yml
163
- - test/vcr_cassettes/Feeds.yml
164
- - test/vcr_cassettes/FulfillmentInboundShipment.yml
165
- - test/vcr_cassettes/FulfillmentInventory.yml
166
- - test/vcr_cassettes/FulfillmentOutboundShipment.yml
167
- - test/vcr_cassettes/MWSHeaders.yml
168
- - test/vcr_cassettes/MerchantFulfillment.yml
169
- - test/vcr_cassettes/MultibyteQueries.yml
170
- - test/vcr_cassettes/OffAmazonPayments.yml
171
- - test/vcr_cassettes/Orders.yml
172
- - test/vcr_cassettes/PeddlerVCRMatcher.yml
173
- - test/vcr_cassettes/Products.yml
174
- - test/vcr_cassettes/Recommendations.yml
175
- - test/vcr_cassettes/Reports.yml
176
- - test/vcr_cassettes/Sellers.yml
177
- - test/vcr_cassettes/Subscriptions.yml
178
112
  homepage: https://github.com/hakanensari/peddler
179
113
  licenses:
180
114
  - MIT
@@ -194,77 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
128
  - !ruby/object:Gem::Version
195
129
  version: '0'
196
130
  requirements: []
197
- rubygems_version: 3.0.3
131
+ rubygems_version: 3.1.2
198
132
  signing_key:
199
133
  specification_version: 4
200
- summary: Wraps the Amazon MWS APIs
201
- test_files:
202
- - test/unit/peddler/test_headers.rb
203
- - test/unit/peddler/test_vcr_matcher.rb
204
- - test/unit/peddler/test_marketplace.rb
205
- - test/unit/peddler/test_operation.rb
206
- - test/unit/peddler/test_structured_list.rb
207
- - test/unit/peddler/test_client.rb
208
- - test/unit/peddler/test_xml_response_parser.rb
209
- - test/unit/peddler/test_xml_parser.rb
210
- - test/unit/peddler/test_flat_file_parser.rb
211
- - test/unit/peddler/errors/test_error.rb
212
- - test/unit/peddler/errors/test_builder.rb
213
- - test/unit/peddler/errors/test_class_generator.rb
214
- - test/unit/peddler/errors/test_parser.rb
215
- - test/unit/peddler/test_parser.rb
216
- - test/unit/mws/test_finances_client.rb
217
- - test/unit/mws/test_sellers_client.rb
218
- - test/unit/mws/test_fulfillment_inbound_shipment_client.rb
219
- - test/unit/mws/test_merchant_fulfillment_client.rb
220
- - test/unit/mws/test_subscriptions_client.rb
221
- - test/unit/mws/test_off_amazon_payments_client.rb
222
- - test/unit/mws/test_reports_client.rb
223
- - test/unit/mws/test_fulfillment_outbound_shipment_client.rb
224
- - test/unit/mws/test_orders_client.rb
225
- - test/unit/mws/test_products_client.rb
226
- - test/unit/mws/test_recommendations_client.rb
227
- - test/unit/mws/test_fulfillment_inventory_client.rb
228
- - test/unit/mws/test_feeds_client.rb
229
- - test/unit/test_mws.rb
230
- - test/null_client.rb
231
- - test/mws.yml.example
232
- - test/helper.rb
233
- - test/integration/test_orders.rb
234
- - test/integration/test_recommendations.rb
235
- - test/integration/test_feeds.rb
236
- - test/integration/test_fulfillment_outbound_shipment.rb
237
- - test/integration/test_fulfillment_inbound_shipment.rb
238
- - test/integration/test_reports.rb
239
- - test/integration/test_subscriptions.rb
240
- - test/integration/internals/test_multibyte_queries.rb
241
- - test/integration/internals/test_mws_headers.rb
242
- - test/integration/internals/test_errors.rb
243
- - test/integration/internals/test_string_encodings.rb
244
- - test/integration/test_merchant_fulfillment.rb
245
- - test/integration/test_sellers.rb
246
- - test/integration/test_products.rb
247
- - test/integration/test_off_amazon_payments.rb
248
- - test/integration/test_fulfillment_inventory.rb
249
- - test/integration_helper.rb
250
- - test/mws.yml
251
- - test/vcr_cassettes/Products.yml
252
- - test/vcr_cassettes/MerchantFulfillment.yml
253
- - test/vcr_cassettes/CustomerInformation.yml
254
- - test/vcr_cassettes/Recommendations.yml
255
- - test/vcr_cassettes/Feeds.yml
256
- - test/vcr_cassettes/Orders.yml
257
- - test/vcr_cassettes/MultibyteQueries.yml
258
- - test/vcr_cassettes/CartInformation.yml
259
- - test/vcr_cassettes/FulfillmentInboundShipment.yml
260
- - test/vcr_cassettes/FulfillmentOutboundShipment.yml
261
- - test/vcr_cassettes/PeddlerVCRMatcher.yml
262
- - test/vcr_cassettes/OffAmazonPayments.yml
263
- - test/vcr_cassettes/Sellers.yml
264
- - test/vcr_cassettes/FulfillmentInventory.yml
265
- - test/vcr_cassettes/Errors.yml
266
- - test/vcr_cassettes/Subscriptions.yml
267
- - test/vcr_cassettes/MWSHeaders.yml
268
- - test/vcr_cassettes/Reports.yml
269
- - test/recorder.rb
270
- - test/credentials.rb
134
+ summary: A Ruby wrapper to the Amazon MWS API
135
+ test_files: []