onlinepayments-sdk-ruby 4.11.0 → 4.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onlinepayments/sdk/domain/acquirer_information.rb +26 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +8 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_request.rb +8 -0
- data/lib/onlinepayments/sdk/domain/currency_conversion_request.rb +7 -7
- data/lib/onlinepayments/sdk/domain/customer_bank_account.rb +34 -0
- data/lib/onlinepayments/sdk/domain/customer_device.rb +4 -0
- data/lib/onlinepayments/sdk/domain/dcc_card_source.rb +42 -0
- data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +4 -0
- data/lib/onlinepayments/sdk/domain/iin_detail.rb +4 -0
- data/lib/onlinepayments/sdk/domain/payment_product_filter_hosted_tokenization.rb +32 -0
- data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_tokenization.rb +37 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +8 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +8 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb +4 -0
- data/lib/onlinepayments/sdk/domain/surcharge_specific_output.rb +8 -0
- data/lib/onlinepayments/sdk/domain/transaction.rb +0 -4
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 528a3296741db912e6bef008bb34626990fb24dbfd2b36ee875820b99d70284c
|
4
|
+
data.tar.gz: 819da1116df5b4329c57a768693973dbc7910e4706fa044ddf000499793426dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b422d1e09cfe2f98fc168250a12d9bcc3d6fa98b7e2b25777180723771d4e84e381a433c853c4cba91eab988b5f2e367272469b925a7c8263ecd35da87618590
|
7
|
+
data.tar.gz: c93eb250189094a46e686fe6b07a2fdb12167fd5349ea3e7dafadd812b5d0433c15bb395203519ed66b97acedae7aad4de6452ae166fd9818b4811f657009b50
|
@@ -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] name
|
10
|
+
class AcquirerInformation < OnlinePayments::SDK::DataObject
|
11
|
+
attr_accessor :name
|
12
|
+
|
13
|
+
# @return (Hash)
|
14
|
+
def to_h
|
15
|
+
hash = super
|
16
|
+
hash['name'] = @name unless @name.nil?
|
17
|
+
hash
|
18
|
+
end
|
19
|
+
|
20
|
+
def from_hash(hash)
|
21
|
+
super
|
22
|
+
@name = hash['name'] if hash.key? 'name'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# This class was auto-generated.
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/acquirer_information'
|
5
6
|
require 'onlinepayments/sdk/domain/card_essentials'
|
6
7
|
require 'onlinepayments/sdk/domain/card_fraud_results'
|
7
8
|
require 'onlinepayments/sdk/domain/currency_conversion'
|
@@ -13,6 +14,7 @@ require 'onlinepayments/sdk/domain/three_d_secure_results'
|
|
13
14
|
module OnlinePayments::SDK
|
14
15
|
module Domain
|
15
16
|
|
17
|
+
# @attr [OnlinePayments::SDK::Domain::AcquirerInformation] acquirer_information
|
16
18
|
# @attr [Long] authenticated_amount
|
17
19
|
# @attr [String] authorisation_code
|
18
20
|
# @attr [OnlinePayments::SDK::Domain::CardEssentials] card
|
@@ -28,6 +30,7 @@ module OnlinePayments::SDK
|
|
28
30
|
# @attr [OnlinePayments::SDK::Domain::ThreeDSecureResults] three_d_secure_results
|
29
31
|
# @attr [String] token
|
30
32
|
class CardPaymentMethodSpecificOutput < OnlinePayments::SDK::DataObject
|
33
|
+
attr_accessor :acquirer_information
|
31
34
|
attr_accessor :authenticated_amount
|
32
35
|
attr_accessor :authorisation_code
|
33
36
|
attr_accessor :card
|
@@ -46,6 +49,7 @@ module OnlinePayments::SDK
|
|
46
49
|
# @return (Hash)
|
47
50
|
def to_h
|
48
51
|
hash = super
|
52
|
+
hash['acquirerInformation'] = @acquirer_information.to_h if @acquirer_information
|
49
53
|
hash['authenticatedAmount'] = @authenticated_amount unless @authenticated_amount.nil?
|
50
54
|
hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
|
51
55
|
hash['card'] = @card.to_h if @card
|
@@ -65,6 +69,10 @@ module OnlinePayments::SDK
|
|
65
69
|
|
66
70
|
def from_hash(hash)
|
67
71
|
super
|
72
|
+
if hash.key? 'acquirerInformation'
|
73
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['acquirerInformation']] unless hash['acquirerInformation'].is_a? Hash
|
74
|
+
@acquirer_information = OnlinePayments::SDK::Domain::AcquirerInformation.new_from_hash(hash['acquirerInformation'])
|
75
|
+
end
|
68
76
|
@authenticated_amount = hash['authenticatedAmount'] if hash.key? 'authenticatedAmount'
|
69
77
|
@authorisation_code = hash['authorisationCode'] if hash.key? 'authorisationCode'
|
70
78
|
if hash.key? 'card'
|
@@ -2,17 +2,20 @@
|
|
2
2
|
# This class was auto-generated.
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/payment_product_filters_hosted_tokenization'
|
5
6
|
|
6
7
|
module OnlinePayments::SDK
|
7
8
|
module Domain
|
8
9
|
|
9
10
|
# @attr [true/false] ask_consumer_consent
|
10
11
|
# @attr [String] locale
|
12
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProductFiltersHostedTokenization] payment_product_filters
|
11
13
|
# @attr [String] tokens
|
12
14
|
# @attr [String] variant
|
13
15
|
class CreateHostedTokenizationRequest < OnlinePayments::SDK::DataObject
|
14
16
|
attr_accessor :ask_consumer_consent
|
15
17
|
attr_accessor :locale
|
18
|
+
attr_accessor :payment_product_filters
|
16
19
|
attr_accessor :tokens
|
17
20
|
attr_accessor :variant
|
18
21
|
|
@@ -21,6 +24,7 @@ module OnlinePayments::SDK
|
|
21
24
|
hash = super
|
22
25
|
hash['askConsumerConsent'] = @ask_consumer_consent unless @ask_consumer_consent.nil?
|
23
26
|
hash['locale'] = @locale unless @locale.nil?
|
27
|
+
hash['paymentProductFilters'] = @payment_product_filters.to_h if @payment_product_filters
|
24
28
|
hash['tokens'] = @tokens unless @tokens.nil?
|
25
29
|
hash['variant'] = @variant unless @variant.nil?
|
26
30
|
hash
|
@@ -30,6 +34,10 @@ module OnlinePayments::SDK
|
|
30
34
|
super
|
31
35
|
@ask_consumer_consent = hash['askConsumerConsent'] if hash.key? 'askConsumerConsent'
|
32
36
|
@locale = hash['locale'] if hash.key? 'locale'
|
37
|
+
if hash.key? 'paymentProductFilters'
|
38
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductFilters']] unless hash['paymentProductFilters'].is_a? Hash
|
39
|
+
@payment_product_filters = OnlinePayments::SDK::Domain::PaymentProductFiltersHostedTokenization.new_from_hash(hash['paymentProductFilters'])
|
40
|
+
end
|
33
41
|
@tokens = hash['tokens'] if hash.key? 'tokens'
|
34
42
|
@variant = hash['variant'] if hash.key? 'variant'
|
35
43
|
end
|
@@ -2,31 +2,31 @@
|
|
2
2
|
# This class was auto-generated.
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
|
-
require 'onlinepayments/sdk/domain/
|
5
|
+
require 'onlinepayments/sdk/domain/dcc_card_source'
|
6
6
|
require 'onlinepayments/sdk/domain/transaction'
|
7
7
|
|
8
8
|
module OnlinePayments::SDK
|
9
9
|
module Domain
|
10
10
|
|
11
|
-
# @attr [OnlinePayments::SDK::Domain::
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::DccCardSource] card_source
|
12
12
|
# @attr [OnlinePayments::SDK::Domain::Transaction] transaction
|
13
13
|
class CurrencyConversionRequest < OnlinePayments::SDK::DataObject
|
14
|
-
attr_accessor :
|
14
|
+
attr_accessor :card_source
|
15
15
|
attr_accessor :transaction
|
16
16
|
|
17
17
|
# @return (Hash)
|
18
18
|
def to_h
|
19
19
|
hash = super
|
20
|
-
hash['
|
20
|
+
hash['cardSource'] = @card_source.to_h if @card_source
|
21
21
|
hash['transaction'] = @transaction.to_h if @transaction
|
22
22
|
hash
|
23
23
|
end
|
24
24
|
|
25
25
|
def from_hash(hash)
|
26
26
|
super
|
27
|
-
if hash.key? '
|
28
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['
|
29
|
-
@
|
27
|
+
if hash.key? 'cardSource'
|
28
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['cardSource']] unless hash['cardSource'].is_a? Hash
|
29
|
+
@card_source = OnlinePayments::SDK::Domain::DccCardSource.new_from_hash(hash['cardSource'])
|
30
30
|
end
|
31
31
|
if hash.key? 'transaction'
|
32
32
|
raise TypeError, "value '%s' is not a Hash" % [hash['transaction']] unless hash['transaction'].is_a? Hash
|
@@ -0,0 +1,34 @@
|
|
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] account_holder_name
|
10
|
+
# @attr [String] bic
|
11
|
+
# @attr [String] iban
|
12
|
+
class CustomerBankAccount < OnlinePayments::SDK::DataObject
|
13
|
+
attr_accessor :account_holder_name
|
14
|
+
attr_accessor :bic
|
15
|
+
attr_accessor :iban
|
16
|
+
|
17
|
+
# @return (Hash)
|
18
|
+
def to_h
|
19
|
+
hash = super
|
20
|
+
hash['accountHolderName'] = @account_holder_name unless @account_holder_name.nil?
|
21
|
+
hash['bic'] = @bic unless @bic.nil?
|
22
|
+
hash['iban'] = @iban unless @iban.nil?
|
23
|
+
hash
|
24
|
+
end
|
25
|
+
|
26
|
+
def from_hash(hash)
|
27
|
+
super
|
28
|
+
@account_holder_name = hash['accountHolderName'] if hash.key? 'accountHolderName'
|
29
|
+
@bic = hash['bic'] if hash.key? 'bic'
|
30
|
+
@iban = hash['iban'] if hash.key? 'iban'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -9,6 +9,7 @@ module OnlinePayments::SDK
|
|
9
9
|
|
10
10
|
# @attr [String] accept_header
|
11
11
|
# @attr [OnlinePayments::SDK::Domain::BrowserData] browser_data
|
12
|
+
# @attr [String] device_fingerprint
|
12
13
|
# @attr [String] ip_address
|
13
14
|
# @attr [String] locale
|
14
15
|
# @attr [String] timezone_offset_utc_minutes
|
@@ -16,6 +17,7 @@ module OnlinePayments::SDK
|
|
16
17
|
class CustomerDevice < OnlinePayments::SDK::DataObject
|
17
18
|
attr_accessor :accept_header
|
18
19
|
attr_accessor :browser_data
|
20
|
+
attr_accessor :device_fingerprint
|
19
21
|
attr_accessor :ip_address
|
20
22
|
attr_accessor :locale
|
21
23
|
attr_accessor :timezone_offset_utc_minutes
|
@@ -26,6 +28,7 @@ module OnlinePayments::SDK
|
|
26
28
|
hash = super
|
27
29
|
hash['acceptHeader'] = @accept_header unless @accept_header.nil?
|
28
30
|
hash['browserData'] = @browser_data.to_h if @browser_data
|
31
|
+
hash['deviceFingerprint'] = @device_fingerprint unless @device_fingerprint.nil?
|
29
32
|
hash['ipAddress'] = @ip_address unless @ip_address.nil?
|
30
33
|
hash['locale'] = @locale unless @locale.nil?
|
31
34
|
hash['timezoneOffsetUtcMinutes'] = @timezone_offset_utc_minutes unless @timezone_offset_utc_minutes.nil?
|
@@ -40,6 +43,7 @@ module OnlinePayments::SDK
|
|
40
43
|
raise TypeError, "value '%s' is not a Hash" % [hash['browserData']] unless hash['browserData'].is_a? Hash
|
41
44
|
@browser_data = OnlinePayments::SDK::Domain::BrowserData.new_from_hash(hash['browserData'])
|
42
45
|
end
|
46
|
+
@device_fingerprint = hash['deviceFingerprint'] if hash.key? 'deviceFingerprint'
|
43
47
|
@ip_address = hash['ipAddress'] if hash.key? 'ipAddress'
|
44
48
|
@locale = hash['locale'] if hash.key? 'locale'
|
45
49
|
@timezone_offset_utc_minutes = hash['timezoneOffsetUtcMinutes'] if hash.key? 'timezoneOffsetUtcMinutes'
|
@@ -0,0 +1,42 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/card_info'
|
6
|
+
|
7
|
+
module OnlinePayments::SDK
|
8
|
+
module Domain
|
9
|
+
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::CardInfo] card
|
11
|
+
# @attr [String] encrypted_customer_input
|
12
|
+
# @attr [String] hosted_tokenization_id
|
13
|
+
# @attr [String] token
|
14
|
+
class DccCardSource < OnlinePayments::SDK::DataObject
|
15
|
+
attr_accessor :card
|
16
|
+
attr_accessor :encrypted_customer_input
|
17
|
+
attr_accessor :hosted_tokenization_id
|
18
|
+
attr_accessor :token
|
19
|
+
|
20
|
+
# @return (Hash)
|
21
|
+
def to_h
|
22
|
+
hash = super
|
23
|
+
hash['card'] = @card.to_h if @card
|
24
|
+
hash['encryptedCustomerInput'] = @encrypted_customer_input unless @encrypted_customer_input.nil?
|
25
|
+
hash['hostedTokenizationId'] = @hosted_tokenization_id unless @hosted_tokenization_id.nil?
|
26
|
+
hash['token'] = @token unless @token.nil?
|
27
|
+
hash
|
28
|
+
end
|
29
|
+
|
30
|
+
def from_hash(hash)
|
31
|
+
super
|
32
|
+
if hash.key? 'card'
|
33
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
|
34
|
+
@card = OnlinePayments::SDK::Domain::CardInfo.new_from_hash(hash['card'])
|
35
|
+
end
|
36
|
+
@encrypted_customer_input = hash['encryptedCustomerInput'] if hash.key? 'encryptedCustomerInput'
|
37
|
+
@hosted_tokenization_id = hash['hostedTokenizationId'] if hash.key? 'hostedTokenizationId'
|
38
|
+
@token = hash['token'] if hash.key? 'token'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -7,11 +7,13 @@ require 'onlinepayments/sdk/domain/iin_detail'
|
|
7
7
|
module OnlinePayments::SDK
|
8
8
|
module Domain
|
9
9
|
|
10
|
+
# @attr [String] card_type
|
10
11
|
# @attr [Array<OnlinePayments::SDK::Domain::IINDetail>] co_brands
|
11
12
|
# @attr [String] country_code
|
12
13
|
# @attr [true/false] is_allowed_in_context
|
13
14
|
# @attr [Integer] payment_product_id
|
14
15
|
class GetIINDetailsResponse < OnlinePayments::SDK::DataObject
|
16
|
+
attr_accessor :card_type
|
15
17
|
attr_accessor :co_brands
|
16
18
|
attr_accessor :country_code
|
17
19
|
attr_accessor :is_allowed_in_context
|
@@ -20,6 +22,7 @@ module OnlinePayments::SDK
|
|
20
22
|
# @return (Hash)
|
21
23
|
def to_h
|
22
24
|
hash = super
|
25
|
+
hash['cardType'] = @card_type unless @card_type.nil?
|
23
26
|
hash['coBrands'] = @co_brands.collect(&:to_h) if @co_brands
|
24
27
|
hash['countryCode'] = @country_code unless @country_code.nil?
|
25
28
|
hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
|
@@ -29,6 +32,7 @@ module OnlinePayments::SDK
|
|
29
32
|
|
30
33
|
def from_hash(hash)
|
31
34
|
super
|
35
|
+
@card_type = hash['cardType'] if hash.key? 'cardType'
|
32
36
|
if hash.key? 'coBrands'
|
33
37
|
raise TypeError, "value '%s' is not an Array" % [hash['coBrands']] unless hash['coBrands'].is_a? Array
|
34
38
|
@co_brands = []
|
@@ -6,15 +6,18 @@ require 'onlinepayments/sdk/data_object'
|
|
6
6
|
module OnlinePayments::SDK
|
7
7
|
module Domain
|
8
8
|
|
9
|
+
# @attr [String] card_type
|
9
10
|
# @attr [true/false] is_allowed_in_context
|
10
11
|
# @attr [Integer] payment_product_id
|
11
12
|
class IINDetail < OnlinePayments::SDK::DataObject
|
13
|
+
attr_accessor :card_type
|
12
14
|
attr_accessor :is_allowed_in_context
|
13
15
|
attr_accessor :payment_product_id
|
14
16
|
|
15
17
|
# @return (Hash)
|
16
18
|
def to_h
|
17
19
|
hash = super
|
20
|
+
hash['cardType'] = @card_type unless @card_type.nil?
|
18
21
|
hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
|
19
22
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
20
23
|
hash
|
@@ -22,6 +25,7 @@ module OnlinePayments::SDK
|
|
22
25
|
|
23
26
|
def from_hash(hash)
|
24
27
|
super
|
28
|
+
@card_type = hash['cardType'] if hash.key? 'cardType'
|
25
29
|
@is_allowed_in_context = hash['isAllowedInContext'] if hash.key? 'isAllowedInContext'
|
26
30
|
@payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId'
|
27
31
|
end
|
@@ -0,0 +1,32 @@
|
|
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 [Array<Integer>] products
|
10
|
+
class PaymentProductFilterHostedTokenization < OnlinePayments::SDK::DataObject
|
11
|
+
attr_accessor :products
|
12
|
+
|
13
|
+
# @return (Hash)
|
14
|
+
def to_h
|
15
|
+
hash = super
|
16
|
+
hash['products'] = @products unless @products.nil?
|
17
|
+
hash
|
18
|
+
end
|
19
|
+
|
20
|
+
def from_hash(hash)
|
21
|
+
super
|
22
|
+
if hash.key? 'products'
|
23
|
+
raise TypeError, "value '%s' is not an Array" % [hash['products']] unless hash['products'].is_a? Array
|
24
|
+
@products = []
|
25
|
+
hash['products'].each do |e|
|
26
|
+
@products << e
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/payment_product_filter_hosted_tokenization'
|
6
|
+
|
7
|
+
module OnlinePayments::SDK
|
8
|
+
module Domain
|
9
|
+
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProductFilterHostedTokenization] exclude
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProductFilterHostedTokenization] restrict_to
|
12
|
+
class PaymentProductFiltersHostedTokenization < OnlinePayments::SDK::DataObject
|
13
|
+
attr_accessor :exclude
|
14
|
+
attr_accessor :restrict_to
|
15
|
+
|
16
|
+
# @return (Hash)
|
17
|
+
def to_h
|
18
|
+
hash = super
|
19
|
+
hash['exclude'] = @exclude.to_h if @exclude
|
20
|
+
hash['restrictTo'] = @restrict_to.to_h if @restrict_to
|
21
|
+
hash
|
22
|
+
end
|
23
|
+
|
24
|
+
def from_hash(hash)
|
25
|
+
super
|
26
|
+
if hash.key? 'exclude'
|
27
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['exclude']] unless hash['exclude'].is_a? Hash
|
28
|
+
@exclude = OnlinePayments::SDK::Domain::PaymentProductFilterHostedTokenization.new_from_hash(hash['exclude'])
|
29
|
+
end
|
30
|
+
if hash.key? 'restrictTo'
|
31
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['restrictTo']] unless hash['restrictTo'].is_a? Hash
|
32
|
+
@restrict_to = OnlinePayments::SDK::Domain::PaymentProductFilterHostedTokenization.new_from_hash(hash['restrictTo'])
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/redirect_payment_product3306_specific_input'
|
6
|
+
require 'onlinepayments/sdk/domain/redirect_payment_product5406_specific_input'
|
6
7
|
require 'onlinepayments/sdk/domain/redirect_payment_product809_specific_input'
|
7
8
|
require 'onlinepayments/sdk/domain/redirect_payment_product840_specific_input'
|
8
9
|
require 'onlinepayments/sdk/domain/redirection_data'
|
@@ -12,6 +13,7 @@ module OnlinePayments::SDK
|
|
12
13
|
|
13
14
|
# @attr [String] payment_option
|
14
15
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput] payment_product3306_specific_input
|
16
|
+
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput] payment_product5406_specific_input
|
15
17
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput] payment_product809_specific_input
|
16
18
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput] payment_product840_specific_input
|
17
19
|
# @attr [Integer] payment_product_id
|
@@ -22,6 +24,7 @@ module OnlinePayments::SDK
|
|
22
24
|
class RedirectPaymentMethodSpecificInput < OnlinePayments::SDK::DataObject
|
23
25
|
attr_accessor :payment_option
|
24
26
|
attr_accessor :payment_product3306_specific_input
|
27
|
+
attr_accessor :payment_product5406_specific_input
|
25
28
|
attr_accessor :payment_product809_specific_input
|
26
29
|
attr_accessor :payment_product840_specific_input
|
27
30
|
attr_accessor :payment_product_id
|
@@ -35,6 +38,7 @@ module OnlinePayments::SDK
|
|
35
38
|
hash = super
|
36
39
|
hash['paymentOption'] = @payment_option unless @payment_option.nil?
|
37
40
|
hash['paymentProduct3306SpecificInput'] = @payment_product3306_specific_input.to_h if @payment_product3306_specific_input
|
41
|
+
hash['paymentProduct5406SpecificInput'] = @payment_product5406_specific_input.to_h if @payment_product5406_specific_input
|
38
42
|
hash['paymentProduct809SpecificInput'] = @payment_product809_specific_input.to_h if @payment_product809_specific_input
|
39
43
|
hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h if @payment_product840_specific_input
|
40
44
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
@@ -52,6 +56,10 @@ module OnlinePayments::SDK
|
|
52
56
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3306SpecificInput']] unless hash['paymentProduct3306SpecificInput'].is_a? Hash
|
53
57
|
@payment_product3306_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput.new_from_hash(hash['paymentProduct3306SpecificInput'])
|
54
58
|
end
|
59
|
+
if hash.key? 'paymentProduct5406SpecificInput'
|
60
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5406SpecificInput']] unless hash['paymentProduct5406SpecificInput'].is_a? Hash
|
61
|
+
@payment_product5406_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput.new_from_hash(hash['paymentProduct5406SpecificInput'])
|
62
|
+
end
|
55
63
|
if hash.key? 'paymentProduct809SpecificInput'
|
56
64
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct809SpecificInput']] unless hash['paymentProduct809SpecificInput'].is_a? Hash
|
57
65
|
@payment_product809_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput'])
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# This class was auto-generated.
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/customer_bank_account'
|
5
6
|
require 'onlinepayments/sdk/domain/fraud_results'
|
6
7
|
require 'onlinepayments/sdk/domain/payment_product5001_specific_output'
|
7
8
|
require 'onlinepayments/sdk/domain/payment_product5402_specific_output'
|
@@ -11,6 +12,7 @@ require 'onlinepayments/sdk/domain/payment_product840_specific_output'
|
|
11
12
|
module OnlinePayments::SDK
|
12
13
|
module Domain
|
13
14
|
|
15
|
+
# @attr [OnlinePayments::SDK::Domain::CustomerBankAccount] customer_bank_account
|
14
16
|
# @attr [OnlinePayments::SDK::Domain::FraudResults] fraud_results
|
15
17
|
# @attr [String] payment_option
|
16
18
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5001SpecificOutput] payment_product5001_specific_output
|
@@ -20,6 +22,7 @@ module OnlinePayments::SDK
|
|
20
22
|
# @attr [Integer] payment_product_id
|
21
23
|
# @attr [String] token
|
22
24
|
class RedirectPaymentMethodSpecificOutput < OnlinePayments::SDK::DataObject
|
25
|
+
attr_accessor :customer_bank_account
|
23
26
|
attr_accessor :fraud_results
|
24
27
|
attr_accessor :payment_option
|
25
28
|
attr_accessor :payment_product5001_specific_output
|
@@ -32,6 +35,7 @@ module OnlinePayments::SDK
|
|
32
35
|
# @return (Hash)
|
33
36
|
def to_h
|
34
37
|
hash = super
|
38
|
+
hash['customerBankAccount'] = @customer_bank_account.to_h if @customer_bank_account
|
35
39
|
hash['fraudResults'] = @fraud_results.to_h if @fraud_results
|
36
40
|
hash['paymentOption'] = @payment_option unless @payment_option.nil?
|
37
41
|
hash['paymentProduct5001SpecificOutput'] = @payment_product5001_specific_output.to_h if @payment_product5001_specific_output
|
@@ -45,6 +49,10 @@ module OnlinePayments::SDK
|
|
45
49
|
|
46
50
|
def from_hash(hash)
|
47
51
|
super
|
52
|
+
if hash.key? 'customerBankAccount'
|
53
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['customerBankAccount']] unless hash['customerBankAccount'].is_a? Hash
|
54
|
+
@customer_bank_account = OnlinePayments::SDK::Domain::CustomerBankAccount.new_from_hash(hash['customerBankAccount'])
|
55
|
+
end
|
48
56
|
if hash.key? 'fraudResults'
|
49
57
|
raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
|
50
58
|
@fraud_results = OnlinePayments::SDK::Domain::FraudResults.new_from_hash(hash['fraudResults'])
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/customer_bank_account'
|
6
|
+
|
7
|
+
module OnlinePayments::SDK
|
8
|
+
module Domain
|
9
|
+
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::CustomerBankAccount] customer_bank_account
|
11
|
+
class RedirectPaymentProduct5406SpecificInput < OnlinePayments::SDK::DataObject
|
12
|
+
attr_accessor :customer_bank_account
|
13
|
+
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['customerBankAccount'] = @customer_bank_account.to_h if @customer_bank_account
|
18
|
+
hash
|
19
|
+
end
|
20
|
+
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.key? 'customerBankAccount'
|
24
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['customerBankAccount']] unless hash['customerBankAccount'].is_a? Hash
|
25
|
+
@customer_bank_account = OnlinePayments::SDK::Domain::CustomerBankAccount.new_from_hash(hash['customerBankAccount'])
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -7,19 +7,23 @@ module OnlinePayments::SDK
|
|
7
7
|
module Domain
|
8
8
|
|
9
9
|
# @attr [true/false] address_selection_at_pay_pal
|
10
|
+
# @attr [String] custom
|
10
11
|
class RedirectPaymentProduct840SpecificInput < OnlinePayments::SDK::DataObject
|
11
12
|
attr_accessor :address_selection_at_pay_pal
|
13
|
+
attr_accessor :custom
|
12
14
|
|
13
15
|
# @return (Hash)
|
14
16
|
def to_h
|
15
17
|
hash = super
|
16
18
|
hash['addressSelectionAtPayPal'] = @address_selection_at_pay_pal unless @address_selection_at_pay_pal.nil?
|
19
|
+
hash['custom'] = @custom unless @custom.nil?
|
17
20
|
hash
|
18
21
|
end
|
19
22
|
|
20
23
|
def from_hash(hash)
|
21
24
|
super
|
22
25
|
@address_selection_at_pay_pal = hash['addressSelectionAtPayPal'] if hash.key? 'addressSelectionAtPayPal'
|
26
|
+
@custom = hash['custom'] if hash.key? 'custom'
|
23
27
|
end
|
24
28
|
end
|
25
29
|
end
|
@@ -3,21 +3,25 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/amount_of_money'
|
6
|
+
require 'onlinepayments/sdk/domain/surcharge_rate'
|
6
7
|
|
7
8
|
module OnlinePayments::SDK
|
8
9
|
module Domain
|
9
10
|
|
10
11
|
# @attr [String] mode
|
11
12
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] surcharge_amount
|
13
|
+
# @attr [OnlinePayments::SDK::Domain::SurchargeRate] surcharge_rate
|
12
14
|
class SurchargeSpecificOutput < OnlinePayments::SDK::DataObject
|
13
15
|
attr_accessor :mode
|
14
16
|
attr_accessor :surcharge_amount
|
17
|
+
attr_accessor :surcharge_rate
|
15
18
|
|
16
19
|
# @return (Hash)
|
17
20
|
def to_h
|
18
21
|
hash = super
|
19
22
|
hash['mode'] = @mode unless @mode.nil?
|
20
23
|
hash['surchargeAmount'] = @surcharge_amount.to_h if @surcharge_amount
|
24
|
+
hash['surchargeRate'] = @surcharge_rate.to_h if @surcharge_rate
|
21
25
|
hash
|
22
26
|
end
|
23
27
|
|
@@ -28,6 +32,10 @@ module OnlinePayments::SDK
|
|
28
32
|
raise TypeError, "value '%s' is not a Hash" % [hash['surchargeAmount']] unless hash['surchargeAmount'].is_a? Hash
|
29
33
|
@surcharge_amount = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['surchargeAmount'])
|
30
34
|
end
|
35
|
+
if hash.key? 'surchargeRate'
|
36
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['surchargeRate']] unless hash['surchargeRate'].is_a? Hash
|
37
|
+
@surcharge_rate = OnlinePayments::SDK::Domain::SurchargeRate.new_from_hash(hash['surchargeRate'])
|
38
|
+
end
|
31
39
|
end
|
32
40
|
end
|
33
41
|
end
|
@@ -8,16 +8,13 @@ module OnlinePayments::SDK
|
|
8
8
|
module Domain
|
9
9
|
|
10
10
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount
|
11
|
-
# @attr [String] local_date_time
|
12
11
|
class Transaction < OnlinePayments::SDK::DataObject
|
13
12
|
attr_accessor :amount
|
14
|
-
attr_accessor :local_date_time
|
15
13
|
|
16
14
|
# @return (Hash)
|
17
15
|
def to_h
|
18
16
|
hash = super
|
19
17
|
hash['amount'] = @amount.to_h if @amount
|
20
|
-
hash['localDateTime'] = @local_date_time unless @local_date_time.nil?
|
21
18
|
hash
|
22
19
|
end
|
23
20
|
|
@@ -27,7 +24,6 @@ module OnlinePayments::SDK
|
|
27
24
|
raise TypeError, "value '%s' is not a Hash" % [hash['amount']] unless hash['amount'].is_a? Hash
|
28
25
|
@amount = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amount'])
|
29
26
|
end
|
30
|
-
@local_date_time = hash['localDateTime'] if hash.key? 'localDateTime'
|
31
27
|
end
|
32
28
|
end
|
33
29
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
3
|
-
spec.version = '4.
|
3
|
+
spec.version = '4.13.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.
|
4
|
+
version: 4.13.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-
|
11
|
+
date: 2023-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -150,6 +150,7 @@ files:
|
|
150
150
|
- lib/onlinepayments/sdk/domain/account_on_file.rb
|
151
151
|
- lib/onlinepayments/sdk/domain/account_on_file_attribute.rb
|
152
152
|
- lib/onlinepayments/sdk/domain/account_on_file_display_hints.rb
|
153
|
+
- lib/onlinepayments/sdk/domain/acquirer_information.rb
|
153
154
|
- lib/onlinepayments/sdk/domain/additional_order_input.rb
|
154
155
|
- lib/onlinepayments/sdk/domain/address.rb
|
155
156
|
- lib/onlinepayments/sdk/domain/address_personal.rb
|
@@ -211,11 +212,13 @@ files:
|
|
211
212
|
- lib/onlinepayments/sdk/domain/customer.rb
|
212
213
|
- lib/onlinepayments/sdk/domain/customer_account.rb
|
213
214
|
- lib/onlinepayments/sdk/domain/customer_account_authentication.rb
|
215
|
+
- lib/onlinepayments/sdk/domain/customer_bank_account.rb
|
214
216
|
- lib/onlinepayments/sdk/domain/customer_device.rb
|
215
217
|
- lib/onlinepayments/sdk/domain/customer_device_output.rb
|
216
218
|
- lib/onlinepayments/sdk/domain/customer_output.rb
|
217
219
|
- lib/onlinepayments/sdk/domain/customer_payment_activity.rb
|
218
220
|
- lib/onlinepayments/sdk/domain/customer_token.rb
|
221
|
+
- lib/onlinepayments/sdk/domain/dcc_card_source.rb
|
219
222
|
- lib/onlinepayments/sdk/domain/dcc_proposal.rb
|
220
223
|
- lib/onlinepayments/sdk/domain/decrypted_payment_data.rb
|
221
224
|
- lib/onlinepayments/sdk/domain/directory_entry.rb
|
@@ -301,7 +304,9 @@ files:
|
|
301
304
|
- lib/onlinepayments/sdk/domain/payment_product_field_tooltip.rb
|
302
305
|
- lib/onlinepayments/sdk/domain/payment_product_field_validators.rb
|
303
306
|
- lib/onlinepayments/sdk/domain/payment_product_filter.rb
|
307
|
+
- lib/onlinepayments/sdk/domain/payment_product_filter_hosted_tokenization.rb
|
304
308
|
- lib/onlinepayments/sdk/domain/payment_product_filters_hosted_checkout.rb
|
309
|
+
- lib/onlinepayments/sdk/domain/payment_product_filters_hosted_tokenization.rb
|
305
310
|
- lib/onlinepayments/sdk/domain/payment_product_group.rb
|
306
311
|
- lib/onlinepayments/sdk/domain/payment_product_networks_response.rb
|
307
312
|
- lib/onlinepayments/sdk/domain/payment_references.rb
|
@@ -324,6 +329,7 @@ files:
|
|
324
329
|
- lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb
|
325
330
|
- lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb
|
326
331
|
- lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb
|
332
|
+
- lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb
|
327
333
|
- lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb
|
328
334
|
- lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb
|
329
335
|
- lib/onlinepayments/sdk/domain/redirection_data.rb
|