checkout_sdk 1.12.0 → 2.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/README.md +24 -1
- data/lib/checkout_sdk/abstract_checkout_sdk_builder.rb +55 -4
- data/lib/checkout_sdk/accounts/schedule_frequency_daily.rb +2 -0
- data/lib/checkout_sdk/accounts/schedule_frequency_monthly.rb +3 -1
- data/lib/checkout_sdk/accounts/schedule_frequency_weekly.rb +3 -1
- data/lib/checkout_sdk/accounts/update_schedule.rb +11 -0
- data/lib/checkout_sdk/apm/apm.rb +5 -0
- data/lib/checkout_sdk/apm/bacs/bacs_client.rb +29 -0
- data/lib/checkout_sdk/apm/bacs/bacs_notification_request.rb +52 -0
- data/lib/checkout_sdk/apm/bacs/bacs_notification_type.rb +10 -0
- data/lib/checkout_sdk/checkout_api.rb +4 -0
- data/lib/checkout_sdk/checkout_oauth_sdk_builder.rb +23 -10
- data/lib/checkout_sdk/checkout_static_keys_sdk_builder.rb +2 -1
- data/lib/checkout_sdk/common/account_holder_type.rb +16 -0
- data/lib/checkout_sdk/common/customer_request.rb +15 -3
- data/lib/checkout_sdk/common/instrument_type.rb +8 -0
- data/lib/checkout_sdk/common/payment_source_type.rb +19 -0
- data/lib/checkout_sdk/environment_subdomain.rb +22 -23
- data/lib/checkout_sdk/instruments/ach_account_type.rb +14 -0
- data/lib/checkout_sdk/instruments/bacs_payment_type.rb +15 -0
- data/lib/checkout_sdk/instruments/create/create_ach_account_holder.rb +29 -0
- data/lib/checkout_sdk/instruments/create/create_ach_instrument_data.rb +30 -0
- data/lib/checkout_sdk/instruments/create/create_bacs_account_holder.rb +24 -0
- data/lib/checkout_sdk/instruments/create/create_bacs_billing_address.rb +30 -0
- data/lib/checkout_sdk/instruments/create/create_bacs_instrument_account.rb +14 -0
- data/lib/checkout_sdk/instruments/create/create_bacs_instrument_data.rb +36 -0
- data/lib/checkout_sdk/instruments/create/create_sepa_account_holder.rb +28 -0
- data/lib/checkout_sdk/instruments/create/create_sepa_billing_address.rb +31 -0
- data/lib/checkout_sdk/instruments/create/create_sepa_instrument_data.rb +40 -0
- data/lib/checkout_sdk/instruments/create/instrument_ach.rb +25 -0
- data/lib/checkout_sdk/instruments/create/instrument_bacs.rb +29 -0
- data/lib/checkout_sdk/instruments/create/instrument_sepa.rb +9 -3
- data/lib/checkout_sdk/instruments/get/payment_network.rb +8 -4
- data/lib/checkout_sdk/instruments/instrument_account_holder_type.rb +14 -0
- data/lib/checkout_sdk/instruments/instruments.rb +28 -1
- data/lib/checkout_sdk/instruments/sepa_mandate_type.rb +11 -0
- data/lib/checkout_sdk/instruments/sepa_payment_type.rb +15 -0
- data/lib/checkout_sdk/instruments/update/update_ach_account_holder.rb +28 -0
- data/lib/checkout_sdk/instruments/update/update_ach_instrument_data.rb +32 -0
- data/lib/checkout_sdk/instruments/update/update_bacs_account_holder.rb +31 -0
- data/lib/checkout_sdk/instruments/update/update_bacs_billing_address.rb +30 -0
- data/lib/checkout_sdk/instruments/update/update_bacs_instrument_data.rb +36 -0
- data/lib/checkout_sdk/instruments/update/update_instrument_ach.rb +21 -0
- data/lib/checkout_sdk/instruments/update/update_instrument_bacs.rb +21 -0
- data/lib/checkout_sdk/instruments/update/update_instrument_sepa.rb +20 -0
- data/lib/checkout_sdk/instruments/update/update_sepa_account_holder.rb +31 -0
- data/lib/checkout_sdk/instruments/update/update_sepa_billing_address.rb +31 -0
- data/lib/checkout_sdk/instruments/update/update_sepa_instrument_data.rb +43 -0
- data/lib/checkout_sdk/payments/payments.rb +19 -0
- data/lib/checkout_sdk/payments/source/apm/ach_source.rb +16 -5
- data/lib/checkout_sdk/payments/source/apm/ach_source_account_holder.rb +45 -0
- data/lib/checkout_sdk/payments/source/apm/ach_source_account_type.rb +22 -0
- data/lib/checkout_sdk/payments/source/apm/alipay_cn_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/alipay_hk_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/alipay_plus_source.rb +9 -0
- data/lib/checkout_sdk/payments/source/apm/bacs_source.rb +18 -0
- data/lib/checkout_sdk/payments/source/apm/dana_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/gcash_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/kakaopay_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/mobile_pay_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/pay_now_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/sepa_source.rb +28 -11
- data/lib/checkout_sdk/payments/source/apm/sepa_source_account_holder.rb +37 -0
- data/lib/checkout_sdk/payments/source/apm/sepa_source_billing_address.rb +31 -0
- data/lib/checkout_sdk/payments/source/apm/swish_account_holder.rb +18 -0
- data/lib/checkout_sdk/payments/source/apm/swish_billing_descriptor.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/swish_source.rb +29 -0
- data/lib/checkout_sdk/payments/source/apm/tng_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/truemoney_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/twint_source.rb +14 -0
- data/lib/checkout_sdk/payments/source/apm/vipps_source.rb +14 -0
- data/lib/checkout_sdk/payments/void_request.rb +5 -1
- data/lib/checkout_sdk/previous/checkout_previous_static_keys_sdk_builder.rb +8 -1
- data/lib/checkout_sdk/version.rb +1 -1
- metadata +51 -3
- data/lib/checkout_sdk/instruments/create/instrument_data.rb +0 -26
|
@@ -7,6 +7,12 @@ module CheckoutSdk
|
|
|
7
7
|
PUBLIC_KEY_PATTERN = '^pk_(test_)?(\\w{8})-(\\w{4})-(\\w{4})-(\\w{4})-(\\w{12})$'
|
|
8
8
|
private_constant :SECRET_KEY_PATTERN, :PUBLIC_KEY_PATTERN
|
|
9
9
|
|
|
10
|
+
# The Previous (ABC) platform predates merchant-specific subdomains, so it is exempt from
|
|
11
|
+
# the mandatory with_environment_subdomain/with_legacy_domain configuration.
|
|
12
|
+
def requires_environment_subdomain?
|
|
13
|
+
false
|
|
14
|
+
end
|
|
15
|
+
|
|
10
16
|
def build
|
|
11
17
|
@secret_key_pattern = SECRET_KEY_PATTERN
|
|
12
18
|
@public_key_pattern = PUBLIC_KEY_PATTERN
|
|
@@ -19,7 +25,8 @@ module CheckoutSdk
|
|
|
19
25
|
logger
|
|
20
26
|
)
|
|
21
27
|
|
|
22
|
-
|
|
28
|
+
env_subdomain = environment_subdomain
|
|
29
|
+
configuration.environment_subdomain = env_subdomain if env_subdomain
|
|
23
30
|
|
|
24
31
|
CheckoutApi.new(configuration)
|
|
25
32
|
end
|
data/lib/checkout_sdk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: checkout_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Checkout
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -233,6 +233,9 @@ files:
|
|
|
233
233
|
- lib/checkout_sdk/agentic_commerce/delegated_payment_risk_signal.rb
|
|
234
234
|
- lib/checkout_sdk/api_client.rb
|
|
235
235
|
- lib/checkout_sdk/apm/apm.rb
|
|
236
|
+
- lib/checkout_sdk/apm/bacs/bacs_client.rb
|
|
237
|
+
- lib/checkout_sdk/apm/bacs/bacs_notification_request.rb
|
|
238
|
+
- lib/checkout_sdk/apm/bacs/bacs_notification_type.rb
|
|
236
239
|
- lib/checkout_sdk/apm/ideal/ideal_client.rb
|
|
237
240
|
- lib/checkout_sdk/apm/previous/klarna/credit_session_request.rb
|
|
238
241
|
- lib/checkout_sdk/apm/previous/klarna/klarna.rb
|
|
@@ -337,23 +340,49 @@ files:
|
|
|
337
340
|
- lib/checkout_sdk/identities/identity_verification/identity_verification_request.rb
|
|
338
341
|
- lib/checkout_sdk/identities/identity_verification/idv_client_information.rb
|
|
339
342
|
- lib/checkout_sdk/identities/identity_verification/idv_declared_data.rb
|
|
343
|
+
- lib/checkout_sdk/instruments/ach_account_type.rb
|
|
344
|
+
- lib/checkout_sdk/instruments/bacs_payment_type.rb
|
|
340
345
|
- lib/checkout_sdk/instruments/base_instruments_client.rb
|
|
346
|
+
- lib/checkout_sdk/instruments/create/create_ach_account_holder.rb
|
|
347
|
+
- lib/checkout_sdk/instruments/create/create_ach_instrument_data.rb
|
|
348
|
+
- lib/checkout_sdk/instruments/create/create_bacs_account_holder.rb
|
|
349
|
+
- lib/checkout_sdk/instruments/create/create_bacs_billing_address.rb
|
|
350
|
+
- lib/checkout_sdk/instruments/create/create_bacs_instrument_account.rb
|
|
351
|
+
- lib/checkout_sdk/instruments/create/create_bacs_instrument_data.rb
|
|
352
|
+
- lib/checkout_sdk/instruments/create/create_sepa_account_holder.rb
|
|
353
|
+
- lib/checkout_sdk/instruments/create/create_sepa_billing_address.rb
|
|
354
|
+
- lib/checkout_sdk/instruments/create/create_sepa_instrument_data.rb
|
|
341
355
|
- lib/checkout_sdk/instruments/create/instrument.rb
|
|
356
|
+
- lib/checkout_sdk/instruments/create/instrument_ach.rb
|
|
357
|
+
- lib/checkout_sdk/instruments/create/instrument_bacs.rb
|
|
342
358
|
- lib/checkout_sdk/instruments/create/instrument_bank_account.rb
|
|
343
|
-
- lib/checkout_sdk/instruments/create/instrument_data.rb
|
|
344
359
|
- lib/checkout_sdk/instruments/create/instrument_sepa.rb
|
|
345
360
|
- lib/checkout_sdk/instruments/create/instrument_token.rb
|
|
346
361
|
- lib/checkout_sdk/instruments/get/bank_account_field_query.rb
|
|
347
362
|
- lib/checkout_sdk/instruments/get/payment_network.rb
|
|
363
|
+
- lib/checkout_sdk/instruments/instrument_account_holder_type.rb
|
|
348
364
|
- lib/checkout_sdk/instruments/instruments.rb
|
|
349
365
|
- lib/checkout_sdk/instruments/instruments_client.rb
|
|
350
366
|
- lib/checkout_sdk/instruments/previous/create/instrument.rb
|
|
351
367
|
- lib/checkout_sdk/instruments/previous/instruments_client.rb
|
|
352
368
|
- lib/checkout_sdk/instruments/previous/update/update_instrument.rb
|
|
369
|
+
- lib/checkout_sdk/instruments/sepa_mandate_type.rb
|
|
370
|
+
- lib/checkout_sdk/instruments/sepa_payment_type.rb
|
|
371
|
+
- lib/checkout_sdk/instruments/update/update_ach_account_holder.rb
|
|
372
|
+
- lib/checkout_sdk/instruments/update/update_ach_instrument_data.rb
|
|
373
|
+
- lib/checkout_sdk/instruments/update/update_bacs_account_holder.rb
|
|
374
|
+
- lib/checkout_sdk/instruments/update/update_bacs_billing_address.rb
|
|
375
|
+
- lib/checkout_sdk/instruments/update/update_bacs_instrument_data.rb
|
|
353
376
|
- lib/checkout_sdk/instruments/update/update_instrument.rb
|
|
377
|
+
- lib/checkout_sdk/instruments/update/update_instrument_ach.rb
|
|
378
|
+
- lib/checkout_sdk/instruments/update/update_instrument_bacs.rb
|
|
354
379
|
- lib/checkout_sdk/instruments/update/update_instrument_bank_account.rb
|
|
355
380
|
- lib/checkout_sdk/instruments/update/update_instrument_card.rb
|
|
381
|
+
- lib/checkout_sdk/instruments/update/update_instrument_sepa.rb
|
|
356
382
|
- lib/checkout_sdk/instruments/update/update_instrument_token.rb
|
|
383
|
+
- lib/checkout_sdk/instruments/update/update_sepa_account_holder.rb
|
|
384
|
+
- lib/checkout_sdk/instruments/update/update_sepa_billing_address.rb
|
|
385
|
+
- lib/checkout_sdk/instruments/update/update_sepa_instrument_data.rb
|
|
357
386
|
- lib/checkout_sdk/issuing/add_control_group_request.rb
|
|
358
387
|
- lib/checkout_sdk/issuing/add_control_profile_request.rb
|
|
359
388
|
- lib/checkout_sdk/issuing/amend_dispute_request.rb
|
|
@@ -540,36 +569,55 @@ files:
|
|
|
540
569
|
- lib/checkout_sdk/payments/shipping_details.rb
|
|
541
570
|
- lib/checkout_sdk/payments/shipping_preference.rb
|
|
542
571
|
- lib/checkout_sdk/payments/source/apm/ach_source.rb
|
|
572
|
+
- lib/checkout_sdk/payments/source/apm/ach_source_account_holder.rb
|
|
573
|
+
- lib/checkout_sdk/payments/source/apm/ach_source_account_type.rb
|
|
543
574
|
- lib/checkout_sdk/payments/source/apm/after_pay_source.rb
|
|
575
|
+
- lib/checkout_sdk/payments/source/apm/alipay_cn_source.rb
|
|
576
|
+
- lib/checkout_sdk/payments/source/apm/alipay_hk_source.rb
|
|
544
577
|
- lib/checkout_sdk/payments/source/apm/alipay_plus_source.rb
|
|
545
578
|
- lib/checkout_sdk/payments/source/apm/alma_source.rb
|
|
579
|
+
- lib/checkout_sdk/payments/source/apm/bacs_source.rb
|
|
546
580
|
- lib/checkout_sdk/payments/source/apm/bancontact_source.rb
|
|
547
581
|
- lib/checkout_sdk/payments/source/apm/benefit_source.rb
|
|
548
582
|
- lib/checkout_sdk/payments/source/apm/bizum_source.rb
|
|
549
583
|
- lib/checkout_sdk/payments/source/apm/blik_source.rb
|
|
550
584
|
- lib/checkout_sdk/payments/source/apm/cv_connect_source.rb
|
|
585
|
+
- lib/checkout_sdk/payments/source/apm/dana_source.rb
|
|
551
586
|
- lib/checkout_sdk/payments/source/apm/eps_source.rb
|
|
552
587
|
- lib/checkout_sdk/payments/source/apm/fawry_product.rb
|
|
553
588
|
- lib/checkout_sdk/payments/source/apm/fawry_source.rb
|
|
589
|
+
- lib/checkout_sdk/payments/source/apm/gcash_source.rb
|
|
554
590
|
- lib/checkout_sdk/payments/source/apm/giropay_source.rb
|
|
555
591
|
- lib/checkout_sdk/payments/source/apm/ideal_source.rb
|
|
556
592
|
- lib/checkout_sdk/payments/source/apm/illicado_source.rb
|
|
593
|
+
- lib/checkout_sdk/payments/source/apm/kakaopay_source.rb
|
|
557
594
|
- lib/checkout_sdk/payments/source/apm/klarna_source.rb
|
|
558
595
|
- lib/checkout_sdk/payments/source/apm/knet_source.rb
|
|
559
596
|
- lib/checkout_sdk/payments/source/apm/mbway_source.rb
|
|
597
|
+
- lib/checkout_sdk/payments/source/apm/mobile_pay_source.rb
|
|
560
598
|
- lib/checkout_sdk/payments/source/apm/multi_banco_source.rb
|
|
561
599
|
- lib/checkout_sdk/payments/source/apm/octopus_source.rb
|
|
562
600
|
- lib/checkout_sdk/payments/source/apm/p24_source.rb
|
|
601
|
+
- lib/checkout_sdk/payments/source/apm/pay_now_source.rb
|
|
563
602
|
- lib/checkout_sdk/payments/source/apm/paypal_source.rb
|
|
564
603
|
- lib/checkout_sdk/payments/source/apm/plaid_source.rb
|
|
565
604
|
- lib/checkout_sdk/payments/source/apm/post_finance_source.rb
|
|
566
605
|
- lib/checkout_sdk/payments/source/apm/qpay_source.rb
|
|
567
606
|
- lib/checkout_sdk/payments/source/apm/sepa_source.rb
|
|
607
|
+
- lib/checkout_sdk/payments/source/apm/sepa_source_account_holder.rb
|
|
608
|
+
- lib/checkout_sdk/payments/source/apm/sepa_source_billing_address.rb
|
|
568
609
|
- lib/checkout_sdk/payments/source/apm/sequra_source.rb
|
|
569
610
|
- lib/checkout_sdk/payments/source/apm/sofort_source.rb
|
|
570
611
|
- lib/checkout_sdk/payments/source/apm/stcpay_source.rb
|
|
612
|
+
- lib/checkout_sdk/payments/source/apm/swish_account_holder.rb
|
|
613
|
+
- lib/checkout_sdk/payments/source/apm/swish_billing_descriptor.rb
|
|
614
|
+
- lib/checkout_sdk/payments/source/apm/swish_source.rb
|
|
571
615
|
- lib/checkout_sdk/payments/source/apm/tamara_source.rb
|
|
616
|
+
- lib/checkout_sdk/payments/source/apm/tng_source.rb
|
|
617
|
+
- lib/checkout_sdk/payments/source/apm/truemoney_source.rb
|
|
572
618
|
- lib/checkout_sdk/payments/source/apm/trustly_source.rb
|
|
619
|
+
- lib/checkout_sdk/payments/source/apm/twint_source.rb
|
|
620
|
+
- lib/checkout_sdk/payments/source/apm/vipps_source.rb
|
|
573
621
|
- lib/checkout_sdk/payments/source/apm/we_chat_pay_source.rb
|
|
574
622
|
- lib/checkout_sdk/payments/source/bank_account_source.rb
|
|
575
623
|
- lib/checkout_sdk/payments/source/card_source.rb
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module CheckoutSdk
|
|
4
|
-
module Instruments
|
|
5
|
-
# @!attribute account_number
|
|
6
|
-
# @return [String]
|
|
7
|
-
# @!attribute country
|
|
8
|
-
# @return [String] {CheckoutSdk::Common::Country}
|
|
9
|
-
# @!attribute currency
|
|
10
|
-
# @return [String] {CheckoutSdk::Common::Currency}
|
|
11
|
-
# @!attribute payment_type
|
|
12
|
-
# @return [String] {CheckoutSdk::Payments::PaymentType}
|
|
13
|
-
# @!attribute mandate_id
|
|
14
|
-
# @return [String]
|
|
15
|
-
# @!attribute date_of_signature
|
|
16
|
-
# @return [DateTime]
|
|
17
|
-
class InstrumentData
|
|
18
|
-
attr_accessor :account_number,
|
|
19
|
-
:country,
|
|
20
|
-
:currency,
|
|
21
|
-
:payment_type,
|
|
22
|
-
:mandate_id,
|
|
23
|
-
:date_of_signature
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|