peddler 0.12.2 → 0.12.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cad0d772cd32087cb891849c040fb161ad9fc36b
4
- data.tar.gz: 2aba24f68a6c1f9e7af5edcc28e01771410380e2
3
+ metadata.gz: ec42e17ad462c8a7355752afaed4ac3ef6fdca6d
4
+ data.tar.gz: b025ac50458589b79191880e800e2ee766d66232
5
5
  SHA512:
6
- metadata.gz: d441e1b485e7f5a3da527074010004b187eb054cf53497d59109be8747f4a5bdfed7fd9fcaa3ca9b4c7e200663f023458ddc7822478aea743a749b047d239e5d
7
- data.tar.gz: 1ad7baacb964620e022288cd3ceab5a76014ae18f6d896c9d99b9e3fe165f3ea43407d836e2136f62779e40dcb52b9424ac02c461ec99b1df7f0cbe10acf2e95
6
+ metadata.gz: 3f0ffaf0e2b0856a902ba08116495caef5d11eb62ff24c5ffa87102673a719706ad0dc2058fb4c0f67611c02cddff770f87d10edcba42b6b3d4a5f715b221ed0
7
+ data.tar.gz: 76bd5b7a6d5a6af1103ad55cbe85e3f2003c4a5be235e24f9860f9486fd17026eeab16fd65fd428ff097a3ec1137f2cd6c678df2da4071e9ec9e337566db680e
@@ -15,7 +15,7 @@ module MWS
15
15
  #
16
16
  # @see http://docs.developer.amazonservices.com/en_US/fba_inventory/FBAInventory_ListInventorySupply.html
17
17
  # @param opts [Hash]
18
- # @option opts [Array<String>, String] :seller_sku_list
18
+ # @option opts [Array<String>, String] :seller_skus
19
19
  # @option opts [String, #iso8601] :query_start_date_time
20
20
  # @option opts [String] :response_group
21
21
  # @return [Peddler::XMLParser]
@@ -296,7 +296,7 @@ module MWS
296
296
  # @param amazon_capture_id [String]
297
297
  # @return [Peddler::XMLParser]
298
298
  def get_capture_details(amazon_capture_id)
299
- operation('GetAuthorizationDetails')
299
+ operation('GetCaptureDetails')
300
300
  .add('AmazonCaptureId' => amazon_capture_id)
301
301
 
302
302
  run
@@ -1,3 +1,3 @@
1
1
  module Peddler
2
- VERSION = '0.12.2'
2
+ VERSION = '0.12.4'
3
3
  end
@@ -0,0 +1,15 @@
1
+ require 'test_helper'
2
+ require 'mws/fulfillment_inventory/client'
3
+
4
+ class TestFulfillmentInventoryClient < MiniTest::Test
5
+ def setup
6
+ @client = MWS::FulfillmentInventory::Client.new
7
+ end
8
+
9
+ def test_list_inventory_supply_has_seller_skus
10
+ @client.stub(:run, nil) do
11
+ @client.list_inventory_supply(seller_skus: '1')
12
+ assert @client.operation.key?('SellerSkus.member.1')
13
+ end
14
+ end
15
+ end
@@ -2,8 +2,21 @@ require 'test_helper'
2
2
  require 'mws/off_amazon_payments/client'
3
3
 
4
4
  class TestMWSOffAmazonPaymentsClient < MiniTest::Test
5
+ def setup
6
+ @client = MWS::OffAmazonPayments::Client.new
7
+ end
8
+
5
9
  def test_sandbox
6
- client = MWS::OffAmazonPayments::Client.new(marketplace_id: 'A1F83G8C2ARO7P').sandbox
7
- assert_includes client.aws_endpoint, 'OffAmazonPayments_Sandbox'
10
+ @client.marketplace_id = 'A1F83G8C2ARO7P'
11
+ refute_includes @client.aws_endpoint, 'Sandbox'
12
+ assert_includes @client.sandbox.aws_endpoint, 'Sandbox'
13
+ end
14
+
15
+ def test_gets_capture_details
16
+ @client.stub(:run, nil) do
17
+ @client.get_capture_details('1')
18
+ assert_equal 'GetCaptureDetails', @client.operation.fetch('Action')
19
+ assert_equal '1', @client.operation.fetch('AmazonCaptureId')
20
+ end
8
21
  end
9
22
  end
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.12.2
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-10 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeff
@@ -103,6 +103,7 @@ files:
103
103
  - test/mws.yml
104
104
  - test/test_helper.rb
105
105
  - test/unit/mws/test_feeds_client.rb
106
+ - test/unit/mws/test_fulfillment_inventory_client.rb
106
107
  - test/unit/mws/test_off_amazon_payments_client.rb
107
108
  - test/unit/mws/test_orders_client.rb
108
109
  - test/unit/mws/test_products_client.rb
@@ -171,6 +172,7 @@ test_files:
171
172
  - test/mws.yml
172
173
  - test/test_helper.rb
173
174
  - test/unit/mws/test_feeds_client.rb
175
+ - test/unit/mws/test_fulfillment_inventory_client.rb
174
176
  - test/unit/mws/test_off_amazon_payments_client.rb
175
177
  - test/unit/mws/test_orders_client.rb
176
178
  - test/unit/mws/test_products_client.rb