onlinepayments-sdk-ruby 10.3.0 → 11.0.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/card_installment_details.rb +36 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +30 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_request.rb +13 -0
- data/lib/onlinepayments/sdk/domain/import_cof_series_request.rb +15 -0
- data/lib/onlinepayments/sdk/domain/payment_product5407_auto_capture.rb +36 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5407_specific_input.rb +9 -9
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4266190b4ed568bed352853a13fb14b6bc37ad673be2017495ab13a7d2dbf16
|
|
4
|
+
data.tar.gz: 6dc688e03ec15ac93e97f982438f3e19ab0b7f40136611f3226845b527ba4511
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 296e0dff1fc016e2b917a0e90b4394ae32a185f026702613a0558eba460e2436685e3cd5f1215e0c24a3b9fa17683f4d055b2ccf29029d61fe5a63c043442e31
|
|
7
|
+
data.tar.gz: 4aa1f5deedb96aaf114462c8791a442ce9b823c8bc478b1322885d2aeee90a2d5753d72b466b6ec31ec384d70944edeabdb76f3b0720e92946e2ebc0992a0cbd
|
|
@@ -13,7 +13,7 @@ module OnlinePayments
|
|
|
13
13
|
class MetadataProvider
|
|
14
14
|
private
|
|
15
15
|
|
|
16
|
-
SDK_VERSION = '
|
|
16
|
+
SDK_VERSION = '11.0.0'.freeze
|
|
17
17
|
SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
|
|
18
18
|
PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key', 'Date', 'Content-Type', 'Authorization'].sort!.freeze
|
|
19
19
|
CHARSET = 'utf-8'.freeze
|
|
@@ -0,0 +1,36 @@
|
|
|
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, nil] installment_payment_sequence_indicator
|
|
10
|
+
class CardInstallmentDetails < OnlinePayments::SDK::Domain::DataObject
|
|
11
|
+
|
|
12
|
+
attr_accessor :installment_payment_sequence_indicator
|
|
13
|
+
|
|
14
|
+
# Sets the property and returns this same instance.
|
|
15
|
+
def with_installment_payment_sequence_indicator(value)
|
|
16
|
+
@installment_payment_sequence_indicator = value
|
|
17
|
+
self
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# @return (Hash)
|
|
21
|
+
def to_h
|
|
22
|
+
hash = super
|
|
23
|
+
hash['installmentPaymentSequenceIndicator'] = @installment_payment_sequence_indicator unless @installment_payment_sequence_indicator.nil?
|
|
24
|
+
hash
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def from_hash(hash)
|
|
28
|
+
super
|
|
29
|
+
if hash.has_key? 'installmentPaymentSequenceIndicator'
|
|
30
|
+
@installment_payment_sequence_indicator = hash['installmentPaymentSequenceIndicator']
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
#
|
|
4
4
|
require 'onlinepayments/sdk/domain/auto_capture'
|
|
5
5
|
require 'onlinepayments/sdk/domain/card'
|
|
6
|
+
require 'onlinepayments/sdk/domain/card_installment_details'
|
|
6
7
|
require 'onlinepayments/sdk/domain/card_recurrence_details'
|
|
8
|
+
require 'onlinepayments/sdk/domain/credit_card_validation_rules'
|
|
7
9
|
require 'onlinepayments/sdk/domain/currency_conversion_input'
|
|
8
10
|
require 'onlinepayments/sdk/domain/data_object'
|
|
9
11
|
require 'onlinepayments/sdk/domain/market_place'
|
|
@@ -30,6 +32,7 @@ module OnlinePayments
|
|
|
30
32
|
# @attr [String, nil] cobrand_selection_indicator
|
|
31
33
|
# @attr [OnlinePayments::SDK::Domain::CurrencyConversionInput, nil] currency_conversion
|
|
32
34
|
# @attr [String, nil] initial_scheme_transaction_id
|
|
35
|
+
# @attr [OnlinePayments::SDK::Domain::CardInstallmentDetails, nil] installment
|
|
33
36
|
# @attr [true/false, nil] is_recurring
|
|
34
37
|
# @attr [OnlinePayments::SDK::Domain::MarketPlace, nil] market_place
|
|
35
38
|
# @attr [OnlinePayments::SDK::Domain::MultiplePaymentInformation, nil] multiple_payment_information
|
|
@@ -52,6 +55,7 @@ module OnlinePayments
|
|
|
52
55
|
# @attr [String, nil] transaction_channel
|
|
53
56
|
# @attr [String, nil] unscheduled_card_on_file_requestor
|
|
54
57
|
# @attr [String, nil] unscheduled_card_on_file_sequence_indicator
|
|
58
|
+
# @attr [OnlinePayments::SDK::Domain::CreditCardValidationRules, nil] validation_rules
|
|
55
59
|
class CardPaymentMethodSpecificInput < OnlinePayments::SDK::Domain::DataObject
|
|
56
60
|
|
|
57
61
|
attr_accessor :allow_dynamic_linking
|
|
@@ -72,6 +76,8 @@ module OnlinePayments
|
|
|
72
76
|
|
|
73
77
|
attr_accessor :initial_scheme_transaction_id
|
|
74
78
|
|
|
79
|
+
attr_accessor :installment
|
|
80
|
+
|
|
75
81
|
attr_accessor :is_recurring
|
|
76
82
|
|
|
77
83
|
attr_accessor :market_place
|
|
@@ -117,6 +123,8 @@ module OnlinePayments
|
|
|
117
123
|
|
|
118
124
|
attr_accessor :unscheduled_card_on_file_sequence_indicator
|
|
119
125
|
|
|
126
|
+
attr_accessor :validation_rules
|
|
127
|
+
|
|
120
128
|
# Sets the property and returns this same instance.
|
|
121
129
|
def with_allow_dynamic_linking(value)
|
|
122
130
|
@allow_dynamic_linking = value
|
|
@@ -171,6 +179,12 @@ module OnlinePayments
|
|
|
171
179
|
self
|
|
172
180
|
end
|
|
173
181
|
|
|
182
|
+
# Sets the property and returns this same instance.
|
|
183
|
+
def with_installment(value)
|
|
184
|
+
@installment = value
|
|
185
|
+
self
|
|
186
|
+
end
|
|
187
|
+
|
|
174
188
|
# Sets the property and returns this same instance.
|
|
175
189
|
def with_is_recurring(value)
|
|
176
190
|
@is_recurring = value
|
|
@@ -303,6 +317,12 @@ module OnlinePayments
|
|
|
303
317
|
self
|
|
304
318
|
end
|
|
305
319
|
|
|
320
|
+
# Sets the property and returns this same instance.
|
|
321
|
+
def with_validation_rules(value)
|
|
322
|
+
@validation_rules = value
|
|
323
|
+
self
|
|
324
|
+
end
|
|
325
|
+
|
|
306
326
|
# @return (Hash)
|
|
307
327
|
def to_h
|
|
308
328
|
hash = super
|
|
@@ -315,6 +335,7 @@ module OnlinePayments
|
|
|
315
335
|
hash['cobrandSelectionIndicator'] = @cobrand_selection_indicator unless @cobrand_selection_indicator.nil?
|
|
316
336
|
hash['currencyConversion'] = @currency_conversion.to_h unless @currency_conversion.nil?
|
|
317
337
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
338
|
+
hash['installment'] = @installment.to_h unless @installment.nil?
|
|
318
339
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
|
319
340
|
hash['marketPlace'] = @market_place.to_h unless @market_place.nil?
|
|
320
341
|
hash['multiplePaymentInformation'] = @multiple_payment_information.to_h unless @multiple_payment_information.nil?
|
|
@@ -337,6 +358,7 @@ module OnlinePayments
|
|
|
337
358
|
hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil?
|
|
338
359
|
hash['unscheduledCardOnFileRequestor'] = @unscheduled_card_on_file_requestor unless @unscheduled_card_on_file_requestor.nil?
|
|
339
360
|
hash['unscheduledCardOnFileSequenceIndicator'] = @unscheduled_card_on_file_sequence_indicator unless @unscheduled_card_on_file_sequence_indicator.nil?
|
|
361
|
+
hash['validationRules'] = @validation_rules.to_h unless @validation_rules.nil?
|
|
340
362
|
hash
|
|
341
363
|
end
|
|
342
364
|
|
|
@@ -372,6 +394,10 @@ module OnlinePayments
|
|
|
372
394
|
if hash.has_key? 'initialSchemeTransactionId'
|
|
373
395
|
@initial_scheme_transaction_id = hash['initialSchemeTransactionId']
|
|
374
396
|
end
|
|
397
|
+
if hash.has_key? 'installment'
|
|
398
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['installment']] unless hash['installment'].is_a? Hash
|
|
399
|
+
@installment = OnlinePayments::SDK::Domain::CardInstallmentDetails.new_from_hash(hash['installment'])
|
|
400
|
+
end
|
|
375
401
|
if hash.has_key? 'isRecurring'
|
|
376
402
|
@is_recurring = hash['isRecurring']
|
|
377
403
|
end
|
|
@@ -450,6 +476,10 @@ module OnlinePayments
|
|
|
450
476
|
if hash.has_key? 'unscheduledCardOnFileSequenceIndicator'
|
|
451
477
|
@unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator']
|
|
452
478
|
end
|
|
479
|
+
if hash.has_key? 'validationRules'
|
|
480
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['validationRules']] unless hash['validationRules'].is_a? Hash
|
|
481
|
+
@validation_rules = OnlinePayments::SDK::Domain::CreditCardValidationRules.new_from_hash(hash['validationRules'])
|
|
482
|
+
end
|
|
453
483
|
end
|
|
454
484
|
end
|
|
455
485
|
end
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
# This file was automatically generated.
|
|
3
3
|
#
|
|
4
4
|
require 'onlinepayments/sdk/domain/auto_capture'
|
|
5
|
+
require 'onlinepayments/sdk/domain/card_installment_details'
|
|
5
6
|
require 'onlinepayments/sdk/domain/card_recurrence_details'
|
|
7
|
+
require 'onlinepayments/sdk/domain/credit_card_validation_rules'
|
|
6
8
|
require 'onlinepayments/sdk/domain/currency_conversion_specific_input'
|
|
7
9
|
require 'onlinepayments/sdk/domain/data_object'
|
|
8
10
|
require 'onlinepayments/sdk/domain/market_place'
|
|
@@ -24,6 +26,7 @@ module OnlinePayments
|
|
|
24
26
|
# @attr [OnlinePayments::SDK::Domain::AutoCapture, nil] auto_capture
|
|
25
27
|
# @attr [OnlinePayments::SDK::Domain::CurrencyConversionSpecificInput, nil] currency_conversion_specific_input
|
|
26
28
|
# @attr [String, nil] initial_scheme_transaction_id
|
|
29
|
+
# @attr [OnlinePayments::SDK::Domain::CardInstallmentDetails, nil] installment
|
|
27
30
|
# @attr [OnlinePayments::SDK::Domain::MarketPlace, nil] market_place
|
|
28
31
|
# @attr [OnlinePayments::SDK::Domain::MultiplePaymentInformation, nil] multiple_payment_information
|
|
29
32
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput, nil] payment_product130_specific_input
|
|
@@ -41,6 +44,7 @@ module OnlinePayments
|
|
|
41
44
|
# @attr [String, nil] transaction_channel
|
|
42
45
|
# @attr [String, nil] unscheduled_card_on_file_requestor
|
|
43
46
|
# @attr [String, nil] unscheduled_card_on_file_sequence_indicator
|
|
47
|
+
# @attr [OnlinePayments::SDK::Domain::CreditCardValidationRules, nil] validation_rules
|
|
44
48
|
class CardPaymentMethodSpecificInputBase < OnlinePayments::SDK::Domain::DataObject
|
|
45
49
|
|
|
46
50
|
attr_accessor :allow_dynamic_linking
|
|
@@ -53,6 +57,8 @@ module OnlinePayments
|
|
|
53
57
|
|
|
54
58
|
attr_accessor :initial_scheme_transaction_id
|
|
55
59
|
|
|
60
|
+
attr_accessor :installment
|
|
61
|
+
|
|
56
62
|
attr_accessor :market_place
|
|
57
63
|
|
|
58
64
|
attr_accessor :multiple_payment_information
|
|
@@ -87,6 +93,8 @@ module OnlinePayments
|
|
|
87
93
|
|
|
88
94
|
attr_accessor :unscheduled_card_on_file_sequence_indicator
|
|
89
95
|
|
|
96
|
+
attr_accessor :validation_rules
|
|
97
|
+
|
|
90
98
|
# Sets the property and returns this same instance.
|
|
91
99
|
def with_allow_dynamic_linking(value)
|
|
92
100
|
@allow_dynamic_linking = value
|
|
@@ -117,6 +125,12 @@ module OnlinePayments
|
|
|
117
125
|
self
|
|
118
126
|
end
|
|
119
127
|
|
|
128
|
+
# Sets the property and returns this same instance.
|
|
129
|
+
def with_installment(value)
|
|
130
|
+
@installment = value
|
|
131
|
+
self
|
|
132
|
+
end
|
|
133
|
+
|
|
120
134
|
# Sets the property and returns this same instance.
|
|
121
135
|
def with_market_place(value)
|
|
122
136
|
@market_place = value
|
|
@@ -219,6 +233,12 @@ module OnlinePayments
|
|
|
219
233
|
self
|
|
220
234
|
end
|
|
221
235
|
|
|
236
|
+
# Sets the property and returns this same instance.
|
|
237
|
+
def with_validation_rules(value)
|
|
238
|
+
@validation_rules = value
|
|
239
|
+
self
|
|
240
|
+
end
|
|
241
|
+
|
|
222
242
|
# @return (Hash)
|
|
223
243
|
def to_h
|
|
224
244
|
hash = super
|
|
@@ -227,6 +247,7 @@ module OnlinePayments
|
|
|
227
247
|
hash['autoCapture'] = @auto_capture.to_h unless @auto_capture.nil?
|
|
228
248
|
hash['currencyConversionSpecificInput'] = @currency_conversion_specific_input.to_h unless @currency_conversion_specific_input.nil?
|
|
229
249
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
250
|
+
hash['installment'] = @installment.to_h unless @installment.nil?
|
|
230
251
|
hash['marketPlace'] = @market_place.to_h unless @market_place.nil?
|
|
231
252
|
hash['multiplePaymentInformation'] = @multiple_payment_information.to_h unless @multiple_payment_information.nil?
|
|
232
253
|
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h unless @payment_product130_specific_input.nil?
|
|
@@ -244,6 +265,7 @@ module OnlinePayments
|
|
|
244
265
|
hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil?
|
|
245
266
|
hash['unscheduledCardOnFileRequestor'] = @unscheduled_card_on_file_requestor unless @unscheduled_card_on_file_requestor.nil?
|
|
246
267
|
hash['unscheduledCardOnFileSequenceIndicator'] = @unscheduled_card_on_file_sequence_indicator unless @unscheduled_card_on_file_sequence_indicator.nil?
|
|
268
|
+
hash['validationRules'] = @validation_rules.to_h unless @validation_rules.nil?
|
|
247
269
|
hash
|
|
248
270
|
end
|
|
249
271
|
|
|
@@ -266,6 +288,10 @@ module OnlinePayments
|
|
|
266
288
|
if hash.has_key? 'initialSchemeTransactionId'
|
|
267
289
|
@initial_scheme_transaction_id = hash['initialSchemeTransactionId']
|
|
268
290
|
end
|
|
291
|
+
if hash.has_key? 'installment'
|
|
292
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['installment']] unless hash['installment'].is_a? Hash
|
|
293
|
+
@installment = OnlinePayments::SDK::Domain::CardInstallmentDetails.new_from_hash(hash['installment'])
|
|
294
|
+
end
|
|
269
295
|
if hash.has_key? 'marketPlace'
|
|
270
296
|
raise TypeError, "value '%s' is not a Hash" % [hash['marketPlace']] unless hash['marketPlace'].is_a? Hash
|
|
271
297
|
@market_place = OnlinePayments::SDK::Domain::MarketPlace.new_from_hash(hash['marketPlace'])
|
|
@@ -328,6 +354,10 @@ module OnlinePayments
|
|
|
328
354
|
if hash.has_key? 'unscheduledCardOnFileSequenceIndicator'
|
|
329
355
|
@unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator']
|
|
330
356
|
end
|
|
357
|
+
if hash.has_key? 'validationRules'
|
|
358
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['validationRules']] unless hash['validationRules'].is_a? Hash
|
|
359
|
+
@validation_rules = OnlinePayments::SDK::Domain::CreditCardValidationRules.new_from_hash(hash['validationRules'])
|
|
360
|
+
end
|
|
331
361
|
end
|
|
332
362
|
end
|
|
333
363
|
end
|
|
@@ -11,6 +11,7 @@ module OnlinePayments
|
|
|
11
11
|
# @attr [true/false, nil] ask_consumer_consent
|
|
12
12
|
# @attr [OnlinePayments::SDK::Domain::CreditCardSpecificInputHostedTokenization, nil] credit_card_specific_input
|
|
13
13
|
# @attr [String, nil] locale
|
|
14
|
+
# @attr [String, nil] origin
|
|
14
15
|
# @attr [OnlinePayments::SDK::Domain::PaymentProductFiltersHostedTokenization, nil] payment_product_filters
|
|
15
16
|
# @attr [String, nil] tokens
|
|
16
17
|
# @attr [String, nil] variant
|
|
@@ -22,6 +23,8 @@ module OnlinePayments
|
|
|
22
23
|
|
|
23
24
|
attr_accessor :locale
|
|
24
25
|
|
|
26
|
+
attr_accessor :origin
|
|
27
|
+
|
|
25
28
|
attr_accessor :payment_product_filters
|
|
26
29
|
|
|
27
30
|
attr_accessor :tokens
|
|
@@ -46,6 +49,12 @@ module OnlinePayments
|
|
|
46
49
|
self
|
|
47
50
|
end
|
|
48
51
|
|
|
52
|
+
# Sets the property and returns this same instance.
|
|
53
|
+
def with_origin(value)
|
|
54
|
+
@origin = value
|
|
55
|
+
self
|
|
56
|
+
end
|
|
57
|
+
|
|
49
58
|
# Sets the property and returns this same instance.
|
|
50
59
|
def with_payment_product_filters(value)
|
|
51
60
|
@payment_product_filters = value
|
|
@@ -70,6 +79,7 @@ module OnlinePayments
|
|
|
70
79
|
hash['askConsumerConsent'] = @ask_consumer_consent unless @ask_consumer_consent.nil?
|
|
71
80
|
hash['creditCardSpecificInput'] = @credit_card_specific_input.to_h unless @credit_card_specific_input.nil?
|
|
72
81
|
hash['locale'] = @locale unless @locale.nil?
|
|
82
|
+
hash['origin'] = @origin unless @origin.nil?
|
|
73
83
|
hash['paymentProductFilters'] = @payment_product_filters.to_h unless @payment_product_filters.nil?
|
|
74
84
|
hash['tokens'] = @tokens unless @tokens.nil?
|
|
75
85
|
hash['variant'] = @variant unless @variant.nil?
|
|
@@ -88,6 +98,9 @@ module OnlinePayments
|
|
|
88
98
|
if hash.has_key? 'locale'
|
|
89
99
|
@locale = hash['locale']
|
|
90
100
|
end
|
|
101
|
+
if hash.has_key? 'origin'
|
|
102
|
+
@origin = hash['origin']
|
|
103
|
+
end
|
|
91
104
|
if hash.has_key? 'paymentProductFilters'
|
|
92
105
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductFilters']] unless hash['paymentProductFilters'].is_a? Hash
|
|
93
106
|
@payment_product_filters = OnlinePayments::SDK::Domain::PaymentProductFiltersHostedTokenization.new_from_hash(hash['paymentProductFilters'])
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
require 'onlinepayments/sdk/domain/card_data_without_cvv'
|
|
5
5
|
require 'onlinepayments/sdk/domain/data_object'
|
|
6
6
|
require 'onlinepayments/sdk/domain/network_token_data'
|
|
7
|
+
require 'onlinepayments/sdk/domain/sub_merchant'
|
|
7
8
|
|
|
8
9
|
module OnlinePayments
|
|
9
10
|
module SDK
|
|
@@ -13,6 +14,7 @@ module OnlinePayments
|
|
|
13
14
|
# @attr [OnlinePayments::SDK::Domain::NetworkTokenData, nil] network_token_data
|
|
14
15
|
# @attr [Integer, nil] payment_product_id
|
|
15
16
|
# @attr [String, nil] scheme_reference_data
|
|
17
|
+
# @attr [OnlinePayments::SDK::Domain::SubMerchant, nil] sub_merchant
|
|
16
18
|
# @attr [String, nil] token_id
|
|
17
19
|
# @attr [String, nil] transaction_link_identifier
|
|
18
20
|
class ImportCofSeriesRequest < OnlinePayments::SDK::Domain::DataObject
|
|
@@ -27,6 +29,8 @@ module OnlinePayments
|
|
|
27
29
|
|
|
28
30
|
attr_accessor :scheme_reference_data
|
|
29
31
|
|
|
32
|
+
attr_accessor :sub_merchant
|
|
33
|
+
|
|
30
34
|
attr_accessor :token_id
|
|
31
35
|
|
|
32
36
|
attr_accessor :transaction_link_identifier
|
|
@@ -61,6 +65,12 @@ module OnlinePayments
|
|
|
61
65
|
self
|
|
62
66
|
end
|
|
63
67
|
|
|
68
|
+
# Sets the property and returns this same instance.
|
|
69
|
+
def with_sub_merchant(value)
|
|
70
|
+
@sub_merchant = value
|
|
71
|
+
self
|
|
72
|
+
end
|
|
73
|
+
|
|
64
74
|
# Sets the property and returns this same instance.
|
|
65
75
|
def with_token_id(value)
|
|
66
76
|
@token_id = value
|
|
@@ -81,6 +91,7 @@ module OnlinePayments
|
|
|
81
91
|
hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
|
|
82
92
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
|
83
93
|
hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil?
|
|
94
|
+
hash['subMerchant'] = @sub_merchant.to_h unless @sub_merchant.nil?
|
|
84
95
|
hash['tokenId'] = @token_id unless @token_id.nil?
|
|
85
96
|
hash['transactionLinkIdentifier'] = @transaction_link_identifier unless @transaction_link_identifier.nil?
|
|
86
97
|
hash
|
|
@@ -105,6 +116,10 @@ module OnlinePayments
|
|
|
105
116
|
if hash.has_key? 'schemeReferenceData'
|
|
106
117
|
@scheme_reference_data = hash['schemeReferenceData']
|
|
107
118
|
end
|
|
119
|
+
if hash.has_key? 'subMerchant'
|
|
120
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['subMerchant']] unless hash['subMerchant'].is_a? Hash
|
|
121
|
+
@sub_merchant = OnlinePayments::SDK::Domain::SubMerchant.new_from_hash(hash['subMerchant'])
|
|
122
|
+
end
|
|
108
123
|
if hash.has_key? 'tokenId'
|
|
109
124
|
@token_id = hash['tokenId']
|
|
110
125
|
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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 [Integer, nil] delay_in_minutes
|
|
10
|
+
class PaymentProduct5407AutoCapture < OnlinePayments::SDK::Domain::DataObject
|
|
11
|
+
|
|
12
|
+
attr_accessor :delay_in_minutes
|
|
13
|
+
|
|
14
|
+
# Sets the property and returns this same instance.
|
|
15
|
+
def with_delay_in_minutes(value)
|
|
16
|
+
@delay_in_minutes = value
|
|
17
|
+
self
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# @return (Hash)
|
|
21
|
+
def to_h
|
|
22
|
+
hash = super
|
|
23
|
+
hash['delayInMinutes'] = @delay_in_minutes unless @delay_in_minutes.nil?
|
|
24
|
+
hash
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def from_hash(hash)
|
|
28
|
+
super
|
|
29
|
+
if hash.has_key? 'delayInMinutes'
|
|
30
|
+
@delay_in_minutes = hash['delayInMinutes']
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
# This file was automatically generated.
|
|
3
3
|
#
|
|
4
4
|
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
-
require 'onlinepayments/sdk/domain/
|
|
5
|
+
require 'onlinepayments/sdk/domain/payment_product5407_auto_capture'
|
|
6
6
|
|
|
7
7
|
module OnlinePayments
|
|
8
8
|
module SDK
|
|
9
9
|
module Domain
|
|
10
|
-
# @attr [OnlinePayments::SDK::Domain::
|
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5407AutoCapture, nil] payment_product5407_auto_capture
|
|
11
11
|
class RedirectPaymentProduct5407SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
|
12
12
|
|
|
13
|
-
attr_accessor :
|
|
13
|
+
attr_accessor :payment_product5407_auto_capture
|
|
14
14
|
|
|
15
15
|
# Sets the property and returns this same instance.
|
|
16
|
-
def
|
|
17
|
-
@
|
|
16
|
+
def with_payment_product5407_auto_capture(value)
|
|
17
|
+
@payment_product5407_auto_capture = value
|
|
18
18
|
self
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
# @return (Hash)
|
|
22
22
|
def to_h
|
|
23
23
|
hash = super
|
|
24
|
-
hash['
|
|
24
|
+
hash['paymentProduct5407AutoCapture'] = @payment_product5407_auto_capture.to_h unless @payment_product5407_auto_capture.nil?
|
|
25
25
|
hash
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def from_hash(hash)
|
|
29
29
|
super
|
|
30
|
-
if hash.has_key? '
|
|
31
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['
|
|
32
|
-
@
|
|
30
|
+
if hash.has_key? 'paymentProduct5407AutoCapture'
|
|
31
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5407AutoCapture']] unless hash['paymentProduct5407AutoCapture'].is_a? Hash
|
|
32
|
+
@payment_product5407_auto_capture = OnlinePayments::SDK::Domain::PaymentProduct5407AutoCapture.new_from_hash(hash['paymentProduct5407AutoCapture'])
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
|
3
|
-
spec.version = '
|
|
3
|
+
spec.version = '11.0.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,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onlinepayments-sdk-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 11.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Worldline Direct support team
|
|
@@ -224,6 +224,7 @@ files:
|
|
|
224
224
|
- lib/onlinepayments/sdk/domain/card_essentials.rb
|
|
225
225
|
- lib/onlinepayments/sdk/domain/card_fraud_results.rb
|
|
226
226
|
- lib/onlinepayments/sdk/domain/card_info.rb
|
|
227
|
+
- lib/onlinepayments/sdk/domain/card_installment_details.rb
|
|
227
228
|
- lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb
|
|
228
229
|
- lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb
|
|
229
230
|
- lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb
|
|
@@ -405,6 +406,7 @@ files:
|
|
|
405
406
|
- lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb
|
|
406
407
|
- lib/onlinepayments/sdk/domain/payment_product5404.rb
|
|
407
408
|
- lib/onlinepayments/sdk/domain/payment_product5407.rb
|
|
409
|
+
- lib/onlinepayments/sdk/domain/payment_product5407_auto_capture.rb
|
|
408
410
|
- lib/onlinepayments/sdk/domain/payment_product5412.rb
|
|
409
411
|
- lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb
|
|
410
412
|
- lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb
|