checkout_sdk 2.7.1 → 2.8.1
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 +4 -0
- data/lib/checkout_sdk/api_client.rb +11 -6
- data/lib/checkout_sdk/checkout_utils.rb +77 -2
- data/lib/checkout_sdk/common/account_holder.rb +78 -1
- data/lib/checkout_sdk/common/account_holder_identification.rb +21 -0
- data/lib/checkout_sdk/common/common.rb +1 -0
- data/lib/checkout_sdk/common/customer_retry.rb +14 -2
- data/lib/checkout_sdk/common/residential_status_type.rb +11 -0
- data/lib/checkout_sdk/error.rb +28 -6
- data/lib/checkout_sdk/events/events_client.rb +1 -1
- data/lib/checkout_sdk/issuing/card_update_headers.rb +11 -12
- data/lib/checkout_sdk/issuing/issuing_client.rb +20 -11
- data/lib/checkout_sdk/oauth_sdk_credentials.rb +18 -11
- data/lib/checkout_sdk/payments/card_payout_item.rb +24 -0
- data/lib/checkout_sdk/payments/card_payout_processing.rb +39 -0
- data/lib/checkout_sdk/payments/destination/bank_account_destination.rb +29 -0
- data/lib/checkout_sdk/payments/destination/card_destination.rb +20 -0
- data/lib/checkout_sdk/payments/destination/destination.rb +5 -0
- data/lib/checkout_sdk/payments/destination/destination_type.rb +7 -0
- data/lib/checkout_sdk/payments/destination/id_destination.rb +16 -0
- data/lib/checkout_sdk/payments/destination/network_token_destination.rb +63 -0
- data/lib/checkout_sdk/payments/destination/token_destination.rb +15 -0
- data/lib/checkout_sdk/payments/downtime_retry_request.rb +14 -0
- data/lib/checkout_sdk/payments/dunning_retry_request.rb +22 -0
- data/lib/checkout_sdk/payments/hosted/hosted_payment_instruction.rb +9 -0
- data/lib/checkout_sdk/payments/hosted/hosted_payments_session.rb +42 -31
- data/lib/checkout_sdk/payments/instruction_remittance.rb +17 -0
- data/lib/checkout_sdk/payments/instruction_scheme.rb +5 -0
- data/lib/checkout_sdk/payments/links/payment_link.rb +50 -29
- data/lib/checkout_sdk/payments/payment_instruction.rb +48 -1
- data/lib/checkout_sdk/payments/payment_request.rb +1 -1
- data/lib/checkout_sdk/payments/payment_retry_request.rb +9 -7
- data/lib/checkout_sdk/payments/payment_segment.rb +11 -0
- data/lib/checkout_sdk/payments/payment_type.rb +4 -1
- data/lib/checkout_sdk/payments/payments.rb +10 -0
- data/lib/checkout_sdk/payments/payments_client.rb +10 -0
- data/lib/checkout_sdk/payments/payout_billing_descriptor.rb +10 -0
- data/lib/checkout_sdk/payments/payout_request.rb +59 -1
- data/lib/checkout_sdk/payments/sender/corporate_sender.rb +19 -0
- data/lib/checkout_sdk/payments/sender/government_sender.rb +21 -0
- data/lib/checkout_sdk/payments/sender/individual_sender.rb +46 -0
- data/lib/checkout_sdk/payments/sender/instrument_sender.rb +3 -0
- data/lib/checkout_sdk/payments/sender/sender.rb +16 -0
- data/lib/checkout_sdk/payments/sessions/payment_sessions_request.rb +55 -32
- data/lib/checkout_sdk/payments/setups/account_funding_transaction_identification.rb +10 -1
- data/lib/checkout_sdk/payments/setups/account_funding_transaction_identification_type.rb +5 -4
- data/lib/checkout_sdk/payments/setups/account_funding_transaction_recipient.rb +29 -1
- data/lib/checkout_sdk/payments/setups/account_funding_transaction_sender.rb +34 -1
- data/lib/checkout_sdk/payments/setups/bacs_payment_method.rb +70 -34
- data/lib/checkout_sdk/payments/setups/cash_app_payment_method.rb +3 -3
- data/lib/checkout_sdk/payments/setups/payment_setup_payment_type.rb +19 -0
- data/lib/checkout_sdk/payments/setups/payment_setups_client.rb +10 -0
- data/lib/checkout_sdk/payments/source/currency_account_source.rb +8 -0
- data/lib/checkout_sdk/payments/source/entity_source.rb +5 -0
- data/lib/checkout_sdk/payments/source/payout_source.rb +12 -1
- data/lib/checkout_sdk/payments/unreferenced_refund_request.rb +89 -0
- data/lib/checkout_sdk/version.rb +1 -1
- metadata +25 -2
|
@@ -2,19 +2,51 @@
|
|
|
2
2
|
|
|
3
3
|
module CheckoutSdk
|
|
4
4
|
module Payments
|
|
5
|
+
# Account funding transaction sender details on a Payment Setup.
|
|
6
|
+
# Maps swagger `PaymentSetup.account_funding_transaction.sender`.
|
|
7
|
+
#
|
|
5
8
|
# @!attribute first_name
|
|
9
|
+
# The sender's first name.
|
|
10
|
+
# [Optional]
|
|
11
|
+
# @deprecated Not part of the Sender schema of the Payment Setups account funding transaction; the
|
|
12
|
+
# API ignores it on requests. There is no replacement. Will be removed in the next major version.
|
|
6
13
|
# @return [String]
|
|
7
14
|
# @!attribute last_name
|
|
15
|
+
# The sender's last name.
|
|
16
|
+
# [Optional]
|
|
17
|
+
# @deprecated Not part of the Sender schema of the Payment Setups account funding transaction; the
|
|
18
|
+
# API ignores it on requests. There is no replacement. Will be removed in the next major version.
|
|
8
19
|
# @return [String]
|
|
9
20
|
# @!attribute date_of_birth
|
|
10
|
-
#
|
|
21
|
+
# Date of birth of the sender (yyyy-mm-dd).
|
|
22
|
+
# [Optional]
|
|
23
|
+
# Format: date
|
|
24
|
+
# @return [String]
|
|
11
25
|
# @!attribute country_of_birth
|
|
26
|
+
# The sender's country of birth, as an ISO 3166-1 alpha-2 code.
|
|
27
|
+
# [Optional]
|
|
28
|
+
# @deprecated Not part of the Sender schema of the Payment Setups account funding transaction; the
|
|
29
|
+
# API ignores it on requests. There is no replacement. Will be removed in the next major version.
|
|
12
30
|
# @return [String] {CheckoutSdk::Common::Country}
|
|
13
31
|
# @!attribute nationality
|
|
32
|
+
# The sender's nationality, as an ISO 3166-1 alpha-2 code.
|
|
33
|
+
# [Optional]
|
|
34
|
+
# @deprecated Not part of the Sender schema of the Payment Setups account funding transaction; the
|
|
35
|
+
# API ignores it on requests. There is no replacement. Will be removed in the next major version.
|
|
14
36
|
# @return [String] {CheckoutSdk::Common::Country}
|
|
15
37
|
# @!attribute address
|
|
38
|
+
# The sender's address.
|
|
39
|
+
# [Optional]
|
|
40
|
+
# @deprecated Not part of the Sender schema of the Payment Setups account funding transaction; the
|
|
41
|
+
# API ignores it on requests. There is no replacement. Will be removed in the next major version.
|
|
16
42
|
# @return [CheckoutSdk::Common::Address]
|
|
43
|
+
# @!attribute reference
|
|
44
|
+
# The unique reference for the sender of the payment.
|
|
45
|
+
# [Optional]
|
|
46
|
+
# @return [String]
|
|
17
47
|
# @!attribute identification
|
|
48
|
+
# Sender identification details.
|
|
49
|
+
# [Optional]
|
|
18
50
|
# @return [AccountFundingTransactionIdentification]
|
|
19
51
|
class AccountFundingTransactionSender
|
|
20
52
|
attr_accessor :first_name,
|
|
@@ -23,6 +55,7 @@ module CheckoutSdk
|
|
|
23
55
|
:country_of_birth,
|
|
24
56
|
:nationality,
|
|
25
57
|
:address,
|
|
58
|
+
:reference,
|
|
26
59
|
:identification
|
|
27
60
|
end
|
|
28
61
|
end
|
|
@@ -2,41 +2,77 @@
|
|
|
2
2
|
|
|
3
3
|
module CheckoutSdk
|
|
4
4
|
module Payments
|
|
5
|
-
# Bacs payment method configuration on a Payment Setup. Maps swagger `Bacs`.
|
|
6
|
-
#
|
|
7
|
-
# @!attribute status
|
|
8
|
-
# @return [String] (response-only) Payment method status, one of
|
|
9
|
-
# {PaymentSetupPaymentMethodStatus} (e.g. "ready").
|
|
10
|
-
# @!attribute flags
|
|
11
|
-
# @return [Array(String)] (response-only) Diagnostic flags returned by the API.
|
|
12
|
-
# @!attribute initialization
|
|
13
|
-
# @return [String] The initialization type for the payment method.
|
|
14
|
-
# @!attribute instrument_id
|
|
15
|
-
# @return [String] (response-only) The ID of the Bacs instrument used for the payment.
|
|
16
|
-
# @!attribute account_holder
|
|
17
|
-
# @return [Hash] The account holder details (`type`, `first_name`, `last_name`,
|
|
18
|
-
# `company_name`, `email`).
|
|
19
|
-
# @!attribute account_number
|
|
20
|
-
# @return [String] The account number of the Bacs Direct Debit account.
|
|
21
|
-
# @!attribute bank_code
|
|
22
|
-
# @return [String] The bank code (sort code) of the Bacs Direct Debit account.
|
|
23
|
-
# @!attribute country
|
|
24
|
-
# @return [String] {CheckoutSdk::Common::Country}
|
|
25
|
-
# @!attribute currency
|
|
26
|
-
# @return [String] {CheckoutSdk::Common::Currency}
|
|
27
|
-
# @!attribute allow_partial_match
|
|
28
|
-
# @return [TrueClass, FalseClass] Whether to allow a partial match of the account holder details.
|
|
5
|
+
# The Bacs payment method's details and configuration on a Payment Setup. Maps swagger `Bacs`.
|
|
6
|
+
# Sent under the `payment_methods.bacs` key.
|
|
29
7
|
class BacsPaymentMethod
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
8
|
+
# The payment method status.
|
|
9
|
+
# [Optional]
|
|
10
|
+
# Read only.
|
|
11
|
+
# @return [String] One of {PaymentSetupPaymentMethodStatus}.
|
|
12
|
+
attr_accessor :status
|
|
13
|
+
|
|
14
|
+
# The list of error codes or indicators that highlight missing or invalid information.
|
|
15
|
+
# [Optional]
|
|
16
|
+
# Read only.
|
|
17
|
+
# @return [Array(String)]
|
|
18
|
+
attr_accessor :flags
|
|
19
|
+
|
|
20
|
+
# The initialization state of the payment method.
|
|
21
|
+
# When you create a Payment Setup, this defaults to `disabled`.
|
|
22
|
+
# On update the API replaces the payment methods, so send `enabled` again to keep the method enabled.
|
|
23
|
+
# The specification does not state this; it is the API's behaviour.
|
|
24
|
+
# [Optional]
|
|
25
|
+
# Default: disabled
|
|
26
|
+
# @return [String] One of {PaymentSetupPaymentMethodInitialization}.
|
|
27
|
+
attr_accessor :initialization
|
|
28
|
+
|
|
29
|
+
# The ID of the Bacs instrument used for the payment.
|
|
30
|
+
# [Optional]
|
|
31
|
+
# Read only.
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :instrument_id
|
|
34
|
+
|
|
35
|
+
# The account holder details.
|
|
36
|
+
# [Optional]
|
|
37
|
+
# Keys:
|
|
38
|
+
# - `type` (String): The type of account holder. Enum: "individual" "corporate".
|
|
39
|
+
# - `first_name` (String): The first name of the account holder.
|
|
40
|
+
# - `last_name` (String): The last name of the account holder.
|
|
41
|
+
# - `company_name` (String): The legal name of a registered company that holds the account.
|
|
42
|
+
# - `email` (String): The email address of the account holder.
|
|
43
|
+
# @return [Hash]
|
|
44
|
+
attr_accessor :account_holder
|
|
45
|
+
|
|
46
|
+
# The account number of the Bacs Direct Debit account.
|
|
47
|
+
# [Optional]
|
|
48
|
+
# Write only.
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :account_number
|
|
51
|
+
|
|
52
|
+
# The sort code of the Bacs Direct Debit account.
|
|
53
|
+
# [Optional]
|
|
54
|
+
# Write only.
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :bank_code
|
|
57
|
+
|
|
58
|
+
# The account's country, as an ISO 3166-1 alpha-2 code.
|
|
59
|
+
# [Optional]
|
|
60
|
+
# min 2 characters, max 2 characters
|
|
61
|
+
# @return [String] {CheckoutSdk::Common::Country}
|
|
62
|
+
attr_accessor :country
|
|
63
|
+
|
|
64
|
+
# The account holder's account currency.
|
|
65
|
+
# [Optional]
|
|
66
|
+
# @return [String] {CheckoutSdk::Common::Currency}
|
|
67
|
+
attr_accessor :currency
|
|
68
|
+
|
|
69
|
+
# Indicates whether the Bacs instrument is created when account validation returns a partial
|
|
70
|
+
# match. When `true`, the instrument is created on a partial match; when `false`, instrument
|
|
71
|
+
# creation fails on a partial match.
|
|
72
|
+
# [Optional]
|
|
73
|
+
# Default: false
|
|
74
|
+
# @return [TrueClass, FalseClass]
|
|
75
|
+
attr_accessor :allow_partial_match
|
|
40
76
|
end
|
|
41
77
|
end
|
|
42
78
|
end
|
|
@@ -18,7 +18,6 @@ module CheckoutSdk
|
|
|
18
18
|
# The payment method status.
|
|
19
19
|
# [Optional]
|
|
20
20
|
# Read only.
|
|
21
|
-
# Enum: "unavailable" "action_required" "ready" "initialization_required" "invalid"
|
|
22
21
|
# @return [String] One of {PaymentSetupPaymentMethodStatus}.
|
|
23
22
|
attr_accessor :status
|
|
24
23
|
|
|
@@ -30,9 +29,10 @@ module CheckoutSdk
|
|
|
30
29
|
|
|
31
30
|
# The initialization state of the payment method.
|
|
32
31
|
# When you create a Payment Setup, this defaults to `disabled`.
|
|
32
|
+
# On update the API replaces the payment methods, so send `enabled` again to keep the method enabled.
|
|
33
|
+
# The specification does not state this; it is the API's behaviour.
|
|
33
34
|
# [Optional]
|
|
34
|
-
# Default:
|
|
35
|
-
# Enum: "disabled" "enabled"
|
|
35
|
+
# Default: disabled
|
|
36
36
|
# @return [String] One of {PaymentSetupPaymentMethodInitialization}.
|
|
37
37
|
attr_accessor :initialization
|
|
38
38
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
# The type of payment on a Payment Setup. Maps swagger `PaymentSetup.payment_type`.
|
|
6
|
+
#
|
|
7
|
+
# The Payment Setups API declares these values in lowercase, unlike {PaymentType}, which is the
|
|
8
|
+
# capitalized enum of the payments API. Use this module for the :payment_type key of a Payment
|
|
9
|
+
# Setup request. When :payment_type is not sent, the API uses "regular".
|
|
10
|
+
module PaymentSetupPaymentType
|
|
11
|
+
REGULAR = 'regular'
|
|
12
|
+
RECURRING = 'recurring'
|
|
13
|
+
MOTO = 'moto'
|
|
14
|
+
INSTALLMENT = 'installment'
|
|
15
|
+
PAY_LATER = 'pay_later'
|
|
16
|
+
UNSCHEDULED = 'unscheduled'
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -32,6 +32,11 @@ module CheckoutSdk
|
|
|
32
32
|
# {PaymentSetupRisk}), convert it first with
|
|
33
33
|
# CheckoutSdk::JsonSerializer.to_custom_hash(object); a typed object nested directly in the
|
|
34
34
|
# Hash is not serialized and is sent as "#<CheckoutSdk::...>".
|
|
35
|
+
# :payment_type - String, the type of payment, one of {PaymentSetupPaymentType} (lowercase,
|
|
36
|
+
# unlike {PaymentType}): "regular", "recurring", "moto", "installment", "pay_later" or
|
|
37
|
+
# "unscheduled". Default "regular". You must provide it for card payments in which the
|
|
38
|
+
# cardholder is not present, for example a recurring payment or a mail order/telephone order
|
|
39
|
+
# (MOTO) payment.
|
|
35
40
|
# :payment_methods may include :cashapp (the key is the single lowercase word `cashapp`), a Hash
|
|
36
41
|
# with the keys documented on {CashAppPaymentMethod}; you send :initialization ("disabled" or
|
|
37
42
|
# "enabled") and :customer_profile_sharing (Boolean).
|
|
@@ -128,6 +133,11 @@ module CheckoutSdk
|
|
|
128
133
|
# {PaymentSetupRisk}), convert it first with
|
|
129
134
|
# CheckoutSdk::JsonSerializer.to_custom_hash(object); a typed object nested directly in the
|
|
130
135
|
# Hash is not serialized and is sent as "#<CheckoutSdk::...>".
|
|
136
|
+
# :payment_type - String, the type of payment, one of {PaymentSetupPaymentType} (lowercase,
|
|
137
|
+
# unlike {PaymentType}): "regular", "recurring", "moto", "installment", "pay_later" or
|
|
138
|
+
# "unscheduled". Default "regular". You must provide it for card payments in which the
|
|
139
|
+
# cardholder is not present, for example a recurring payment or a mail order/telephone order
|
|
140
|
+
# (MOTO) payment.
|
|
131
141
|
# :payment_methods may include :cashapp (the key is the single lowercase word `cashapp`), a Hash
|
|
132
142
|
# with the keys documented on {CashAppPaymentMethod}; you send :initialization ("disabled" or
|
|
133
143
|
# "enabled") and :customer_profile_sharing (Boolean).
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
module CheckoutSdk
|
|
4
4
|
module Payments
|
|
5
|
+
# A currency account source, with type currency_account.
|
|
6
|
+
# Used by card payouts, bank payouts and unreferenced refunds.
|
|
7
|
+
#
|
|
8
|
+
# id: the ID of the currency account that will fund the payout or the unreferenced refund. For bank
|
|
9
|
+
# payouts, its holding currency must match the payout's currency.
|
|
10
|
+
# [Required]
|
|
11
|
+
# ^(ca)_(\w{26})$
|
|
12
|
+
# 29 characters
|
|
5
13
|
class CurrencyAccountSource < PayoutSource
|
|
6
14
|
def initialize
|
|
7
15
|
super(PayoutSourceType::CURRENCY_ACCOUNT)
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module CheckoutSdk
|
|
4
4
|
module Payments
|
|
5
|
+
# An entity source, with type entity. Bank payouts only.
|
|
6
|
+
#
|
|
7
|
+
# id: the entity or sub-entity's identifier, only applies to Platform Clients.
|
|
8
|
+
# [Required]
|
|
9
|
+
# ^(ent)_(\w{26})$
|
|
5
10
|
class EntitySource < PayoutSource
|
|
6
11
|
def initialize
|
|
7
12
|
super(PayoutSourceType::ENTITY)
|
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
module CheckoutSdk
|
|
4
4
|
module Payments
|
|
5
|
+
# The source of a card payout, bank payout or unreferenced refund.
|
|
6
|
+
#
|
|
5
7
|
# @!attribute type
|
|
8
|
+
# The payout source type. Set by each subclass.
|
|
9
|
+
# [Required]
|
|
6
10
|
# @return [String] {PayoutSourceType}
|
|
7
11
|
# @!attribute id
|
|
12
|
+
# The identifier of the source. See {CurrencyAccountSource} and {EntitySource} for the format.
|
|
13
|
+
# [Required]
|
|
8
14
|
# @return [String]
|
|
9
15
|
# @!attribute amount
|
|
10
|
-
#
|
|
16
|
+
# The amount of the source.
|
|
17
|
+
# [Optional]
|
|
18
|
+
# @deprecated Not in the request schema of any payout or unreferenced refund source; still returned in
|
|
19
|
+
# PayoutDetails (source.amount). Retained for backwards compatibility and will be removed in the next
|
|
20
|
+
# major version. There is no replacement.
|
|
21
|
+
# @return [Integer]
|
|
11
22
|
class PayoutSource
|
|
12
23
|
attr_reader :type
|
|
13
24
|
attr_accessor :id,
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
# An unreferenced refund request, sent to POST /payments.
|
|
6
|
+
# The payment_type is set to UnreferencedRefund by the constructor.
|
|
7
|
+
#
|
|
8
|
+
# @!attribute source
|
|
9
|
+
# The source of the unreferenced refund.
|
|
10
|
+
# Only type and id are part of this position; amount is not used.
|
|
11
|
+
# [Required]
|
|
12
|
+
# @return [CurrencyAccountSource]
|
|
13
|
+
# @!attribute destination
|
|
14
|
+
# The destination of the unreferenced refund.
|
|
15
|
+
# Takes {CardDestination}, {NetworkTokenDestination}, {IdDestination} or {TokenDestination}.
|
|
16
|
+
# [Required]
|
|
17
|
+
# @return [Destination]
|
|
18
|
+
# @!attribute instruction
|
|
19
|
+
# Additional details about the unreferenced refund instruction.
|
|
20
|
+
# Only funds_transfer_type and purpose are part of this position.
|
|
21
|
+
# [Optional]
|
|
22
|
+
# @return [PaymentInstruction]
|
|
23
|
+
# @!attribute amount
|
|
24
|
+
# The amount in minor currency.
|
|
25
|
+
# [Required]
|
|
26
|
+
# Format: int64
|
|
27
|
+
# min 1
|
|
28
|
+
# max 9999999999
|
|
29
|
+
# @return [Integer]
|
|
30
|
+
# @!attribute currency
|
|
31
|
+
# The three-letter ISO currency code of the payment.
|
|
32
|
+
# [Required]
|
|
33
|
+
# 3 characters
|
|
34
|
+
# @return [String] {CheckoutSdk::Common::Currency}
|
|
35
|
+
# @!attribute payment_type
|
|
36
|
+
# The type of the payment. Set to UnreferencedRefund by the constructor.
|
|
37
|
+
# [Required]
|
|
38
|
+
# Enum: "UnreferencedRefund"
|
|
39
|
+
# @return [String]
|
|
40
|
+
# @!attribute processing_channel_id
|
|
41
|
+
# The processing channel identifier.
|
|
42
|
+
# [Required]
|
|
43
|
+
# ^(pc)_(\w{26})$
|
|
44
|
+
# @return [String]
|
|
45
|
+
# @!attribute reference
|
|
46
|
+
# An internal reference you can later use to identify this payment.
|
|
47
|
+
# [Optional]
|
|
48
|
+
# @return [String]
|
|
49
|
+
# @!attribute metadata
|
|
50
|
+
# A set of key-value pairs that you can attach to the refund request. It can be useful for storing
|
|
51
|
+
# additional information in a structured format. Note: this object only allows one level of depth,
|
|
52
|
+
# so cannot accept non-primitive data types such as objects or arrays.
|
|
53
|
+
# [Optional]
|
|
54
|
+
# @return [Hash{String => Object}]
|
|
55
|
+
# @!attribute previous_payment_id
|
|
56
|
+
# The previous related payment identifier. This could be the ID of the payment that you want to refund.
|
|
57
|
+
# [Optional]
|
|
58
|
+
# @return [String]
|
|
59
|
+
# @!attribute segment
|
|
60
|
+
# The dimension details about business segment for payment request. At least one dimension required.
|
|
61
|
+
# [Optional]
|
|
62
|
+
# @return [PaymentSegment]
|
|
63
|
+
# @!attribute processing
|
|
64
|
+
# Returns information related to the processing of the payment.
|
|
65
|
+
# Only processing_speed is part of this position.
|
|
66
|
+
# [Optional]
|
|
67
|
+
# @return [CardPayoutProcessing]
|
|
68
|
+
class UnreferencedRefundRequest
|
|
69
|
+
PAYMENT_TYPE = 'UnreferencedRefund'
|
|
70
|
+
|
|
71
|
+
attr_reader :payment_type
|
|
72
|
+
attr_accessor :source,
|
|
73
|
+
:destination,
|
|
74
|
+
:instruction,
|
|
75
|
+
:amount,
|
|
76
|
+
:currency,
|
|
77
|
+
:processing_channel_id,
|
|
78
|
+
:reference,
|
|
79
|
+
:metadata,
|
|
80
|
+
:previous_payment_id,
|
|
81
|
+
:segment,
|
|
82
|
+
:processing
|
|
83
|
+
|
|
84
|
+
def initialize
|
|
85
|
+
@payment_type = PAYMENT_TYPE
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
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: 2.
|
|
4
|
+
version: 2.8.1
|
|
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-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -66,6 +66,20 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0.60'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: csv
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '3.0'
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '3.0'
|
|
69
83
|
- !ruby/object:Gem::Dependency
|
|
70
84
|
name: faraday
|
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -297,6 +311,7 @@ files:
|
|
|
297
311
|
- lib/checkout_sdk/common/payment_source_type.rb
|
|
298
312
|
- lib/checkout_sdk/common/phone.rb
|
|
299
313
|
- lib/checkout_sdk/common/product.rb
|
|
314
|
+
- lib/checkout_sdk/common/residential_status_type.rb
|
|
300
315
|
- lib/checkout_sdk/common/shipping_info.rb
|
|
301
316
|
- lib/checkout_sdk/common/update_customer_request.rb
|
|
302
317
|
- lib/checkout_sdk/compliance_requests/compliance_request_responded_field.rb
|
|
@@ -476,6 +491,8 @@ files:
|
|
|
476
491
|
- lib/checkout_sdk/payments/capture_request.rb
|
|
477
492
|
- lib/checkout_sdk/payments/capture_type.rb
|
|
478
493
|
- lib/checkout_sdk/payments/card.rb
|
|
494
|
+
- lib/checkout_sdk/payments/card_payout_item.rb
|
|
495
|
+
- lib/checkout_sdk/payments/card_payout_processing.rb
|
|
479
496
|
- lib/checkout_sdk/payments/charge_bearer.rb
|
|
480
497
|
- lib/checkout_sdk/payments/contexts/payment_contexts_client.rb
|
|
481
498
|
- lib/checkout_sdk/payments/d_local_installments.rb
|
|
@@ -485,7 +502,10 @@ files:
|
|
|
485
502
|
- lib/checkout_sdk/payments/destination/destination.rb
|
|
486
503
|
- lib/checkout_sdk/payments/destination/destination_type.rb
|
|
487
504
|
- lib/checkout_sdk/payments/destination/id_destination.rb
|
|
505
|
+
- lib/checkout_sdk/payments/destination/network_token_destination.rb
|
|
488
506
|
- lib/checkout_sdk/payments/destination/token_destination.rb
|
|
507
|
+
- lib/checkout_sdk/payments/downtime_retry_request.rb
|
|
508
|
+
- lib/checkout_sdk/payments/dunning_retry_request.rb
|
|
489
509
|
- lib/checkout_sdk/payments/exemption.rb
|
|
490
510
|
- lib/checkout_sdk/payments/flight_leg_details.rb
|
|
491
511
|
- lib/checkout_sdk/payments/flow/flow_client.rb
|
|
@@ -497,6 +517,7 @@ files:
|
|
|
497
517
|
- lib/checkout_sdk/payments/hosted/hosted_payments_client.rb
|
|
498
518
|
- lib/checkout_sdk/payments/hosted/hosted_payments_session.rb
|
|
499
519
|
- lib/checkout_sdk/payments/hosted/payment_purpose_type.rb
|
|
520
|
+
- lib/checkout_sdk/payments/instruction_remittance.rb
|
|
500
521
|
- lib/checkout_sdk/payments/instruction_scheme.rb
|
|
501
522
|
- lib/checkout_sdk/payments/links/payment_link.rb
|
|
502
523
|
- lib/checkout_sdk/payments/links/payments_links_client.rb
|
|
@@ -612,6 +633,7 @@ files:
|
|
|
612
633
|
- lib/checkout_sdk/payments/setups/payment_setup_industry.rb
|
|
613
634
|
- lib/checkout_sdk/payments/setups/payment_setup_payment_method_initialization.rb
|
|
614
635
|
- lib/checkout_sdk/payments/setups/payment_setup_payment_method_status.rb
|
|
636
|
+
- lib/checkout_sdk/payments/setups/payment_setup_payment_type.rb
|
|
615
637
|
- lib/checkout_sdk/payments/setups/payment_setup_presentment_details.rb
|
|
616
638
|
- lib/checkout_sdk/payments/setups/payment_setup_risk.rb
|
|
617
639
|
- lib/checkout_sdk/payments/setups/payment_setup_terminal.rb
|
|
@@ -686,6 +708,7 @@ files:
|
|
|
686
708
|
- lib/checkout_sdk/payments/three_ds_flow_type.rb
|
|
687
709
|
- lib/checkout_sdk/payments/three_ds_request.rb
|
|
688
710
|
- lib/checkout_sdk/payments/ticket.rb
|
|
711
|
+
- lib/checkout_sdk/payments/unreferenced_refund_request.rb
|
|
689
712
|
- lib/checkout_sdk/payments/user_action.rb
|
|
690
713
|
- lib/checkout_sdk/payments/void_request.rb
|
|
691
714
|
- lib/checkout_sdk/platform_type.rb
|