amazon_pay 2.3.3 → 2.3.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: e46f235be98360aa7d1d21c15717f9c5e50dd5d534ff1c5d4f845c63253f7119
4
- data.tar.gz: 81a4f2171e210214cf52d1eb35a2e28653475ac205001c0c5926bb6226e84cd7
3
+ metadata.gz: 6557a6e8545c147b07d498179a9311f2ff183c2e227d4f4b97d61585a993f315
4
+ data.tar.gz: 6974fe8572f744793c36d917f571f938c79521b6edaa765b69b36ab58d877ae7
5
5
  SHA512:
6
- metadata.gz: dab4e71451b3736b3ff8dab6616495ae2c09d747f4e9c74d5bf1433c00dcd706539d845d4526a935152b4de38fc0f4bd9eb39b5b2f31aef8a4182f08f31a07ba
7
- data.tar.gz: f0a6075323340a97dc38b77b7adab58d4cfd0959bef811f8427315e87558afc89dbfc0f5c120e14739c81210d49f3d1bcaf68492be4cb9348c7c350539eafe05
6
+ metadata.gz: 24639a9de06e6589341c49ca5b5298afaa8071d1689336dcc095ae33f7481d78e05468375ed76653efa89688b494822b5919d29b5a624f97ee56ad220b1a752a
7
+ data.tar.gz: 7d1be37baf4675b4ba3c1d6c543f02ba77221b677dbfe1e2b2be16eb74b3a5843018d1f330b69575de7da52fd0957a9321ad2b6264dc2227e01c6a93fc8f23f9
@@ -173,6 +173,7 @@ module AmazonPay
173
173
  # @optional access_token [String]
174
174
  # @optional merchant_id [String]
175
175
  # @optional mws_auth_token [String]
176
+
176
177
  def get_billing_agreement_details(
177
178
  amazon_billing_agreement_id,
178
179
  address_consent_token: nil,
@@ -190,7 +191,10 @@ module AmazonPay
190
191
  optional = {
191
192
  # Preseving address_consent_token for backwards compatibility
192
193
  # AccessToken returns all data in AddressConsentToken plus new data
193
- 'AccessToken' => access_token || address_consent_token,
194
+ # You cannot pass both address_consent_token and access_token in
195
+ # the same call or you will encounter a 400/"AmbiguousToken" error
196
+ 'AccessToken' => access_token,
197
+ 'AddressConsentToken' => address_consent_token,
194
198
  'MWSAuthToken' => mws_auth_token
195
199
  }
196
200
 
@@ -19,10 +19,11 @@ module AmazonPay
19
19
 
20
20
  def get_element(xpath, xml_element)
21
21
  xml = self.to_xml
22
+ value = nil
22
23
  xml.elements.each(xpath) do |element|
23
- @value = element.elements[xml_element].text
24
+ value = element.elements[xml_element].text
24
25
  end
25
- return @value
26
+ return value
26
27
  end
27
28
 
28
29
  def code
@@ -1,5 +1,5 @@
1
1
  module AmazonPay
2
- VERSION = "2.3.3"
2
+ VERSION = "2.3.4"
3
3
  SDK_NAME = "amazon-pay-sdk-ruby"
4
4
  API_VERSION = "2013-01-01"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - AmazonPay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-18 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: AmazonPay Ruby SDK
14
14
  email: amazon-pay-sdk@amazon.com