checkout_sdk 2.5.0 → 2.7.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.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/lib/checkout_sdk/accounts/accounts.rb +8 -0
  3. data/lib/checkout_sdk/accounts/accounts_client.rb +35 -9
  4. data/lib/checkout_sdk/accounts/additional_document.rb +6 -0
  5. data/lib/checkout_sdk/accounts/additional_info.rb +5 -0
  6. data/lib/checkout_sdk/accounts/agreed_terms.rb +14 -1
  7. data/lib/checkout_sdk/accounts/articles_of_association.rb +8 -1
  8. data/lib/checkout_sdk/accounts/articles_of_association_type.rb +1 -0
  9. data/lib/checkout_sdk/accounts/bank_verification.rb +8 -1
  10. data/lib/checkout_sdk/accounts/bank_verification_type.rb +1 -0
  11. data/lib/checkout_sdk/accounts/business_type.rb +2 -0
  12. data/lib/checkout_sdk/accounts/certified_authorised_signatory.rb +24 -0
  13. data/lib/checkout_sdk/accounts/certified_authorised_signatory_type.rb +10 -0
  14. data/lib/checkout_sdk/accounts/citizenship.rb +6 -1
  15. data/lib/checkout_sdk/accounts/company.rb +54 -1
  16. data/lib/checkout_sdk/accounts/company_position.rb +1 -0
  17. data/lib/checkout_sdk/accounts/company_verification.rb +9 -0
  18. data/lib/checkout_sdk/accounts/company_verification_type.rb +3 -0
  19. data/lib/checkout_sdk/accounts/contact_details.rb +18 -0
  20. data/lib/checkout_sdk/accounts/date_of_birth.rb +10 -0
  21. data/lib/checkout_sdk/accounts/date_of_incorporation.rb +10 -0
  22. data/lib/checkout_sdk/accounts/document.rb +12 -0
  23. data/lib/checkout_sdk/accounts/document_type.rb +1 -0
  24. data/lib/checkout_sdk/accounts/entity_document.rb +5 -0
  25. data/lib/checkout_sdk/accounts/entity_email_addresses.rb +12 -1
  26. data/lib/checkout_sdk/accounts/entity_files_request.rb +4 -3
  27. data/lib/checkout_sdk/accounts/entity_financial_details.rb +15 -0
  28. data/lib/checkout_sdk/accounts/entity_financial_documents.rb +5 -0
  29. data/lib/checkout_sdk/accounts/entity_roles.rb +1 -0
  30. data/lib/checkout_sdk/accounts/file_purpose.rb +24 -0
  31. data/lib/checkout_sdk/accounts/file_request.rb +7 -0
  32. data/lib/checkout_sdk/accounts/financial_statements.rb +9 -1
  33. data/lib/checkout_sdk/accounts/financial_statements_type.rb +2 -0
  34. data/lib/checkout_sdk/accounts/financial_verification.rb +11 -3
  35. data/lib/checkout_sdk/accounts/financial_verification_type.rb +2 -0
  36. data/lib/checkout_sdk/accounts/identification.rb +7 -0
  37. data/lib/checkout_sdk/accounts/individual.rb +26 -0
  38. data/lib/checkout_sdk/accounts/invitee.rb +6 -0
  39. data/lib/checkout_sdk/accounts/national_id_type.rb +1 -0
  40. data/lib/checkout_sdk/accounts/onboard_entity.rb +30 -3
  41. data/lib/checkout_sdk/accounts/onboard_sub_entity_documents.rb +38 -1
  42. data/lib/checkout_sdk/accounts/phone.rb +7 -1
  43. data/lib/checkout_sdk/accounts/place_of_birth.rb +4 -0
  44. data/lib/checkout_sdk/accounts/processing_details.rb +27 -0
  45. data/lib/checkout_sdk/accounts/processing_details_ach.rb +14 -1
  46. data/lib/checkout_sdk/accounts/processing_details_payments.rb +3 -1
  47. data/lib/checkout_sdk/accounts/profile.rb +14 -0
  48. data/lib/checkout_sdk/accounts/proof_of_legality.rb +8 -1
  49. data/lib/checkout_sdk/accounts/proof_of_legality_type.rb +1 -0
  50. data/lib/checkout_sdk/accounts/proof_of_principal_address.rb +10 -3
  51. data/lib/checkout_sdk/accounts/proof_of_principal_address_type.rb +3 -0
  52. data/lib/checkout_sdk/accounts/proof_of_registration.rb +22 -0
  53. data/lib/checkout_sdk/accounts/proof_of_registration_type.rb +11 -0
  54. data/lib/checkout_sdk/accounts/proof_of_residential_address.rb +22 -0
  55. data/lib/checkout_sdk/accounts/proof_of_residential_address_type.rb +12 -0
  56. data/lib/checkout_sdk/accounts/representative.rb +67 -4
  57. data/lib/checkout_sdk/accounts/representative_documents.rb +43 -0
  58. data/lib/checkout_sdk/accounts/representative_individual.rb +35 -2
  59. data/lib/checkout_sdk/accounts/shareholder_structure.rb +9 -1
  60. data/lib/checkout_sdk/accounts/shareholder_structure_type.rb +1 -0
  61. data/lib/checkout_sdk/accounts/submitter.rb +4 -3
  62. data/lib/checkout_sdk/accounts/tax_verification.rb +8 -0
  63. data/lib/checkout_sdk/accounts/tax_verification_type.rb +1 -0
  64. data/lib/checkout_sdk/accounts/update_payment_instrument_request.rb +13 -1
  65. data/lib/checkout_sdk/payments/payments.rb +6 -0
  66. data/lib/checkout_sdk/payments/sessions/payment_methods_type.rb +36 -0
  67. data/lib/checkout_sdk/payments/setups/cash_app_action_type.rb +11 -0
  68. data/lib/checkout_sdk/payments/setups/cash_app_payment_method.rb +93 -0
  69. data/lib/checkout_sdk/payments/setups/payment_setup_device_client.rb +13 -0
  70. data/lib/checkout_sdk/payments/setups/payment_setup_device_os.rb +12 -0
  71. data/lib/checkout_sdk/payments/setups/payment_setup_payment_method_initialization.rb +12 -0
  72. data/lib/checkout_sdk/payments/setups/payment_setup_payment_method_status.rb +15 -0
  73. data/lib/checkout_sdk/payments/setups/payment_setups_client.rb +78 -8
  74. data/lib/checkout_sdk/version.rb +1 -1
  75. metadata +16 -2
