onlinepayments-sdk-ruby 6.3.1 → 7.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/README.md +1 -1
- data/lib/onlinepayments/sdk/authentication/v1hmac_authenticator.rb +2 -1
- data/lib/onlinepayments/sdk/client.rb +1 -1
- data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +9 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb +7 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +16 -0
- data/lib/onlinepayments/sdk/domain/create_payment_link_request.rb +7 -0
- data/lib/onlinepayments/sdk/domain/create_payment_request.rb +7 -0
- data/lib/onlinepayments/sdk/domain/created_token_response.rb +9 -0
- data/lib/onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization.rb +3 -3
- data/lib/onlinepayments/sdk/domain/{credit_card_validation_rules_hosted_tokenization.rb → credit_card_validation_rules.rb} +1 -1
- data/lib/onlinepayments/sdk/domain/crm_token.rb +37 -0
- data/lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb +7 -0
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_input.rb +16 -0
- data/lib/onlinepayments/sdk/domain/market_place.rb +37 -0
- data/lib/onlinepayments/sdk/domain/network_token_essentials.rb +65 -0
- data/lib/onlinepayments/sdk/domain/network_token_linked.rb +44 -0
- data/lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb +7 -0
- data/lib/onlinepayments/sdk/domain/omnichannel_subsequent_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_link_response.rb +7 -0
- data/lib/onlinepayments/sdk/domain/payment_product350.rb +37 -0
- data/lib/onlinepayments/sdk/domain/payment_product5001.rb +1 -0
- data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +15 -0
- data/lib/onlinepayments/sdk/domain/payment_response.rb +9 -0
- data/lib/onlinepayments/sdk/domain/pending_authentication.rb +30 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +18 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb +32 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3307_specific_input.rb +13 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +7 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb +7 -0
- data/lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb +32 -0
- data/lib/onlinepayments/sdk/domain/refund_redirect_payment_product900_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/refund_request.rb +9 -0
- data/lib/onlinepayments/sdk/domain/session_details.rb +37 -0
- data/lib/onlinepayments/sdk/domain/show_form_data.rb +18 -0
- data/lib/onlinepayments/sdk/domain/split_payment_product_filter.rb +34 -0
- data/lib/onlinepayments/sdk/domain/split_payment_product_filters_hosted_checkout.rb +40 -0
- data/lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +0 -7
- data/lib/onlinepayments/sdk/domain/subsequent_payment_request.rb +9 -0
- data/lib/onlinepayments/sdk/domain/token_response.rb +18 -0
- data/lib/onlinepayments/sdk/merchant/merchant_client.rb +2 -2
- data/lib/onlinepayments/sdk/merchant/paymentlinks/payment_links_client.rb +0 -29
- data/lib/onlinepayments/sdk/merchant/payouts/payouts_client.rb +19 -19
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +6 -6
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +6 -6
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb +4 -4
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +6 -6
- data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +6 -6
- data/lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb +2 -2
- data/lib/onlinepayments/sdk/merchant/tokens/tokens_client.rb +24 -24
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +17 -4
- data/lib/onlinepayments/sdk/merchant/paymentlinks/get_payment_links_in_bulk_params.rb +0 -28
|
@@ -21,11 +21,11 @@ module OnlinePayments
|
|
|
21
21
|
super(parent: parent, path_context: path_context)
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
# Resource /v2/!{merchantId}/tokens
|
|
24
|
+
# Resource /v2/!{merchantId}/tokens - Create token
|
|
25
25
|
#
|
|
26
|
-
# @param
|
|
27
|
-
# @param context
|
|
28
|
-
# @return [OnlinePayments::SDK::Domain::
|
|
26
|
+
# @param body [OnlinePayments::SDK::Domain::CreateTokenRequest]
|
|
27
|
+
# @param context [OnlinePayments::SDK::CallContext, nil]
|
|
28
|
+
# @return [OnlinePayments::SDK::Domain::CreatedTokenResponse]
|
|
29
29
|
# @raise [OnlinePayments::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
|
30
30
|
# @raise [OnlinePayments::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
|
31
31
|
# @raise [OnlinePayments::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
|
@@ -35,16 +35,14 @@ module OnlinePayments
|
|
|
35
35
|
# the payment platform was unable to process a message from a downstream partner/acquirer,
|
|
36
36
|
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
|
37
37
|
# @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
|
|
38
|
-
def
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
uri = instantiate_uri('/v2/{merchantId}/tokens/{tokenId}', path_context)
|
|
43
|
-
@communicator.get(
|
|
38
|
+
def create_token(body, context = nil)
|
|
39
|
+
uri = instantiate_uri('/v2/{merchantId}/tokens', nil)
|
|
40
|
+
@communicator.post(
|
|
44
41
|
uri,
|
|
45
42
|
client_headers,
|
|
46
43
|
nil,
|
|
47
|
-
|
|
44
|
+
body,
|
|
45
|
+
OnlinePayments::SDK::Domain::CreatedTokenResponse,
|
|
48
46
|
context)
|
|
49
47
|
rescue OnlinePayments::SDK::Communication::ResponseException => e
|
|
50
48
|
error_type = OnlinePayments::SDK::Domain::ErrorResponse
|
|
@@ -52,10 +50,11 @@ module OnlinePayments
|
|
|
52
50
|
raise OnlinePayments::SDK.create_exception(e.status_code, e.body, error_object, context)
|
|
53
51
|
end
|
|
54
52
|
|
|
55
|
-
# Resource /v2/!{merchantId}/tokens/!{tokenId} -
|
|
53
|
+
# Resource /v2/!{merchantId}/tokens/!{tokenId} - Get token
|
|
56
54
|
#
|
|
57
55
|
# @param token_id [String]
|
|
58
56
|
# @param context [OnlinePayments::SDK::CallContext, nil]
|
|
57
|
+
# @return [OnlinePayments::SDK::Domain::TokenResponse]
|
|
59
58
|
# @raise [OnlinePayments::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
|
60
59
|
# @raise [OnlinePayments::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
|
61
60
|
# @raise [OnlinePayments::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
|
@@ -65,16 +64,16 @@ module OnlinePayments
|
|
|
65
64
|
# the payment platform was unable to process a message from a downstream partner/acquirer,
|
|
66
65
|
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
|
67
66
|
# @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
|
|
68
|
-
def
|
|
67
|
+
def get_token(token_id, context = nil)
|
|
69
68
|
path_context = {
|
|
70
69
|
'tokenId'.freeze => token_id,
|
|
71
70
|
}
|
|
72
71
|
uri = instantiate_uri('/v2/{merchantId}/tokens/{tokenId}', path_context)
|
|
73
|
-
@communicator.
|
|
72
|
+
@communicator.get(
|
|
74
73
|
uri,
|
|
75
74
|
client_headers,
|
|
76
75
|
nil,
|
|
77
|
-
|
|
76
|
+
OnlinePayments::SDK::Domain::TokenResponse,
|
|
78
77
|
context)
|
|
79
78
|
rescue OnlinePayments::SDK::Communication::ResponseException => e
|
|
80
79
|
error_type = OnlinePayments::SDK::Domain::ErrorResponse
|
|
@@ -82,11 +81,10 @@ module OnlinePayments
|
|
|
82
81
|
raise OnlinePayments::SDK.create_exception(e.status_code, e.body, error_object, context)
|
|
83
82
|
end
|
|
84
83
|
|
|
85
|
-
# Resource /v2/!{merchantId}/tokens -
|
|
84
|
+
# Resource /v2/!{merchantId}/tokens/!{tokenId} - Delete token
|
|
86
85
|
#
|
|
87
|
-
# @param
|
|
88
|
-
# @param context
|
|
89
|
-
# @return [OnlinePayments::SDK::Domain::CreatedTokenResponse]
|
|
86
|
+
# @param token_id [String]
|
|
87
|
+
# @param context [OnlinePayments::SDK::CallContext, nil]
|
|
90
88
|
# @raise [OnlinePayments::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
|
91
89
|
# @raise [OnlinePayments::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
|
92
90
|
# @raise [OnlinePayments::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
|
@@ -96,14 +94,16 @@ module OnlinePayments
|
|
|
96
94
|
# the payment platform was unable to process a message from a downstream partner/acquirer,
|
|
97
95
|
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
|
98
96
|
# @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
|
|
99
|
-
def
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
def delete_token(token_id, context = nil)
|
|
98
|
+
path_context = {
|
|
99
|
+
'tokenId'.freeze => token_id,
|
|
100
|
+
}
|
|
101
|
+
uri = instantiate_uri('/v2/{merchantId}/tokens/{tokenId}', path_context)
|
|
102
|
+
@communicator.delete(
|
|
102
103
|
uri,
|
|
103
104
|
client_headers,
|
|
104
105
|
nil,
|
|
105
|
-
|
|
106
|
-
OnlinePayments::SDK::Domain::CreatedTokenResponse,
|
|
106
|
+
nil,
|
|
107
107
|
context)
|
|
108
108
|
rescue OnlinePayments::SDK::Communication::ResponseException => e
|
|
109
109
|
error_type = OnlinePayments::SDK::Domain::ErrorResponse
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
|
3
|
-
spec.version = '
|
|
3
|
+
spec.version = '7.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,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
|
+
version: 7.0.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:
|
|
11
|
+
date: 2026-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|
|
@@ -233,7 +233,8 @@ files:
|
|
|
233
233
|
- lib/onlinepayments/sdk/domain/created_payment_output.rb
|
|
234
234
|
- lib/onlinepayments/sdk/domain/created_token_response.rb
|
|
235
235
|
- lib/onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization.rb
|
|
236
|
-
- lib/onlinepayments/sdk/domain/
|
|
236
|
+
- lib/onlinepayments/sdk/domain/credit_card_validation_rules.rb
|
|
237
|
+
- lib/onlinepayments/sdk/domain/crm_token.rb
|
|
237
238
|
- lib/onlinepayments/sdk/domain/currency_conversion.rb
|
|
238
239
|
- lib/onlinepayments/sdk/domain/currency_conversion_input.rb
|
|
239
240
|
- lib/onlinepayments/sdk/domain/currency_conversion_request.rb
|
|
@@ -294,6 +295,7 @@ files:
|
|
|
294
295
|
- lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb
|
|
295
296
|
- lib/onlinepayments/sdk/domain/mandate_redirect_data.rb
|
|
296
297
|
- lib/onlinepayments/sdk/domain/mandate_response.rb
|
|
298
|
+
- lib/onlinepayments/sdk/domain/market_place.rb
|
|
297
299
|
- lib/onlinepayments/sdk/domain/merchant_action.rb
|
|
298
300
|
- lib/onlinepayments/sdk/domain/mobile_payment_data.rb
|
|
299
301
|
- lib/onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb
|
|
@@ -304,8 +306,11 @@ files:
|
|
|
304
306
|
- lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb
|
|
305
307
|
- lib/onlinepayments/sdk/domain/multiple_payment_information.rb
|
|
306
308
|
- lib/onlinepayments/sdk/domain/network_token_data.rb
|
|
309
|
+
- lib/onlinepayments/sdk/domain/network_token_essentials.rb
|
|
310
|
+
- lib/onlinepayments/sdk/domain/network_token_linked.rb
|
|
307
311
|
- lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb
|
|
308
312
|
- lib/onlinepayments/sdk/domain/omnichannel_refund_specific_input.rb
|
|
313
|
+
- lib/onlinepayments/sdk/domain/omnichannel_subsequent_specific_input.rb
|
|
309
314
|
- lib/onlinepayments/sdk/domain/operation_output.rb
|
|
310
315
|
- lib/onlinepayments/sdk/domain/operation_payment_references.rb
|
|
311
316
|
- lib/onlinepayments/sdk/domain/order.rb
|
|
@@ -340,6 +345,7 @@ files:
|
|
|
340
345
|
- lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb
|
|
341
346
|
- lib/onlinepayments/sdk/domain/payment_product3209_specific_output.rb
|
|
342
347
|
- lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb
|
|
348
|
+
- lib/onlinepayments/sdk/domain/payment_product350.rb
|
|
343
349
|
- lib/onlinepayments/sdk/domain/payment_product5001.rb
|
|
344
350
|
- lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb
|
|
345
351
|
- lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb
|
|
@@ -372,6 +378,7 @@ files:
|
|
|
372
378
|
- lib/onlinepayments/sdk/domain/payout_response.rb
|
|
373
379
|
- lib/onlinepayments/sdk/domain/payout_result.rb
|
|
374
380
|
- lib/onlinepayments/sdk/domain/payout_status_output.rb
|
|
381
|
+
- lib/onlinepayments/sdk/domain/pending_authentication.rb
|
|
375
382
|
- lib/onlinepayments/sdk/domain/personal_information.rb
|
|
376
383
|
- lib/onlinepayments/sdk/domain/personal_information_token.rb
|
|
377
384
|
- lib/onlinepayments/sdk/domain/personal_name.rb
|
|
@@ -387,10 +394,12 @@ files:
|
|
|
387
394
|
- lib/onlinepayments/sdk/domain/redirect_data.rb
|
|
388
395
|
- lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb
|
|
389
396
|
- lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb
|
|
397
|
+
- lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb
|
|
390
398
|
- lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb
|
|
391
399
|
- lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb
|
|
392
400
|
- lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb
|
|
393
401
|
- lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb
|
|
402
|
+
- lib/onlinepayments/sdk/domain/redirect_payment_product3307_specific_input.rb
|
|
394
403
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb
|
|
395
404
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb
|
|
396
405
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5402_specific_input.rb
|
|
@@ -410,6 +419,8 @@ files:
|
|
|
410
419
|
- lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb
|
|
411
420
|
- lib/onlinepayments/sdk/domain/refund_payment_product840_specific_output.rb
|
|
412
421
|
- lib/onlinepayments/sdk/domain/refund_redirect_method_specific_output.rb
|
|
422
|
+
- lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb
|
|
423
|
+
- lib/onlinepayments/sdk/domain/refund_redirect_payment_product900_specific_input.rb
|
|
413
424
|
- lib/onlinepayments/sdk/domain/refund_request.rb
|
|
414
425
|
- lib/onlinepayments/sdk/domain/refund_response.rb
|
|
415
426
|
- lib/onlinepayments/sdk/domain/refunds_response.rb
|
|
@@ -421,6 +432,7 @@ files:
|
|
|
421
432
|
- lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb
|
|
422
433
|
- lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input.rb
|
|
423
434
|
- lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input_base.rb
|
|
435
|
+
- lib/onlinepayments/sdk/domain/session_details.rb
|
|
424
436
|
- lib/onlinepayments/sdk/domain/session_request.rb
|
|
425
437
|
- lib/onlinepayments/sdk/domain/session_response.rb
|
|
426
438
|
- lib/onlinepayments/sdk/domain/shipping.rb
|
|
@@ -429,6 +441,8 @@ files:
|
|
|
429
441
|
- lib/onlinepayments/sdk/domain/shopping_cart_extension.rb
|
|
430
442
|
- lib/onlinepayments/sdk/domain/show_form_data.rb
|
|
431
443
|
- lib/onlinepayments/sdk/domain/show_instructions_data.rb
|
|
444
|
+
- lib/onlinepayments/sdk/domain/split_payment_product_filter.rb
|
|
445
|
+
- lib/onlinepayments/sdk/domain/split_payment_product_filters_hosted_checkout.rb
|
|
432
446
|
- lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb
|
|
433
447
|
- lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb
|
|
434
448
|
- lib/onlinepayments/sdk/domain/subsequent_payment_request.rb
|
|
@@ -488,7 +502,6 @@ files:
|
|
|
488
502
|
- lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb
|
|
489
503
|
- lib/onlinepayments/sdk/merchant/merchant_client.rb
|
|
490
504
|
- lib/onlinepayments/sdk/merchant/paymentlinks.rb
|
|
491
|
-
- lib/onlinepayments/sdk/merchant/paymentlinks/get_payment_links_in_bulk_params.rb
|
|
492
505
|
- lib/onlinepayments/sdk/merchant/paymentlinks/payment_links_client.rb
|
|
493
506
|
- lib/onlinepayments/sdk/merchant/payments.rb
|
|
494
507
|
- lib/onlinepayments/sdk/merchant/payments/payments_client.rb
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# This file was automatically generated.
|
|
3
|
-
#
|
|
4
|
-
require 'onlinepayments/sdk/communication/param_request'
|
|
5
|
-
require 'onlinepayments/sdk/communication/request_param'
|
|
6
|
-
|
|
7
|
-
module OnlinePayments
|
|
8
|
-
module SDK
|
|
9
|
-
module Merchant
|
|
10
|
-
module PaymentLinks
|
|
11
|
-
# Query parameters for Get payment links (/v2/{merchantId}/paymentlinks)
|
|
12
|
-
#
|
|
13
|
-
# @attr [String] operation_group_reference
|
|
14
|
-
class GetPaymentLinksInBulkParams < OnlinePayments::SDK::Communication::ParamRequest
|
|
15
|
-
|
|
16
|
-
attr_accessor :operation_group_reference
|
|
17
|
-
|
|
18
|
-
# @return [Array<OnlinePayments::SDK::Communication::RequestParam>] representing the attributes of this class
|
|
19
|
-
def to_request_parameters
|
|
20
|
-
result = []
|
|
21
|
-
result << RequestParam.new('operationGroupReference', @operation_group_reference) unless @operation_group_reference.nil?
|
|
22
|
-
result
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|