stripe 19.2.0.pre.alpha.4 → 19.2.0.pre.alpha.5
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/event_types.rb +8 -0
- data/lib/stripe/events/v2_money_management_financial_account_statement_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_financial_account_statement_restated_event.rb +71 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +18 -1
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +18 -1
- data/lib/stripe/object_types.rb +5 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +16 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +16 -0
- data/lib/stripe/params/invoice_create_params.rb +1 -38
- data/lib/stripe/params/invoice_update_params.rb +1 -38
- data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +26 -0
- data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +26 -0
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +10 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +4 -0
- data/lib/stripe/params/payment_intent_create_params.rb +4 -0
- data/lib/stripe/params/payment_intent_update_params.rb +4 -0
- data/lib/stripe/params/payment_location_list_params.rb +13 -0
- data/lib/stripe/params/payment_location_update_params.rb +10 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +10 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +4 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +4 -1
- data/lib/stripe/params/radar/customer_evaluation_update_params.rb +12 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +4 -1
- data/lib/stripe/params/setup_intent_create_params.rb +4 -1
- data/lib/stripe/params/setup_intent_update_params.rb +4 -1
- data/lib/stripe/params/subscription_create_params.rb +1 -38
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- data/lib/stripe/params/subscription_update_params.rb +1 -38
- data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +28 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +28 -0
- data/lib/stripe/params/v2/core/fee_batch_list_params.rb +43 -0
- data/lib/stripe/params/v2/core/fee_batch_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/fee_entry_list_params.rb +51 -0
- data/lib/stripe/params/v2/core/fee_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/debit_dispute_create_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/debit_dispute_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/debit_dispute_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_accounts/statement_list_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/financial_accounts/statement_retrieve_params.rb +19 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -0
- data/lib/stripe/params.rb +2200 -964
- data/lib/stripe/railtie.rb +8 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +93 -1
- data/lib/stripe/resources/invoice.rb +1 -26
- data/lib/stripe/resources/issuing/dispute.rb +59 -0
- data/lib/stripe/resources/payment_location.rb +6 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -26
- data/lib/stripe/resources/radar/customer_evaluation.rb +2 -0
- data/lib/stripe/resources/subscription.rb +1 -26
- data/lib/stripe/resources/v2/core/fee_batch.rb +142 -0
- data/lib/stripe/resources/v2/core/fee_entry.rb +135 -0
- data/lib/stripe/resources/v2/money_management/debit_dispute.rb +113 -0
- data/lib/stripe/resources/v2/money_management/financial_account_statement.rb +101 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +18 -0
- 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.rb +2190 -666
- data/lib/stripe/services/payment_location_service.rb +11 -0
- data/lib/stripe/services/test_helpers/issuing/dispute_service.rb +32 -0
- data/lib/stripe/services/test_helpers/issuing_service.rb +2 -1
- data/lib/stripe/services/v2/core/fee_batch_service.rb +32 -0
- data/lib/stripe/services/v2/core/fee_entry_service.rb +32 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +8 -0
- data/lib/stripe/services/v2/money_management/financial_accounts/statement_service.rb +34 -0
- data/lib/stripe/services/v2/money_management_service.rb +2 -1
- data/lib/stripe/services.rb +839 -322
- data/lib/stripe/stripe_event_notification_handler.rb +12 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +25 -4
- data/rbi/stripe.rbi +1320 -358
- metadata +28 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95ee283f0316c26f364ee47f286678a0dd69a6da575f0dce8e1157bf59a9853e
|
|
4
|
+
data.tar.gz: fa0ed253c22f78014d04b71abcafb439f27f19bdf210a4121395afc64a29134f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 978e0dbbc72d2792690433c5aef88de7b7b258f2b49987892c766d25d7648bdf36d36c465a64d3df21ac3e5bce96fc9366ad154d9b1377d786543c2530605ce6
|
|
7
|
+
data.tar.gz: c523a6a7f7e489113deecc809129e11e5490bcdefa13355a0535d8fe5ec36eea39e90623d14a2085a41734de114b15b06187ed5021b033bca9b03c02db3bcf38
|
data/lib/stripe/event_types.rb
CHANGED
|
@@ -495,6 +495,10 @@ module Stripe
|
|
|
495
495
|
Events::V2MoneyManagementAdjustmentCreatedEvent,
|
|
496
496
|
Events::V2MoneyManagementFinancialAccountCreatedEvent.lookup_type =>
|
|
497
497
|
Events::V2MoneyManagementFinancialAccountCreatedEvent,
|
|
498
|
+
Events::V2MoneyManagementFinancialAccountStatementCreatedEvent.lookup_type =>
|
|
499
|
+
Events::V2MoneyManagementFinancialAccountStatementCreatedEvent,
|
|
500
|
+
Events::V2MoneyManagementFinancialAccountStatementRestatedEvent.lookup_type =>
|
|
501
|
+
Events::V2MoneyManagementFinancialAccountStatementRestatedEvent,
|
|
498
502
|
Events::V2MoneyManagementFinancialAccountUpdatedEvent.lookup_type =>
|
|
499
503
|
Events::V2MoneyManagementFinancialAccountUpdatedEvent,
|
|
500
504
|
Events::V2MoneyManagementFinancialAddressActivatedEvent.lookup_type =>
|
|
@@ -1245,6 +1249,10 @@ module Stripe
|
|
|
1245
1249
|
Events::V2MoneyManagementAdjustmentCreatedEventNotification,
|
|
1246
1250
|
Events::V2MoneyManagementFinancialAccountCreatedEventNotification.lookup_type =>
|
|
1247
1251
|
Events::V2MoneyManagementFinancialAccountCreatedEventNotification,
|
|
1252
|
+
Events::V2MoneyManagementFinancialAccountStatementCreatedEventNotification.lookup_type =>
|
|
1253
|
+
Events::V2MoneyManagementFinancialAccountStatementCreatedEventNotification,
|
|
1254
|
+
Events::V2MoneyManagementFinancialAccountStatementRestatedEventNotification.lookup_type =>
|
|
1255
|
+
Events::V2MoneyManagementFinancialAccountStatementRestatedEventNotification,
|
|
1248
1256
|
Events::V2MoneyManagementFinancialAccountUpdatedEventNotification.lookup_type =>
|
|
1249
1257
|
Events::V2MoneyManagementFinancialAccountUpdatedEventNotification,
|
|
1250
1258
|
Events::V2MoneyManagementFinancialAddressActivatedEventNotification.lookup_type =>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a Financial Account Statement is created and ready for download.
|
|
7
|
+
class V2MoneyManagementFinancialAccountStatementCreatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.financial_account_statement.created"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2MoneyManagementFinancialAccountStatementCreatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# The ID of the Financial Account this statement belongs to.
|
|
14
|
+
attr_reader :financial_account
|
|
15
|
+
|
|
16
|
+
def self.inner_class_types
|
|
17
|
+
@inner_class_types = {}
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.field_remappings
|
|
21
|
+
@field_remappings = {}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.inner_class_types
|
|
26
|
+
@inner_class_types = { data: V2MoneyManagementFinancialAccountStatementCreatedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data, :related_object
|
|
29
|
+
|
|
30
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
31
|
+
def fetch_related_object
|
|
32
|
+
_request(
|
|
33
|
+
method: :get,
|
|
34
|
+
path: related_object.url,
|
|
35
|
+
base_address: :api,
|
|
36
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Occurs when a Financial Account Statement is created and ready for download.
|
|
42
|
+
class V2MoneyManagementFinancialAccountStatementCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
43
|
+
def self.lookup_type
|
|
44
|
+
"v2.money_management.financial_account_statement.created"
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
attr_reader :related_object
|
|
48
|
+
|
|
49
|
+
# Retrieves the FinancialAccountStatement related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
50
|
+
def fetch_related_object
|
|
51
|
+
resp = @client.raw_request(
|
|
52
|
+
:get,
|
|
53
|
+
related_object.url,
|
|
54
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
55
|
+
usage: ["fetch_related_object"]
|
|
56
|
+
)
|
|
57
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a Financial Account Statement has been restated.
|
|
7
|
+
# A restatement occurs when a new statement is generated for a period
|
|
8
|
+
# that already had an existing statement. The related object references
|
|
9
|
+
# the original statement that was restated. The new replacement statement
|
|
10
|
+
# will also fire a FinancialAccountStatementCreated event.
|
|
11
|
+
class V2MoneyManagementFinancialAccountStatementRestatedEvent < Stripe::V2::Core::Event
|
|
12
|
+
def self.lookup_type
|
|
13
|
+
"v2.money_management.financial_account_statement.restated"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
class V2MoneyManagementFinancialAccountStatementRestatedEventData < ::Stripe::StripeObject
|
|
17
|
+
# The ID of the Financial Account this statement belongs to.
|
|
18
|
+
attr_reader :financial_account
|
|
19
|
+
# The ID of the new statement that replaces the original.
|
|
20
|
+
attr_reader :restatement_id
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def self.inner_class_types
|
|
32
|
+
@inner_class_types = { data: V2MoneyManagementFinancialAccountStatementRestatedEventData }
|
|
33
|
+
end
|
|
34
|
+
attr_reader :data, :related_object
|
|
35
|
+
|
|
36
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
37
|
+
def fetch_related_object
|
|
38
|
+
_request(
|
|
39
|
+
method: :get,
|
|
40
|
+
path: related_object.url,
|
|
41
|
+
base_address: :api,
|
|
42
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Occurs when a Financial Account Statement has been restated.
|
|
48
|
+
# A restatement occurs when a new statement is generated for a period
|
|
49
|
+
# that already had an existing statement. The related object references
|
|
50
|
+
# the original statement that was restated. The new replacement statement
|
|
51
|
+
# will also fire a FinancialAccountStatementCreated event.
|
|
52
|
+
class V2MoneyManagementFinancialAccountStatementRestatedEventNotification < Stripe::V2::Core::EventNotification
|
|
53
|
+
def self.lookup_type
|
|
54
|
+
"v2.money_management.financial_account_statement.restated"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
attr_reader :related_object
|
|
58
|
+
|
|
59
|
+
# Retrieves the FinancialAccountStatement related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
60
|
+
def fetch_related_object
|
|
61
|
+
resp = @client.raw_request(
|
|
62
|
+
:get,
|
|
63
|
+
related_object.url,
|
|
64
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
65
|
+
usage: ["fetch_related_object"]
|
|
66
|
+
)
|
|
67
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -9,6 +9,24 @@ module Stripe
|
|
|
9
9
|
"v2.payments.off_session_payment.attempt_failed"
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
class V2PaymentsOffSessionPaymentAttemptFailedEventData < ::Stripe::StripeObject
|
|
13
|
+
# The ID of the payment attempt record associated with this failed attempt.
|
|
14
|
+
attr_reader :payment_attempt_record
|
|
15
|
+
|
|
16
|
+
def self.inner_class_types
|
|
17
|
+
@inner_class_types = {}
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.field_remappings
|
|
21
|
+
@field_remappings = {}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.inner_class_types
|
|
26
|
+
@inner_class_types = { data: V2PaymentsOffSessionPaymentAttemptFailedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data, :related_object
|
|
29
|
+
|
|
12
30
|
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
31
|
def fetch_related_object
|
|
14
32
|
_request(
|
|
@@ -18,7 +36,6 @@ module Stripe
|
|
|
18
36
|
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
37
|
)
|
|
20
38
|
end
|
|
21
|
-
attr_reader :related_object
|
|
22
39
|
end
|
|
23
40
|
|
|
24
41
|
# Sent after a failed attempt if there are still retries available on the OffSessionPayment.
|
|
@@ -9,6 +9,24 @@ module Stripe
|
|
|
9
9
|
"v2.payments.off_session_payment.failed"
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
class V2PaymentsOffSessionPaymentFailedEventData < ::Stripe::StripeObject
|
|
13
|
+
# The ID of the payment attempt record associated with this terminal failure. Equal to the `latest_payment_attempt_record` on the Off-Session Payment object.
|
|
14
|
+
attr_reader :payment_attempt_record
|
|
15
|
+
|
|
16
|
+
def self.inner_class_types
|
|
17
|
+
@inner_class_types = {}
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.field_remappings
|
|
21
|
+
@field_remappings = {}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.inner_class_types
|
|
26
|
+
@inner_class_types = { data: V2PaymentsOffSessionPaymentFailedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data, :related_object
|
|
29
|
+
|
|
12
30
|
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
31
|
def fetch_related_object
|
|
14
32
|
_request(
|
|
@@ -18,7 +36,6 @@ module Stripe
|
|
|
18
36
|
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
37
|
)
|
|
20
38
|
end
|
|
21
|
-
attr_reader :related_object
|
|
22
39
|
end
|
|
23
40
|
|
|
24
41
|
# Sent after a failed authorization if there are no retries remaining, or if the failure is unretryable.
|
data/lib/stripe/object_types.rb
CHANGED
|
@@ -254,6 +254,8 @@ module Stripe
|
|
|
254
254
|
V2::Core::ConnectionSession.object_name => V2::Core::ConnectionSession,
|
|
255
255
|
V2::Core::Event.object_name => V2::Core::Event,
|
|
256
256
|
V2::Core::EventDestination.object_name => V2::Core::EventDestination,
|
|
257
|
+
V2::Core::FeeBatch.object_name => V2::Core::FeeBatch,
|
|
258
|
+
V2::Core::FeeEntry.object_name => V2::Core::FeeEntry,
|
|
257
259
|
V2::Core::Vault::GbBankAccount.object_name => V2::Core::Vault::GbBankAccount,
|
|
258
260
|
V2::Core::Vault::UsBankAccount.object_name => V2::Core::Vault::UsBankAccount,
|
|
259
261
|
V2::Data::Analytics::MetricQueryResult.object_name => V2::Data::Analytics::MetricQueryResult,
|
|
@@ -267,7 +269,10 @@ module Stripe
|
|
|
267
269
|
V2::Iam::ApiKey.object_name => V2::Iam::ApiKey,
|
|
268
270
|
V2::MoneyManagement::Adjustment.object_name => V2::MoneyManagement::Adjustment,
|
|
269
271
|
V2::MoneyManagement::CurrencyConversion.object_name => V2::MoneyManagement::CurrencyConversion,
|
|
272
|
+
V2::MoneyManagement::DebitDispute.object_name => V2::MoneyManagement::DebitDispute,
|
|
270
273
|
V2::MoneyManagement::FinancialAccount.object_name => V2::MoneyManagement::FinancialAccount,
|
|
274
|
+
V2::MoneyManagement::FinancialAccountStatement.object_name =>
|
|
275
|
+
V2::MoneyManagement::FinancialAccountStatement,
|
|
271
276
|
V2::MoneyManagement::FinancialAddress.object_name => V2::MoneyManagement::FinancialAddress,
|
|
272
277
|
V2::MoneyManagement::InboundTransfer.object_name => V2::MoneyManagement::InboundTransfer,
|
|
273
278
|
V2::MoneyManagement::OutboundPayment.object_name => V2::MoneyManagement::OutboundPayment,
|
|
@@ -69,6 +69,18 @@ module Stripe
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
class Discounts < ::Stripe::RequestParams
|
|
73
|
+
# Array of discount codes to apply.
|
|
74
|
+
attr_accessor :codes
|
|
75
|
+
# Whether to enforce strict eligibility for discount codes. Defaults to true. When false, invalid codes are returned in the discounts.invalid array instead of raising an error.
|
|
76
|
+
attr_accessor :enforce_strict_eligibility
|
|
77
|
+
|
|
78
|
+
def initialize(codes: nil, enforce_strict_eligibility: nil)
|
|
79
|
+
@codes = codes
|
|
80
|
+
@enforce_strict_eligibility = enforce_strict_eligibility
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
72
84
|
class FulfillmentDetails < ::Stripe::RequestParams
|
|
73
85
|
class Address < ::Stripe::RequestParams
|
|
74
86
|
# City, district, suburb, town, or village.
|
|
@@ -163,6 +175,8 @@ module Stripe
|
|
|
163
175
|
attr_accessor :currency
|
|
164
176
|
# The customer for this requested session.
|
|
165
177
|
attr_accessor :customer
|
|
178
|
+
# The discount codes to apply to this requested session.
|
|
179
|
+
attr_accessor :discounts
|
|
166
180
|
# Specifies which fields in the response should be expanded.
|
|
167
181
|
attr_accessor :expand
|
|
168
182
|
# The details of the fulfillment.
|
|
@@ -186,6 +200,7 @@ module Stripe
|
|
|
186
200
|
affiliate_attribution: nil,
|
|
187
201
|
currency: nil,
|
|
188
202
|
customer: nil,
|
|
203
|
+
discounts: nil,
|
|
189
204
|
expand: nil,
|
|
190
205
|
fulfillment_details: nil,
|
|
191
206
|
line_item_details: nil,
|
|
@@ -199,6 +214,7 @@ module Stripe
|
|
|
199
214
|
@affiliate_attribution = affiliate_attribution
|
|
200
215
|
@currency = currency
|
|
201
216
|
@customer = customer
|
|
217
|
+
@discounts = discounts
|
|
202
218
|
@expand = expand
|
|
203
219
|
@fulfillment_details = fulfillment_details
|
|
204
220
|
@line_item_details = line_item_details
|
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module DelegatedCheckout
|
|
6
6
|
class RequestedSessionUpdateParams < ::Stripe::RequestParams
|
|
7
|
+
class Discounts < ::Stripe::RequestParams
|
|
8
|
+
# Array of discount codes to apply.
|
|
9
|
+
attr_accessor :codes
|
|
10
|
+
# Whether to enforce strict eligibility for discount codes. Defaults to true. When false, invalid codes are returned in the discounts.invalid array instead of raising an error.
|
|
11
|
+
attr_accessor :enforce_strict_eligibility
|
|
12
|
+
|
|
13
|
+
def initialize(codes: nil, enforce_strict_eligibility: nil)
|
|
14
|
+
@codes = codes
|
|
15
|
+
@enforce_strict_eligibility = enforce_strict_eligibility
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
7
19
|
class FulfillmentDetails < ::Stripe::RequestParams
|
|
8
20
|
class Address < ::Stripe::RequestParams
|
|
9
21
|
# City, district, suburb, town, or village.
|
|
@@ -163,6 +175,8 @@ module Stripe
|
|
|
163
175
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
164
176
|
end
|
|
165
177
|
end
|
|
178
|
+
# The discount codes to apply to this requested session.
|
|
179
|
+
attr_accessor :discounts
|
|
166
180
|
# Specifies which fields in the response should be expanded.
|
|
167
181
|
attr_accessor :expand
|
|
168
182
|
# The details of the fulfillment.
|
|
@@ -179,6 +193,7 @@ module Stripe
|
|
|
179
193
|
attr_accessor :shared_metadata
|
|
180
194
|
|
|
181
195
|
def initialize(
|
|
196
|
+
discounts: nil,
|
|
182
197
|
expand: nil,
|
|
183
198
|
fulfillment_details: nil,
|
|
184
199
|
line_item_details: nil,
|
|
@@ -187,6 +202,7 @@ module Stripe
|
|
|
187
202
|
payment_method_options: nil,
|
|
188
203
|
shared_metadata: nil
|
|
189
204
|
)
|
|
205
|
+
@discounts = discounts
|
|
190
206
|
@expand = expand
|
|
191
207
|
@fulfillment_details = fulfillment_details
|
|
192
208
|
@line_item_details = line_item_details
|
|
@@ -198,44 +198,7 @@ module Stripe
|
|
|
198
198
|
end
|
|
199
199
|
end
|
|
200
200
|
|
|
201
|
-
class CheckScan < ::Stripe::RequestParams
|
|
202
|
-
class CheckDepositAddress < ::Stripe::RequestParams
|
|
203
|
-
# Attribute for param field city
|
|
204
|
-
attr_accessor :city
|
|
205
|
-
# Attribute for param field country
|
|
206
|
-
attr_accessor :country
|
|
207
|
-
# Attribute for param field line1
|
|
208
|
-
attr_accessor :line1
|
|
209
|
-
# Attribute for param field line2
|
|
210
|
-
attr_accessor :line2
|
|
211
|
-
# Attribute for param field postal_code
|
|
212
|
-
attr_accessor :postal_code
|
|
213
|
-
# Attribute for param field state
|
|
214
|
-
attr_accessor :state
|
|
215
|
-
|
|
216
|
-
def initialize(
|
|
217
|
-
city: nil,
|
|
218
|
-
country: nil,
|
|
219
|
-
line1: nil,
|
|
220
|
-
line2: nil,
|
|
221
|
-
postal_code: nil,
|
|
222
|
-
state: nil
|
|
223
|
-
)
|
|
224
|
-
@city = city
|
|
225
|
-
@country = country
|
|
226
|
-
@line1 = line1
|
|
227
|
-
@line2 = line2
|
|
228
|
-
@postal_code = postal_code
|
|
229
|
-
@state = state
|
|
230
|
-
end
|
|
231
|
-
end
|
|
232
|
-
# Attribute for param field check_deposit_address
|
|
233
|
-
attr_accessor :check_deposit_address
|
|
234
|
-
|
|
235
|
-
def initialize(check_deposit_address: nil)
|
|
236
|
-
@check_deposit_address = check_deposit_address
|
|
237
|
-
end
|
|
238
|
-
end
|
|
201
|
+
class CheckScan < ::Stripe::RequestParams; end
|
|
239
202
|
|
|
240
203
|
class CustomerBalance < ::Stripe::RequestParams
|
|
241
204
|
class BankTransfer < ::Stripe::RequestParams
|
|
@@ -186,44 +186,7 @@ module Stripe
|
|
|
186
186
|
end
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
class CheckScan < ::Stripe::RequestParams
|
|
190
|
-
class CheckDepositAddress < ::Stripe::RequestParams
|
|
191
|
-
# Attribute for param field city
|
|
192
|
-
attr_accessor :city
|
|
193
|
-
# Attribute for param field country
|
|
194
|
-
attr_accessor :country
|
|
195
|
-
# Attribute for param field line1
|
|
196
|
-
attr_accessor :line1
|
|
197
|
-
# Attribute for param field line2
|
|
198
|
-
attr_accessor :line2
|
|
199
|
-
# Attribute for param field postal_code
|
|
200
|
-
attr_accessor :postal_code
|
|
201
|
-
# Attribute for param field state
|
|
202
|
-
attr_accessor :state
|
|
203
|
-
|
|
204
|
-
def initialize(
|
|
205
|
-
city: nil,
|
|
206
|
-
country: nil,
|
|
207
|
-
line1: nil,
|
|
208
|
-
line2: nil,
|
|
209
|
-
postal_code: nil,
|
|
210
|
-
state: nil
|
|
211
|
-
)
|
|
212
|
-
@city = city
|
|
213
|
-
@country = country
|
|
214
|
-
@line1 = line1
|
|
215
|
-
@line2 = line2
|
|
216
|
-
@postal_code = postal_code
|
|
217
|
-
@state = state
|
|
218
|
-
end
|
|
219
|
-
end
|
|
220
|
-
# Attribute for param field check_deposit_address
|
|
221
|
-
attr_accessor :check_deposit_address
|
|
222
|
-
|
|
223
|
-
def initialize(check_deposit_address: nil)
|
|
224
|
-
@check_deposit_address = check_deposit_address
|
|
225
|
-
end
|
|
226
|
-
end
|
|
189
|
+
class CheckScan < ::Stripe::RequestParams; end
|
|
227
190
|
|
|
228
191
|
class CustomerBalance < ::Stripe::RequestParams
|
|
229
192
|
class BankTransfer < ::Stripe::RequestParams
|
data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
class DisputeSimulateNetworkLifecyclePreArbitrationResponseParams < ::Stripe::RequestParams
|
|
7
|
+
class MerchantEvidenceFiles < ::Stripe::RequestParams
|
|
8
|
+
# How many simulated merchant evidence file tokens to attach (between 1 and 12).
|
|
9
|
+
attr_accessor :number_to_generate
|
|
10
|
+
|
|
11
|
+
def initialize(number_to_generate: nil)
|
|
12
|
+
@number_to_generate = number_to_generate
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
# Specifies which fields in the response should be expanded.
|
|
16
|
+
attr_accessor :expand
|
|
17
|
+
# Controls the acquiring merchant's simulated submitted evidence files for the pre-arbitration response stage.
|
|
18
|
+
attr_accessor :merchant_evidence_files
|
|
19
|
+
|
|
20
|
+
def initialize(expand: nil, merchant_evidence_files: nil)
|
|
21
|
+
@expand = expand
|
|
22
|
+
@merchant_evidence_files = merchant_evidence_files
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
class DisputeSimulateNetworkLifecyclePreArbitrationSubmissionParams < ::Stripe::RequestParams
|
|
7
|
+
class MerchantEvidenceFiles < ::Stripe::RequestParams
|
|
8
|
+
# How many simulated merchant evidence file tokens to attach (between 1 and 12).
|
|
9
|
+
attr_accessor :number_to_generate
|
|
10
|
+
|
|
11
|
+
def initialize(number_to_generate: nil)
|
|
12
|
+
@number_to_generate = number_to_generate
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
# Specifies which fields in the response should be expanded.
|
|
16
|
+
attr_accessor :expand
|
|
17
|
+
# Controls the acquiring merchant's simulated submitted evidence files for the pre-arbitration submission stage.
|
|
18
|
+
attr_accessor :merchant_evidence_files
|
|
19
|
+
|
|
20
|
+
def initialize(expand: nil, merchant_evidence_files: nil)
|
|
21
|
+
@expand = expand
|
|
22
|
+
@merchant_evidence_files = merchant_evidence_files
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -28,13 +28,22 @@ module Stripe
|
|
|
28
28
|
attr_accessor :guaranteed_at
|
|
29
29
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
30
30
|
attr_accessor :metadata
|
|
31
|
+
# Payment evaluations associated with this reported payment.
|
|
32
|
+
attr_accessor :payment_evaluations
|
|
31
33
|
# Processor information for this payment.
|
|
32
34
|
attr_accessor :processor_details
|
|
33
35
|
|
|
34
|
-
def initialize(
|
|
36
|
+
def initialize(
|
|
37
|
+
expand: nil,
|
|
38
|
+
guaranteed_at: nil,
|
|
39
|
+
metadata: nil,
|
|
40
|
+
payment_evaluations: nil,
|
|
41
|
+
processor_details: nil
|
|
42
|
+
)
|
|
35
43
|
@expand = expand
|
|
36
44
|
@guaranteed_at = guaranteed_at
|
|
37
45
|
@metadata = metadata
|
|
46
|
+
@payment_evaluations = payment_evaluations
|
|
38
47
|
@processor_details = processor_details
|
|
39
48
|
end
|
|
40
49
|
end
|
|
@@ -2179,6 +2179,8 @@ module Stripe
|
|
|
2179
2179
|
attr_accessor :flight
|
|
2180
2180
|
# Flight data for this PaymentIntent.
|
|
2181
2181
|
attr_accessor :flight_data
|
|
2182
|
+
# The ID of the Payment Location for this PaymentIntent.
|
|
2183
|
+
attr_accessor :location
|
|
2182
2184
|
# Lodging reservation details for this PaymentIntent
|
|
2183
2185
|
attr_accessor :lodging
|
|
2184
2186
|
# Lodging data for this PaymentIntent.
|
|
@@ -2201,6 +2203,7 @@ module Stripe
|
|
|
2201
2203
|
fleet_data: nil,
|
|
2202
2204
|
flight: nil,
|
|
2203
2205
|
flight_data: nil,
|
|
2206
|
+
location: nil,
|
|
2204
2207
|
lodging: nil,
|
|
2205
2208
|
lodging_data: nil,
|
|
2206
2209
|
money_services: nil,
|
|
@@ -2215,6 +2218,7 @@ module Stripe
|
|
|
2215
2218
|
@fleet_data = fleet_data
|
|
2216
2219
|
@flight = flight
|
|
2217
2220
|
@flight_data = flight_data
|
|
2221
|
+
@location = location
|
|
2218
2222
|
@lodging = lodging
|
|
2219
2223
|
@lodging_data = lodging_data
|
|
2220
2224
|
@money_services = money_services
|
|
@@ -2193,6 +2193,8 @@ module Stripe
|
|
|
2193
2193
|
attr_accessor :flight
|
|
2194
2194
|
# Flight data for this PaymentIntent.
|
|
2195
2195
|
attr_accessor :flight_data
|
|
2196
|
+
# The ID of the Payment Location for this PaymentIntent.
|
|
2197
|
+
attr_accessor :location
|
|
2196
2198
|
# Lodging reservation details for this PaymentIntent
|
|
2197
2199
|
attr_accessor :lodging
|
|
2198
2200
|
# Lodging data for this PaymentIntent.
|
|
@@ -2215,6 +2217,7 @@ module Stripe
|
|
|
2215
2217
|
fleet_data: nil,
|
|
2216
2218
|
flight: nil,
|
|
2217
2219
|
flight_data: nil,
|
|
2220
|
+
location: nil,
|
|
2218
2221
|
lodging: nil,
|
|
2219
2222
|
lodging_data: nil,
|
|
2220
2223
|
money_services: nil,
|
|
@@ -2229,6 +2232,7 @@ module Stripe
|
|
|
2229
2232
|
@fleet_data = fleet_data
|
|
2230
2233
|
@flight = flight
|
|
2231
2234
|
@flight_data = flight_data
|
|
2235
|
+
@location = location
|
|
2232
2236
|
@lodging = lodging
|
|
2233
2237
|
@lodging_data = lodging_data
|
|
2234
2238
|
@money_services = money_services
|
|
@@ -2171,6 +2171,8 @@ module Stripe
|
|
|
2171
2171
|
attr_accessor :flight
|
|
2172
2172
|
# Flight data for this PaymentIntent.
|
|
2173
2173
|
attr_accessor :flight_data
|
|
2174
|
+
# The ID of the Payment Location for this PaymentIntent.
|
|
2175
|
+
attr_accessor :location
|
|
2174
2176
|
# Lodging reservation details for this PaymentIntent
|
|
2175
2177
|
attr_accessor :lodging
|
|
2176
2178
|
# Lodging data for this PaymentIntent.
|
|
@@ -2193,6 +2195,7 @@ module Stripe
|
|
|
2193
2195
|
fleet_data: nil,
|
|
2194
2196
|
flight: nil,
|
|
2195
2197
|
flight_data: nil,
|
|
2198
|
+
location: nil,
|
|
2196
2199
|
lodging: nil,
|
|
2197
2200
|
lodging_data: nil,
|
|
2198
2201
|
money_services: nil,
|
|
@@ -2207,6 +2210,7 @@ module Stripe
|
|
|
2207
2210
|
@fleet_data = fleet_data
|
|
2208
2211
|
@flight = flight
|
|
2209
2212
|
@flight_data = flight_data
|
|
2213
|
+
@location = location
|
|
2210
2214
|
@lodging = lodging
|
|
2211
2215
|
@lodging_data = lodging_data
|
|
2212
2216
|
@money_services = money_services
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class PaymentLocationListParams < ::Stripe::RequestParams
|
|
6
|
+
# Specifies which fields in the response should be expanded.
|
|
7
|
+
attr_accessor :expand
|
|
8
|
+
|
|
9
|
+
def initialize(expand: nil)
|
|
10
|
+
@expand = expand
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -43,12 +43,21 @@ module Stripe
|
|
|
43
43
|
attr_accessor :display_name
|
|
44
44
|
# Specifies which fields in the response should be expanded.
|
|
45
45
|
attr_accessor :expand
|
|
46
|
+
# Pass true when updating location fields that will trigger onboarding review for any of the location's active location capabilities. If this parameter is not set to true, updates that would trigger onboarding review will fail. Only applicable for locations with active location capabilities.
|
|
47
|
+
attr_accessor :onboarding_data_update_acknowledged
|
|
46
48
|
|
|
47
|
-
def initialize(
|
|
49
|
+
def initialize(
|
|
50
|
+
address: nil,
|
|
51
|
+
business_registration: nil,
|
|
52
|
+
display_name: nil,
|
|
53
|
+
expand: nil,
|
|
54
|
+
onboarding_data_update_acknowledged: nil
|
|
55
|
+
)
|
|
48
56
|
@address = address
|
|
49
57
|
@business_registration = business_registration
|
|
50
58
|
@display_name = display_name
|
|
51
59
|
@expand = expand
|
|
60
|
+
@onboarding_data_update_acknowledged = onboarding_data_update_acknowledged
|
|
52
61
|
end
|
|
53
62
|
end
|
|
54
63
|
end
|
|
@@ -28,13 +28,22 @@ module Stripe
|
|
|
28
28
|
attr_accessor :guaranteed_at
|
|
29
29
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
30
30
|
attr_accessor :metadata
|
|
31
|
+
# Payment evaluations associated with this reported payment.
|
|
32
|
+
attr_accessor :payment_evaluations
|
|
31
33
|
# Processor information for this payment.
|
|
32
34
|
attr_accessor :processor_details
|
|
33
35
|
|
|
34
|
-
def initialize(
|
|
36
|
+
def initialize(
|
|
37
|
+
expand: nil,
|
|
38
|
+
guaranteed_at: nil,
|
|
39
|
+
metadata: nil,
|
|
40
|
+
payment_evaluations: nil,
|
|
41
|
+
processor_details: nil
|
|
42
|
+
)
|
|
35
43
|
@expand = expand
|
|
36
44
|
@guaranteed_at = guaranteed_at
|
|
37
45
|
@metadata = metadata
|
|
46
|
+
@payment_evaluations = payment_evaluations
|
|
38
47
|
@processor_details = processor_details
|
|
39
48
|
end
|
|
40
49
|
end
|
|
@@ -59,11 +59,14 @@ module Stripe
|
|
|
59
59
|
end
|
|
60
60
|
# When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
|
|
61
61
|
attr_accessor :guaranteed_at
|
|
62
|
+
# Payment evaluations associated with this reported payment.
|
|
63
|
+
attr_accessor :payment_evaluations
|
|
62
64
|
# Processor information for this payment.
|
|
63
65
|
attr_accessor :processor_details
|
|
64
66
|
|
|
65
|
-
def initialize(guaranteed_at: nil, processor_details: nil)
|
|
67
|
+
def initialize(guaranteed_at: nil, payment_evaluations: nil, processor_details: nil)
|
|
66
68
|
@guaranteed_at = guaranteed_at
|
|
69
|
+
@payment_evaluations = payment_evaluations
|
|
67
70
|
@processor_details = processor_details
|
|
68
71
|
end
|
|
69
72
|
end
|