stripe 20.1.0.pre.alpha.1 → 20.1.0.pre.alpha.3
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_version.rb +1 -1
- data/lib/stripe/event_types.rb +20 -4
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +20 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_mandate_activated_event.rb +44 -0
- data/lib/stripe/events/{v2_payments_off_session_payment_requires_capture_event.rb → v2_money_management_inbound_transfer_mandate_created_event.rb} +7 -7
- data/lib/stripe/events/v2_money_management_inbound_transfer_mandate_expired_event.rb +46 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_mandate_refused_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_mandate_revoked_event.rb +44 -0
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/account_create_params.rb +9 -9
- data/lib/stripe/params/account_update_params.rb +17 -10
- data/lib/stripe/params/charge_capture_params.rb +1 -1
- data/lib/stripe/params/charge_create_params.rb +1 -1
- data/lib/stripe/params/checkout/session_create_params.rb +193 -3
- data/lib/stripe/params/checkout/session_update_params.rb +1 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +22 -0
- data/lib/stripe/params/invoice_create_params.rb +1 -1
- data/lib/stripe/params/invoice_update_params.rb +1 -1
- data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +13 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +134 -4
- data/lib/stripe/params/payment_intent_create_params.rb +134 -4
- data/lib/stripe/params/payment_intent_update_params.rb +133 -3
- data/lib/stripe/params/payment_method_create_params.rb +22 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +13 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +20 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +20 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +16 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +23 -1
- data/lib/stripe/params/setup_intent_create_params.rb +23 -1
- data/lib/stripe/params/setup_intent_update_params.rb +23 -1
- data/lib/stripe/params/subscription_create_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +2 -2
- data/lib/stripe/params/tax/registration_create_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_activate_gift_card_params.rb +10 -1
- data/lib/stripe/params/terminal/reader_cashout_gift_card_params.rb +4 -1
- data/lib/stripe/params/terminal/reader_check_gift_card_balance_params.rb +4 -1
- data/lib/stripe/params/terminal/reader_reload_gift_card_params.rb +11 -1
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +22 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +1527 -94
- data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_list_params.rb +3 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +1527 -94
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +1 -1
- data/lib/stripe/params/v2/data/report_list_params.rb +2 -2
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +1 -1
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +1 -1
- data/lib/stripe/params/v2/data/schema_list_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +6 -2
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/funding_session_create_params.rb +51 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +29 -1
- data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +18 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -13
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +1 -1
- data/lib/stripe/params/v2/risk/inquiry_list_params.rb +1 -4
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +5 -2
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +5 -2
- data/lib/stripe/params/v2/tax/integration_configuration_update_params.rb +13 -1
- data/lib/stripe/params.rb +14 -8
- data/lib/stripe/resources/account.rb +8 -6
- data/lib/stripe/resources/application_fee.rb +5 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/capital/financing_summary.rb +1 -1
- data/lib/stripe/resources/card.rb +1 -1
- data/lib/stripe/resources/charge.rb +57 -17
- data/lib/stripe/resources/checkout/session.rb +153 -1
- data/lib/stripe/resources/confirmation_token.rb +52 -0
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice.rb +1 -1
- data/lib/stripe/resources/invoice_item.rb +1 -1
- data/lib/stripe/resources/issuing/authorization.rb +34 -0
- data/lib/stripe/resources/issuing/transaction.rb +57 -0
- data/lib/stripe/resources/payment_attempt_record.rb +56 -0
- data/lib/stripe/resources/payment_intent.rb +113 -3
- data/lib/stripe/resources/payment_method.rb +52 -0
- data/lib/stripe/resources/payment_record.rb +56 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +64 -2
- data/lib/stripe/resources/radar/payment_evaluation.rb +56 -1
- data/lib/stripe/resources/radar/rule.rb +30 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +3 -3
- data/lib/stripe/resources/subscription.rb +35 -4
- data/lib/stripe/resources/subscription_schedule.rb +64 -2
- data/lib/stripe/resources/tax/registration.rb +16 -0
- data/lib/stripe/resources/v2/core/account.rb +11831 -2484
- data/lib/stripe/resources/v2/core/account_evaluation.rb +2 -0
- data/lib/stripe/resources/v2/core/event.rb +1 -1
- data/lib/stripe/resources/v2/money_management/financial_address.rb +98 -18
- data/lib/stripe/resources/v2/money_management/funding_session.rb +69 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +36 -2
- data/lib/stripe/resources/v2/money_management/inbound_transfer_mandate.rb +159 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +23 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +97 -1
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -20
- data/lib/stripe/resources/v2/provisioning/payment_method_request.rb +1 -1
- data/lib/stripe/resources/v2/provisioning/provider_service_detail.rb +24 -24
- data/lib/stripe/resources/v2/provisioning/resource.rb +13 -13
- data/lib/stripe/resources/v2/signals/account_activity.rb +3 -1
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +31 -1
- data/lib/stripe/resources/v2/signals/account_signal.rb +23 -0
- data/lib/stripe/resources/v2/tax/integration_configuration.rb +16 -1
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +31 -5
- data/lib/stripe/services/subscription_service.rb +1 -1
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +2 -2
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -28
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +1 -1
- data/lib/stripe/services/v2/money_management/funding_session_service.rb +21 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_mandate_service.rb +59 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +8 -6
- data/lib/stripe/services/v2/money_management_service.rb +4 -1
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -11
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +1 -1
- data/lib/stripe/services/v2/signals/account_signal_service.rb +2 -2
- data/lib/stripe/services.rb +4 -0
- data/lib/stripe/singleton_api_resource.rb +6 -0
- data/lib/stripe/stripe_event_notification_handler.rb +20 -4
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +17480 -1346
- metadata +17 -6
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -178
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b64703617ce265046f5dbe18d6086a33e03314c04912c7d316cb4956d78ebbe
|
|
4
|
+
data.tar.gz: ebe9972ad850ba4309c6100b1221ebf6c182baa5d1eff88e544a862d099492f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef80c9aa1e1ee02e15ab8d97975c227f57b40f36051456602557c41411835415521b7d7d04eaa8a0c2c841e661cd32deb8eac4445d2bc7374717e9cb8b108e29
|
|
7
|
+
data.tar.gz: 13d9691e5e715b0986f5983f76f4ad04fdf7bab55473b118820b539ac9a8a20ff31569c891c0b812fd5375a411800690ef7c29487834173084caae4672356dc2
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/event_types.rb
CHANGED
|
@@ -595,6 +595,16 @@ module Stripe
|
|
|
595
595
|
Events::V2MoneyManagementInboundTransferBankDebitReturnedEvent,
|
|
596
596
|
Events::V2MoneyManagementInboundTransferBankDebitSucceededEvent.lookup_type =>
|
|
597
597
|
Events::V2MoneyManagementInboundTransferBankDebitSucceededEvent,
|
|
598
|
+
Events::V2MoneyManagementInboundTransferMandateActivatedEvent.lookup_type =>
|
|
599
|
+
Events::V2MoneyManagementInboundTransferMandateActivatedEvent,
|
|
600
|
+
Events::V2MoneyManagementInboundTransferMandateCreatedEvent.lookup_type =>
|
|
601
|
+
Events::V2MoneyManagementInboundTransferMandateCreatedEvent,
|
|
602
|
+
Events::V2MoneyManagementInboundTransferMandateExpiredEvent.lookup_type =>
|
|
603
|
+
Events::V2MoneyManagementInboundTransferMandateExpiredEvent,
|
|
604
|
+
Events::V2MoneyManagementInboundTransferMandateRefusedEvent.lookup_type =>
|
|
605
|
+
Events::V2MoneyManagementInboundTransferMandateRefusedEvent,
|
|
606
|
+
Events::V2MoneyManagementInboundTransferMandateRevokedEvent.lookup_type =>
|
|
607
|
+
Events::V2MoneyManagementInboundTransferMandateRevokedEvent,
|
|
598
608
|
Events::V2MoneyManagementOutboundPaymentCanceledEvent.lookup_type =>
|
|
599
609
|
Events::V2MoneyManagementOutboundPaymentCanceledEvent,
|
|
600
610
|
Events::V2MoneyManagementOutboundPaymentCreatedEvent.lookup_type =>
|
|
@@ -701,8 +711,6 @@ module Stripe
|
|
|
701
711
|
Events::V2PaymentsOffSessionPaymentFailedEvent,
|
|
702
712
|
Events::V2PaymentsOffSessionPaymentPausedEvent.lookup_type =>
|
|
703
713
|
Events::V2PaymentsOffSessionPaymentPausedEvent,
|
|
704
|
-
Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent.lookup_type =>
|
|
705
|
-
Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent,
|
|
706
714
|
Events::V2PaymentsOffSessionPaymentResumedEvent.lookup_type =>
|
|
707
715
|
Events::V2PaymentsOffSessionPaymentResumedEvent,
|
|
708
716
|
Events::V2PaymentsOffSessionPaymentSucceededEvent.lookup_type =>
|
|
@@ -1485,6 +1493,16 @@ module Stripe
|
|
|
1485
1493
|
Events::V2MoneyManagementInboundTransferBankDebitReturnedEventNotification,
|
|
1486
1494
|
Events::V2MoneyManagementInboundTransferBankDebitSucceededEventNotification.lookup_type =>
|
|
1487
1495
|
Events::V2MoneyManagementInboundTransferBankDebitSucceededEventNotification,
|
|
1496
|
+
Events::V2MoneyManagementInboundTransferMandateActivatedEventNotification.lookup_type =>
|
|
1497
|
+
Events::V2MoneyManagementInboundTransferMandateActivatedEventNotification,
|
|
1498
|
+
Events::V2MoneyManagementInboundTransferMandateCreatedEventNotification.lookup_type =>
|
|
1499
|
+
Events::V2MoneyManagementInboundTransferMandateCreatedEventNotification,
|
|
1500
|
+
Events::V2MoneyManagementInboundTransferMandateExpiredEventNotification.lookup_type =>
|
|
1501
|
+
Events::V2MoneyManagementInboundTransferMandateExpiredEventNotification,
|
|
1502
|
+
Events::V2MoneyManagementInboundTransferMandateRefusedEventNotification.lookup_type =>
|
|
1503
|
+
Events::V2MoneyManagementInboundTransferMandateRefusedEventNotification,
|
|
1504
|
+
Events::V2MoneyManagementInboundTransferMandateRevokedEventNotification.lookup_type =>
|
|
1505
|
+
Events::V2MoneyManagementInboundTransferMandateRevokedEventNotification,
|
|
1488
1506
|
Events::V2MoneyManagementOutboundPaymentCanceledEventNotification.lookup_type =>
|
|
1489
1507
|
Events::V2MoneyManagementOutboundPaymentCanceledEventNotification,
|
|
1490
1508
|
Events::V2MoneyManagementOutboundPaymentCreatedEventNotification.lookup_type =>
|
|
@@ -1591,8 +1609,6 @@ module Stripe
|
|
|
1591
1609
|
Events::V2PaymentsOffSessionPaymentFailedEventNotification,
|
|
1592
1610
|
Events::V2PaymentsOffSessionPaymentPausedEventNotification.lookup_type =>
|
|
1593
1611
|
Events::V2PaymentsOffSessionPaymentPausedEventNotification,
|
|
1594
|
-
Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification.lookup_type =>
|
|
1595
|
-
Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification,
|
|
1596
1612
|
Events::V2PaymentsOffSessionPaymentResumedEventNotification.lookup_type =>
|
|
1597
1613
|
Events::V2PaymentsOffSessionPaymentResumedEventNotification,
|
|
1598
1614
|
Events::V2PaymentsOffSessionPaymentSucceededEventNotification.lookup_type =>
|
|
@@ -8,6 +8,26 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v1.invoice.upcoming"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V1InvoiceUpcomingEventData < ::Stripe::StripeObject
|
|
13
|
+
# The ID of the customer this upcoming invoice is associated with.
|
|
14
|
+
attr_reader :customer
|
|
15
|
+
# The ID of the subscription, if any.
|
|
16
|
+
attr_reader :subscription
|
|
17
|
+
|
|
18
|
+
def self.inner_class_types
|
|
19
|
+
@inner_class_types = {}
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def self.field_remappings
|
|
23
|
+
@field_remappings = {}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.inner_class_types
|
|
28
|
+
@inner_class_types = { data: V1InvoiceUpcomingEventData }
|
|
29
|
+
end
|
|
30
|
+
attr_reader :data
|
|
11
31
|
end
|
|
12
32
|
|
|
13
33
|
# Occurs X number of days before a subscription is scheduled to create an invoice that is automatically charged—where X is determined by your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). Note: The received `Invoice` object will not have an invoice ID.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when an InboundTransferMandate is activated by its banking network.
|
|
7
|
+
class V2MoneyManagementInboundTransferMandateActivatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.inbound_transfer_mandate.activated"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
|
+
def fetch_related_object
|
|
14
|
+
_request(
|
|
15
|
+
method: :get,
|
|
16
|
+
path: related_object.url,
|
|
17
|
+
base_address: :api,
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :related_object
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Occurs when an InboundTransferMandate is activated by its banking network.
|
|
25
|
+
class V2MoneyManagementInboundTransferMandateActivatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.inbound_transfer_mandate.activated"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the InboundTransferMandate related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
33
|
+
def fetch_related_object
|
|
34
|
+
resp = @client.raw_request(
|
|
35
|
+
:get,
|
|
36
|
+
related_object.url,
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
|
+
usage: ["fetch_related_object"]
|
|
39
|
+
)
|
|
40
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Events
|
|
6
|
-
#
|
|
7
|
-
class
|
|
6
|
+
# Occurs when an InboundTransferMandate is created.
|
|
7
|
+
class V2MoneyManagementInboundTransferMandateCreatedEvent < Stripe::V2::Core::Event
|
|
8
8
|
def self.lookup_type
|
|
9
|
-
"v2.
|
|
9
|
+
"v2.money_management.inbound_transfer_mandate.created"
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
# Retrieves the related object from the API. Makes an API request on every call.
|
|
@@ -21,15 +21,15 @@ module Stripe
|
|
|
21
21
|
attr_reader :related_object
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
class
|
|
24
|
+
# Occurs when an InboundTransferMandate is created.
|
|
25
|
+
class V2MoneyManagementInboundTransferMandateCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
26
|
def self.lookup_type
|
|
27
|
-
"v2.
|
|
27
|
+
"v2.money_management.inbound_transfer_mandate.created"
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
attr_reader :related_object
|
|
31
31
|
|
|
32
|
-
# Retrieves the
|
|
32
|
+
# Retrieves the InboundTransferMandate related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
33
33
|
def fetch_related_object
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when an active InboundTransferMandate expires because its banking network did not
|
|
7
|
+
# complete it within the allowed window.
|
|
8
|
+
class V2MoneyManagementInboundTransferMandateExpiredEvent < Stripe::V2::Core::Event
|
|
9
|
+
def self.lookup_type
|
|
10
|
+
"v2.money_management.inbound_transfer_mandate.expired"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
14
|
+
def fetch_related_object
|
|
15
|
+
_request(
|
|
16
|
+
method: :get,
|
|
17
|
+
path: related_object.url,
|
|
18
|
+
base_address: :api,
|
|
19
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
attr_reader :related_object
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Occurs when an active InboundTransferMandate expires because its banking network did not
|
|
26
|
+
# complete it within the allowed window.
|
|
27
|
+
class V2MoneyManagementInboundTransferMandateExpiredEventNotification < Stripe::V2::Core::EventNotification
|
|
28
|
+
def self.lookup_type
|
|
29
|
+
"v2.money_management.inbound_transfer_mandate.expired"
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
attr_reader :related_object
|
|
33
|
+
|
|
34
|
+
# Retrieves the InboundTransferMandate related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
35
|
+
def fetch_related_object
|
|
36
|
+
resp = @client.raw_request(
|
|
37
|
+
:get,
|
|
38
|
+
related_object.url,
|
|
39
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
40
|
+
usage: ["fetch_related_object"]
|
|
41
|
+
)
|
|
42
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a boarding request for an InboundTransferMandate is refused by its banking network.
|
|
7
|
+
class V2MoneyManagementInboundTransferMandateRefusedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.inbound_transfer_mandate.refused"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
|
+
def fetch_related_object
|
|
14
|
+
_request(
|
|
15
|
+
method: :get,
|
|
16
|
+
path: related_object.url,
|
|
17
|
+
base_address: :api,
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :related_object
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Occurs when a boarding request for an InboundTransferMandate is refused by its banking network.
|
|
25
|
+
class V2MoneyManagementInboundTransferMandateRefusedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.inbound_transfer_mandate.refused"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the InboundTransferMandate related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
33
|
+
def fetch_related_object
|
|
34
|
+
resp = @client.raw_request(
|
|
35
|
+
:get,
|
|
36
|
+
related_object.url,
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
|
+
usage: ["fetch_related_object"]
|
|
39
|
+
)
|
|
40
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when an InboundTransferMandate is revoked by its banking network.
|
|
7
|
+
class V2MoneyManagementInboundTransferMandateRevokedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.inbound_transfer_mandate.revoked"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
|
+
def fetch_related_object
|
|
14
|
+
_request(
|
|
15
|
+
method: :get,
|
|
16
|
+
path: related_object.url,
|
|
17
|
+
base_address: :api,
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :related_object
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Occurs when an InboundTransferMandate is revoked by its banking network.
|
|
25
|
+
class V2MoneyManagementInboundTransferMandateRevokedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.inbound_transfer_mandate.revoked"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the InboundTransferMandate related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
33
|
+
def fetch_related_object
|
|
34
|
+
resp = @client.raw_request(
|
|
35
|
+
:get,
|
|
36
|
+
related_object.url,
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
|
+
usage: ["fetch_related_object"]
|
|
39
|
+
)
|
|
40
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
data/lib/stripe/object_types.rb
CHANGED
|
@@ -160,6 +160,7 @@ module Stripe
|
|
|
160
160
|
Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
|
|
161
161
|
Radar::IssuingAuthorizationEvaluation.object_name => Radar::IssuingAuthorizationEvaluation,
|
|
162
162
|
Radar::PaymentEvaluation.object_name => Radar::PaymentEvaluation,
|
|
163
|
+
Radar::Rule.object_name => Radar::Rule,
|
|
163
164
|
Radar::ValueList.object_name => Radar::ValueList,
|
|
164
165
|
Radar::ValueListItem.object_name => Radar::ValueListItem,
|
|
165
166
|
Refund.object_name => Refund,
|
|
@@ -313,7 +314,10 @@ module Stripe
|
|
|
313
314
|
V2::MoneyManagement::FinancialAddressDebitSimulation,
|
|
314
315
|
V2::MoneyManagement::FinancialAddressGeneratedMicrodeposits.object_name =>
|
|
315
316
|
V2::MoneyManagement::FinancialAddressGeneratedMicrodeposits,
|
|
317
|
+
V2::MoneyManagement::FundingSession.object_name => V2::MoneyManagement::FundingSession,
|
|
316
318
|
V2::MoneyManagement::InboundTransfer.object_name => V2::MoneyManagement::InboundTransfer,
|
|
319
|
+
V2::MoneyManagement::InboundTransferMandate.object_name =>
|
|
320
|
+
V2::MoneyManagement::InboundTransferMandate,
|
|
317
321
|
V2::MoneyManagement::OutboundPayment.object_name => V2::MoneyManagement::OutboundPayment,
|
|
318
322
|
V2::MoneyManagement::OutboundPaymentQuote.object_name => V2::MoneyManagement::OutboundPaymentQuote,
|
|
319
323
|
V2::MoneyManagement::OutboundSetupIntent.object_name => V2::MoneyManagement::OutboundSetupIntent,
|
|
@@ -2579,12 +2579,12 @@ module Stripe
|
|
|
2579
2579
|
end
|
|
2580
2580
|
end
|
|
2581
2581
|
|
|
2582
|
-
class
|
|
2583
|
-
# The domains of the user's mobile web checkout pages for WeChat Pay payments.
|
|
2584
|
-
attr_accessor :
|
|
2582
|
+
class WechatPayMobileWebPayments < ::Stripe::RequestParams
|
|
2583
|
+
# The domains of the user's mobile web checkout pages for WeChat Pay payments.
|
|
2584
|
+
attr_accessor :domains
|
|
2585
2585
|
|
|
2586
|
-
def initialize(
|
|
2587
|
-
@
|
|
2586
|
+
def initialize(domains: nil)
|
|
2587
|
+
@domains = domains
|
|
2588
2588
|
end
|
|
2589
2589
|
end
|
|
2590
2590
|
# Settings specific to Bacs Direct Debit.
|
|
@@ -2615,8 +2615,8 @@ module Stripe
|
|
|
2615
2615
|
attr_accessor :tax_forms
|
|
2616
2616
|
# Settings specific to the account's Treasury FinancialAccounts.
|
|
2617
2617
|
attr_accessor :treasury
|
|
2618
|
-
# Settings specific to
|
|
2619
|
-
attr_accessor :
|
|
2618
|
+
# Settings specific to WeChat Pay payments made through a mobile web browser.
|
|
2619
|
+
attr_accessor :wechat_pay_mobile_web_payments
|
|
2620
2620
|
|
|
2621
2621
|
def initialize(
|
|
2622
2622
|
bacs_debit_payments: nil,
|
|
@@ -2633,7 +2633,7 @@ module Stripe
|
|
|
2633
2633
|
smart_disputes: nil,
|
|
2634
2634
|
tax_forms: nil,
|
|
2635
2635
|
treasury: nil,
|
|
2636
|
-
|
|
2636
|
+
wechat_pay_mobile_web_payments: nil
|
|
2637
2637
|
)
|
|
2638
2638
|
@bacs_debit_payments = bacs_debit_payments
|
|
2639
2639
|
@bank_bca_onboarding = bank_bca_onboarding
|
|
@@ -2649,7 +2649,7 @@ module Stripe
|
|
|
2649
2649
|
@smart_disputes = smart_disputes
|
|
2650
2650
|
@tax_forms = tax_forms
|
|
2651
2651
|
@treasury = treasury
|
|
2652
|
-
@
|
|
2652
|
+
@wechat_pay_mobile_web_payments = wechat_pay_mobile_web_payments
|
|
2653
2653
|
end
|
|
2654
2654
|
end
|
|
2655
2655
|
|
|
@@ -2265,12 +2265,19 @@ module Stripe
|
|
|
2265
2265
|
end
|
|
2266
2266
|
|
|
2267
2267
|
class Capital < ::Stripe::RequestParams
|
|
2268
|
+
# The payout destinations excluded from Capital financing payouts.
|
|
2269
|
+
attr_accessor :excluded_payout_destinations
|
|
2268
2270
|
# Per-currency mapping of user-selected destination accounts used to pay out loans.
|
|
2269
2271
|
attr_accessor :payout_destination
|
|
2270
2272
|
# Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
|
|
2271
2273
|
attr_accessor :payout_destination_selector
|
|
2272
2274
|
|
|
2273
|
-
def initialize(
|
|
2275
|
+
def initialize(
|
|
2276
|
+
excluded_payout_destinations: nil,
|
|
2277
|
+
payout_destination: nil,
|
|
2278
|
+
payout_destination_selector: nil
|
|
2279
|
+
)
|
|
2280
|
+
@excluded_payout_destinations = excluded_payout_destinations
|
|
2274
2281
|
@payout_destination = payout_destination
|
|
2275
2282
|
@payout_destination_selector = payout_destination_selector
|
|
2276
2283
|
end
|
|
@@ -2525,12 +2532,12 @@ module Stripe
|
|
|
2525
2532
|
end
|
|
2526
2533
|
end
|
|
2527
2534
|
|
|
2528
|
-
class
|
|
2529
|
-
# The domains of the user's mobile web checkout pages for WeChat Pay payments.
|
|
2530
|
-
attr_accessor :
|
|
2535
|
+
class WechatPayMobileWebPayments < ::Stripe::RequestParams
|
|
2536
|
+
# The domains of the user's mobile web checkout pages for WeChat Pay payments.
|
|
2537
|
+
attr_accessor :domains
|
|
2531
2538
|
|
|
2532
|
-
def initialize(
|
|
2533
|
-
@
|
|
2539
|
+
def initialize(domains: nil)
|
|
2540
|
+
@domains = domains
|
|
2534
2541
|
end
|
|
2535
2542
|
end
|
|
2536
2543
|
# Settings specific to Bacs Direct Debit payments.
|
|
@@ -2561,8 +2568,8 @@ module Stripe
|
|
|
2561
2568
|
attr_accessor :tax_forms
|
|
2562
2569
|
# Settings specific to the account's Treasury FinancialAccounts.
|
|
2563
2570
|
attr_accessor :treasury
|
|
2564
|
-
# Settings specific to
|
|
2565
|
-
attr_accessor :
|
|
2571
|
+
# Settings specific to WeChat Pay payments made through a mobile web browser.
|
|
2572
|
+
attr_accessor :wechat_pay_mobile_web_payments
|
|
2566
2573
|
|
|
2567
2574
|
def initialize(
|
|
2568
2575
|
bacs_debit_payments: nil,
|
|
@@ -2579,7 +2586,7 @@ module Stripe
|
|
|
2579
2586
|
smart_disputes: nil,
|
|
2580
2587
|
tax_forms: nil,
|
|
2581
2588
|
treasury: nil,
|
|
2582
|
-
|
|
2589
|
+
wechat_pay_mobile_web_payments: nil
|
|
2583
2590
|
)
|
|
2584
2591
|
@bacs_debit_payments = bacs_debit_payments
|
|
2585
2592
|
@bank_bca_onboarding = bank_bca_onboarding
|
|
@@ -2595,7 +2602,7 @@ module Stripe
|
|
|
2595
2602
|
@smart_disputes = smart_disputes
|
|
2596
2603
|
@tax_forms = tax_forms
|
|
2597
2604
|
@treasury = treasury
|
|
2598
|
-
@
|
|
2605
|
+
@wechat_pay_mobile_web_payments = wechat_pay_mobile_web_payments
|
|
2599
2606
|
end
|
|
2600
2607
|
end
|
|
2601
2608
|
|
|
@@ -1760,7 +1760,7 @@ module Stripe
|
|
|
1760
1760
|
attr_accessor :expand
|
|
1761
1761
|
# Provides industry-specific information about the charge.
|
|
1762
1762
|
attr_accessor :payment_details
|
|
1763
|
-
# The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts
|
|
1763
|
+
# The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts are only sent for payments in live mode.
|
|
1764
1764
|
attr_accessor :receipt_email
|
|
1765
1765
|
# For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
|
1766
1766
|
#
|
|
@@ -113,7 +113,7 @@ module Stripe
|
|
|
113
113
|
attr_accessor :on_behalf_of
|
|
114
114
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
115
115
|
attr_accessor :radar_options
|
|
116
|
-
# The email address to which this charge's [receipt](https://docs.stripe.com/dashboard/receipts) will be sent. The receipt will not be sent until the charge is paid, and
|
|
116
|
+
# The email address to which this charge's [receipt](https://docs.stripe.com/dashboard/receipts) will be sent. The receipt will not be sent until the charge is paid, and receipts are only sent for payments in live mode. If this charge is for a [Customer](https://docs.stripe.com/api/customers/object), the email address specified here will override the customer's email address. If `receipt_email` is specified for a charge in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
|
117
117
|
attr_accessor :receipt_email
|
|
118
118
|
# Shipping information for the charge. Helps prevent fraud on charges for physical goods.
|
|
119
119
|
attr_accessor :shipping
|