onlinepayments-sdk-ruby 3.3.0 → 3.4.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
  SHA256:
3
- metadata.gz: eb15584f49b1b90c0cede980de44a2eae2afd5eb1fe254859581a7391d5fca6a
4
- data.tar.gz: d3341c23e5433b0c4a6e550f5446e2d5f66962ebad0883992f648a967d0cd210
3
+ metadata.gz: 4bbee3c62e917ac2eb7123a6abde69e4c8cef0e91622aafa32e02b33d8a6cbc6
4
+ data.tar.gz: 70338bb82049b04687e59ad9c4492b8a41b99e1a34b742f3cd60ef553cfe179c
5
5
  SHA512:
6
- metadata.gz: d80aeb2f72e6715cc61980a52aef26cded8cf48c02cffd7b55d3682ac9905dd49f1303005d4117e633c80b2cdff2520f4ccc27115ef3391aeaeb18cb9c61bd94
7
- data.tar.gz: 7a80eaedc398ed1e0ba479d18bd2ac6ced5c7eb5683d077dff3291dbf10a4372e230242f30e6a8d550d1ec83940e64733620b9423420c7911018939f4e237665
6
+ metadata.gz: 2b9f638eb0d603d884ca0b6cde962389e880cdb090aeb1f075e0db98f0481cc8c57d8b1acc5aa7f283242a1819be7c9f88871e4a3af794e05bb451d73042ceb2
7
+ data.tar.gz: 4f228a1b5210a6d3bb83b80446f086c6c0a34b5ef01d6399e0df4ab9f8734dd46cc31b5ef1ef4dc13ff3b22b016a6c412680d66273c33fb28e3abf659f1f9e90
@@ -0,0 +1,26 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [String] ip_address_country_code
10
+ class CustomerDeviceOutput < OnlinePayments::SDK::DataObject
11
+ attr_accessor :ip_address_country_code
12
+
13
+ # @return (Hash)
14
+ def to_h
15
+ hash = super
16
+ hash['ipAddressCountryCode'] = @ip_address_country_code unless @ip_address_country_code.nil?
17
+ hash
18
+ end
19
+
20
+ def from_hash(hash)
21
+ super
22
+ @ip_address_country_code = hash['ipAddressCountryCode'] if hash.key? 'ipAddressCountryCode'
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/customer_device_output'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [OnlinePayments::SDK::Domain::CustomerDeviceOutput] device
11
+ class CustomerOutput < OnlinePayments::SDK::DataObject
12
+ attr_accessor :device
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['device'] = @device.to_h if @device
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.key? 'device'
24
+ raise TypeError, "value '%s' is not a Hash" % [hash['device']] unless hash['device'].is_a? Hash
25
+ @device = OnlinePayments::SDK::Domain::CustomerDeviceOutput.new_from_hash(hash['device'])
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -4,6 +4,7 @@
4
4
  require 'onlinepayments/sdk/data_object'
5
5
  require 'onlinepayments/sdk/domain/amount_of_money'
6
6
  require 'onlinepayments/sdk/domain/card_payment_method_specific_output'
7
+ require 'onlinepayments/sdk/domain/customer_output'
7
8
  require 'onlinepayments/sdk/domain/mobile_payment_method_specific_output'
8
9
  require 'onlinepayments/sdk/domain/payment_references'
9
10
  require 'onlinepayments/sdk/domain/redirect_payment_method_specific_output'
@@ -15,6 +16,7 @@ module OnlinePayments::SDK
15
16
  # @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
16
17
  # @attr [Long] amount_paid
17
18
  # @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput] card_payment_method_specific_output
19
+ # @attr [OnlinePayments::SDK::Domain::CustomerOutput] customer
18
20
  # @attr [String] merchant_parameters
19
21
  # @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificOutput] mobile_payment_method_specific_output
20
22
  # @attr [String] payment_method
@@ -25,6 +27,7 @@ module OnlinePayments::SDK
25
27
  attr_accessor :amount_of_money
26
28
  attr_accessor :amount_paid
27
29
  attr_accessor :card_payment_method_specific_output
30
+ attr_accessor :customer
28
31
  attr_accessor :merchant_parameters
29
32
  attr_accessor :mobile_payment_method_specific_output
30
33
  attr_accessor :payment_method
@@ -38,6 +41,7 @@ module OnlinePayments::SDK
38
41
  hash['amountOfMoney'] = @amount_of_money.to_h if @amount_of_money
39
42
  hash['amountPaid'] = @amount_paid unless @amount_paid.nil?
40
43
  hash['cardPaymentMethodSpecificOutput'] = @card_payment_method_specific_output.to_h if @card_payment_method_specific_output
44
+ hash['customer'] = @customer.to_h if @customer
41
45
  hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
42
46
  hash['mobilePaymentMethodSpecificOutput'] = @mobile_payment_method_specific_output.to_h if @mobile_payment_method_specific_output
43
47
  hash['paymentMethod'] = @payment_method unless @payment_method.nil?
@@ -58,6 +62,10 @@ module OnlinePayments::SDK
58
62
  raise TypeError, "value '%s' is not a Hash" % [hash['cardPaymentMethodSpecificOutput']] unless hash['cardPaymentMethodSpecificOutput'].is_a? Hash
59
63
  @card_payment_method_specific_output = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput.new_from_hash(hash['cardPaymentMethodSpecificOutput'])
60
64
  end
65
+ if hash.key? 'customer'
66
+ raise TypeError, "value '%s' is not a Hash" % [hash['customer']] unless hash['customer'].is_a? Hash
67
+ @customer = OnlinePayments::SDK::Domain::CustomerOutput.new_from_hash(hash['customer'])
68
+ end
61
69
  @merchant_parameters = hash['merchantParameters'] if hash.key? 'merchantParameters'
62
70
  if hash.key? 'mobilePaymentMethodSpecificOutput'
63
71
  raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificOutput']] unless hash['mobilePaymentMethodSpecificOutput'].is_a? Hash
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '3.3.0'
3
+ spec.version = '3.4.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: 3.3.0
4
+ version: 3.4.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: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -200,6 +200,8 @@ files:
200
200
  - lib/onlinepayments/sdk/domain/customer_account.rb
201
201
  - lib/onlinepayments/sdk/domain/customer_account_authentication.rb
202
202
  - lib/onlinepayments/sdk/domain/customer_device.rb
203
+ - lib/onlinepayments/sdk/domain/customer_device_output.rb
204
+ - lib/onlinepayments/sdk/domain/customer_output.rb
203
205
  - lib/onlinepayments/sdk/domain/customer_payment_activity.rb
204
206
  - lib/onlinepayments/sdk/domain/customer_token.rb
205
207
  - lib/onlinepayments/sdk/domain/decrypted_payment_data.rb