stripe 20.2.0.pre.alpha.1 → 20.2.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/event_types.rb +28 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
- data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +5 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +46 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
- data/lib/stripe/params/customer_update_params.rb +55 -0
- data/lib/stripe/params/fx_quote_create_params.rb +2 -2
- data/lib/stripe/params/invoice_create_params.rb +8 -1
- data/lib/stripe/params/invoice_update_params.rb +8 -1
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +58 -1
- data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
- data/lib/stripe/params/payment_intent_create_params.rb +91 -1
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_update_params.rb +91 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +42 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
- data/lib/stripe/params/quote_create_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +1 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +19 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
- data/lib/stripe/params/setup_intent_create_params.rb +50 -1
- data/lib/stripe/params/setup_intent_update_params.rb +34 -1
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -0
- data/lib/stripe/params/subscription_create_params.rb +4 -0
- data/lib/stripe/params/subscription_list_params.rb +5 -1
- data/lib/stripe/params/subscription_update_params.rb +4 -0
- data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
- data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
- data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
- data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/form_create_params.rb +504 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
- data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
- data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
- data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +27 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +373 -5
- data/lib/stripe/resources/checkout/session.rb +32 -0
- data/lib/stripe/resources/confirmation_token.rb +103 -3
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/mandate.rb +16 -0
- data/lib/stripe/resources/payment_attempt_record.rb +151 -2
- data/lib/stripe/resources/payment_intent.rb +126 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +103 -3
- data/lib/stripe/resources/payment_method_configuration.rb +68 -0
- data/lib/stripe/resources/payment_record.rb +151 -2
- data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +2 -2
- data/lib/stripe/resources/reserve/plan.rb +1 -1
- data/lib/stripe/resources/reserve/release.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +21 -2
- data/lib/stripe/resources/setup_intent.rb +38 -2
- data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
- data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
- data/lib/stripe/resources/subscription.rb +3 -1
- data/lib/stripe/resources/tax/certificate.rb +81 -0
- data/lib/stripe/resources/tax/form.rb +11 -0
- data/lib/stripe/resources/tax/form_correction.rb +43 -0
- data/lib/stripe/resources/terminal/reader.rb +18 -1
- data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
- data/lib/stripe/resources/v2/core/account_session.rb +27 -0
- data/lib/stripe/resources/v2/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -0
- data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
- data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
- data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +74 -1
- data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
- data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
- data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +46 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/reserve/hold_service.rb +2 -2
- data/lib/stripe/services/reserve/plan_service.rb +2 -2
- data/lib/stripe/services/reserve/release_service.rb +2 -2
- data/lib/stripe/services/tax/certificate_service.rb +52 -0
- data/lib/stripe/services/tax/form_service.rb +11 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/v2/core/vault/network_token_service.rb +1 -0
- data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
- data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
- data/lib/stripe/services/v2/extend_service.rb +2 -1
- data/lib/stripe/services/v2/money_management/received_debit_mandate_service.rb +3 -0
- data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +2 -1
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_event_notification_handler.rb +28 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe.rbi +5856 -213
- metadata +32 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b939fd238eaf2c1e88bb2aae8455ec54301fa95ad3fb31da3fe0bd6bfbea0d4d
|
|
4
|
+
data.tar.gz: 2761a0ebbe0849ba0a486e26f62df09175a7f7ba603977ae0ddd974e54db79ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3169195de89f6c0362789a81306e2dedfef978c09f46da4d9b1b76e2f1d7b1133b8a668ce3a3cfb7732a2e2aa01e4bb97fdc1a570fb0cc2eb02a609e8f3559ae
|
|
7
|
+
data.tar.gz: 67b088e72db2b3b77abdd787d49eb2f00d4a441a2ce47be5c1f548b4f28fd173f165c63fcedc223225131e1c71bf76cf7a7e3d207f1f3229e1b56332e447d89b
|
data/lib/stripe/event_types.rb
CHANGED
|
@@ -618,6 +618,10 @@ module Stripe
|
|
|
618
618
|
Events::V2DataReportingQueryRunUpdatedEvent.lookup_type =>
|
|
619
619
|
Events::V2DataReportingQueryRunUpdatedEvent,
|
|
620
620
|
Events::V2ExtendExtensionRunFailedEvent.lookup_type => Events::V2ExtendExtensionRunFailedEvent,
|
|
621
|
+
Events::V2ExtendObjectDefinitionCreatedEvent.lookup_type =>
|
|
622
|
+
Events::V2ExtendObjectDefinitionCreatedEvent,
|
|
623
|
+
Events::V2ExtendObjectDefinitionVersionCreatedEvent.lookup_type =>
|
|
624
|
+
Events::V2ExtendObjectDefinitionVersionCreatedEvent,
|
|
621
625
|
Events::V2ExtendWorkflowRunFailedEvent.lookup_type => Events::V2ExtendWorkflowRunFailedEvent,
|
|
622
626
|
Events::V2ExtendWorkflowRunStartedEvent.lookup_type => Events::V2ExtendWorkflowRunStartedEvent,
|
|
623
627
|
Events::V2ExtendWorkflowRunSucceededEvent.lookup_type => Events::V2ExtendWorkflowRunSucceededEvent,
|
|
@@ -808,6 +812,16 @@ module Stripe
|
|
|
808
812
|
Events::V2MoneyManagementRewardProgramRewardEarnedEvent,
|
|
809
813
|
Events::V2MoneyManagementRewardProgramRewardReversedEvent.lookup_type =>
|
|
810
814
|
Events::V2MoneyManagementRewardProgramRewardReversedEvent,
|
|
815
|
+
Events::V2MoneyManagementSpendingMandateCanceledEvent.lookup_type =>
|
|
816
|
+
Events::V2MoneyManagementSpendingMandateCanceledEvent,
|
|
817
|
+
Events::V2MoneyManagementSpendingMandateCreatedEvent.lookup_type =>
|
|
818
|
+
Events::V2MoneyManagementSpendingMandateCreatedEvent,
|
|
819
|
+
Events::V2MoneyManagementSpendingMandateExpiredEvent.lookup_type =>
|
|
820
|
+
Events::V2MoneyManagementSpendingMandateExpiredEvent,
|
|
821
|
+
Events::V2MoneyManagementSpendingMandatePendingCancellationEvent.lookup_type =>
|
|
822
|
+
Events::V2MoneyManagementSpendingMandatePendingCancellationEvent,
|
|
823
|
+
Events::V2MoneyManagementSpendingMandateUpdatedEvent.lookup_type =>
|
|
824
|
+
Events::V2MoneyManagementSpendingMandateUpdatedEvent,
|
|
811
825
|
Events::V2MoneyManagementTransactionCreatedEvent.lookup_type =>
|
|
812
826
|
Events::V2MoneyManagementTransactionCreatedEvent,
|
|
813
827
|
Events::V2MoneyManagementTransactionUpdatedEvent.lookup_type =>
|
|
@@ -1653,6 +1667,10 @@ module Stripe
|
|
|
1653
1667
|
Events::V2DataReportingQueryRunUpdatedEventNotification,
|
|
1654
1668
|
Events::V2ExtendExtensionRunFailedEventNotification.lookup_type =>
|
|
1655
1669
|
Events::V2ExtendExtensionRunFailedEventNotification,
|
|
1670
|
+
Events::V2ExtendObjectDefinitionCreatedEventNotification.lookup_type =>
|
|
1671
|
+
Events::V2ExtendObjectDefinitionCreatedEventNotification,
|
|
1672
|
+
Events::V2ExtendObjectDefinitionVersionCreatedEventNotification.lookup_type =>
|
|
1673
|
+
Events::V2ExtendObjectDefinitionVersionCreatedEventNotification,
|
|
1656
1674
|
Events::V2ExtendWorkflowRunFailedEventNotification.lookup_type =>
|
|
1657
1675
|
Events::V2ExtendWorkflowRunFailedEventNotification,
|
|
1658
1676
|
Events::V2ExtendWorkflowRunStartedEventNotification.lookup_type =>
|
|
@@ -1851,6 +1869,16 @@ module Stripe
|
|
|
1851
1869
|
Events::V2MoneyManagementRewardProgramRewardEarnedEventNotification,
|
|
1852
1870
|
Events::V2MoneyManagementRewardProgramRewardReversedEventNotification.lookup_type =>
|
|
1853
1871
|
Events::V2MoneyManagementRewardProgramRewardReversedEventNotification,
|
|
1872
|
+
Events::V2MoneyManagementSpendingMandateCanceledEventNotification.lookup_type =>
|
|
1873
|
+
Events::V2MoneyManagementSpendingMandateCanceledEventNotification,
|
|
1874
|
+
Events::V2MoneyManagementSpendingMandateCreatedEventNotification.lookup_type =>
|
|
1875
|
+
Events::V2MoneyManagementSpendingMandateCreatedEventNotification,
|
|
1876
|
+
Events::V2MoneyManagementSpendingMandateExpiredEventNotification.lookup_type =>
|
|
1877
|
+
Events::V2MoneyManagementSpendingMandateExpiredEventNotification,
|
|
1878
|
+
Events::V2MoneyManagementSpendingMandatePendingCancellationEventNotification.lookup_type =>
|
|
1879
|
+
Events::V2MoneyManagementSpendingMandatePendingCancellationEventNotification,
|
|
1880
|
+
Events::V2MoneyManagementSpendingMandateUpdatedEventNotification.lookup_type =>
|
|
1881
|
+
Events::V2MoneyManagementSpendingMandateUpdatedEventNotification,
|
|
1854
1882
|
Events::V2MoneyManagementTransactionCreatedEventNotification.lookup_type =>
|
|
1855
1883
|
Events::V2MoneyManagementTransactionCreatedEventNotification,
|
|
1856
1884
|
Events::V2MoneyManagementTransactionUpdatedEventNotification.lookup_type =>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Events
|
|
6
|
-
#
|
|
6
|
+
# Occurs when an Account is closed.
|
|
7
7
|
class V2CoreAccountClosedEvent < Stripe::V2::Core::Event
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.core.account.closed"
|
|
@@ -21,7 +21,7 @@ module Stripe
|
|
|
21
21
|
attr_reader :related_object
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Occurs when an Account is closed.
|
|
25
25
|
class V2CoreAccountClosedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
26
|
def self.lookup_type
|
|
27
27
|
"v2.core.account.closed"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Events
|
|
6
|
-
#
|
|
6
|
+
# Occurs when an Account's defaults are created or updated.
|
|
7
7
|
class V2CoreAccountIncludingDefaultsUpdatedEvent < Stripe::V2::Core::Event
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.core.account[defaults].updated"
|
|
@@ -21,7 +21,7 @@ module Stripe
|
|
|
21
21
|
attr_reader :related_object
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Occurs when an Account's defaults are created or updated.
|
|
25
25
|
class V2CoreAccountIncludingDefaultsUpdatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
26
|
def self.lookup_type
|
|
27
27
|
"v2.core.account[defaults].updated"
|
|
@@ -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 an object definition is created.
|
|
7
|
+
class V2ExtendObjectDefinitionCreatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.extend.object_definition.created"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2ExtendObjectDefinitionCreatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# The singular API name of the object definition.
|
|
14
|
+
attr_reader :api_name_singular
|
|
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: V2ExtendObjectDefinitionCreatedEventData }
|
|
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 an object definition is created.
|
|
42
|
+
class V2ExtendObjectDefinitionCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
43
|
+
def self.lookup_type
|
|
44
|
+
"v2.extend.object_definition.created"
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
attr_reader :related_object
|
|
48
|
+
|
|
49
|
+
# Retrieves the ObjectDefinition 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,65 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when an object definition version is created.
|
|
7
|
+
class V2ExtendObjectDefinitionVersionCreatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.extend.object_definition_version.created"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2ExtendObjectDefinitionVersionCreatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# The singular API name of the object definition.
|
|
14
|
+
attr_reader :api_name_singular
|
|
15
|
+
# The ID of the parent object definition.
|
|
16
|
+
attr_reader :object_definition
|
|
17
|
+
# The semantic version of the created object definition version, in `major.minor.patch` format.
|
|
18
|
+
attr_reader :version
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def self.inner_class_types
|
|
30
|
+
@inner_class_types = { data: V2ExtendObjectDefinitionVersionCreatedEventData }
|
|
31
|
+
end
|
|
32
|
+
attr_reader :data, :related_object
|
|
33
|
+
|
|
34
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
35
|
+
def fetch_related_object
|
|
36
|
+
_request(
|
|
37
|
+
method: :get,
|
|
38
|
+
path: related_object.url,
|
|
39
|
+
base_address: :api,
|
|
40
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Occurs when an object definition version is created.
|
|
46
|
+
class V2ExtendObjectDefinitionVersionCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
47
|
+
def self.lookup_type
|
|
48
|
+
"v2.extend.object_definition_version.created"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
attr_reader :related_object
|
|
52
|
+
|
|
53
|
+
# Retrieves the ObjectDefinitionVersion related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
54
|
+
def fetch_related_object
|
|
55
|
+
resp = @client.raw_request(
|
|
56
|
+
:get,
|
|
57
|
+
related_object.url,
|
|
58
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
59
|
+
usage: ["fetch_related_object"]
|
|
60
|
+
)
|
|
61
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Events
|
|
6
|
+
# Deprecated: Use v2.money_management.spending_mandate.canceled instead.
|
|
6
7
|
# Occurs when a ReceivedDebitMandate is successfully canceled.
|
|
7
8
|
class V2MoneyManagementReceivedDebitMandateCanceledEvent < Stripe::V2::Core::Event
|
|
8
9
|
def self.lookup_type
|
|
@@ -21,6 +22,7 @@ module Stripe
|
|
|
21
22
|
attr_reader :related_object
|
|
22
23
|
end
|
|
23
24
|
|
|
25
|
+
# Deprecated: Use v2.money_management.spending_mandate.canceled instead.
|
|
24
26
|
# Occurs when a ReceivedDebitMandate is successfully canceled.
|
|
25
27
|
class V2MoneyManagementReceivedDebitMandateCanceledEventNotification < Stripe::V2::Core::EventNotification
|
|
26
28
|
def self.lookup_type
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Events
|
|
6
|
+
# Deprecated: Use v2.money_management.spending_mandate.created instead.
|
|
6
7
|
# Occurs when a ReceivedDebitMandate is created by an external party.
|
|
7
8
|
class V2MoneyManagementReceivedDebitMandateCreatedEvent < Stripe::V2::Core::Event
|
|
8
9
|
def self.lookup_type
|
|
@@ -21,6 +22,7 @@ module Stripe
|
|
|
21
22
|
attr_reader :related_object
|
|
22
23
|
end
|
|
23
24
|
|
|
25
|
+
# Deprecated: Use v2.money_management.spending_mandate.created instead.
|
|
24
26
|
# Occurs when a ReceivedDebitMandate is created by an external party.
|
|
25
27
|
class V2MoneyManagementReceivedDebitMandateCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
28
|
def self.lookup_type
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Events
|
|
6
|
+
# Deprecated: Use v2.money_management.spending_mandate.expired instead.
|
|
6
7
|
# Occurs when a ReceivedDebitMandate expires.
|
|
7
8
|
class V2MoneyManagementReceivedDebitMandateExpiredEvent < Stripe::V2::Core::Event
|
|
8
9
|
def self.lookup_type
|
|
@@ -21,6 +22,7 @@ module Stripe
|
|
|
21
22
|
attr_reader :related_object
|
|
22
23
|
end
|
|
23
24
|
|
|
25
|
+
# Deprecated: Use v2.money_management.spending_mandate.expired instead.
|
|
24
26
|
# Occurs when a ReceivedDebitMandate expires.
|
|
25
27
|
class V2MoneyManagementReceivedDebitMandateExpiredEventNotification < Stripe::V2::Core::EventNotification
|
|
26
28
|
def self.lookup_type
|
data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Events
|
|
6
|
+
# Deprecated: Use v2.money_management.spending_mandate.pending_cancellation instead.
|
|
6
7
|
# Occurs when a ReceivedDebitMandate transitions to pending_cancellation status.
|
|
7
8
|
class V2MoneyManagementReceivedDebitMandatePendingCancellationEvent < Stripe::V2::Core::Event
|
|
8
9
|
def self.lookup_type
|
|
@@ -21,6 +22,7 @@ module Stripe
|
|
|
21
22
|
attr_reader :related_object
|
|
22
23
|
end
|
|
23
24
|
|
|
25
|
+
# Deprecated: Use v2.money_management.spending_mandate.pending_cancellation instead.
|
|
24
26
|
# Occurs when a ReceivedDebitMandate transitions to pending_cancellation status.
|
|
25
27
|
class V2MoneyManagementReceivedDebitMandatePendingCancellationEventNotification < Stripe::V2::Core::EventNotification
|
|
26
28
|
def self.lookup_type
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Events
|
|
6
|
+
# Deprecated: Use v2.money_management.spending_mandate.updated instead.
|
|
6
7
|
# Occurs when a ReceivedDebitMandate is updated.
|
|
7
8
|
class V2MoneyManagementReceivedDebitMandateUpdatedEvent < Stripe::V2::Core::Event
|
|
8
9
|
def self.lookup_type
|
|
@@ -21,6 +22,7 @@ module Stripe
|
|
|
21
22
|
attr_reader :related_object
|
|
22
23
|
end
|
|
23
24
|
|
|
25
|
+
# Deprecated: Use v2.money_management.spending_mandate.updated instead.
|
|
24
26
|
# Occurs when a ReceivedDebitMandate is updated.
|
|
25
27
|
class V2MoneyManagementReceivedDebitMandateUpdatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
28
|
def self.lookup_type
|
|
@@ -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 SpendingMandate is successfully canceled.
|
|
7
|
+
class V2MoneyManagementSpendingMandateCanceledEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.spending_mandate.canceled"
|
|
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 SpendingMandate is successfully canceled.
|
|
25
|
+
class V2MoneyManagementSpendingMandateCanceledEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.spending_mandate.canceled"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the SpendingMandate 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,46 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a SpendingMandate is created, either when a mandate is received from an external
|
|
7
|
+
# party or when a user authorizes a counterparty to pull money from a Financial Account.
|
|
8
|
+
class V2MoneyManagementSpendingMandateCreatedEvent < Stripe::V2::Core::Event
|
|
9
|
+
def self.lookup_type
|
|
10
|
+
"v2.money_management.spending_mandate.created"
|
|
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 a SpendingMandate is created, either when a mandate is received from an external
|
|
26
|
+
# party or when a user authorizes a counterparty to pull money from a Financial Account.
|
|
27
|
+
class V2MoneyManagementSpendingMandateCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
28
|
+
def self.lookup_type
|
|
29
|
+
"v2.money_management.spending_mandate.created"
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
attr_reader :related_object
|
|
33
|
+
|
|
34
|
+
# Retrieves the SpendingMandate 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 SpendingMandate expires.
|
|
7
|
+
class V2MoneyManagementSpendingMandateExpiredEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.spending_mandate.expired"
|
|
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 SpendingMandate expires.
|
|
25
|
+
class V2MoneyManagementSpendingMandateExpiredEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.spending_mandate.expired"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the SpendingMandate 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 a SpendingMandate transitions to pending_cancellation status.
|
|
7
|
+
class V2MoneyManagementSpendingMandatePendingCancellationEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.spending_mandate.pending_cancellation"
|
|
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 SpendingMandate transitions to pending_cancellation status.
|
|
25
|
+
class V2MoneyManagementSpendingMandatePendingCancellationEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.spending_mandate.pending_cancellation"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the SpendingMandate 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 a SpendingMandate is updated.
|
|
7
|
+
class V2MoneyManagementSpendingMandateUpdatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.spending_mandate.updated"
|
|
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 SpendingMandate is updated.
|
|
25
|
+
class V2MoneyManagementSpendingMandateUpdatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.spending_mandate.updated"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the SpendingMandate 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
|
@@ -188,7 +188,9 @@ module Stripe
|
|
|
188
188
|
Tax::Association.object_name => Tax::Association,
|
|
189
189
|
Tax::Calculation.object_name => Tax::Calculation,
|
|
190
190
|
Tax::CalculationLineItem.object_name => Tax::CalculationLineItem,
|
|
191
|
+
Tax::Certificate.object_name => Tax::Certificate,
|
|
191
192
|
Tax::Form.object_name => Tax::Form,
|
|
193
|
+
Tax::FormCorrection.object_name => Tax::FormCorrection,
|
|
192
194
|
Tax::Location.object_name => Tax::Location,
|
|
193
195
|
Tax::Registration.object_name => Tax::Registration,
|
|
194
196
|
Tax::Settings.object_name => Tax::Settings,
|
|
@@ -296,6 +298,8 @@ module Stripe
|
|
|
296
298
|
V2::Data::Reporting::QueryRun.object_name => V2::Data::Reporting::QueryRun,
|
|
297
299
|
V2::Data::Schema.object_name => V2::Data::Schema,
|
|
298
300
|
V2::Data::SearchResultList.object_name => V2::Data::SearchResultList,
|
|
301
|
+
V2::Extend::ObjectDefinition.object_name => V2::Extend::ObjectDefinition,
|
|
302
|
+
V2::Extend::ObjectDefinitionVersion.object_name => V2::Extend::ObjectDefinitionVersion,
|
|
299
303
|
V2::Extend::Workflow.object_name => V2::Extend::Workflow,
|
|
300
304
|
V2::Extend::WorkflowRun.object_name => V2::Extend::WorkflowRun,
|
|
301
305
|
V2::Iam::ActivityLog.object_name => V2::Iam::ActivityLog,
|
|
@@ -343,6 +347,7 @@ module Stripe
|
|
|
343
347
|
V2::MoneyManagement::RewardProgramEnrollment.object_name =>
|
|
344
348
|
V2::MoneyManagement::RewardProgramEnrollment,
|
|
345
349
|
V2::MoneyManagement::RewardProgramRule.object_name => V2::MoneyManagement::RewardProgramRule,
|
|
350
|
+
V2::MoneyManagement::SpendingMandate.object_name => V2::MoneyManagement::SpendingMandate,
|
|
346
351
|
V2::MoneyManagement::Transaction.object_name => V2::MoneyManagement::Transaction,
|
|
347
352
|
V2::MoneyManagement::TransactionEntry.object_name => V2::MoneyManagement::TransactionEntry,
|
|
348
353
|
V2::Network::BusinessProfile.object_name => V2::Network::BusinessProfile,
|