checkout_sdk 1.11.0 → 1.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45ebb2b2eaa19b09ab21a461f8a5dd756a97e29d1bd06740e9de75b851100662
4
- data.tar.gz: 5d28f0b1d1187bfb0ef21230eb51397f6b9ec8af9953763957f8fdd50a41753a
3
+ metadata.gz: 7c26660018aea61f28d8d1e742c57948b6ebadadb0440e245ca45eb14d53eede
4
+ data.tar.gz: 3192d546b4240013ac01de9de0411f6654a974e465e285529f36d3df666f345c
5
5
  SHA512:
6
- metadata.gz: e6b22a9a4f136e7f9615a3ea24addfd683af30d416728e51fac8c145fe4c37c049d2bd97a2933161a4facf45cf1777e0b6da304c2b1ee035ccb2d467b05c6e26
7
- data.tar.gz: '08954406dad8050207e56060670a2e2ea44c39339d95684abc4ed0ec7f71fc860ccacf8430c2854fe7b3037adbac0bea61ffd96344c4df2a9bb07bdd09540fa8'
6
+ metadata.gz: 1791fa5f04fe3a5628e4804312fc778ff407398f657e47c1b51e85844251e4e28f81d88593a994b0318212fc016eb42f392f6de2612dc856aad55430783e7558
7
+ data.tar.gz: cf4e630a4fd64a029bae0238c0e32bbdb0ab1a4576324fe31a7d09e74bfd54842440baf2725837527118d78d0b2a36b100f2051701c5fa50926c31bae4250c88
@@ -22,6 +22,7 @@ require 'checkout_sdk/accounts/profile'
22
22
  require 'checkout_sdk/accounts/accounts_client'
23
23
  require 'checkout_sdk/accounts/entity_financial_documents'
24
24
  require 'checkout_sdk/accounts/document_type'
25
+ require 'checkout_sdk/accounts/instrument_document_type'
25
26
  require 'checkout_sdk/accounts/company'
26
27
  require 'checkout_sdk/accounts/phone'
27
28
  require 'checkout_sdk/accounts/contact_details'
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Accounts
5
+ # The document type accepted by the legal document that verifies a bank account when
6
+ # creating a payment instrument.
7
+ #
8
+ # Deliberately separate from DocumentType, which lists identity documents (passport,
9
+ # national identity card, driving license). The API keeps the bank account document type
10
+ # as its own enum whose only accepted value is bank_statement, so offering it alongside
11
+ # the identity documents would suggest it is valid where the API rejects it, and vice
12
+ # versa.
13
+ module InstrumentDocumentType
14
+ BANK_STATEMENT = 'bank_statement'
15
+ end
16
+ end
17
+ end
@@ -5,12 +5,94 @@ module CheckoutSdk
5
5
  # Response-side `processing` object returned alongside payment responses.
6
6
  # Distinct from {ProcessingSettings} which is the request-side equivalent.
7
7
  #