@@ -16,9 +16,9 @@ module CheckoutSdk
16
16
  end
17
17
 
18
18
  # Creates a Payment Setup.
19
- # To maximize the amount of information the payment setup can use, we recommend that you create
20
- # a payment setup as early as possible in the customer's journey. For example, the first time
21
- # they land on the basket page.
19
+ # To maximize the information available to the payment setup, create a Payment Setup as early as
20
+ # possible in the customer's journey. For example, create it the first time they land on the
21
+ # basket page.
22
22
  # [Beta]
23
23
  #
24
24
  # @param [Hash] payment_setups_request
@@ -27,6 +27,38 @@ module CheckoutSdk
27
27
  # :terminal {PaymentSetupTerminal} and
28
28
  # :industry {PaymentSetupIndustry} (containing :accommodation
29
29
  # {Array(PaymentSetupAccommodation)} and :airline {Array(PaymentSetupAirline)}).
30
+ # A Hash request is sent as is, so every nested value must be a Hash too. To use one of the
31
+ # typed classes above (or {CashAppPaymentMethod}), convert it first with
32
+ # CheckoutSdk::JsonSerializer.to_custom_hash(object); a typed object nested directly in the
33
+ # Hash is not serialized and is sent as "#<CheckoutSdk::...>".
34
+ # :payment_methods may include :cashapp (the key is the single lowercase word `cashapp`), a Hash
35
+ # with the keys documented on {CashAppPaymentMethod}; you send :initialization ("disabled" or
36
+ # "enabled") and :customer_profile_sharing (Boolean).
37
+ # :customer may include:
38
+ # - :id - The unique identifier of the customer.
39
+ # - :country - The two-letter ISO country code of the customer for this payment
40
+ # (min 2 characters, max 2 characters).
41
+ # - :email - Details of the customer's email: :address (the customer's email address) and
42
+ # :verified (Boolean, whether the customer's email address is verified).
43
+ # - :name - The customer's full name (max 100 characters).
44
+ # - :tax_number - The customer's tax identification number.
45
+ # - :phone - The customer's phone number: :country_code (the international country calling
46
+ # code, min 1 character, max 7 characters) and :number (the phone number, min 6 characters,
47
+ # max 25 characters).
48
+ # - :merchant_account - Details of the account the customer holds with the merchant: :id,
49
+ # :registration_date, :last_modified, :first_transaction_date and :last_transaction_date
50
+ # (dates, yyyy-MM-dd), :returning_customer (Boolean), :total_order_count (Integer) and
51
+ # :last_payment_amount (Number).
52
+ # - :device - Details of the customer's device: :locale (the locale of the device),
53
+ # :fingerprint (a unique identifier for the customer's device), :ipv4 and :ipv6 (the
54
+ # customer's device IPv4 or IPv6 address, used by some payment methods for risk and
55
+ # eligibility checks), :client (the type of client the customer uses to initiate the
56
+ # payment, one of {PaymentSetupDeviceClient}; Cash App Pay requires it, although the API
57
+ # reference does not mark it as required) and :os (the operating system of the
58
+ # customer's device, one of {PaymentSetupDeviceOs}).
59
+ # @return [Hash] The Payment Setup (swagger `PaymentSetup`, 200). For Cash App Pay, read
60
+ # payment_methods.cashapp.action.redirect_url, payment_methods.cashapp.reference and, once only,
61
+ # payment_methods.cashapp.customer_profile.
30
62
  def create_payment_setup(payment_setups_request)
