amazon_pay 2.4.0 → 2.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac36743b074c7959cb0d4ac39035e84149acd9ab
4
- data.tar.gz: 9753cb328838eaa172b2e79a70f2b1cb27569e03
3
+ metadata.gz: 59af09c5d1215202ec9597064f1b00126ce8455a
4
+ data.tar.gz: 99e445995ae1c2d8f210adaa63b89d30d11438e0
5
5
  SHA512:
6
- metadata.gz: 6625d1ff7ecc32f39665f672f38be1fb0c7508f7b39f99f91c1740f736fac681c56c63a7c33f4a27c02ccf3aab933423c2f2ff2cd1d882a23f0e6421d9a32bd9
7
- data.tar.gz: 2c0869904a6de28ab2b2729b9473903e84b6331186c6950c543216e6b6ab882a4a9aab1a50f9db6fb82a425e7307913f1911998d22b09ac98ef3fa0ea9ee30c5
6
+ metadata.gz: 14175c20c84059b47a09de1f07e4f0e8c53504f97816df1b2e063689d61b2a987a83b0bbed467eb44878472f3161e8093991c31adc39b8175a9bc5ebaed2459c
7
+ data.tar.gz: dbb36bcefe239b499210afa0465cec1864d4fd32806553f4d81cf47c566cf2c7ee98b80ad7011324256a7bcb4f17db7617f997ea726c5c8f9bd34e9712748e0b
@@ -217,6 +217,10 @@ module AmazonPay
217
217
  # @optional store_name [String]
218
218
  # @optional merchant_id [String]
219
219
  # @optional mws_auth_token [String]
220
+ # @optional billing_agreement_type [String] - one of CustomerInitiatedTransaction or MerchantInitiatedTransaction
221
+ # @optional subscription_amount [String]
222
+ # @optional subscription_currency_code [String]
223
+
220
224
  def set_billing_agreement_details(
221
225
  amazon_billing_agreement_id,
222
226
  platform_id: nil,
@@ -225,6 +229,9 @@ module AmazonPay
225
229
  custom_information: nil,
226
230
  store_name: nil,
227
231
  merchant_id: @merchant_id,
232
+ billing_agreement_type: nil,
233
+ subscription_amount: nil,
234
+ subscription_currency_code: @currency_code,
228
235
  mws_auth_token: nil
229
236
  )
230
237
 
@@ -240,9 +247,14 @@ module AmazonPay
240
247
  'BillingAgreementAttributes.SellerBillingAgreementAttributes.SellerBillingAgreementId' => seller_billing_agreement_id,
241
248
  'BillingAgreementAttributes.SellerBillingAgreementAttributes.CustomInformation' => custom_information,
242
249
  'BillingAgreementAttributes.SellerBillingAgreementAttributes.StoreName' => store_name,
250
+ 'BillingAgreementAttributes.BillingAgreementType' => billing_agreement_type,
251
+ 'BillingAgreementAttributes.SubscriptionAmount.Amount' => subscription_amount,
252
+ 'BillingAgreementAttributes.SubscriptionAmount.CurrencyCode' => subscription_currency_code,
243
253
  'MWSAuthToken' => mws_auth_token
244
254
  }
245
255
 
256
+ optional['BillingAgreementAttributes.SubscriptionAmount.CurrencyCode'] = nil if subscription_amount.nil?
257
+
246
258
  operation(parameters, optional)
247
259
  end
248
260
 
@@ -252,9 +264,13 @@ module AmazonPay
252
264
  # @param amazon_billing_agreement_id [String]
253
265
  # @optional merchant_id [String]
254
266
  # @optional mws_auth_token [String]
267
+ # @optional success_url [String]
268
+ # @optional failure_url [String]
255
269
  def confirm_billing_agreement(
256
270
  amazon_billing_agreement_id,
257
271
  merchant_id: @merchant_id,
272
+ success_url: nil,
273
+ failure_url: nil,
258
274
  mws_auth_token: nil
259
275
  )
260
276
 
@@ -265,6 +281,8 @@ module AmazonPay
265
281
  }
266
282
 
267
283
  optional = {
284
+ 'SuccessUrl' => success_url,
285
+ 'FailureUrl' => failure_url,
268
286
  'MWSAuthToken' => mws_auth_token
269
287
  }
270
288
 
@@ -1,5 +1,5 @@
1
1
  module AmazonPay
2
- VERSION = '2.4.0'.freeze
2
+ VERSION = '2.5.0'.freeze
3
3
  SDK_NAME = 'amazon-pay-sdk-ruby'.freeze
4
4
  API_VERSION = '2013-01-01'.freeze
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.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AmazonPay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-09 00:00:00.000000000 Z
11
+ date: 2019-08-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: AmazonPay Ruby SDK
14
14
  email: amazon-pay-sdk@amazon.com