stripe 19.2.0.pre.alpha.3 → 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/unknown_event_notification.rb +1 -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 +6 -0
- data/lib/stripe/params/account_create_params.rb +20 -1
- data/lib/stripe/params/account_update_params.rb +20 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +13 -0
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +4 -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 +17 -0
- data/lib/stripe/params/payment_intent_create_params.rb +17 -0
- data/lib/stripe/params/payment_intent_update_params.rb +17 -0
- data/lib/stripe/params/payment_location_create_params.rb +54 -0
- data/lib/stripe/params/payment_location_delete_params.rb +6 -0
- data/lib/stripe/params/payment_location_list_params.rb +13 -0
- data/lib/stripe/params/payment_location_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_location_update_params.rb +63 -0
- data/lib/stripe/params/payment_method_create_params.rb +13 -0
- 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 +17 -1
- data/lib/stripe/params/setup_intent_create_params.rb +17 -1
- data/lib/stripe/params/setup_intent_update_params.rb +17 -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/confirmation_token_create_params.rb +13 -0
- 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 -960
- data/lib/stripe/railtie.rb +8 -0
- data/lib/stripe/resources/capability.rb +36 -1
- data/lib/stripe/resources/confirmation_token.rb +26 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +93 -1
- data/lib/stripe/resources/invoice.rb +1 -26
- data/lib/stripe/resources/invoice_item.rb +34 -1
- data/lib/stripe/resources/issuing/dispute.rb +127 -0
- data/lib/stripe/resources/payment_location.rb +165 -0
- data/lib/stripe/resources/payment_method.rb +26 -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/shared_payment/granted_token.rb +26 -0
- data/lib/stripe/resources/subscription.rb +45 -26
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- 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 -665
- data/lib/stripe/services/payment_location_service.rb +61 -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/v1_services.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 -321
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_event_notification_handler.rb +2490 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +26 -4
- data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +2195 -395
- metadata +35 -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
|
@@ -117,6 +117,7 @@ module Stripe
|
|
|
117
117
|
PaymentIntent.object_name => PaymentIntent,
|
|
118
118
|
PaymentIntentAmountDetailsLineItem.object_name => PaymentIntentAmountDetailsLineItem,
|
|
119
119
|
PaymentLink.object_name => PaymentLink,
|
|
120
|
+
PaymentLocation.object_name => PaymentLocation,
|
|
120
121
|
PaymentMethod.object_name => PaymentMethod,
|
|
121
122
|
PaymentMethodBalance.object_name => PaymentMethodBalance,
|
|
122
123
|
PaymentMethodConfiguration.object_name => PaymentMethodConfiguration,
|
|
@@ -253,6 +254,8 @@ module Stripe
|
|
|
253
254
|
V2::Core::ConnectionSession.object_name => V2::Core::ConnectionSession,
|
|
254
255
|
V2::Core::Event.object_name => V2::Core::Event,
|
|
255
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,
|
|
256
259
|
V2::Core::Vault::GbBankAccount.object_name => V2::Core::Vault::GbBankAccount,
|
|
257
260
|
V2::Core::Vault::UsBankAccount.object_name => V2::Core::Vault::UsBankAccount,
|
|
258
261
|
V2::Data::Analytics::MetricQueryResult.object_name => V2::Data::Analytics::MetricQueryResult,
|
|
@@ -266,7 +269,10 @@ module Stripe
|
|
|
266
269
|
V2::Iam::ApiKey.object_name => V2::Iam::ApiKey,
|
|
267
270
|
V2::MoneyManagement::Adjustment.object_name => V2::MoneyManagement::Adjustment,
|
|
268
271
|
V2::MoneyManagement::CurrencyConversion.object_name => V2::MoneyManagement::CurrencyConversion,
|
|
272
|
+
V2::MoneyManagement::DebitDispute.object_name => V2::MoneyManagement::DebitDispute,
|
|
269
273
|
V2::MoneyManagement::FinancialAccount.object_name => V2::MoneyManagement::FinancialAccount,
|
|
274
|
+
V2::MoneyManagement::FinancialAccountStatement.object_name =>
|
|
275
|
+
V2::MoneyManagement::FinancialAccountStatement,
|
|
270
276
|
V2::MoneyManagement::FinancialAddress.object_name => V2::MoneyManagement::FinancialAddress,
|
|
271
277
|
V2::MoneyManagement::InboundTransfer.object_name => V2::MoneyManagement::InboundTransfer,
|
|
272
278
|
V2::MoneyManagement::OutboundPayment.object_name => V2::MoneyManagement::OutboundPayment,
|
|
@@ -291,10 +291,29 @@ module Stripe
|
|
|
291
291
|
end
|
|
292
292
|
|
|
293
293
|
class CardPayments < ::Stripe::RequestParams
|
|
294
|
+
class Protections < ::Stripe::RequestParams
|
|
295
|
+
class PspMigration < ::Stripe::RequestParams
|
|
296
|
+
# Passing true requests the protection.
|
|
297
|
+
attr_accessor :requested
|
|
298
|
+
|
|
299
|
+
def initialize(requested: nil)
|
|
300
|
+
@requested = requested
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
# Protection for connected accounts migrating from another PSP.
|
|
304
|
+
attr_accessor :psp_migration
|
|
305
|
+
|
|
306
|
+
def initialize(psp_migration: nil)
|
|
307
|
+
@psp_migration = psp_migration
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
# Protections to apply to this capability.
|
|
311
|
+
attr_accessor :protections
|
|
294
312
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
295
313
|
attr_accessor :requested
|
|
296
314
|
|
|
297
|
-
def initialize(requested: nil)
|
|
315
|
+
def initialize(protections: nil, requested: nil)
|
|
316
|
+
@protections = protections
|
|
298
317
|
@requested = requested
|
|
299
318
|
end
|
|
300
319
|
end
|
|
@@ -291,10 +291,29 @@ module Stripe
|
|
|
291
291
|
end
|
|
292
292
|
|
|
293
293
|
class CardPayments < ::Stripe::RequestParams
|
|
294
|
+
class Protections < ::Stripe::RequestParams
|
|
295
|
+
class PspMigration < ::Stripe::RequestParams
|
|
296
|
+
# Passing true requests the protection.
|
|
297
|
+
attr_accessor :requested
|
|
298
|
+
|
|
299
|
+
def initialize(requested: nil)
|
|
300
|
+
@requested = requested
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
# Protection for connected accounts migrating from another PSP.
|
|
304
|
+
attr_accessor :psp_migration
|
|
305
|
+
|
|
306
|
+
def initialize(psp_migration: nil)
|
|
307
|
+
@psp_migration = psp_migration
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
# Protections to apply to this capability.
|
|
311
|
+
attr_accessor :protections
|
|
294
312
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
295
313
|
attr_accessor :requested
|
|
296
314
|
|
|
297
|
-
def initialize(requested: nil)
|
|
315
|
+
def initialize(protections: nil, requested: nil)
|
|
316
|
+
@protections = protections
|
|
298
317
|
@requested = requested
|
|
299
318
|
end
|
|
300
319
|
end
|
|
@@ -139,6 +139,15 @@ module Stripe
|
|
|
139
139
|
end
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
+
class GiftCard < ::Stripe::RequestParams
|
|
143
|
+
# The gift card ID to redeem
|
|
144
|
+
attr_accessor :gift_card
|
|
145
|
+
|
|
146
|
+
def initialize(gift_card: nil)
|
|
147
|
+
@gift_card = gift_card
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
142
151
|
class Giropay < ::Stripe::RequestParams; end
|
|
143
152
|
class Gopay < ::Stripe::RequestParams; end
|
|
144
153
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -432,6 +441,8 @@ module Stripe
|
|
|
432
441
|
attr_accessor :eps
|
|
433
442
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
434
443
|
attr_accessor :fpx
|
|
444
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
445
|
+
attr_accessor :gift_card
|
|
435
446
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
436
447
|
attr_accessor :giropay
|
|
437
448
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -545,6 +556,7 @@ module Stripe
|
|
|
545
556
|
customer_balance: nil,
|
|
546
557
|
eps: nil,
|
|
547
558
|
fpx: nil,
|
|
559
|
+
gift_card: nil,
|
|
548
560
|
giropay: nil,
|
|
549
561
|
gopay: nil,
|
|
550
562
|
grabpay: nil,
|
|
@@ -611,6 +623,7 @@ module Stripe
|
|
|
611
623
|
@customer_balance = customer_balance
|
|
612
624
|
@eps = eps
|
|
613
625
|
@fpx = fpx
|
|
626
|
+
@gift_card = gift_card
|
|
614
627
|
@giropay = giropay
|
|
615
628
|
@gopay = gopay
|
|
616
629
|
@grabpay = grabpay
|
|
@@ -137,6 +137,8 @@ module Stripe
|
|
|
137
137
|
attr_accessor :buyer_consents
|
|
138
138
|
# Specifies which fields in the response should be expanded.
|
|
139
139
|
attr_accessor :expand
|
|
140
|
+
# The metadata for this requested session.
|
|
141
|
+
attr_accessor :metadata
|
|
140
142
|
# The PaymentMethod to use with the requested session.
|
|
141
143
|
attr_accessor :payment_method
|
|
142
144
|
# The URL to redirect your customer back to after they authenticate or complete a payment action. Required for redirect-based payment methods such as Affirm or Klarna.
|
|
@@ -148,6 +150,7 @@ module Stripe
|
|
|
148
150
|
affiliate_attribution: nil,
|
|
149
151
|
buyer_consents: nil,
|
|
150
152
|
expand: nil,
|
|
153
|
+
metadata: nil,
|
|
151
154
|
payment_method: nil,
|
|
152
155
|
return_url: nil,
|
|
153
156
|
risk_details: nil
|
|
@@ -155,6 +158,7 @@ module Stripe
|
|
|
155
158
|
@affiliate_attribution = affiliate_attribution
|
|
156
159
|
@buyer_consents = buyer_consents
|
|
157
160
|
@expand = expand
|
|
161
|
+
@metadata = metadata
|
|
158
162
|
@payment_method = payment_method
|
|
159
163
|
@return_url = return_url
|
|
160
164
|
@risk_details = risk_details
|
|
@@ -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
|