stripe 21.2.0.pre.alpha.1 → 21.2.0.pre.alpha.2
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/lib/stripe/api_operations/singleton_save.rb +4 -4
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +22 -0
- data/lib/stripe/events/v2_money_management_dispute_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_lost_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_won_event.rb +44 -0
- data/lib/stripe/events/v2_risk_evaluation_outcome_delinquency_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +3 -0
- data/lib/stripe/params/balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing_portal/session_create_params.rb +13 -0
- data/lib/stripe/params/checkout/session_create_params.rb +208 -4
- data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +37 -1
- data/lib/stripe/params/crypto/onramp_session_create_params.rb +4 -0
- data/lib/stripe/params/customer_create_params.rb +7 -1
- data/lib/stripe/params/customer_update_params.rb +7 -1
- data/lib/stripe/params/invoice_rendering_template_create_params.rb +14 -2
- data/lib/stripe/params/invoice_rendering_template_update_params.rb +14 -2
- data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +96 -4
- data/lib/stripe/params/payment_intent_create_params.rb +96 -4
- data/lib/stripe/params/payment_intent_update_params.rb +96 -4
- data/lib/stripe/params/payment_method_configuration_create_params.rb +63 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +63 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +15 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_create_params.rb +182 -9
- data/lib/stripe/params/v2/billing/contract_update_params.rb +328 -16
- data/lib/stripe/params/v2/core/account_create_params.rb +432 -3
- data/lib/stripe/params/v2/core/account_token_create_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +436 -4
- data/lib/stripe/params/v2/core/fee_batch_list_params.rb +7 -1
- data/lib/stripe/params/v2/money_management/dispute_adjustment_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/dispute_adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/dispute_create_params.rb +37 -0
- data/lib/stripe/params/v2/money_management/dispute_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/dispute_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +41 -1
- data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_create_params.rb +24 -8
- data/lib/stripe/params/v2/money_management/spending_mandate_create_params.rb +51 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/spending_mandate_update_params.rb +39 -0
- data/lib/stripe/params/v2/money_management/test_helpers/financial_address_debit_params.rb +20 -1
- data/lib/stripe/params/v2/risk/evaluation_outcome_list_params.rb +34 -0
- data/lib/stripe/params/v2/risk/evaluation_outcome_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_fail_params.rb +19 -0
- data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_succeed_params.rb +12 -0
- data/lib/stripe/params.rb +27 -5
- data/lib/stripe/resources/billing_portal/session.rb +16 -0
- data/lib/stripe/resources/cash_balance.rb +1 -1
- data/lib/stripe/resources/charge.rb +32 -0
- data/lib/stripe/resources/checkout/session.rb +65 -2
- data/lib/stripe/resources/confirmation_token.rb +54 -2
- data/lib/stripe/resources/customer.rb +4 -0
- data/lib/stripe/resources/customer_tax_exemption.rb +2 -0
- data/lib/stripe/resources/dispute.rb +4 -0
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice.rb +0 -30
- data/lib/stripe/resources/invoice_rendering_template.rb +19 -1
- data/lib/stripe/resources/issuing/authorization.rb +18 -0
- data/lib/stripe/resources/issuing/card.rb +28 -0
- data/lib/stripe/resources/issuing/transaction.rb +18 -0
- data/lib/stripe/resources/mandate.rb +65 -0
- data/lib/stripe/resources/payment_attempt_record.rb +46 -0
- data/lib/stripe/resources/payment_intent.rb +113 -103
- data/lib/stripe/resources/payment_link.rb +2 -0
- data/lib/stripe/resources/payment_method.rb +53 -1
- data/lib/stripe/resources/payment_method_configuration.rb +102 -0
- data/lib/stripe/resources/payment_record.rb +46 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -30
- data/lib/stripe/resources/radar/account_evaluation.rb +36 -2
- data/lib/stripe/resources/reserve/plan.rb +1 -1
- data/lib/stripe/resources/risk/form.rb +44 -1
- data/lib/stripe/resources/setup_attempt.rb +91 -0
- data/lib/stripe/resources/setup_intent.rb +1 -1
- data/lib/stripe/resources/source.rb +2 -2
- data/lib/stripe/resources/subscription.rb +0 -20
- data/lib/stripe/resources/tax/calculation.rb +1 -1
- data/lib/stripe/resources/tax/form.rb +6 -0
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/terminal/configuration.rb +1 -1
- data/lib/stripe/resources/terminal/onboarding_link.rb +2 -1
- data/lib/stripe/resources/terminal/reader.rb +17 -1
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -1
- data/lib/stripe/resources/three_d_secure/authentication.rb +1 -1
- data/lib/stripe/resources/v2/billing/contract.rb +285 -6
- data/lib/stripe/resources/v2/billing/contract_term.rb +133 -6
- data/lib/stripe/resources/v2/core/account.rb +2709 -322
- data/lib/stripe/resources/v2/core/fee_batch.rb +3 -0
- data/lib/stripe/resources/v2/core/fee_entry.rb +33 -3
- data/lib/stripe/resources/v2/money_management/dispute.rb +78 -0
- data/lib/stripe/resources/v2/money_management/dispute_adjustment.rb +53 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +45 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer_mandate.rb +6 -4
- data/lib/stripe/resources/v2/money_management/received_debit.rb +27 -1
- data/lib/stripe/resources/v2/money_management/spending_mandate.rb +18 -2
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/resources/v2/risk/evaluation_outcome.rb +305 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +34 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +23 -0
- data/lib/stripe/resources.rb +30 -0
- data/lib/stripe/services/checkout/session_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +0 -11
- data/lib/stripe/services/risk/form_service.rb +44 -1
- data/lib/stripe/services/subscription_service.rb +0 -11
- data/lib/stripe/services/terminal/onboarding_link_service.rb +1 -0
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +1 -1
- data/lib/stripe/services/v2/core/fee_batch_service.rb +4 -1
- data/lib/stripe/services/v2/core/fee_entry_service.rb +3 -1
- data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +1 -0
- data/lib/stripe/services/v2/money_management/dispute_adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/dispute_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_mandate_service.rb +6 -3
- data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +26 -0
- data/lib/stripe/services/v2/money_management_service.rb +3 -1
- data/lib/stripe/services/v2/risk/evaluation_outcome_service.rb +32 -0
- data/lib/stripe/services/v2/risk_service.rb +2 -1
- data/lib/stripe/services/v2/test_helpers/money_management/inbound_transfer_service.rb +34 -0
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +8 -0
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/stripe_event_notification_handler.rb +24 -0
- data/lib/stripe/stripe_object.rb +14 -4
- data/lib/stripe/util.rb +21 -2
- data/lib/stripe/v2_type_coercion.rb +6 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -0
- data/rbi/stripe.rbi +8211 -782
- metadata +26 -4
- data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +0 -19
- data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
class DisputeCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class Target < ::Stripe::RequestParams
|
|
9
|
+
# If applicable, the ID of the ReceivedDebit being disputed.
|
|
10
|
+
attr_accessor :received_debit
|
|
11
|
+
# The type of money movement being disputed.
|
|
12
|
+
attr_accessor :type
|
|
13
|
+
|
|
14
|
+
def initialize(received_debit: nil, type: nil)
|
|
15
|
+
@received_debit = received_debit
|
|
16
|
+
@type = type
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
# Additional information explaining the dispute. Must contain non-whitespace text and be no longer than 5000 characters.
|
|
20
|
+
attr_accessor :explanation
|
|
21
|
+
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
22
|
+
attr_accessor :metadata
|
|
23
|
+
# The FinancialAccount holder's reason for disputing the money movement.
|
|
24
|
+
attr_accessor :reason
|
|
25
|
+
# The money movement being disputed.
|
|
26
|
+
attr_accessor :target
|
|
27
|
+
|
|
28
|
+
def initialize(explanation: nil, metadata: nil, reason: nil, target: nil)
|
|
29
|
+
@explanation = explanation
|
|
30
|
+
@metadata = metadata
|
|
31
|
+
@reason = reason
|
|
32
|
+
@target = target
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
class DisputeListParams < ::Stripe::RequestParams
|
|
8
|
+
# Filter results by the ID of the FinancialAccount associated with the dispute.
|
|
9
|
+
attr_accessor :financial_account
|
|
10
|
+
# Maximum number of results to return, between 1 and 100. Defaults to 10.
|
|
11
|
+
attr_accessor :limit
|
|
12
|
+
# Filter results to Disputes with any of the provided statuses.
|
|
13
|
+
attr_accessor :statuses
|
|
14
|
+
# Filter results by the ID of the disputed money movement.
|
|
15
|
+
attr_accessor :target
|
|
16
|
+
|
|
17
|
+
def initialize(financial_account: nil, limit: nil, statuses: nil, target: nil)
|
|
18
|
+
@financial_account = financial_account
|
|
19
|
+
@limit = limit
|
|
20
|
+
@statuses = statuses
|
|
21
|
+
@target = target
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -5,6 +5,37 @@ module Stripe
|
|
|
5
5
|
module V2
|
|
6
6
|
module MoneyManagement
|
|
7
7
|
class FinancialAccountUpdateParams < ::Stripe::RequestParams
|
|
8
|
+
class FlowSettings < ::Stripe::RequestParams
|
|
9
|
+
class ReceivedDebits < ::Stripe::RequestParams
|
|
10
|
+
class Ach < ::Stripe::RequestParams
|
|
11
|
+
# Whether ACH received debits are enabled. Omit to preserve the current setting, which defaults to true. Other restrictions still apply.
|
|
12
|
+
attr_accessor :enabled
|
|
13
|
+
# Controls whether ACH debits without a matching active mandate are allowed or rejected.
|
|
14
|
+
attr_accessor :mandate_behavior
|
|
15
|
+
# Account-level per-debit limit. Set to null to clear the limit.
|
|
16
|
+
attr_accessor :transaction_limit
|
|
17
|
+
|
|
18
|
+
def initialize(enabled: nil, mandate_behavior: nil, transaction_limit: nil)
|
|
19
|
+
@enabled = enabled
|
|
20
|
+
@mandate_behavior = mandate_behavior
|
|
21
|
+
@transaction_limit = transaction_limit
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
# Settings for ACH received debits.
|
|
25
|
+
attr_accessor :ach
|
|
26
|
+
|
|
27
|
+
def initialize(ach: nil)
|
|
28
|
+
@ach = ach
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
# Settings for received debit flows.
|
|
32
|
+
attr_accessor :received_debits
|
|
33
|
+
|
|
34
|
+
def initialize(received_debits: nil)
|
|
35
|
+
@received_debits = received_debits
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
8
39
|
class ForwardingSettings < ::Stripe::RequestParams
|
|
9
40
|
# ID of the FinancialAccount that supplies funds to cover negative balances
|
|
10
41
|
# during or after this FinancialAccount's closure.
|
|
@@ -48,6 +79,8 @@ module Stripe
|
|
|
48
79
|
end
|
|
49
80
|
# A descriptive name for the FinancialAccount, up to 50 characters long. This name appears in the Stripe Dashboard and embedded components.
|
|
50
81
|
attr_accessor :display_name
|
|
82
|
+
# Sparse flow setting updates. Omitting a field leaves its current value unchanged.
|
|
83
|
+
attr_accessor :flow_settings
|
|
51
84
|
# Forwarding settings for a closed FinancialAccount. Post-close forwarding updates are not yet implemented.
|
|
52
85
|
attr_accessor :forwarding_settings
|
|
53
86
|
# Set of key-value pairs that you can attach to the FinancialAccount. Individual keys can be unset by posting
|
|
@@ -56,8 +89,15 @@ module Stripe
|
|
|
56
89
|
# Parameters for updating storage-specific fields on the FinancialAccount.
|
|
57
90
|
attr_accessor :storage
|
|
58
91
|
|
|
59
|
-
def initialize(
|
|
92
|
+
def initialize(
|
|
93
|
+
display_name: nil,
|
|
94
|
+
flow_settings: nil,
|
|
95
|
+
forwarding_settings: nil,
|
|
96
|
+
metadata: nil,
|
|
97
|
+
storage: nil
|
|
98
|
+
)
|
|
60
99
|
@display_name = display_name
|
|
100
|
+
@flow_settings = flow_settings
|
|
61
101
|
@forwarding_settings = forwarding_settings
|
|
62
102
|
@metadata = metadata
|
|
63
103
|
@storage = storage
|
|
@@ -16,7 +16,20 @@ module Stripe
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
class Bacs < ::Stripe::RequestParams
|
|
19
|
-
# Optional prefix for the generated mandate reference
|
|
19
|
+
# Optional prefix for the generated mandate reference. When nonempty, it must contain at most
|
|
20
|
+
# 10 letters, digits, or underscores. In live mode, Stripe uppercases the prefix.
|
|
21
|
+
# Prefixes beginning with DDIC or STRIPE are reserved regardless of case.
|
|
22
|
+
# In a Sandbox or test mode, set this parameter to one of the following exact,
|
|
23
|
+
# case-sensitive values to simulate a Bacs mandate outcome:
|
|
24
|
+
# - `ACTIVE`: Creates an active mandate immediately.
|
|
25
|
+
# - `PENDING`: Creates a pending mandate that does not automatically activate.
|
|
26
|
+
# - `FAIL`: Creates a canceled mandate with `status_details.canceled.reason` set to
|
|
27
|
+
# `refused_by_network`.
|
|
28
|
+
# - `EXPIRE`: Creates an expired mandate.
|
|
29
|
+
# - `VALIDATION_FAIL`: Returns an `inbound_mandate_cop_failed` error without creating a mandate.
|
|
30
|
+
# This test-only value is exempt from the normal 10-character prefix limit.
|
|
31
|
+
# If omitted, empty, or set to another valid prefix, creates an active mandate.
|
|
32
|
+
# These simulation values do not select test outcomes in live mode.
|
|
20
33
|
attr_accessor :reference_prefix
|
|
21
34
|
|
|
22
35
|
def initialize(reference_prefix: nil)
|
|
@@ -26,8 +39,10 @@ module Stripe
|
|
|
26
39
|
|
|
27
40
|
class UserAcceptedDetails < ::Stripe::RequestParams
|
|
28
41
|
class Online < ::Stripe::RequestParams
|
|
29
|
-
# The IP address from which the merchant accepted the mandate. For
|
|
30
|
-
#
|
|
42
|
+
# The IP address from which the merchant accepted the mandate. For connected account
|
|
43
|
+
# requests, you must provide a valid IPv4 or IPv6 address. For direct account requests,
|
|
44
|
+
# Stripe derives the address from the request when you don't supply it and rejects the
|
|
45
|
+
# request if it can't obtain one.
|
|
31
46
|
attr_accessor :ip_address
|
|
32
47
|
# The user agent of the browser from which the merchant accepted the mandate. For direct
|
|
33
48
|
# account requests, derived from the request when not supplied.
|
|
@@ -38,8 +53,8 @@ module Stripe
|
|
|
38
53
|
@user_agent = user_agent
|
|
39
54
|
end
|
|
40
55
|
end
|
|
41
|
-
# When the
|
|
42
|
-
# requests, defaults to the mandate's creation time when not supplied.
|
|
56
|
+
# When the account holder accepted the mandate. Must be in the past.
|
|
57
|
+
# For direct account requests, defaults to the mandate's creation time when not supplied.
|
|
43
58
|
attr_accessor :accepted_at
|
|
44
59
|
# Optional details for online acceptance.
|
|
45
60
|
attr_accessor :online
|
|
@@ -61,9 +76,10 @@ module Stripe
|
|
|
61
76
|
attr_accessor :credential
|
|
62
77
|
# The mandate scheme type.
|
|
63
78
|
attr_accessor :type
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
#
|
|
79
|
+
# Acceptance evidence collected from the account holder. Required when a platform creates a
|
|
80
|
+
# mandate for a connected account. Include that account's ID in the [Stripe-Context
|
|
81
|
+
# header](/context), and provide accepted_at, online.ip_address, and online.user_agent. Direct
|
|
82
|
+
# account calls can omit details that Stripe derives from request metadata.
|
|
67
83
|
attr_accessor :user_accepted_details
|
|
68
84
|
|
|
69
85
|
def initialize(
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
class SpendingMandateCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class BankTransfer < ::Stripe::RequestParams
|
|
9
|
+
class Ach < ::Stripe::RequestParams
|
|
10
|
+
# ACH Company ID identifying the authorized originator. Must contain exactly 10 alphanumeric characters.
|
|
11
|
+
attr_accessor :originator_company_id
|
|
12
|
+
# Positive per-debit limit in USD.
|
|
13
|
+
attr_accessor :transaction_limit
|
|
14
|
+
|
|
15
|
+
def initialize(originator_company_id: nil, transaction_limit: nil)
|
|
16
|
+
@originator_company_id = originator_company_id
|
|
17
|
+
@transaction_limit = transaction_limit
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
# Display name for the authorized originator.
|
|
21
|
+
attr_accessor :account_holder_name
|
|
22
|
+
# ACH authorization details. Required when `network` is `ach`.
|
|
23
|
+
attr_accessor :ach
|
|
24
|
+
# An active US Financial Address belonging to the Financial Account.
|
|
25
|
+
attr_accessor :financial_address
|
|
26
|
+
# The bank transfer network. Only ACH mandates can be created.
|
|
27
|
+
attr_accessor :network
|
|
28
|
+
|
|
29
|
+
def initialize(account_holder_name: nil, ach: nil, financial_address: nil, network: nil)
|
|
30
|
+
@account_holder_name = account_holder_name
|
|
31
|
+
@ach = ach
|
|
32
|
+
@financial_address = financial_address
|
|
33
|
+
@network = network
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
# Bank transfer authorization details. Required when `type` is `bank_transfer`.
|
|
37
|
+
attr_accessor :bank_transfer
|
|
38
|
+
# The Financial Account to authorize debits against.
|
|
39
|
+
attr_accessor :financial_account
|
|
40
|
+
# The mandate type.
|
|
41
|
+
attr_accessor :type
|
|
42
|
+
|
|
43
|
+
def initialize(bank_transfer: nil, financial_account: nil, type: nil)
|
|
44
|
+
@bank_transfer = bank_transfer
|
|
45
|
+
@financial_account = financial_account
|
|
46
|
+
@type = type
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -9,14 +9,17 @@ module Stripe
|
|
|
9
9
|
attr_accessor :financial_account
|
|
10
10
|
# The page limit.
|
|
11
11
|
attr_accessor :limit
|
|
12
|
+
# Filter by bank transfer network. If omitted, returns mandates for all networks.
|
|
13
|
+
attr_accessor :network
|
|
12
14
|
# Filter by mandate status.
|
|
13
15
|
attr_accessor :statuses
|
|
14
16
|
# The type of SpendingMandate to filter by.
|
|
15
17
|
attr_accessor :type
|
|
16
18
|
|
|
17
|
-
def initialize(financial_account: nil, limit: nil, statuses: nil, type: nil)
|
|
19
|
+
def initialize(financial_account: nil, limit: nil, network: nil, statuses: nil, type: nil)
|
|
18
20
|
@financial_account = financial_account
|
|
19
21
|
@limit = limit
|
|
22
|
+
@network = network
|
|
20
23
|
@statuses = statuses
|
|
21
24
|
@type = type
|
|
22
25
|
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
class SpendingMandateUpdateParams < ::Stripe::RequestParams
|
|
8
|
+
class BankTransfer < ::Stripe::RequestParams
|
|
9
|
+
class Ach < ::Stripe::RequestParams
|
|
10
|
+
# ACH Company ID identifying the authorized originator. Must contain exactly 10 alphanumeric characters.
|
|
11
|
+
attr_accessor :originator_company_id
|
|
12
|
+
# Per-debit limit for originator.
|
|
13
|
+
attr_accessor :transaction_limit
|
|
14
|
+
|
|
15
|
+
def initialize(originator_company_id: nil, transaction_limit: nil)
|
|
16
|
+
@originator_company_id = originator_company_id
|
|
17
|
+
@transaction_limit = transaction_limit
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
# Display name for the authorized originator, up to 50 characters long.
|
|
21
|
+
attr_accessor :account_holder_name
|
|
22
|
+
# ACH authorization fields to update.
|
|
23
|
+
attr_accessor :ach
|
|
24
|
+
|
|
25
|
+
def initialize(account_holder_name: nil, ach: nil)
|
|
26
|
+
@account_holder_name = account_holder_name
|
|
27
|
+
@ach = ach
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
# Bank transfer fields to update. Omitted fields remain unchanged.
|
|
31
|
+
attr_accessor :bank_transfer
|
|
32
|
+
|
|
33
|
+
def initialize(bank_transfer: nil)
|
|
34
|
+
@bank_transfer = bank_transfer
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -6,16 +6,35 @@ module Stripe
|
|
|
6
6
|
module MoneyManagement
|
|
7
7
|
module TestHelpers
|
|
8
8
|
class FinancialAddressDebitParams < ::Stripe::RequestParams
|
|
9
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
10
|
+
class Ach < ::Stripe::RequestParams
|
|
11
|
+
# The ACH company ID of the originator of the simulated debit. Must contain exactly 10 alphanumeric characters. Sent to the network in uppercase.
|
|
12
|
+
attr_accessor :originator_company_id
|
|
13
|
+
|
|
14
|
+
def initialize(originator_company_id: nil)
|
|
15
|
+
@originator_company_id = originator_company_id
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
# ACH-specific details for the simulated debit.
|
|
19
|
+
attr_accessor :ach
|
|
20
|
+
|
|
21
|
+
def initialize(ach: nil)
|
|
22
|
+
@ach = ach
|
|
23
|
+
end
|
|
24
|
+
end
|
|
9
25
|
# Object containing the amount value and currency to debit.
|
|
10
26
|
attr_accessor :amount
|
|
11
27
|
# The network to use in simulating the funds flow. This will be reflected in the resulting ReceivedDebit.
|
|
12
28
|
attr_accessor :network
|
|
29
|
+
# Network-specific details for the simulated debit. Only used for ACH debits; supplied details must be valid.
|
|
30
|
+
attr_accessor :network_details
|
|
13
31
|
# String explaining funds flow. Use this field to populate the statement descriptor of the ReceivedDebit created as an eventual result of this simulation.
|
|
14
32
|
attr_accessor :statement_descriptor
|
|
15
33
|
|
|
16
|
-
def initialize(amount: nil, network: nil, statement_descriptor: nil)
|
|
34
|
+
def initialize(amount: nil, network: nil, network_details: nil, statement_descriptor: nil)
|
|
17
35
|
@amount = amount
|
|
18
36
|
@network = network
|
|
37
|
+
@network_details = network_details
|
|
19
38
|
@statement_descriptor = statement_descriptor
|
|
20
39
|
end
|
|
21
40
|
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Risk
|
|
7
|
+
class EvaluationOutcomeListParams < ::Stripe::RequestParams
|
|
8
|
+
class AccountDetails < ::Stripe::RequestParams
|
|
9
|
+
# The v2 account ID to list evaluation outcomes for.
|
|
10
|
+
attr_accessor :account
|
|
11
|
+
|
|
12
|
+
def initialize(account: nil)
|
|
13
|
+
@account = account
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
# Account selector for the historical outcomes requested.
|
|
17
|
+
attr_accessor :account_details
|
|
18
|
+
# Maximum number of results per page. Defaults to 10; use 1 for the latest matching outcome.
|
|
19
|
+
attr_accessor :limit
|
|
20
|
+
# Evaluation origin to filter by. Omit to match all origins.
|
|
21
|
+
attr_accessor :origin
|
|
22
|
+
# Evaluation type to filter by. Omit to match all types.
|
|
23
|
+
attr_accessor :type
|
|
24
|
+
|
|
25
|
+
def initialize(account_details: nil, limit: nil, origin: nil, type: nil)
|
|
26
|
+
@account_details = account_details
|
|
27
|
+
@limit = limit
|
|
28
|
+
@origin = origin
|
|
29
|
+
@type = type
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module TestHelpers
|
|
7
|
+
module MoneyManagement
|
|
8
|
+
class InboundTransferFailParams < ::Stripe::RequestParams
|
|
9
|
+
# The failure reason to attach to the failed InboundTransfer.
|
|
10
|
+
attr_accessor :failure_reason
|
|
11
|
+
|
|
12
|
+
def initialize(failure_reason: nil)
|
|
13
|
+
@failure_reason = failure_reason
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/stripe/params.rb
CHANGED
|
@@ -213,8 +213,6 @@ module Stripe
|
|
|
213
213
|
autoload :PaymentIntentSearchParams, "stripe/params/payment_intent_search_params"
|
|
214
214
|
autoload :PaymentIntentSimulateCryptoDepositParams, "stripe/params/payment_intent_simulate_crypto_deposit_params"
|
|
215
215
|
autoload :PaymentIntentTriggerActionParams, "stripe/params/payment_intent_trigger_action_params"
|
|
216
|
-
autoload :PaymentIntentUpdateCryptoRefundAddressParams,
|
|
217
|
-
"stripe/params/payment_intent_update_crypto_refund_address_params"
|
|
218
216
|
autoload :PaymentIntentUpdateParams, "stripe/params/payment_intent_update_params"
|
|
219
217
|
autoload :PaymentIntentVerifyMicrodepositsParams, "stripe/params/payment_intent_verify_microdeposits_params"
|
|
220
218
|
autoload :PaymentLinkCreateParams, "stripe/params/payment_link_create_params"
|
|
@@ -343,7 +341,6 @@ module Stripe
|
|
|
343
341
|
autoload :SourceTransactionListParams, "stripe/params/source_transaction_list_params"
|
|
344
342
|
autoload :SourceUpdateParams, "stripe/params/source_update_params"
|
|
345
343
|
autoload :SourceVerifyParams, "stripe/params/source_verify_params"
|
|
346
|
-
autoload :SubscriptionAttachCadenceParams, "stripe/params/subscription_attach_cadence_params"
|
|
347
344
|
autoload :SubscriptionCancelParams, "stripe/params/subscription_cancel_params"
|
|
348
345
|
autoload :SubscriptionCreateParams, "stripe/params/subscription_create_params"
|
|
349
346
|
autoload :SubscriptionDeleteDiscountParams, "stripe/params/subscription_delete_discount_params"
|
|
@@ -1243,6 +1240,11 @@ module Stripe
|
|
|
1243
1240
|
autoload :DebitDisputeCreateParams, "stripe/params/v2/money_management/debit_dispute_create_params"
|
|
1244
1241
|
autoload :DebitDisputeListParams, "stripe/params/v2/money_management/debit_dispute_list_params"
|
|
1245
1242
|
autoload :DebitDisputeRetrieveParams, "stripe/params/v2/money_management/debit_dispute_retrieve_params"
|
|
1243
|
+
autoload :DisputeAdjustmentListParams, "stripe/params/v2/money_management/dispute_adjustment_list_params"
|
|
1244
|
+
autoload :DisputeAdjustmentRetrieveParams, "stripe/params/v2/money_management/dispute_adjustment_retrieve_params"
|
|
1245
|
+
autoload :DisputeCreateParams, "stripe/params/v2/money_management/dispute_create_params"
|
|
1246
|
+
autoload :DisputeListParams, "stripe/params/v2/money_management/dispute_list_params"
|
|
1247
|
+
autoload :DisputeRetrieveParams, "stripe/params/v2/money_management/dispute_retrieve_params"
|
|
1246
1248
|
autoload :EarnedCreditListParams, "stripe/params/v2/money_management/earned_credit_list_params"
|
|
1247
1249
|
autoload :EarnedCreditRetrieveParams, "stripe/params/v2/money_management/earned_credit_retrieve_params"
|
|
1248
1250
|
autoload :FinancialAccountCloseParams, "stripe/params/v2/money_management/financial_account_close_params"
|
|
@@ -1340,8 +1342,10 @@ module Stripe
|
|
|
1340
1342
|
autoload :RewardProgramRetrieveParams, "stripe/params/v2/money_management/reward_program_retrieve_params"
|
|
1341
1343
|
autoload :RewardProgramUpdateParams, "stripe/params/v2/money_management/reward_program_update_params"
|
|
1342
1344
|
autoload :SpendingMandateCancelParams, "stripe/params/v2/money_management/spending_mandate_cancel_params"
|
|
1345
|
+
autoload :SpendingMandateCreateParams, "stripe/params/v2/money_management/spending_mandate_create_params"
|
|
1343
1346
|
autoload :SpendingMandateListParams, "stripe/params/v2/money_management/spending_mandate_list_params"
|
|
1344
1347
|
autoload :SpendingMandateRetrieveParams, "stripe/params/v2/money_management/spending_mandate_retrieve_params"
|
|
1348
|
+
autoload :SpendingMandateUpdateParams, "stripe/params/v2/money_management/spending_mandate_update_params"
|
|
1345
1349
|
autoload :TestHelperEarnedCreditsParams, "stripe/params/v2/money_management/test_helper_earned_credits_params"
|
|
1346
1350
|
autoload :TransactionEntryListParams, "stripe/params/v2/money_management/transaction_entry_list_params"
|
|
1347
1351
|
autoload :TransactionEntryRetrieveParams, "stripe/params/v2/money_management/transaction_entry_retrieve_params"
|
|
@@ -1459,6 +1463,8 @@ module Stripe
|
|
|
1459
1463
|
end
|
|
1460
1464
|
|
|
1461
1465
|
module Risk
|
|
1466
|
+
autoload :EvaluationOutcomeListParams, "stripe/params/v2/risk/evaluation_outcome_list_params"
|
|
1467
|
+
autoload :EvaluationOutcomeRetrieveParams, "stripe/params/v2/risk/evaluation_outcome_retrieve_params"
|
|
1462
1468
|
autoload :FormRetrieveParams, "stripe/params/v2/risk/form_retrieve_params"
|
|
1463
1469
|
autoload :FormUpdateParams, "stripe/params/v2/risk/form_update_params"
|
|
1464
1470
|
end
|
|
@@ -1493,6 +1499,13 @@ module Stripe
|
|
|
1493
1499
|
module TestHelpers
|
|
1494
1500
|
autoload :MoneyManagementRecipientVerificationsParams,
|
|
1495
1501
|
"stripe/params/v2/test_helpers/money_management_recipient_verifications_params"
|
|
1502
|
+
|
|
1503
|
+
module MoneyManagement
|
|
1504
|
+
autoload :InboundTransferFailParams,
|
|
1505
|
+
"stripe/params/v2/test_helpers/money_management/inbound_transfer_fail_params"
|
|
1506
|
+
autoload :InboundTransferSucceedParams,
|
|
1507
|
+
"stripe/params/v2/test_helpers/money_management/inbound_transfer_succeed_params"
|
|
1508
|
+
end
|
|
1496
1509
|
end
|
|
1497
1510
|
end
|
|
1498
1511
|
end
|
|
@@ -1905,7 +1918,6 @@ module Stripe
|
|
|
1905
1918
|
stripe/params/payment_intent_search_params
|
|
1906
1919
|
stripe/params/payment_intent_simulate_crypto_deposit_params
|
|
1907
1920
|
stripe/params/payment_intent_trigger_action_params
|
|
1908
|
-
stripe/params/payment_intent_update_crypto_refund_address_params
|
|
1909
1921
|
stripe/params/payment_intent_update_params
|
|
1910
1922
|
stripe/params/payment_intent_verify_microdeposits_params
|
|
1911
1923
|
stripe/params/payment_link_create_params
|
|
@@ -2083,7 +2095,6 @@ module Stripe
|
|
|
2083
2095
|
stripe/params/source_transaction_list_params
|
|
2084
2096
|
stripe/params/source_update_params
|
|
2085
2097
|
stripe/params/source_verify_params
|
|
2086
|
-
stripe/params/subscription_attach_cadence_params
|
|
2087
2098
|
stripe/params/subscription_cancel_params
|
|
2088
2099
|
stripe/params/subscription_create_params
|
|
2089
2100
|
stripe/params/subscription_delete_discount_params
|
|
@@ -2510,6 +2521,11 @@ module Stripe
|
|
|
2510
2521
|
stripe/params/v2/money_management/debit_dispute_create_params
|
|
2511
2522
|
stripe/params/v2/money_management/debit_dispute_list_params
|
|
2512
2523
|
stripe/params/v2/money_management/debit_dispute_retrieve_params
|
|
2524
|
+
stripe/params/v2/money_management/dispute_adjustment_list_params
|
|
2525
|
+
stripe/params/v2/money_management/dispute_adjustment_retrieve_params
|
|
2526
|
+
stripe/params/v2/money_management/dispute_create_params
|
|
2527
|
+
stripe/params/v2/money_management/dispute_list_params
|
|
2528
|
+
stripe/params/v2/money_management/dispute_retrieve_params
|
|
2513
2529
|
stripe/params/v2/money_management/earned_credit_list_params
|
|
2514
2530
|
stripe/params/v2/money_management/earned_credit_retrieve_params
|
|
2515
2531
|
stripe/params/v2/money_management/financial_account_close_params
|
|
@@ -2597,8 +2613,10 @@ module Stripe
|
|
|
2597
2613
|
stripe/params/v2/money_management/reward_programs/rule_retrieve_params
|
|
2598
2614
|
stripe/params/v2/money_management/reward_programs/rule_update_params
|
|
2599
2615
|
stripe/params/v2/money_management/spending_mandate_cancel_params
|
|
2616
|
+
stripe/params/v2/money_management/spending_mandate_create_params
|
|
2600
2617
|
stripe/params/v2/money_management/spending_mandate_list_params
|
|
2601
2618
|
stripe/params/v2/money_management/spending_mandate_retrieve_params
|
|
2619
|
+
stripe/params/v2/money_management/spending_mandate_update_params
|
|
2602
2620
|
stripe/params/v2/money_management/test_helper_earned_credits_params
|
|
2603
2621
|
stripe/params/v2/money_management/test_helpers/financial_address_credit_params
|
|
2604
2622
|
stripe/params/v2/money_management/test_helpers/financial_address_debit_params
|
|
@@ -2656,6 +2674,8 @@ module Stripe
|
|
|
2656
2674
|
stripe/params/v2/reporting/report_retrieve_params
|
|
2657
2675
|
stripe/params/v2/reporting/report_run_create_params
|
|
2658
2676
|
stripe/params/v2/reporting/report_run_retrieve_params
|
|
2677
|
+
stripe/params/v2/risk/evaluation_outcome_list_params
|
|
2678
|
+
stripe/params/v2/risk/evaluation_outcome_retrieve_params
|
|
2659
2679
|
stripe/params/v2/risk/form_retrieve_params
|
|
2660
2680
|
stripe/params/v2/risk/form_update_params
|
|
2661
2681
|
stripe/params/v2/signals/account_activity_create_params
|
|
@@ -2678,6 +2698,8 @@ module Stripe
|
|
|
2678
2698
|
stripe/params/v2/tax/manual_rule_retrieve_params
|
|
2679
2699
|
stripe/params/v2/tax/manual_rule_update_params
|
|
2680
2700
|
stripe/params/v2/tax/operation_resolve_address_params
|
|
2701
|
+
stripe/params/v2/test_helpers/money_management/inbound_transfer_fail_params
|
|
2702
|
+
stripe/params/v2/test_helpers/money_management/inbound_transfer_succeed_params
|
|
2681
2703
|
stripe/params/v2/test_helpers/money_management_recipient_verifications_params
|
|
2682
2704
|
stripe/params/webhook_endpoint_create_params
|
|
2683
2705
|
stripe/params/webhook_endpoint_delete_params
|
|
@@ -105,6 +105,19 @@ module Stripe
|
|
|
105
105
|
end
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
+
class PaymentMethodUpdate < ::Stripe::StripeObject
|
|
109
|
+
# The ID of the subscription whose payment method the customer will update.
|
|
110
|
+
attr_reader :subscription
|
|
111
|
+
|
|
112
|
+
def self.inner_class_types
|
|
113
|
+
@inner_class_types = {}
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def self.field_remappings
|
|
117
|
+
@field_remappings = {}
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
108
121
|
class SubscriptionCancel < ::Stripe::StripeObject
|
|
109
122
|
class Retention < ::Stripe::StripeObject
|
|
110
123
|
class CouponOffer < ::Stripe::StripeObject
|
|
@@ -223,6 +236,8 @@ module Stripe
|
|
|
223
236
|
attr_reader :after_completion
|
|
224
237
|
# Configuration when `flow.type=customer_update`.
|
|
225
238
|
attr_reader :customer_update
|
|
239
|
+
# Configuration when `flow.type=payment_method_update`.
|
|
240
|
+
attr_reader :payment_method_update
|
|
226
241
|
# Configuration when `flow.type=subscription_cancel`.
|
|
227
242
|
attr_reader :subscription_cancel
|
|
228
243
|
# Configuration when `flow.type=subscription_pause`.
|
|
@@ -238,6 +253,7 @@ module Stripe
|
|
|
238
253
|
@inner_class_types = {
|
|
239
254
|
after_completion: AfterCompletion,
|
|
240
255
|
customer_update: CustomerUpdate,
|
|
256
|
+
payment_method_update: PaymentMethodUpdate,
|
|
241
257
|
subscription_cancel: SubscriptionCancel,
|
|
242
258
|
subscription_pause: SubscriptionPause,
|
|
243
259
|
subscription_update: SubscriptionUpdate,
|
|
@@ -23,7 +23,7 @@ module Stripe
|
|
|
23
23
|
@field_remappings = {}
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
|
-
# A hash of all cash balances available to this customer. You
|
|
26
|
+
# A hash of all cash balances available to this customer. You can't delete a customer that has a positive cash balance in any currency. You can delete it after all of its cash balances are 0. Amounts are represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
27
27
|
attr_reader :available
|
|
28
28
|
# The ID of the customer whose cash balance this object represents.
|
|
29
29
|
attr_reader :customer
|
|
@@ -1184,6 +1184,33 @@ module Stripe
|
|
|
1184
1184
|
end
|
|
1185
1185
|
|
|
1186
1186
|
class CardPresent < ::Stripe::StripeObject
|
|
1187
|
+
class Benefits < ::Stripe::StripeObject
|
|
1188
|
+
class FrMealVoucher < ::Stripe::StripeObject
|
|
1189
|
+
# The 14-digit SIRET of the meal voucher acceptor used for this charge.
|
|
1190
|
+
attr_reader :siret
|
|
1191
|
+
|
|
1192
|
+
def self.inner_class_types
|
|
1193
|
+
@inner_class_types = {}
|
|
1194
|
+
end
|
|
1195
|
+
|
|
1196
|
+
def self.field_remappings
|
|
1197
|
+
@field_remappings = {}
|
|
1198
|
+
end
|
|
1199
|
+
end
|
|
1200
|
+
# Attribute for field fr_meal_voucher
|
|
1201
|
+
attr_reader :fr_meal_voucher
|
|
1202
|
+
# Issuer of the benefit card utilized on this payment
|
|
1203
|
+
attr_reader :issuer
|
|
1204
|
+
|
|
1205
|
+
def self.inner_class_types
|
|
1206
|
+
@inner_class_types = { fr_meal_voucher: FrMealVoucher }
|
|
1207
|
+
end
|
|
1208
|
+
|
|
1209
|
+
def self.field_remappings
|
|
1210
|
+
@field_remappings = {}
|
|
1211
|
+
end
|
|
1212
|
+
end
|
|
1213
|
+
|
|
1187
1214
|
class Fleet < ::Stripe::StripeObject
|
|
1188
1215
|
class TransactionDatum < ::Stripe::StripeObject
|
|
1189
1216
|
# The prompt that the Terminal SDK displays to collect this Fleet value.
|
|
@@ -1313,6 +1340,8 @@ module Stripe
|
|
|
1313
1340
|
end
|
|
1314
1341
|
# The authorized amount
|
|
1315
1342
|
attr_reader :amount_authorized
|
|
1343
|
+
# Attribute for field benefits
|
|
1344
|
+
attr_reader :benefits
|
|
1316
1345
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
1317
1346
|
attr_reader :brand
|
|
1318
1347
|
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
|
@@ -1380,6 +1409,7 @@ module Stripe
|
|
|
1380
1409
|
|
|
1381
1410
|
def self.inner_class_types
|
|
1382
1411
|
@inner_class_types = {
|
|
1412
|
+
benefits: Benefits,
|
|
1383
1413
|
fleet: Fleet,
|
|
1384
1414
|
multicapture: Multicapture,
|
|
1385
1415
|
offline: Offline,
|
|
@@ -2635,6 +2665,8 @@ module Stripe
|
|
|
2635
2665
|
class TossPay < ::Stripe::StripeObject
|
|
2636
2666
|
# The buyer identifier provided by NICE for this Toss Pay account, when available.
|
|
2637
2667
|
attr_reader :buyer_id
|
|
2668
|
+
# ID of the multi-use Mandate created by, or used to make, this Toss Pay payment.
|
|
2669
|
+
attr_reader :mandate
|
|
2638
2670
|
|
|
2639
2671
|
def self.inner_class_types
|
|
2640
2672
|
@inner_class_types = {}
|