peddler 2.0.3 → 2.0.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
  SHA256:
3
- metadata.gz: ab8bcb8e672611aae106acc48115ea0bc464386bfd132d9e63a9f79ec65a98e2
4
- data.tar.gz: e9f7a329ded38e2ef63d3a339a925dbaf7696e2d58e7d59851f66fbb1aa7326e
3
+ metadata.gz: 1496350487deacc5345571d16968c6a0c9dca63692e2f915decb8b28ab613344
4
+ data.tar.gz: 68bc82232267280f4d1c07ee70299c2167d97f5e736d2a74116af6bb7256489b
5
5
  SHA512:
6
- metadata.gz: afdecb6f6a1b920e030588a184e28dee532676a3f42946f68eb87ba0798008ea642836d2e14b328d599e1d580cdae1919a2c5f6e1e5d5cacc19a9c2b322a1a9d
7
- data.tar.gz: 846746905c8b96848a56dbfa69af5cfa8430e9d0d7d5df77796a760af087d48a30d332ca5e3391e38da45328c4fdda72568786814376fcf0d0b474c320ae8582
6
+ metadata.gz: 8cd79c46a5272e0aeb344d08c3f2e7d484dda9b037d1994ea113359a18fec63ee83a6e6f22a0997d60681751eb41f7d889096af2be9b1caa984b9a9ddd80afd7
7
+ data.tar.gz: 7af09716baa2480fb55e0a70984e7d9d1cc738e3d2ee1bd1ccfcb52868d7d7be953d4dfbcca5c7eb68de19abf4a0794a3b095e6177d7cbf1dd0faf549aa1ff3e
@@ -70,13 +70,13 @@ module MWS
70
70
  # @see https://docs.developer.amazonservices.com/en_US/fba_inbound/FBAInbound_CreateInboundShipment.html
71
71
  # @param [String] shipment_id
72
72
  # @param [Struct, Hash] inbound_shipment_header
73
- # @param [Hash] opts
74
- # @option opts [Array<Struct, Hash>] :inbound_shipment_items
73
+ # @param [Array<Struct, Hash>] :inbound_shipment_items
75
74
  # @return [Peddler::XMLParser]
76
75
  def create_inbound_shipment(shipment_id, inbound_shipment_header,
77
- opts = {})
76
+ inbound_shipment_items)
78
77
  build_inbound_shipment_operation('CreateInboundShipment', shipment_id,
79
- inbound_shipment_header, opts)
78
+ inbound_shipment_header,
79
+ inbound_shipment_items)
80
80
 
81
81
  run
82
82
  end
@@ -86,13 +86,13 @@ module MWS
86
86
  # @see https://docs.developer.amazonservices.com/en_US/fba_inbound/FBAInbound_UpdateInboundShipment.html
87
87
  # @param [String] shipment_id
88
88
  # @param [Struct, Hash] inbound_shipment_header
89
- # @param [Hash] opts
90
- # @option opts [Array<Struct, Hash>] :inbound_shipment_items
89
+ # @param [Array<Struct, Hash>] :inbound_shipment_items
91
90
  # @return [Peddler::XMLParser]
92
91
  def update_inbound_shipment(shipment_id, inbound_shipment_header,
93
- opts = {})
92
+ inbound_shipment_items)
94
93
  build_inbound_shipment_operation('UpdateInboundShipment', shipment_id,
95
- inbound_shipment_header, opts)
94
+ inbound_shipment_header,
95
+ inbound_shipment_items)
96
96
 
97
97
  run
98
98
  end
@@ -356,12 +356,14 @@ module MWS
356
356
  private
357
357
 
358
358
  def build_inbound_shipment_operation(operation_name, shipment_id,
359
- inbound_shipment_header, opts)
359
+ inbound_shipment_header,
360
+ inbound_shipment_items)
360
361
  operation(operation_name)
361
- .add(opts)
362
362
  .add('ShipmentId' => shipment_id,
363
- 'InboundShipmentHeader' => inbound_shipment_header)
363
+ 'InboundShipmentHeader' => inbound_shipment_header,
364
+ 'InboundShipmentItems' => inbound_shipment_items)
364
365
  .structure!('InboundShipmentItems', 'member')
366
+ .structure!('PrepDetailsList', 'member')
365
367
  end
366
368
  end
367
369
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peddler
4
- VERSION = '2.0.3'
4
+ VERSION = '2.0.4'
5
5
  end
@@ -96,7 +96,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
96
96
  }
97
97
 
98
98
  @client.stub(:run, nil) do
99
- @client.create_inbound_shipment('1', { 'Foo' => '1' }, inbound_shipment_items: [{ 'Bar' => '2' }])
99
+ @client.create_inbound_shipment('1', { 'Foo' => '1' }, [{ 'Bar' => '2' }])
100
100
  end
101
101
 
102
102
  assert_equal operation, @client.operation
@@ -111,7 +111,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
111
111
  }
112
112
 
113
113
  @client.stub(:run, nil) do
114
- @client.update_inbound_shipment('1', { 'Foo' => '1' }, inbound_shipment_items: [{ 'Bar' => '2' }])
114
+ @client.update_inbound_shipment('1', { 'Foo' => '1' }, [{ 'Bar' => '2' }])
115
115
  end
116
116
 
117
117
  assert_equal operation, @client.operation
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.0.3
4
+ version: 2.0.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: 2018-06-29 00:00:00.000000000 Z
11
+ date: 2018-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon