onlinepayments-sdk-ruby 4.8.0 → 4.9.0

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: 2b6f7ef1196935e346ae3819bf611ef3286a23877a19b2a7da09797a80e9d50b
4
- data.tar.gz: 26dd065e0e3814782f51eeddae6f208fccda9e03f14b37f96233817d41f41c40
3
+ metadata.gz: 484cd023490a573421f71cf0c9ffa8a69320840a7e272de3a3f3f8d21884e6ea
4
+ data.tar.gz: 2762d2aa8c72e59bc3c5d64534abaf84522ca4a9e290cc8334f5a8b5de57f1a1
5
5
  SHA512:
6
- metadata.gz: e4d1f608ea8cf557524682b1a30aac24309929374abe984323381c8565c263d9b7e7e9b6eaae21a2c94e2b553144c4e5b4c8ecab6462120fa0fceed9756ad7f0
7
- data.tar.gz: f18cdd9969d0a2b209751fcfe806524396dd8ef50ae7dea49c4ebc76ae8fe61dbc9d2132b23b33d63203748f5a45ab4f6e20d11a5235278f07cbcc5211b03893
6
+ metadata.gz: 53f46cd3a1b4f609d392c98206386082fe85f14214d7addcc1227f3f2abf2bcf4b5235f13ae2a39e7911430c91e05bec0964fbede347418d9e1b5ca2c20a2cbe
7
+ data.tar.gz: 91a8fc9abb51c257e24834ba20e87881a8f5fc0d3b3db52b3094922df2cfc89a01a59069ff8c1877f02f627e14ac7545cc24025a421185b556708c6ae2c6f583
@@ -9,10 +9,12 @@ module OnlinePayments::SDK
9
9
 
10
10
  # @attr [OnlinePayments::SDK::Domain::Card] card
11
11
  # @attr [Integer] payment_product_id
12
+ # @attr [String] payout_reason
12
13
  # @attr [String] token
13
14
  class CardPayoutMethodSpecificInput < OnlinePayments::SDK::DataObject
14
15
  attr_accessor :card
15
16
  attr_accessor :payment_product_id
17
+ attr_accessor :payout_reason
16
18
  attr_accessor :token
17
19
 
18
20
  # @return (Hash)
@@ -20,6 +22,7 @@ module OnlinePayments::SDK
20
22
  hash = super
21
23
  hash['card'] = @card.to_h if @card
22
24
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
25
+ hash['payoutReason'] = @payout_reason unless @payout_reason.nil?
23
26
  hash['token'] = @token unless @token.nil?
24
27
  hash
25
28
  end
@@ -31,6 +34,7 @@ module OnlinePayments::SDK
31
34
  @card = OnlinePayments::SDK::Domain::Card.new_from_hash(hash['card'])
32
35
  end
33
36
  @payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId'
37
+ @payout_reason = hash['payoutReason'] if hash.key? 'payoutReason'
34
38
  @token = hash['token'] if hash.key? 'token'
35
39
  end
36
40
  end
@@ -8,13 +8,16 @@ module OnlinePayments::SDK
8
8
  module Domain
9
9
 
10
10
  # @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
11
+ # @attr [String] payout_reason
11
12
  class PayoutOutput < OnlinePayments::SDK::DataObject
12
13
  attr_accessor :amount_of_money
14
+ attr_accessor :payout_reason
13
15
 
14
16
  # @return (Hash)
15
17
  def to_h
16
18
  hash = super
17
19
  hash['amountOfMoney'] = @amount_of_money.to_h if @amount_of_money
20
+ hash['payoutReason'] = @payout_reason unless @payout_reason.nil?
18
21
  hash
19
22
  end
20
23
 
@@ -24,6 +27,7 @@ module OnlinePayments::SDK
24
27
  raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash
25
28
  @amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
26
29
  end
30
+ @payout_reason = hash['payoutReason'] if hash.key? 'payoutReason'
27
31
  end
28
32
  end
29
33
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '4.8.0'
3
+ spec.version = '4.9.0'
4
4
  spec.authors = ['Worldline Direct support team']
5
5
  spec.email = ['82139942+worldline-direct-support-team@users.noreply.github.com']
6
6
  spec.summary = %q{SDK to communicate with the Online Payments platform using the Online Payments Server API}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlinepayments-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.0
4
+ version: 4.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Direct support team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-28 00:00:00.000000000 Z
11
+ date: 2023-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient