peddler 0.7.2 → 0.7.3

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: 4d90f051308dc6363397a38e2f2718ad0cdb1773
4
- data.tar.gz: b299094cf80d6e1dab58a75993dbe442ea13b339
3
+ metadata.gz: ca8e9fe6a47e5cccc306a70f677258da4961d26d
4
+ data.tar.gz: 957610329feaeac29520948412e8f35b5c12bbf1
5
5
  SHA512:
6
- metadata.gz: 1906262382067f0013a7de657ca1a57b5c1eadfca7e6c633bd759440aa4ee843a6e80b667dac9f20cd6ed688df2b9592082975146bb3317185b67423d3cd466e
7
- data.tar.gz: f02b9c00cba6c7ad3f89be1b1ad668565e48b234acd247c80af16d7221f3408b06caab7237b2729b37aa99eab59f35883481db12705631cb0645bee38d4e7ac2
6
+ metadata.gz: f2578b06b9c122f2fee63a93ee402d80d1510cb562a0a990a01aafa9057f033782a1236d480db87522bde2c04445ecb21e03ebf34cec8279856cc8b7ead6c3c8
7
+ data.tar.gz: bc035f67004a839dc72cb57cdc830696cf10a2e91d3c416f05864460429cbe3de05464e394e591d45b9781406b9d9a25dc3e410d077cf339979ceb6fc86ed90e
@@ -15,16 +15,18 @@ module MWS
15
15
  #
16
16
  # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_SetOrderReferenceDetails.html
17
17
  # @param amazon_order_reference_id [String]
18
- # @param order_reference_attributes [Hash]
19
- # @option order_reference_attributes [Struct, Hash] :order_total
20
- # @option order_reference_attributes [String] :platform_id
21
- # @option order_reference_attributes [String] :seller_note
22
- # @option order_reference_attributes [Struct, Hash] :seller_order_attributes
18
+ # @param order_total [Struct, Hash]
19
+ # @param opts [Hash]
20
+ # @option opts [String] :platform_id
21
+ # @option opts [String] :seller_note
22
+ # @option opts [Struct, Hash] :seller_order_attributes
23
23
  # @return [Peddler::XMLParser]
24
- def set_order_reference_details(amazon_order_reference_id, order_reference_attributes)
24
+ def set_order_reference_details(amazon_order_reference_id, order_total, opts = {})
25
25
  operation('SetOrderReferenceDetails')
26
- .add('AmazonOrderReferenceId' => amazon_order_reference_id)
27
- .add('OrderReferenceAttributes' => order_reference_attributes)
26
+ .add(
27
+ 'AmazonOrderReferenceId' => amazon_order_reference_id,
28
+ 'OrderReferenceAttributes' => opts.merge('OrderTotal' => order_total)
29
+ )
28
30
 
29
31
  run
30
32
  end
@@ -1,3 +1,3 @@
1
1
  module Peddler
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peddler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari