onlinepayments-sdk-ruby 5.1.0 → 6.1.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 +4 -4
- data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
- data/lib/onlinepayments/sdk/domain/account_on_file.rb +1 -1
- data/lib/onlinepayments/sdk/domain/cancel_payment_request.rb +9 -0
- data/lib/onlinepayments/sdk/domain/card_bin_details.rb +151 -0
- data/lib/onlinepayments/sdk/domain/card_essentials.rb +121 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +9 -0
- data/lib/onlinepayments/sdk/domain/click_to_pay.rb +30 -0
- data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +114 -0
- data/lib/onlinepayments/sdk/domain/iin_detail.rb +121 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_product302_specific_input.rb +23 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +23 -0
- data/lib/onlinepayments/sdk/domain/network_token_data.rb +65 -0
- data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/order_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +1 -0
- data/lib/onlinepayments/sdk/domain/payment_product3204_specific_output.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_product5001.rb +37 -0
- data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +9 -0
- data/lib/onlinepayments/sdk/domain/payment_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/product302_recurring.rb +30 -0
- data/lib/onlinepayments/sdk/domain/product320_recurring.rb +30 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +9 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb +7 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +1 -0
- data/lib/onlinepayments/sdk/domain/refund_request.rb +7 -0
- data/lib/onlinepayments/sdk/domain/revoke_mandate_request.rb +30 -0
- data/lib/onlinepayments/sdk/domain/show_form_data.rb +9 -0
- data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +7 -0
- data/lib/onlinepayments/sdk/domain/token_card_data.rb +9 -0
- data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +3 -2
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +1 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +1 -0
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +10 -2
@@ -1,42 +1,163 @@
|
|
1
1
|
#
|
2
2
|
# This file was automatically generated.
|
3
3
|
#
|
4
|
+
require 'date'
|
5
|
+
|
4
6
|
require 'onlinepayments/sdk/domain/data_object'
|
5
7
|
|
6
8
|
module OnlinePayments
|
7
9
|
module SDK
|
8
10
|
module Domain
|
11
|
+
# @attr [true/false] card_corporate_indicator
|
12
|
+
# @attr [Date] card_effective_date
|
13
|
+
# @attr [true/false] card_effective_date_indicator
|
14
|
+
# @attr [String] card_pan_type
|
15
|
+
# @attr [String] card_product_code
|
16
|
+
# @attr [String] card_product_name
|
17
|
+
# @attr [String] card_product_usage_label
|
18
|
+
# @attr [String] card_scheme
|
9
19
|
# @attr [String] card_type
|
20
|
+
# @attr [String] country_code
|
10
21
|
# @attr [true/false] is_allowed_in_context
|
22
|
+
# @attr [String] issuer_code
|
23
|
+
# @attr [String] issuer_name
|
24
|
+
# @attr [String] issuer_region_code
|
25
|
+
# @attr [String] issuing_country_code
|
26
|
+
# @attr [Integer] pan_length_max
|
27
|
+
# @attr [Integer] pan_length_min
|
28
|
+
# @attr [true/false] pan_luhn_check
|
11
29
|
# @attr [Integer] payment_product_id
|
30
|
+
# @attr [true/false] virtual_card_indicator
|
12
31
|
class IINDetail < OnlinePayments::SDK::Domain::DataObject
|
13
32
|
|
33
|
+
attr_accessor :card_corporate_indicator
|
34
|
+
|
35
|
+
attr_accessor :card_effective_date
|
36
|
+
|
37
|
+
attr_accessor :card_effective_date_indicator
|
38
|
+
|
39
|
+
attr_accessor :card_pan_type
|
40
|
+
|
41
|
+
attr_accessor :card_product_code
|
42
|
+
|
43
|
+
attr_accessor :card_product_name
|
44
|
+
|
45
|
+
attr_accessor :card_product_usage_label
|
46
|
+
|
47
|
+
attr_accessor :card_scheme
|
48
|
+
|
14
49
|
attr_accessor :card_type
|
15
50
|
|
51
|
+
attr_accessor :country_code
|
52
|
+
|
16
53
|
attr_accessor :is_allowed_in_context
|
17
54
|
|
55
|
+
attr_accessor :issuer_code
|
56
|
+
|
57
|
+
attr_accessor :issuer_name
|
58
|
+
|
59
|
+
attr_accessor :issuer_region_code
|
60
|
+
|
61
|
+
attr_accessor :issuing_country_code
|
62
|
+
|
63
|
+
attr_accessor :pan_length_max
|
64
|
+
|
65
|
+
attr_accessor :pan_length_min
|
66
|
+
|
67
|
+
attr_accessor :pan_luhn_check
|
68
|
+
|
18
69
|
attr_accessor :payment_product_id
|
19
70
|
|
71
|
+
attr_accessor :virtual_card_indicator
|
72
|
+
|
20
73
|
# @return (Hash)
|
21
74
|
def to_h
|
22
75
|
hash = super
|
76
|
+
hash['cardCorporateIndicator'] = @card_corporate_indicator unless @card_corporate_indicator.nil?
|
77
|
+
hash['cardEffectiveDate'] = @card_effective_date.iso8601 unless @card_effective_date.nil?
|
78
|
+
hash['cardEffectiveDateIndicator'] = @card_effective_date_indicator unless @card_effective_date_indicator.nil?
|
79
|
+
hash['cardPanType'] = @card_pan_type unless @card_pan_type.nil?
|
80
|
+
hash['cardProductCode'] = @card_product_code unless @card_product_code.nil?
|
81
|
+
hash['cardProductName'] = @card_product_name unless @card_product_name.nil?
|
82
|
+
hash['cardProductUsageLabel'] = @card_product_usage_label unless @card_product_usage_label.nil?
|
83
|
+
hash['cardScheme'] = @card_scheme unless @card_scheme.nil?
|
23
84
|
hash['cardType'] = @card_type unless @card_type.nil?
|
85
|
+
hash['countryCode'] = @country_code unless @country_code.nil?
|
24
86
|
hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
|
87
|
+
hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
|
88
|
+
hash['issuerName'] = @issuer_name unless @issuer_name.nil?
|
89
|
+
hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
|
90
|
+
hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
|
91
|
+
hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
|
92
|
+
hash['panLengthMin'] = @pan_length_min unless @pan_length_min.nil?
|
93
|
+
hash['panLuhnCheck'] = @pan_luhn_check unless @pan_luhn_check.nil?
|
25
94
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
95
|
+
hash['virtualCardIndicator'] = @virtual_card_indicator unless @virtual_card_indicator.nil?
|
26
96
|
hash
|
27
97
|
end
|
28
98
|
|
29
99
|
def from_hash(hash)
|
30
100
|
super
|
101
|
+
if hash.has_key? 'cardCorporateIndicator'
|
102
|
+
@card_corporate_indicator = hash['cardCorporateIndicator']
|
103
|
+
end
|
104
|
+
if hash.has_key? 'cardEffectiveDate'
|
105
|
+
@card_effective_date = Date.parse(hash['cardEffectiveDate'])
|
106
|
+
end
|
107
|
+
if hash.has_key? 'cardEffectiveDateIndicator'
|
108
|
+
@card_effective_date_indicator = hash['cardEffectiveDateIndicator']
|
109
|
+
end
|
110
|
+
if hash.has_key? 'cardPanType'
|
111
|
+
@card_pan_type = hash['cardPanType']
|
112
|
+
end
|
113
|
+
if hash.has_key? 'cardProductCode'
|
114
|
+
@card_product_code = hash['cardProductCode']
|
115
|
+
end
|
116
|
+
if hash.has_key? 'cardProductName'
|
117
|
+
@card_product_name = hash['cardProductName']
|
118
|
+
end
|
119
|
+
if hash.has_key? 'cardProductUsageLabel'
|
120
|
+
@card_product_usage_label = hash['cardProductUsageLabel']
|
121
|
+
end
|
122
|
+
if hash.has_key? 'cardScheme'
|
123
|
+
@card_scheme = hash['cardScheme']
|
124
|
+
end
|
31
125
|
if hash.has_key? 'cardType'
|
32
126
|
@card_type = hash['cardType']
|
33
127
|
end
|
128
|
+
if hash.has_key? 'countryCode'
|
129
|
+
@country_code = hash['countryCode']
|
130
|
+
end
|
34
131
|
if hash.has_key? 'isAllowedInContext'
|
35
132
|
@is_allowed_in_context = hash['isAllowedInContext']
|
36
133
|
end
|
134
|
+
if hash.has_key? 'issuerCode'
|
135
|
+
@issuer_code = hash['issuerCode']
|
136
|
+
end
|
137
|
+
if hash.has_key? 'issuerName'
|
138
|
+
@issuer_name = hash['issuerName']
|
139
|
+
end
|
140
|
+
if hash.has_key? 'issuerRegionCode'
|
141
|
+
@issuer_region_code = hash['issuerRegionCode']
|
142
|
+
end
|
143
|
+
if hash.has_key? 'issuingCountryCode'
|
144
|
+
@issuing_country_code = hash['issuingCountryCode']
|
145
|
+
end
|
146
|
+
if hash.has_key? 'panLengthMax'
|
147
|
+
@pan_length_max = hash['panLengthMax']
|
148
|
+
end
|
149
|
+
if hash.has_key? 'panLengthMin'
|
150
|
+
@pan_length_min = hash['panLengthMin']
|
151
|
+
end
|
152
|
+
if hash.has_key? 'panLuhnCheck'
|
153
|
+
@pan_luhn_check = hash['panLuhnCheck']
|
154
|
+
end
|
37
155
|
if hash.has_key? 'paymentProductId'
|
38
156
|
@payment_product_id = hash['paymentProductId']
|
39
157
|
end
|
158
|
+
if hash.has_key? 'virtualCardIndicator'
|
159
|
+
@virtual_card_indicator = hash['virtualCardIndicator']
|
160
|
+
end
|
40
161
|
end
|
41
162
|
end
|
42
163
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/domain/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/decrypted_payment_data'
|
6
|
+
require 'onlinepayments/sdk/domain/mobile_payment_product302_specific_input'
|
6
7
|
require 'onlinepayments/sdk/domain/mobile_payment_product320_specific_input'
|
7
8
|
|
8
9
|
module OnlinePayments
|
@@ -12,6 +13,7 @@ module OnlinePayments
|
|
12
13
|
# @attr [OnlinePayments::SDK::Domain::DecryptedPaymentData] decrypted_payment_data
|
13
14
|
# @attr [String] encrypted_payment_data
|
14
15
|
# @attr [String] ephemeral_key
|
16
|
+
# @attr [OnlinePayments::SDK::Domain::MobilePaymentProduct302SpecificInput] payment_product302_specific_input
|
15
17
|
# @attr [OnlinePayments::SDK::Domain::MobilePaymentProduct320SpecificInput] payment_product320_specific_input
|
16
18
|
# @attr [Integer] payment_product_id
|
17
19
|
# @attr [String] public_key_hash
|
@@ -26,6 +28,8 @@ module OnlinePayments
|
|
26
28
|
|
27
29
|
attr_accessor :ephemeral_key
|
28
30
|
|
31
|
+
attr_accessor :payment_product302_specific_input
|
32
|
+
|
29
33
|
attr_accessor :payment_product320_specific_input
|
30
34
|
|
31
35
|
attr_accessor :payment_product_id
|
@@ -41,6 +45,7 @@ module OnlinePayments
|
|
41
45
|
hash['decryptedPaymentData'] = @decrypted_payment_data.to_h unless @decrypted_payment_data.nil?
|
42
46
|
hash['encryptedPaymentData'] = @encrypted_payment_data unless @encrypted_payment_data.nil?
|
43
47
|
hash['ephemeralKey'] = @ephemeral_key unless @ephemeral_key.nil?
|
48
|
+
hash['paymentProduct302SpecificInput'] = @payment_product302_specific_input.to_h unless @payment_product302_specific_input.nil?
|
44
49
|
hash['paymentProduct320SpecificInput'] = @payment_product320_specific_input.to_h unless @payment_product320_specific_input.nil?
|
45
50
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
46
51
|
hash['publicKeyHash'] = @public_key_hash unless @public_key_hash.nil?
|
@@ -63,6 +68,10 @@ module OnlinePayments
|
|
63
68
|
if hash.has_key? 'ephemeralKey'
|
64
69
|
@ephemeral_key = hash['ephemeralKey']
|
65
70
|
end
|
71
|
+
if hash.has_key? 'paymentProduct302SpecificInput'
|
72
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct302SpecificInput']] unless hash['paymentProduct302SpecificInput'].is_a? Hash
|
73
|
+
@payment_product302_specific_input = OnlinePayments::SDK::Domain::MobilePaymentProduct302SpecificInput.new_from_hash(hash['paymentProduct302SpecificInput'])
|
74
|
+
end
|
66
75
|
if hash.has_key? 'paymentProduct320SpecificInput'
|
67
76
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificInput']] unless hash['paymentProduct320SpecificInput'].is_a? Hash
|
68
77
|
@payment_product320_specific_input = OnlinePayments::SDK::Domain::MobilePaymentProduct320SpecificInput.new_from_hash(hash['paymentProduct320SpecificInput'])
|
@@ -3,19 +3,32 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/domain/apple_pay_recurring_payment_request'
|
5
5
|
require 'onlinepayments/sdk/domain/data_object'
|
6
|
+
require 'onlinepayments/sdk/domain/product302_recurring'
|
6
7
|
|
7
8
|
module OnlinePayments
|
8
9
|
module SDK
|
9
10
|
module Domain
|
10
11
|
# @attr [OnlinePayments::SDK::Domain::ApplePayRecurringPaymentRequest] apple_pay_recurring_payment_request
|
12
|
+
# @attr [true/false] is_recurring
|
13
|
+
# @attr [OnlinePayments::SDK::Domain::Product302Recurring] recurring
|
14
|
+
# @attr [true/false] tokenize
|
11
15
|
class MobilePaymentProduct302SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
12
16
|
|
13
17
|
attr_accessor :apple_pay_recurring_payment_request
|
14
18
|
|
19
|
+
attr_accessor :is_recurring
|
20
|
+
|
21
|
+
attr_accessor :recurring
|
22
|
+
|
23
|
+
attr_accessor :tokenize
|
24
|
+
|
15
25
|
# @return (Hash)
|
16
26
|
def to_h
|
17
27
|
hash = super
|
18
28
|
hash['applePayRecurringPaymentRequest'] = @apple_pay_recurring_payment_request.to_h unless @apple_pay_recurring_payment_request.nil?
|
29
|
+
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
30
|
+
hash['recurring'] = @recurring.to_h unless @recurring.nil?
|
31
|
+
hash['tokenize'] = @tokenize unless @tokenize.nil?
|
19
32
|
hash
|
20
33
|
end
|
21
34
|
|
@@ -25,6 +38,16 @@ module OnlinePayments
|
|
25
38
|
raise TypeError, "value '%s' is not a Hash" % [hash['applePayRecurringPaymentRequest']] unless hash['applePayRecurringPaymentRequest'].is_a? Hash
|
26
39
|
@apple_pay_recurring_payment_request = OnlinePayments::SDK::Domain::ApplePayRecurringPaymentRequest.new_from_hash(hash['applePayRecurringPaymentRequest'])
|
27
40
|
end
|
41
|
+
if hash.has_key? 'isRecurring'
|
42
|
+
@is_recurring = hash['isRecurring']
|
43
|
+
end
|
44
|
+
if hash.has_key? 'recurring'
|
45
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
|
46
|
+
@recurring = OnlinePayments::SDK::Domain::Product302Recurring.new_from_hash(hash['recurring'])
|
47
|
+
end
|
48
|
+
if hash.has_key? 'tokenize'
|
49
|
+
@tokenize = hash['tokenize']
|
50
|
+
end
|
28
51
|
end
|
29
52
|
end
|
30
53
|
end
|
@@ -3,28 +3,51 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/domain/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/g_pay_three_d_secure'
|
6
|
+
require 'onlinepayments/sdk/domain/product320_recurring'
|
6
7
|
|
7
8
|
module OnlinePayments
|
8
9
|
module SDK
|
9
10
|
module Domain
|
11
|
+
# @attr [true/false] is_recurring
|
12
|
+
# @attr [OnlinePayments::SDK::Domain::Product320Recurring] recurring
|
10
13
|
# @attr [OnlinePayments::SDK::Domain::GPayThreeDSecure] three_d_secure
|
14
|
+
# @attr [true/false] tokenize
|
11
15
|
class MobilePaymentProduct320SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
12
16
|
|
17
|
+
attr_accessor :is_recurring
|
18
|
+
|
19
|
+
attr_accessor :recurring
|
20
|
+
|
13
21
|
attr_accessor :three_d_secure
|
14
22
|
|
23
|
+
attr_accessor :tokenize
|
24
|
+
|
15
25
|
# @return (Hash)
|
16
26
|
def to_h
|
17
27
|
hash = super
|
28
|
+
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
29
|
+
hash['recurring'] = @recurring.to_h unless @recurring.nil?
|
18
30
|
hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
|
31
|
+
hash['tokenize'] = @tokenize unless @tokenize.nil?
|
19
32
|
hash
|
20
33
|
end
|
21
34
|
|
22
35
|
def from_hash(hash)
|
23
36
|
super
|
37
|
+
if hash.has_key? 'isRecurring'
|
38
|
+
@is_recurring = hash['isRecurring']
|
39
|
+
end
|
40
|
+
if hash.has_key? 'recurring'
|
41
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
|
42
|
+
@recurring = OnlinePayments::SDK::Domain::Product320Recurring.new_from_hash(hash['recurring'])
|
43
|
+
end
|
24
44
|
if hash.has_key? 'threeDSecure'
|
25
45
|
raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash
|
26
46
|
@three_d_secure = OnlinePayments::SDK::Domain::GPayThreeDSecure.new_from_hash(hash['threeDSecure'])
|
27
47
|
end
|
48
|
+
if hash.has_key? 'tokenize'
|
49
|
+
@tokenize = hash['tokenize']
|
50
|
+
end
|
28
51
|
end
|
29
52
|
end
|
30
53
|
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
#
|
2
|
+
# This file was automatically generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [String] cardholder_name
|
10
|
+
# @attr [String] cryptogram
|
11
|
+
# @attr [Integer] eci
|
12
|
+
# @attr [String] network_token
|
13
|
+
# @attr [String] scheme_token_requestor_id
|
14
|
+
# @attr [String] token_expiry_date
|
15
|
+
class NetworkTokenData < OnlinePayments::SDK::Domain::DataObject
|
16
|
+
|
17
|
+
attr_accessor :cardholder_name
|
18
|
+
|
19
|
+
attr_accessor :cryptogram
|
20
|
+
|
21
|
+
attr_accessor :eci
|
22
|
+
|
23
|
+
attr_accessor :network_token
|
24
|
+
|
25
|
+
attr_accessor :scheme_token_requestor_id
|
26
|
+
|
27
|
+
attr_accessor :token_expiry_date
|
28
|
+
|
29
|
+
# @return (Hash)
|
30
|
+
def to_h
|
31
|
+
hash = super
|
32
|
+
hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil?
|
33
|
+
hash['cryptogram'] = @cryptogram unless @cryptogram.nil?
|
34
|
+
hash['eci'] = @eci unless @eci.nil?
|
35
|
+
hash['networkToken'] = @network_token unless @network_token.nil?
|
36
|
+
hash['schemeTokenRequestorId'] = @scheme_token_requestor_id unless @scheme_token_requestor_id.nil?
|
37
|
+
hash['tokenExpiryDate'] = @token_expiry_date unless @token_expiry_date.nil?
|
38
|
+
hash
|
39
|
+
end
|
40
|
+
|
41
|
+
def from_hash(hash)
|
42
|
+
super
|
43
|
+
if hash.has_key? 'cardholderName'
|
44
|
+
@cardholder_name = hash['cardholderName']
|
45
|
+
end
|
46
|
+
if hash.has_key? 'cryptogram'
|
47
|
+
@cryptogram = hash['cryptogram']
|
48
|
+
end
|
49
|
+
if hash.has_key? 'eci'
|
50
|
+
@eci = hash['eci']
|
51
|
+
end
|
52
|
+
if hash.has_key? 'networkToken'
|
53
|
+
@network_token = hash['networkToken']
|
54
|
+
end
|
55
|
+
if hash.has_key? 'schemeTokenRequestorId'
|
56
|
+
@scheme_token_requestor_id = hash['schemeTokenRequestorId']
|
57
|
+
end
|
58
|
+
if hash.has_key? 'tokenExpiryDate'
|
59
|
+
@token_expiry_date = hash['tokenExpiryDate']
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -7,14 +7,18 @@ module OnlinePayments
|
|
7
7
|
module SDK
|
8
8
|
module Domain
|
9
9
|
# @attr [String] merchant_reference
|
10
|
+
# @attr [String] operation_group_reference
|
10
11
|
class OperationPaymentReferences < OnlinePayments::SDK::Domain::DataObject
|
11
12
|
|
12
13
|
attr_accessor :merchant_reference
|
13
14
|
|
15
|
+
attr_accessor :operation_group_reference
|
16
|
+
|
14
17
|
# @return (Hash)
|
15
18
|
def to_h
|
16
19
|
hash = super
|
17
20
|
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
21
|
+
hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
|
18
22
|
hash
|
19
23
|
end
|
20
24
|
|
@@ -23,6 +27,9 @@ module OnlinePayments
|
|
23
27
|
if hash.has_key? 'merchantReference'
|
24
28
|
@merchant_reference = hash['merchantReference']
|
25
29
|
end
|
30
|
+
if hash.has_key? 'operationGroupReference'
|
31
|
+
@operation_group_reference = hash['operationGroupReference']
|
32
|
+
end
|
26
33
|
end
|
27
34
|
end
|
28
35
|
end
|
@@ -9,6 +9,7 @@ module OnlinePayments
|
|
9
9
|
# @attr [String] descriptor
|
10
10
|
# @attr [String] merchant_parameters
|
11
11
|
# @attr [String] merchant_reference
|
12
|
+
# @attr [String] operation_group_reference
|
12
13
|
class OrderReferences < OnlinePayments::SDK::Domain::DataObject
|
13
14
|
|
14
15
|
attr_accessor :descriptor
|
@@ -17,12 +18,15 @@ module OnlinePayments
|
|
17
18
|
|
18
19
|
attr_accessor :merchant_reference
|
19
20
|
|
21
|
+
attr_accessor :operation_group_reference
|
22
|
+
|
20
23
|
# @return (Hash)
|
21
24
|
def to_h
|
22
25
|
hash = super
|
23
26
|
hash['descriptor'] = @descriptor unless @descriptor.nil?
|
24
27
|
hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
|
25
28
|
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
29
|
+
hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
|
26
30
|
hash
|
27
31
|
end
|
28
32
|
|
@@ -37,6 +41,9 @@ module OnlinePayments
|
|
37
41
|
if hash.has_key? 'merchantReference'
|
38
42
|
@merchant_reference = hash['merchantReference']
|
39
43
|
end
|
44
|
+
if hash.has_key? 'operationGroupReference'
|
45
|
+
@operation_group_reference = hash['operationGroupReference']
|
46
|
+
end
|
40
47
|
end
|
41
48
|
end
|
42
49
|
end
|
@@ -11,6 +11,7 @@ module OnlinePayments
|
|
11
11
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount
|
12
12
|
# @attr [String] merchant_reference
|
13
13
|
# @attr [OnlinePayments::SDK::Domain::SurchargeForPaymentLink] surcharge_specific_input
|
14
|
+
# @deprecated An object containing the details of the related payment input. All properties in paymentLinkOrder are deprecated. Use corresponding values as noted below: | Property | Replacement | | - | - | | merchantReference | references/merchantReference | | amount | order/amountOfMoney | | surchargeSpecificInput | order/surchargeSpecificInput |
|
14
15
|
class PaymentLinkOrderInput < OnlinePayments::SDK::Domain::DataObject
|
15
16
|
|
16
17
|
attr_accessor :amount
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This file was automatically generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [String] banking_app_label
|
10
|
+
class PaymentProduct3204SpecificOutput < OnlinePayments::SDK::Domain::DataObject
|
11
|
+
|
12
|
+
attr_accessor :banking_app_label
|
13
|
+
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['bankingAppLabel'] = @banking_app_label unless @banking_app_label.nil?
|
18
|
+
hash
|
19
|
+
end
|
20
|
+
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.has_key? 'bankingAppLabel'
|
24
|
+
@banking_app_label = hash['bankingAppLabel']
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
#
|
2
|
+
# This file was automatically generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [String] message
|
10
|
+
# @attr [String] polling_url
|
11
|
+
class PaymentProduct5001 < OnlinePayments::SDK::Domain::DataObject
|
12
|
+
|
13
|
+
attr_accessor :message
|
14
|
+
|
15
|
+
attr_accessor :polling_url
|
16
|
+
|
17
|
+
# @return (Hash)
|
18
|
+
def to_h
|
19
|
+
hash = super
|
20
|
+
hash['message'] = @message unless @message.nil?
|
21
|
+
hash['pollingUrl'] = @polling_url unless @polling_url.nil?
|
22
|
+
hash
|
23
|
+
end
|
24
|
+
|
25
|
+
def from_hash(hash)
|
26
|
+
super
|
27
|
+
if hash.has_key? 'message'
|
28
|
+
@message = hash['message']
|
29
|
+
end
|
30
|
+
if hash.has_key? 'pollingUrl'
|
31
|
+
@polling_url = hash['pollingUrl']
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# This file was automatically generated.
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/domain/address'
|
5
|
+
require 'onlinepayments/sdk/domain/address_personal'
|
5
6
|
require 'onlinepayments/sdk/domain/data_object'
|
6
7
|
require 'onlinepayments/sdk/domain/payment_product840_customer_account'
|
7
8
|
require 'onlinepayments/sdk/domain/protection_eligibility'
|
@@ -10,6 +11,7 @@ module OnlinePayments
|
|
10
11
|
module SDK
|
11
12
|
module Domain
|
12
13
|
# @attr [OnlinePayments::SDK::Domain::Address] billing_address
|
14
|
+
# @attr [OnlinePayments::SDK::Domain::AddressPersonal] billing_personal_address
|
13
15
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct840CustomerAccount] customer_account
|
14
16
|
# @attr [OnlinePayments::SDK::Domain::Address] customer_address
|
15
17
|
# @attr [OnlinePayments::SDK::Domain::ProtectionEligibility] protection_eligibility
|
@@ -17,6 +19,8 @@ module OnlinePayments
|
|
17
19
|
|
18
20
|
attr_accessor :billing_address
|
19
21
|
|
22
|
+
attr_accessor :billing_personal_address
|
23
|
+
|
20
24
|
attr_accessor :customer_account
|
21
25
|
|
22
26
|
attr_accessor :customer_address
|
@@ -27,6 +31,7 @@ module OnlinePayments
|
|
27
31
|
def to_h
|
28
32
|
hash = super
|
29
33
|
hash['billingAddress'] = @billing_address.to_h unless @billing_address.nil?
|
34
|
+
hash['billingPersonalAddress'] = @billing_personal_address.to_h unless @billing_personal_address.nil?
|
30
35
|
hash['customerAccount'] = @customer_account.to_h unless @customer_account.nil?
|
31
36
|
hash['customerAddress'] = @customer_address.to_h unless @customer_address.nil?
|
32
37
|
hash['protectionEligibility'] = @protection_eligibility.to_h unless @protection_eligibility.nil?
|
@@ -39,6 +44,10 @@ module OnlinePayments
|
|
39
44
|
raise TypeError, "value '%s' is not a Hash" % [hash['billingAddress']] unless hash['billingAddress'].is_a? Hash
|
40
45
|
@billing_address = OnlinePayments::SDK::Domain::Address.new_from_hash(hash['billingAddress'])
|
41
46
|
end
|
47
|
+
if hash.has_key? 'billingPersonalAddress'
|
48
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['billingPersonalAddress']] unless hash['billingPersonalAddress'].is_a? Hash
|
49
|
+
@billing_personal_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['billingPersonalAddress'])
|
50
|
+
end
|
42
51
|
if hash.has_key? 'customerAccount'
|
43
52
|
raise TypeError, "value '%s' is not a Hash" % [hash['customerAccount']] unless hash['customerAccount'].is_a? Hash
|
44
53
|
@customer_account = OnlinePayments::SDK::Domain::PaymentProduct840CustomerAccount.new_from_hash(hash['customerAccount'])
|
@@ -8,17 +8,21 @@ module OnlinePayments
|
|
8
8
|
module Domain
|
9
9
|
# @attr [String] merchant_parameters
|
10
10
|
# @attr [String] merchant_reference
|
11
|
+
# @attr [String] operation_group_reference
|
11
12
|
class PaymentReferences < OnlinePayments::SDK::Domain::DataObject
|
12
13
|
|
13
14
|
attr_accessor :merchant_parameters
|
14
15
|
|
15
16
|
attr_accessor :merchant_reference
|
16
17
|
|
18
|
+
attr_accessor :operation_group_reference
|
19
|
+
|
17
20
|
# @return (Hash)
|
18
21
|
def to_h
|
19
22
|
hash = super
|
20
23
|
hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
|
21
24
|
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
25
|
+
hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
|
22
26
|
hash
|
23
27
|
end
|
24
28
|
|
@@ -30,6 +34,9 @@ module OnlinePayments
|
|
30
34
|
if hash.has_key? 'merchantReference'
|
31
35
|
@merchant_reference = hash['merchantReference']
|
32
36
|
end
|
37
|
+
if hash.has_key? 'operationGroupReference'
|
38
|
+
@operation_group_reference = hash['operationGroupReference']
|
39
|
+
end
|
33
40
|
end
|
34
41
|
end
|
35
42
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This file was automatically generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [String] recurring_payment_sequence_indicator
|
10
|
+
class Product302Recurring < OnlinePayments::SDK::Domain::DataObject
|
11
|
+
|
12
|
+
attr_accessor :recurring_payment_sequence_indicator
|
13
|
+
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil?
|
18
|
+
hash
|
19
|
+
end
|
20
|
+
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.has_key? 'recurringPaymentSequenceIndicator'
|
24
|
+
@recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This file was automatically generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [String] recurring_payment_sequence_indicator
|
10
|
+
class Product320Recurring < OnlinePayments::SDK::Domain::DataObject
|
11
|
+
|
12
|
+
attr_accessor :recurring_payment_sequence_indicator
|
13
|
+
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil?
|
18
|
+
hash
|
19
|
+
end
|
20
|
+
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.has_key? 'recurringPaymentSequenceIndicator'
|
24
|
+
@recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|