stripe 19.7.0.pre.alpha.1 → 19.7.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +2 -2
- data/lib/stripe/event_types.rb +32 -0
- data/lib/stripe/events/v2_core_health_metronome_notification_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_metronome_notification_latency_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_money_management_payout_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v2_signals_payment_retry_evaluations_retry_recommended_event.rb +46 -0
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/account_session_create_params.rb +8 -1
- data/lib/stripe/params/billing/feedback_option_create_params.rb +18 -0
- data/lib/stripe/params/billing/feedback_option_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/feedback_option_list_params.rb +27 -0
- data/lib/stripe/params/billing/feedback_option_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/feedback_option_update_params.rb +18 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +4 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +4 -1
- data/lib/stripe/params/checkout/session_create_params.rb +4 -1
- data/lib/stripe/params/checkout/session_update_params.rb +53 -0
- data/lib/stripe/params/customer_session_create_params.rb +26 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +9 -5
- data/lib/stripe/params/payment_intent_create_params.rb +9 -5
- data/lib/stripe/params/payment_intent_update_params.rb +9 -5
- data/lib/stripe/params/payment_link_update_params.rb +32 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +19 -0
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +1 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +4 -1
- data/lib/stripe/params/setup_intent_create_params.rb +4 -5
- data/lib/stripe/params/setup_intent_update_params.rb +4 -5
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +21 -1
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +21 -1
- data/lib/stripe/params/subscription_cancel_params.rb +4 -1
- data/lib/stripe/params/subscription_update_params.rb +8 -1
- data/lib/stripe/params/tax/registration_create_params.rb +351 -27
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +21 -1
- data/lib/stripe/params/v2/billing/contract_create_params.rb +34 -0
- data/lib/stripe/params/v2/billing/contract_update_params.rb +91 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2 -5
- data/lib/stripe/params/v2/core/account_update_params.rb +6 -5
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +31 -1
- data/lib/stripe/params/v2/core/{approval_request_submit_params.rb → approval_request_update_params.rb} +2 -2
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +13 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +32 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_create_params.rb +20 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_update_params.rb +20 -0
- data/lib/stripe/params/v2/{core/approval_request_execute_params.rb → signals/payment_retry_signal_retrieve_params.rb} +2 -2
- data/lib/stripe/params/v2/tax/integration_configuration_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/integration_configuration_update_params.rb +25 -0
- data/lib/stripe/params.rb +31 -4
- data/lib/stripe/resources/account.rb +2 -0
- data/lib/stripe/resources/account_session.rb +27 -0
- data/lib/stripe/resources/billing/feedback_option.rb +59 -1
- data/lib/stripe/resources/charge.rb +16 -0
- data/lib/stripe/resources/checkout/session.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +15 -0
- data/lib/stripe/resources/customer_tax_exemption.rb +6 -6
- data/lib/stripe/resources/identity/verification_report.rb +24 -0
- data/lib/stripe/resources/payment_attempt_record.rb +16 -0
- data/lib/stripe/resources/payment_intent.rb +26 -0
- data/lib/stripe/resources/payment_record.rb +16 -0
- data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +2 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +17 -1
- data/lib/stripe/resources/shared_payment/issued_token.rb +17 -1
- data/lib/stripe/resources/terminal/reader.rb +1 -1
- data/lib/stripe/resources/v2/billing/contract.rb +48 -0
- data/lib/stripe/resources/v2/core/account.rb +2 -2
- data/lib/stripe/resources/v2/core/approval_request.rb +72 -14
- data/lib/stripe/resources/v2/core/event_notification.rb +6 -3
- data/lib/stripe/resources/v2/core/fee_batch.rb +2 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +2 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +2 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +75 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -2
- data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -0
- data/lib/stripe/resources/v2/signals/account_activity.rb +36 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +50 -26
- data/lib/stripe/resources/v2/signals/payment_retry_evaluation.rb +47 -0
- data/lib/stripe/resources/v2/signals/payment_retry_signal.rb +56 -0
- data/lib/stripe/resources/v2/tax/integration_configuration.rb +44 -0
- data/lib/stripe/resources.rb +46 -0
- data/lib/stripe/services/billing/feedback_option_service.rb +63 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/oauth_service.rb +1 -1
- data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/v2/billing/contract_service.rb +5 -0
- data/lib/stripe/services/v2/core/approval_request_service.rb +4 -16
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
- data/lib/stripe/services/v2/signals/payment_retry_evaluation_service.rb +62 -0
- data/lib/stripe/services/v2/signals/payment_retry_signal_service.rb +21 -0
- data/lib/stripe/services/v2/signals_service.rb +4 -1
- data/lib/stripe/services/v2/tax/integration_configuration_service.rb +32 -0
- data/lib/stripe/services/v2/tax_service.rb +3 -1
- data/lib/stripe/services.rb +10 -0
- data/lib/stripe/stripe_event_notification_handler.rb +32 -0
- data/lib/stripe/util.rb +32 -0
- data/lib/stripe/v2_list_object.rb +2 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +3252 -521
- metadata +34 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e72679f32a96c0a30876ebb8c6fa8b6f6a58c1ebc15983a8c5a2fc4a6df9fcc6
|
|
4
|
+
data.tar.gz: 97d5bd4a5f71d248c727f6c940762032e091848cde9a3db3065c2b3eea99f532
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3dded822a0d955deaecbb53a6e7c66a629ff3006a5d6851a4389bc9e07bada9e813c8bef4479971d100dd8aa178856fc18e4246680b155198c6ac8ec428cf12
|
|
7
|
+
data.tar.gz: 21e7ada5f86507b7685a808a3f701de698b94ca2c3005667f06cb69a6d4f1265e6dfb92cd7ed4ab46995576ab882e5b406d41b0d8fddf824177903efba4ec1f1
|
data/lib/stripe/api_requestor.rb
CHANGED
|
@@ -462,13 +462,13 @@ module Stripe
|
|
|
462
462
|
private def execute_request_internal(method, path,
|
|
463
463
|
base_address, params, opts, usage,
|
|
464
464
|
&read_body_chunk_block)
|
|
465
|
+
Util.validate_path!(path)
|
|
466
|
+
|
|
465
467
|
api_mode = Util.get_api_mode(path)
|
|
466
468
|
opts = RequestOptions.merge_config_and_opts(config, opts)
|
|
467
469
|
|
|
468
470
|
raise ArgumentError, "method should be a symbol" \
|
|
469
471
|
unless method.is_a?(Symbol)
|
|
470
|
-
raise ArgumentError, "path should be a string" \
|
|
471
|
-
unless path.is_a?(String)
|
|
472
472
|
|
|
473
473
|
base_url ||= config.base_addresses[base_address]
|
|
474
474
|
|
data/lib/stripe/event_types.rb
CHANGED
|
@@ -478,6 +478,10 @@ module Stripe
|
|
|
478
478
|
Events::V2CoreHealthMeterEventSummariesDelayedFiringEvent,
|
|
479
479
|
Events::V2CoreHealthMeterEventSummariesDelayedResolvedEvent.lookup_type =>
|
|
480
480
|
Events::V2CoreHealthMeterEventSummariesDelayedResolvedEvent,
|
|
481
|
+
Events::V2CoreHealthMetronomeNotificationLatencyFiringEvent.lookup_type =>
|
|
482
|
+
Events::V2CoreHealthMetronomeNotificationLatencyFiringEvent,
|
|
483
|
+
Events::V2CoreHealthMetronomeNotificationLatencyResolvedEvent.lookup_type =>
|
|
484
|
+
Events::V2CoreHealthMetronomeNotificationLatencyResolvedEvent,
|
|
481
485
|
Events::V2CoreHealthPaymentMethodErrorFiringEvent.lookup_type =>
|
|
482
486
|
Events::V2CoreHealthPaymentMethodErrorFiringEvent,
|
|
483
487
|
Events::V2CoreHealthPaymentMethodErrorResolvedEvent.lookup_type =>
|
|
@@ -585,6 +589,16 @@ module Stripe
|
|
|
585
589
|
Events::V2MoneyManagementOutboundTransferUnderReviewEvent,
|
|
586
590
|
Events::V2MoneyManagementOutboundTransferUpdatedEvent.lookup_type =>
|
|
587
591
|
Events::V2MoneyManagementOutboundTransferUpdatedEvent,
|
|
592
|
+
Events::V2MoneyManagementPayoutIntentCanceledEvent.lookup_type =>
|
|
593
|
+
Events::V2MoneyManagementPayoutIntentCanceledEvent,
|
|
594
|
+
Events::V2MoneyManagementPayoutIntentCreatedEvent.lookup_type =>
|
|
595
|
+
Events::V2MoneyManagementPayoutIntentCreatedEvent,
|
|
596
|
+
Events::V2MoneyManagementPayoutIntentPostedEvent.lookup_type =>
|
|
597
|
+
Events::V2MoneyManagementPayoutIntentPostedEvent,
|
|
598
|
+
Events::V2MoneyManagementPayoutIntentProcessingEvent.lookup_type =>
|
|
599
|
+
Events::V2MoneyManagementPayoutIntentProcessingEvent,
|
|
600
|
+
Events::V2MoneyManagementPayoutIntentRequiresActionEvent.lookup_type =>
|
|
601
|
+
Events::V2MoneyManagementPayoutIntentRequiresActionEvent,
|
|
588
602
|
Events::V2MoneyManagementPayoutMethodCreatedEvent.lookup_type =>
|
|
589
603
|
Events::V2MoneyManagementPayoutMethodCreatedEvent,
|
|
590
604
|
Events::V2MoneyManagementPayoutMethodUpdatedEvent.lookup_type =>
|
|
@@ -696,6 +710,8 @@ module Stripe
|
|
|
696
710
|
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEvent,
|
|
697
711
|
Events::V2SignalsAccountSignalPaymentDelinquencyExposureReadyEvent.lookup_type =>
|
|
698
712
|
Events::V2SignalsAccountSignalPaymentDelinquencyExposureReadyEvent,
|
|
713
|
+
Events::V2SignalsPaymentRetryEvaluationsRetryRecommendedEvent.lookup_type =>
|
|
714
|
+
Events::V2SignalsPaymentRetryEvaluationsRetryRecommendedEvent,
|
|
699
715
|
# v2 event types: The end of the section generated from our OpenAPI spec
|
|
700
716
|
}
|
|
701
717
|
end
|
|
@@ -1301,6 +1317,10 @@ module Stripe
|
|
|
1301
1317
|
Events::V2CoreHealthMeterEventSummariesDelayedFiringEventNotification,
|
|
1302
1318
|
Events::V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification.lookup_type =>
|
|
1303
1319
|
Events::V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification,
|
|
1320
|
+
Events::V2CoreHealthMetronomeNotificationLatencyFiringEventNotification.lookup_type =>
|
|
1321
|
+
Events::V2CoreHealthMetronomeNotificationLatencyFiringEventNotification,
|
|
1322
|
+
Events::V2CoreHealthMetronomeNotificationLatencyResolvedEventNotification.lookup_type =>
|
|
1323
|
+
Events::V2CoreHealthMetronomeNotificationLatencyResolvedEventNotification,
|
|
1304
1324
|
Events::V2CoreHealthPaymentMethodErrorFiringEventNotification.lookup_type =>
|
|
1305
1325
|
Events::V2CoreHealthPaymentMethodErrorFiringEventNotification,
|
|
1306
1326
|
Events::V2CoreHealthPaymentMethodErrorResolvedEventNotification.lookup_type =>
|
|
@@ -1417,6 +1437,16 @@ module Stripe
|
|
|
1417
1437
|
Events::V2MoneyManagementOutboundTransferUnderReviewEventNotification,
|
|
1418
1438
|
Events::V2MoneyManagementOutboundTransferUpdatedEventNotification.lookup_type =>
|
|
1419
1439
|
Events::V2MoneyManagementOutboundTransferUpdatedEventNotification,
|
|
1440
|
+
Events::V2MoneyManagementPayoutIntentCanceledEventNotification.lookup_type =>
|
|
1441
|
+
Events::V2MoneyManagementPayoutIntentCanceledEventNotification,
|
|
1442
|
+
Events::V2MoneyManagementPayoutIntentCreatedEventNotification.lookup_type =>
|
|
1443
|
+
Events::V2MoneyManagementPayoutIntentCreatedEventNotification,
|
|
1444
|
+
Events::V2MoneyManagementPayoutIntentPostedEventNotification.lookup_type =>
|
|
1445
|
+
Events::V2MoneyManagementPayoutIntentPostedEventNotification,
|
|
1446
|
+
Events::V2MoneyManagementPayoutIntentProcessingEventNotification.lookup_type =>
|
|
1447
|
+
Events::V2MoneyManagementPayoutIntentProcessingEventNotification,
|
|
1448
|
+
Events::V2MoneyManagementPayoutIntentRequiresActionEventNotification.lookup_type =>
|
|
1449
|
+
Events::V2MoneyManagementPayoutIntentRequiresActionEventNotification,
|
|
1420
1450
|
Events::V2MoneyManagementPayoutMethodCreatedEventNotification.lookup_type =>
|
|
1421
1451
|
Events::V2MoneyManagementPayoutMethodCreatedEventNotification,
|
|
1422
1452
|
Events::V2MoneyManagementPayoutMethodUpdatedEventNotification.lookup_type =>
|
|
@@ -1531,6 +1561,8 @@ module Stripe
|
|
|
1531
1561
|
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification,
|
|
1532
1562
|
Events::V2SignalsAccountSignalPaymentDelinquencyExposureReadyEventNotification.lookup_type =>
|
|
1533
1563
|
Events::V2SignalsAccountSignalPaymentDelinquencyExposureReadyEventNotification,
|
|
1564
|
+
Events::V2SignalsPaymentRetryEvaluationsRetryRecommendedEventNotification.lookup_type =>
|
|
1565
|
+
Events::V2SignalsPaymentRetryEvaluationsRetryRecommendedEventNotification,
|
|
1534
1566
|
# event notification types: The end of the section generated from our OpenAPI spec
|
|
1535
1567
|
}
|
|
1536
1568
|
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a Metronome notification latency alert is firing.
|
|
7
|
+
class V2CoreHealthMetronomeNotificationLatencyFiringEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.core.health.metronome_notification_latency.firing"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2CoreHealthMetronomeNotificationLatencyFiringEventData < ::Stripe::StripeObject
|
|
13
|
+
class Impact < ::Stripe::StripeObject
|
|
14
|
+
# The impacted Metronome billing pipeline.
|
|
15
|
+
attr_reader :pipeline
|
|
16
|
+
|
|
17
|
+
def self.inner_class_types
|
|
18
|
+
@inner_class_types = {}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def self.field_remappings
|
|
22
|
+
@field_remappings = {}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
# The alert ID.
|
|
26
|
+
attr_reader :alert_id
|
|
27
|
+
# The grouping key for the alert.
|
|
28
|
+
attr_reader :grouping_key
|
|
29
|
+
# The user impact.
|
|
30
|
+
attr_reader :impact
|
|
31
|
+
# The time when impact on the user experience was first detected.
|
|
32
|
+
attr_reader :started_at
|
|
33
|
+
# A short description of the alert.
|
|
34
|
+
attr_reader :summary
|
|
35
|
+
|
|
36
|
+
def self.inner_class_types
|
|
37
|
+
@inner_class_types = { impact: Impact }
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def self.field_remappings
|
|
41
|
+
@field_remappings = {}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def self.inner_class_types
|
|
46
|
+
@inner_class_types = { data: V2CoreHealthMetronomeNotificationLatencyFiringEventData }
|
|
47
|
+
end
|
|
48
|
+
attr_reader :data
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Occurs when a Metronome notification latency alert is firing.
|
|
52
|
+
class V2CoreHealthMetronomeNotificationLatencyFiringEventNotification < Stripe::V2::Core::EventNotification
|
|
53
|
+
def self.lookup_type
|
|
54
|
+
"v2.core.health.metronome_notification_latency.firing"
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a Metronome notification latency alert is resolved.
|
|
7
|
+
class V2CoreHealthMetronomeNotificationLatencyResolvedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.core.health.metronome_notification_latency.resolved"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2CoreHealthMetronomeNotificationLatencyResolvedEventData < ::Stripe::StripeObject
|
|
13
|
+
class Impact < ::Stripe::StripeObject
|
|
14
|
+
# The impacted Metronome billing pipeline.
|
|
15
|
+
attr_reader :pipeline
|
|
16
|
+
|
|
17
|
+
def self.inner_class_types
|
|
18
|
+
@inner_class_types = {}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def self.field_remappings
|
|
22
|
+
@field_remappings = {}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
# The alert ID.
|
|
26
|
+
attr_reader :alert_id
|
|
27
|
+
# The grouping key for the alert.
|
|
28
|
+
attr_reader :grouping_key
|
|
29
|
+
# The user impact.
|
|
30
|
+
attr_reader :impact
|
|
31
|
+
# The time when the user experience has returned to expected levels.
|
|
32
|
+
attr_reader :resolved_at
|
|
33
|
+
# The time when impact on the user experience was first detected.
|
|
34
|
+
attr_reader :started_at
|
|
35
|
+
# A short description of the alert.
|
|
36
|
+
attr_reader :summary
|
|
37
|
+
|
|
38
|
+
def self.inner_class_types
|
|
39
|
+
@inner_class_types = { impact: Impact }
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.field_remappings
|
|
43
|
+
@field_remappings = {}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def self.inner_class_types
|
|
48
|
+
@inner_class_types = { data: V2CoreHealthMetronomeNotificationLatencyResolvedEventData }
|
|
49
|
+
end
|
|
50
|
+
attr_reader :data
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Occurs when a Metronome notification latency alert is resolved.
|
|
54
|
+
class V2CoreHealthMetronomeNotificationLatencyResolvedEventNotification < Stripe::V2::Core::EventNotification
|
|
55
|
+
def self.lookup_type
|
|
56
|
+
"v2.core.health.metronome_notification_latency.resolved"
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
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 PayoutIntent transitions into the canceled state.
|
|
7
|
+
class V2MoneyManagementPayoutIntentCanceledEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.payout_intent.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 PayoutIntent transitions into the canceled state.
|
|
25
|
+
class V2MoneyManagementPayoutIntentCanceledEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.payout_intent.canceled"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the PayoutIntent 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 PayoutIntent is created.
|
|
7
|
+
class V2MoneyManagementPayoutIntentCreatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.payout_intent.created"
|
|
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 PayoutIntent is created.
|
|
25
|
+
class V2MoneyManagementPayoutIntentCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.payout_intent.created"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the PayoutIntent 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 PayoutIntent transitions into the posted state.
|
|
7
|
+
class V2MoneyManagementPayoutIntentPostedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.payout_intent.posted"
|
|
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 PayoutIntent transitions into the posted state.
|
|
25
|
+
class V2MoneyManagementPayoutIntentPostedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.payout_intent.posted"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the PayoutIntent 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 PayoutIntent transitions into the processing state.
|
|
7
|
+
class V2MoneyManagementPayoutIntentProcessingEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.payout_intent.processing"
|
|
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 PayoutIntent transitions into the processing state.
|
|
25
|
+
class V2MoneyManagementPayoutIntentProcessingEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.payout_intent.processing"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the PayoutIntent 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 PayoutIntent transitions into the requires_action state.
|
|
7
|
+
class V2MoneyManagementPayoutIntentRequiresActionEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.payout_intent.requires_action"
|
|
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 PayoutIntent transitions into the requires_action state.
|
|
25
|
+
class V2MoneyManagementPayoutIntentRequiresActionEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.payout_intent.requires_action"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the PayoutIntent 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 the ML scoring model determines it's a good time to retry a failed payment.
|
|
7
|
+
# This is a thin event — the merchant must call GET to retrieve the full evaluation.
|
|
8
|
+
class V2SignalsPaymentRetryEvaluationsRetryRecommendedEvent < Stripe::V2::Core::Event
|
|
9
|
+
def self.lookup_type
|
|
10
|
+
"v2.signals.payment_retry_evaluations.retry_recommended"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class V2SignalsPaymentRetryEvaluationsRetryRecommendedEventData < ::Stripe::StripeObject
|
|
14
|
+
# Unique identifier for the payment retry evaluation.
|
|
15
|
+
attr_reader :id
|
|
16
|
+
# Whether the event was created in livemode.
|
|
17
|
+
attr_reader :livemode
|
|
18
|
+
# The PaymentIntent ID. Present when the evaluation is for a PaymentIntent.
|
|
19
|
+
attr_reader :payment_intent
|
|
20
|
+
# The PaymentRecord ID. Present when the evaluation is for a PaymentRecord.
|
|
21
|
+
attr_reader :payment_record
|
|
22
|
+
|
|
23
|
+
def self.inner_class_types
|
|
24
|
+
@inner_class_types = {}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.field_remappings
|
|
28
|
+
@field_remappings = {}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.inner_class_types
|
|
33
|
+
@inner_class_types = { data: V2SignalsPaymentRetryEvaluationsRetryRecommendedEventData }
|
|
34
|
+
end
|
|
35
|
+
attr_reader :data
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Occurs when the ML scoring model determines it's a good time to retry a failed payment.
|
|
39
|
+
# This is a thin event — the merchant must call GET to retrieve the full evaluation.
|
|
40
|
+
class V2SignalsPaymentRetryEvaluationsRetryRecommendedEventNotification < Stripe::V2::Core::EventNotification
|
|
41
|
+
def self.lookup_type
|
|
42
|
+
"v2.signals.payment_retry_evaluations.retry_recommended"
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
data/lib/stripe/object_types.rb
CHANGED
|
@@ -153,6 +153,7 @@ module Stripe
|
|
|
153
153
|
QuotePreviewInvoice.object_name => QuotePreviewInvoice,
|
|
154
154
|
QuotePreviewSubscriptionSchedule.object_name => QuotePreviewSubscriptionSchedule,
|
|
155
155
|
Radar::AccountEvaluation.object_name => Radar::AccountEvaluation,
|
|
156
|
+
Radar::BillingEvaluation.object_name => Radar::BillingEvaluation,
|
|
156
157
|
Radar::CustomerEvaluation.object_name => Radar::CustomerEvaluation,
|
|
157
158
|
Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
|
|
158
159
|
Radar::IssuingAuthorizationEvaluation.object_name => Radar::IssuingAuthorizationEvaluation,
|
|
@@ -324,6 +325,9 @@ module Stripe
|
|
|
324
325
|
V2::Signals::AccountActivity.object_name => V2::Signals::AccountActivity,
|
|
325
326
|
V2::Signals::AccountEvaluation.object_name => V2::Signals::AccountEvaluation,
|
|
326
327
|
V2::Signals::AccountSignal.object_name => V2::Signals::AccountSignal,
|
|
328
|
+
V2::Signals::PaymentRetryEvaluation.object_name => V2::Signals::PaymentRetryEvaluation,
|
|
329
|
+
V2::Signals::PaymentRetrySignal.object_name => V2::Signals::PaymentRetrySignal,
|
|
330
|
+
V2::Tax::IntegrationConfiguration.object_name => V2::Tax::IntegrationConfiguration,
|
|
327
331
|
V2::Tax::ManualRule.object_name => V2::Tax::ManualRule,
|
|
328
332
|
V2::Tax::OperationsResolveAddressResult.object_name => V2::Tax::OperationsResolveAddressResult,
|
|
329
333
|
# v2 object classes: The end of the section generated from our OpenAPI spec
|
|
@@ -542,7 +542,14 @@ module Stripe
|
|
|
542
542
|
end
|
|
543
543
|
|
|
544
544
|
class PaymentMethodSettings < ::Stripe::RequestParams
|
|
545
|
-
class Features < ::Stripe::RequestParams
|
|
545
|
+
class Features < ::Stripe::RequestParams
|
|
546
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
|
|
547
|
+
attr_accessor :disable_stripe_user_authentication
|
|
548
|
+
|
|
549
|
+
def initialize(disable_stripe_user_authentication: nil)
|
|
550
|
+
@disable_stripe_user_authentication = disable_stripe_user_authentication
|
|
551
|
+
end
|
|
552
|
+
end
|
|
546
553
|
# Whether the embedded component is enabled.
|
|
547
554
|
attr_accessor :enabled
|
|
548
555
|
# The list of features enabled in the embedded component.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
class FeedbackOptionCreateParams < ::Stripe::RequestParams
|
|
7
|
+
# The text of the feedback option, which customers see when canceling. Maximum 100 characters.
|
|
8
|
+
attr_accessor :description
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
|
|
12
|
+
def initialize(description: nil, expand: nil)
|
|
13
|
+
@description = description
|
|
14
|
+
@expand = expand
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
class FeedbackOptionDeactivateParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
class FeedbackOptionListParams < ::Stripe::RequestParams
|
|
7
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
8
|
+
attr_accessor :ending_before
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
12
|
+
attr_accessor :limit
|
|
13
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
14
|
+
attr_accessor :starting_after
|
|
15
|
+
# Filter results to only include feedback options with the given status.
|
|
16
|
+
attr_accessor :status
|
|
17
|
+
|
|
18
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil, status: nil)
|
|
19
|
+
@ending_before = ending_before
|
|
20
|
+
@expand = expand
|
|
21
|
+
@limit = limit
|
|
22
|
+
@starting_after = starting_after
|
|
23
|
+
@status = status
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
class FeedbackOptionRetrieveParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
class FeedbackOptionUpdateParams < ::Stripe::RequestParams
|
|
7
|
+
# The text of the feedback option, which customers see when canceling. Maximum 100 characters.
|
|
8
|
+
attr_accessor :description
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
|
|
12
|
+
def initialize(description: nil, expand: nil)
|
|
13
|
+
@description = description
|
|
14
|
+
@expand = expand
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -57,11 +57,14 @@ module Stripe
|
|
|
57
57
|
class CancellationReason < ::Stripe::RequestParams
|
|
58
58
|
# Whether the feature is enabled.
|
|
59
59
|
attr_accessor :enabled
|
|
60
|
+
# The IDs of custom feedback options to use for this cancellation reason.
|
|
61
|
+
attr_accessor :feedback_options
|
|
60
62
|
# Which cancellation reasons will be given as options to the customer.
|
|
61
63
|
attr_accessor :options
|
|
62
64
|
|
|
63
|
-
def initialize(enabled: nil, options: nil)
|
|
65
|
+
def initialize(enabled: nil, feedback_options: nil, options: nil)
|
|
64
66
|
@enabled = enabled
|
|
67
|
+
@feedback_options = feedback_options
|
|
65
68
|
@options = options
|
|
66
69
|
end
|
|
67
70
|
end
|
|
@@ -57,11 +57,14 @@ module Stripe
|
|
|
57
57
|
class CancellationReason < ::Stripe::RequestParams
|
|
58
58
|
# Whether the feature is enabled.
|
|
59
59
|
attr_accessor :enabled
|
|
60
|
+
# The IDs of custom feedback options to use for this cancellation reason.
|
|
61
|
+
attr_accessor :feedback_options
|
|
60
62
|
# Which cancellation reasons will be given as options to the customer.
|
|
61
63
|
attr_accessor :options
|
|
62
64
|
|
|
63
|
-
def initialize(enabled: nil, options: nil)
|
|
65
|
+
def initialize(enabled: nil, feedback_options: nil, options: nil)
|
|
64
66
|
@enabled = enabled
|
|
67
|
+
@feedback_options = feedback_options
|
|
65
68
|
@options = options
|
|
66
69
|
end
|
|
67
70
|
end
|