31
63
  api_client.invoke_post(
32
64
  build_path(PAYMENTS_PATH, SETUPS_PATH),
@@ -36,9 +68,9 @@ module CheckoutSdk
36
68
  end
37
69
 
38
70
  # Updates a Payment Setup.
39
- # You should update the payment setup whenever there are significant changes in the data relevant
40
- # to the customer's transaction. For example, when the customer makes a change that impacts the
41
- # total payment amount.
71
+ # Update the Payment Setup whenever there are significant changes in the data relevant to the
72
+ # customer's transaction. For example, when the customer makes a change that impacts the total
73
+ # payment amount.
42
74
  # [Beta]
43
75
  #
44
76
  # @param [String] id - The unique identifier of the Payment Setup to update
@@ -48,6 +80,38 @@ module CheckoutSdk
48
80
  # :terminal {PaymentSetupTerminal} and
49
81
  # :industry {PaymentSetupIndustry} (containing :accommodation
50
82
  # {Array(PaymentSetupAccommodation)} and :airline {Array(PaymentSetupAirline)}).
83
+ # A Hash request is sent as is, so every nested value must be a Hash too. To use one of the
84
+ # typed classes above (or {CashAppPaymentMethod}), convert it first with
85
+ # CheckoutSdk::JsonSerializer.to_custom_hash(object); a typed object nested directly in the
86
+ # Hash is not serialized and is sent as "#<CheckoutSdk::...>".
87
+ # :payment_methods may include :cashapp (the key is the single lowercase word `cashapp`), a Hash
88
+ # with the keys documented on {CashAppPaymentMethod}; you send :initialization ("disabled" or
89
+ # "enabled") and :customer_profile_sharing (Boolean).
90
+ # :customer may include:
91
+ # - :id - The unique identifier of the customer.
92
+ # - :country - The two-letter ISO country code of the customer for this payment
93
+ # (min 2 characters, max 2 characters).
94
+ # - :email - Details of the customer's email: :address (the customer's email address) and
95
+ # :verified (Boolean, whether the customer's email address is verified).
96
+ # - :name - The customer's full name (max 100 characters).
97
+ # - :tax_number - The customer's tax identification number.
98
+ # - :phone - The customer's phone number: :country_code (the international country calling
99
+ # code, min 1 character, max 7 characters) and :number (the phone number, min 6 characters,
100
+ # max 25 characters).
101
+ # - :merchant_account - Details of the account the customer holds with the merchant: :id,
102
+ # :registration_date, :last_modified, :first_transaction_date and :last_transaction_date
103
+ # (dates, yyyy-MM-dd), :returning_customer (Boolean), :total_order_count (Integer) and
104
+ # :last_payment_amount (Number).
105
+ # - :device - Details of the customer's device: :locale (the locale of the device),
106
+ # :fingerprint (a unique identifier for the customer's device), :ipv4 and :ipv6 (the
107
+ # customer's device IPv4 or IPv6 address, used by some payment methods for risk and
108
+ # eligibility checks), :client (the type of client the customer uses to initiate the
109
+ # payment, one of {PaymentSetupDeviceClient}; Cash App Pay requires it, although the API
110
+ # reference does not mark it as required) and :os (the operating system of the
111
+ # customer's device, one of {PaymentSetupDeviceOs}).
112
+ # @return [Hash] The Payment Setup (swagger `PaymentSetup`, 200). For Cash App Pay, read
113
+ # payment_methods.cashapp.action.redirect_url, payment_methods.cashapp.reference and, once only,
114
+ # payment_methods.cashapp.customer_profile.
51
115
  def update_payment_setup(id, payment_setups_request)
52
116
  api_client.invoke_put(
53
117
  build_path(PAYMENTS_PATH, SETUPS_PATH, id),
@@ -56,10 +120,13 @@ module CheckoutSdk
56
120
  )
57
121
  end
58
122
 
59
- # Retrieves a Payment Setup.
123
+ # Retrieves a Payment Setup by its unique identifier.
60
124
  # [Beta]
61
125
  #
62
126
  # @param [String] id - The unique identifier of the Payment Setup to retrieve
127
+ # @return [Hash] The Payment Setup (swagger `PaymentSetup`, 200). For Cash App Pay, read
128
+ # payment_methods.cashapp.action.redirect_url, payment_methods.cashapp.reference and, once only,
129
+ # payment_methods.cashapp.customer_profile.
63
130
  def get_payment_setup(id)
64
131
  api_client.invoke_get(
65
132
  build_path(PAYMENTS_PATH, SETUPS_PATH, id),
@@ -73,7 +140,10 @@ module CheckoutSdk
73
140
  #
74
141
  # @param [String] id - The unique identifier of the Payment Setup
75
142
  # @param [String] payment_method_name - The name of the payment method to process the
76
- # payment with (for example, "tabby", "klarna", "card")
143
+ # payment with (for example, "tabby", "klarna", "card" or "cashapp")
144
+ # @return [Hash] The Payment Setup (swagger `PaymentSetup`, 200). For Cash App Pay, read
145
+ # payment_methods.cashapp.action.redirect_url, payment_methods.cashapp.reference and, once only,
146
+ # payment_methods.cashapp.customer_profile.
77
147
  def confirm_payment_setup(id, payment_method_name)
78
148
  api_client.invoke_post(
79
149
  build_path(PAYMENTS_PATH, SETUPS_PATH, id, CONFIRM_PATH, payment_method_name),
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CheckoutSdk
4
- VERSION = '2.5.0'
4
+ VERSION = '2.7.0'
5
5
  end
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: 2.5.0
4
+ version: 2.7.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-09-30 00:00:00.000000000 Z
11
+ date: 2026-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -155,6 +155,8 @@ files:
155
155
  - lib/checkout_sdk/accounts/bank_verification.rb
156
156
  - lib/checkout_sdk/accounts/bank_verification_type.rb
157
157
  - lib/checkout_sdk/accounts/business_type.rb
158
+ - lib/checkout_sdk/accounts/certified_authorised_signatory.rb
159
+ - lib/checkout_sdk/accounts/certified_authorised_signatory_type.rb
158
160
  - lib/checkout_sdk/accounts/citizenship.rb
159
161
  - lib/checkout_sdk/accounts/company.rb
160
162
  - lib/checkout_sdk/accounts/company_position.rb
@@ -175,6 +177,7 @@ files:
175
177
  - lib/checkout_sdk/accounts/entity_requirement_update_request.rb
176
178
  - lib/checkout_sdk/accounts/entity_requirement_update_status.rb
177
179
  - lib/checkout_sdk/accounts/entity_roles.rb
180
+ - lib/checkout_sdk/accounts/file_purpose.rb
178
181
  - lib/checkout_sdk/accounts/file_request.rb
179
182
  - lib/checkout_sdk/accounts/financial_statements.rb
180
183
  - lib/checkout_sdk/accounts/financial_statements_type.rb
@@ -206,7 +209,12 @@ files:
206
209
  - lib/checkout_sdk/accounts/proof_of_legality_type.rb
207
210
  - lib/checkout_sdk/accounts/proof_of_principal_address.rb
208
211
  - lib/checkout_sdk/accounts/proof_of_principal_address_type.rb
212
+ - lib/checkout_sdk/accounts/proof_of_registration.rb
213
+ - lib/checkout_sdk/accounts/proof_of_registration_type.rb
214
+ - lib/checkout_sdk/accounts/proof_of_residential_address.rb
215
+ - lib/checkout_sdk/accounts/proof_of_residential_address_type.rb
209
216
  - lib/checkout_sdk/accounts/representative.rb
217
+ - lib/checkout_sdk/accounts/representative_documents.rb
210
218
  - lib/checkout_sdk/accounts/representative_individual.rb
211
219
  - lib/checkout_sdk/accounts/reserve_rule_create_request.rb
212
220
  - lib/checkout_sdk/accounts/reserve_rule_holding_duration.rb
@@ -585,6 +593,8 @@ files:
585
593
  - lib/checkout_sdk/payments/setups/bacs_payment_method.rb
586
594
  - lib/checkout_sdk/payments/setups/blik_payment_method.rb
587
595
  - lib/checkout_sdk/payments/setups/card_present_payment_method.rb
596
+ - lib/checkout_sdk/payments/setups/cash_app_action_type.rb
597
+ - lib/checkout_sdk/payments/setups/cash_app_payment_method.rb
588
598
  - lib/checkout_sdk/payments/setups/pay_by_bank_payment_method.rb
589
599
  - lib/checkout_sdk/payments/setups/payment_setup_accommodation.rb
590
600
  - lib/checkout_sdk/payments/setups/payment_setup_accommodation_address.rb
@@ -597,7 +607,11 @@ files:
597
607
  - lib/checkout_sdk/payments/setups/payment_setup_airline_passenger.rb
598
608
  - lib/checkout_sdk/payments/setups/payment_setup_airline_ticket.rb
599
609
  - lib/checkout_sdk/payments/setups/payment_setup_billing_descriptor.rb
610
+ - lib/checkout_sdk/payments/setups/payment_setup_device_client.rb
611
+ - lib/checkout_sdk/payments/setups/payment_setup_device_os.rb
600
612
  - lib/checkout_sdk/payments/setups/payment_setup_industry.rb
613
+ - lib/checkout_sdk/payments/setups/payment_setup_payment_method_initialization.rb
614
+ - lib/checkout_sdk/payments/setups/payment_setup_payment_method_status.rb
601
615
  - lib/checkout_sdk/payments/setups/payment_setup_presentment_details.rb
602
616
  - lib/checkout_sdk/payments/setups/payment_setup_terminal.rb
603
617
  - lib/checkout_sdk/payments/setups/payment_setups_client.rb