8
- # Mirrors the swagger ProcessingData schema:
9
- # preferred_scheme, app_id, partner_*, tax_amount, locale, retrieval_reference_number,
10
- # cko_network_token_available (SDK-only), aft, merchant_category_code, scheme_merchant_id,
11
- # pan_type_processed, fallback_source_used, failure_code, partner_code, partner_response_code,
12
- # scheme, partner_fraud_status, partner_merchant_advice_code, accommodation_data, airline_data,
13
- # custom_payment_method_ids
8
+ # Mirrors the swagger ProcessingData schema, referenced by PaymentDetails.processing
9
+ # (GET /payments/{id}).
10
+ #
11
+ # @!attribute preferred_scheme
12
+ # @return [String] [Optional] The preferred scheme for co-badged card payment processing.
13
+ # If performing 3DS via a third party, this is the scheme that processed 3DS. Does not
14
+ # support PINless debit schemes in the US (STAR, PULSE, NYCE, ACCEL, SHAZAM).
15
+ # Enum: "mastercard" "visa" "cartes_bancaires"
16
+ # @!attribute app_id
17
+ # @return [String] [Optional] The customer's application identifier.
18
+ # @!attribute partner_customer_id
19
+ # @return [String] [Optional] The customer's ID on the partner platform.
20
+ # @!attribute partner_payment_id
21
+ # @return [String] [Optional] The partner-originated unique payment identifier.
22
+ # @!attribute tax_amount
23
+ # @return [Numeric] [Optional] Total tax amount of the order.
24
+ # @!attribute locale
25
+ # @return [String] [Optional] The language and region of the customer. ISO 639-2 language
26
+ # code, its value consists of language-country. Pattern:
27
+ # ^[a-z]{2}(?:-[A-Z][a-z]{3})?(?:-(?:[A-Z]{2}))?$ - min 2 characters, max 10 characters
28
+ # @!attribute retrieval_reference_number
29
+ # @return [String] [Optional] A unique identifier for the authorization provided by partner.
30
+ # @!attribute partner_order_id
31
+ # @return [String] [Optional] The Klarna order ID associated with the payment.
32
+ # @!attribute partner_status
33
+ # @return [String] [Optional] Status of a payment provided by partner.
34
+ # @!attribute partner_transaction_id
35
+ # @return [String] [Optional] Unique transaction identification provided by partner.
36
+ # @!attribute partner_error_codes
37
+ # @return [Array<String>] [Optional] The list of error codes that led the payment to fail or
38
+ # be declined, as given by the payment provider.
39
+ # @!attribute partner_error_message
40
+ # @return [String] [Optional] Error description provided by partner.
41
+ # @!attribute partner_authorization_code
42
+ # @return [String] [Optional] Authorization code provided by partner.
43
+ # @!attribute partner_authorization_response_code
44
+ # @return [String] [Optional] Authorization response code provided by partner.
45
+ # @!attribute partner_fraud_status
46
+ # @return [String] [Optional] Partner fraud status. If the status is Pending, and the
47
+ # merchant captures before it changes to Accepted, the risk of the transaction is solely
48
+ # on the merchant.
49
+ # @!attribute partner_merchant_advice_code
50
+ # @return [String] [Optional] The Mastercard Merchant Advice Code (MAC), which contains
51
+ # additional information about the transaction. For declined transactions it also
52
+ # indicates whether the payment can be retried and how long to wait.
53
+ # @!attribute custom_payment_method_ids
54
+ # @return [Array<String>] [Optional] An array defining which of the configured payment
55
+ # options within a payment category (for example, pay_later or pay_over_time) should be
56
+ # displayed for this purchase.
57
+ # @!attribute aft
58
+ # @return [Boolean] [Optional] Indicates whether the payment is an Account Funding
59
+ # Transaction.
60
+ # @!attribute merchant_category_code
61
+ # @return [String] [Optional] Four-digit code for retail financial services expressed in
62
+ # ISO 18245 format, classifying the types of goods or services you provide.
63
+ # @!attribute scheme_merchant_id
64
+ # @return [String] [Optional] The merchant identifier that was configured with the scheme
65
+ # and used for the payment.
66
+ # @!attribute pan_type_processed
67
+ # @return [String] [Optional] The type of Primary Account Number (PAN) used for the payment.
68
+ # DPAN indicates a network token was used, FPAN indicates the full card was used.
69
+ # Enum: "fpan" "dpan"
70
+ # @!attribute fallback_source_used
71
+ # @return [Boolean] [Optional] Indicates whether the fallback_source field was used for
72
+ # the payment.
73
+ # @!attribute failure_code
74
+ # @return [String] [Optional] A high-level failure category returned by the payment provider
75
+ # when a payment is declined or fails. Not all payment methods return this field.
76
+ # @!attribute partner_code
77
+ # @return [String] [Optional] The 6-digit partner code returned by the payment provider.
78
+ # Returned when source.type is blik. Pattern: ^\d{6}$ - 6 characters
79
+ # @!attribute partner_response_code
80
+ # @return [String] [Optional] The raw response code returned by the payment provider when a
81
+ # payment is declined or fails. Not all payment methods return this field.
82
+ # @!attribute scheme
83
+ # @return [String] [Optional] The scheme on which the payment was authorized. This may
84
+ # differ from the card's scheme used for the payment if the card is co-badged and the
85
+ # payment was authorized on a different network. Read-only.
86
+ # @!attribute accommodation_data
87
+ # @return [Array<AccommodationData>] [Optional] Contains information about the accommodation
88
+ # booked by the customer.
89
+ # @!attribute airline_data
90
+ # @return [Array<AirlineData>] [Optional] Contains information about the airline ticket and
91
+ # flights booked by the customer.
92
+ # @!attribute scheme_transaction_link_id
93
+ # @return [String] [Optional] The scheme transaction link identifier. Returned for
94
+ # Mastercard transactions when the scheme provides a link identifier that ties together
95
+ # related transactions on the network.
14
96
  class ProcessingData
15
97
  attr_accessor :preferred_scheme,
16
98
  :app_id,
@@ -39,7 +121,8 @@ module CheckoutSdk
39
121
  :partner_response_code,
40
122
  :scheme,
41
123
  :accommodation_data,
42
- :airline_data
124
+ :airline_data,
125
+ :scheme_transaction_link_id
43
126
  end
44
127
  end
45
128
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CheckoutSdk
4
- VERSION = '1.11.0'
4
+ VERSION = '1.12.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: 1.11.0
4
+ version: 1.12.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-08-06 00:00:00.000000000 Z
11
+ date: 2026-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -188,6 +188,7 @@ files:
188
188
  - lib/checkout_sdk/accounts/instrument_details_faster_payments.rb
189
189
  - lib/checkout_sdk/accounts/instrument_details_sepa.rb
190
190
  - lib/checkout_sdk/accounts/instrument_document.rb
191
+ - lib/checkout_sdk/accounts/instrument_document_type.rb
191
192
  - lib/checkout_sdk/accounts/invitee.rb
192
193
  - lib/checkout_sdk/accounts/national_id_type.rb
193
194
  - lib/checkout_sdk/accounts/onboard_entity.rb