stripe 19.1.0.pre.alpha.2 → 19.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 +24 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +18 -0
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +18 -0
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +18 -0
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +18 -0
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +2 -0
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +18 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_approved_event.rb +18 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_canceled_event.rb +18 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_denied_event.rb +18 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_removed_event.rb +18 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_requested_event.rb +18 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_updated_event.rb +18 -0
- data/lib/stripe/events/v2_payments_off_session_payment_paused_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_resumed_event.rb +44 -0
- data/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +12 -0
- data/lib/stripe/params/charge_capture_params.rb +18 -1
- data/lib/stripe/params/charge_update_params.rb +18 -1
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +0 -84
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +15 -75
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +15 -75
- data/lib/stripe/params/invoice_create_params.rb +44 -1
- data/lib/stripe/params/invoice_update_params.rb +44 -1
- data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +29 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +23 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +18 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +68 -7
- data/lib/stripe/params/payment_intent_create_params.rb +68 -7
- data/lib/stripe/params/payment_intent_update_params.rb +68 -7
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +29 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +23 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +46 -2
- data/lib/stripe/params/payment_record_report_payment_params.rb +46 -2
- data/lib/stripe/params/subscription_create_params.rb +44 -1
- data/lib/stripe/params/subscription_update_params.rb +44 -1
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +3 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +3 -0
- data/lib/stripe/params/v2/billing/intent_create_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_create_params.rb +27 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +27 -1
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +1 -1
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +4 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +5 -0
- data/lib/stripe/params/v2/payments/off_session_payment_pause_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_resume_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +2 -2
- data/lib/stripe/params.rb +4 -0
- data/lib/stripe/resources/coupon.rb +4 -4
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +38 -0
- data/lib/stripe/resources/invoice.rb +38 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +38 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +1 -20
- data/lib/stripe/resources/shared_payment/granted_token.rb +1628 -1
- data/lib/stripe/resources/shared_payment/issued_token.rb +233 -0
- data/lib/stripe/resources/subscription.rb +39 -20
- data/lib/stripe/resources/subscription_schedule.rb +1 -20
- data/lib/stripe/resources/v2/billing/cadence.rb +22 -0
- data/lib/stripe/resources/v2/billing/cadence_spend_modifier.rb +2 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +22 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +22 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +2 -0
- data/lib/stripe/resources/v2/core/account.rb +64 -0
- data/lib/stripe/resources/v2/core/batch_job.rb +21 -21
- data/lib/stripe/resources/v2/core/event.rb +15 -1
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +33 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -2
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +4 -2
- data/lib/stripe/resources/v2/reporting/report_run.rb +5 -5
- data/lib/stripe/resources.rb +8 -0
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/datum_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +22 -0
- data/lib/stripe/services/v2_services.rb +2 -1
- data/lib/stripe/services.rb +3 -0
- data/lib/stripe/util.rb +1 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +3829 -612
- metadata +17 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e20c8472bcd9b87a03c672c879a3803592b416de01afedc2ad722fa4284f681
|
|
4
|
+
data.tar.gz: 1d65bb32aa745dbb3997cd6d78af53d0dba1c010e12e194507a3aeb4c69e81e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71bbffa482dc6fc541f9e8e2e1af039a066b306b69d8ee59f22d8a87399ef3653f0401bda7a5f10dc4b38c2e278716ebb77177be38df67cbb881b2a2ca3ebc7b
|
|
7
|
+
data.tar.gz: ecf35c67d83811191c8da046d1832ee4f4aabb47415bc0f1cb62f3dd301d1848e2e203890cb8bc3b9906c5d91cd2145fbc324a480e1686b72a9d9980e658fb5a
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/event_types.rb
CHANGED
|
@@ -168,6 +168,14 @@ module Stripe
|
|
|
168
168
|
Events::V2CoreHealthWebhookLatencyFiringEvent,
|
|
169
169
|
Events::V2CoreHealthWebhookLatencyResolvedEvent.lookup_type =>
|
|
170
170
|
Events::V2CoreHealthWebhookLatencyResolvedEvent,
|
|
171
|
+
Events::V2DataReportingQueryRunCreatedEvent.lookup_type =>
|
|
172
|
+
Events::V2DataReportingQueryRunCreatedEvent,
|
|
173
|
+
Events::V2DataReportingQueryRunFailedEvent.lookup_type =>
|
|
174
|
+
Events::V2DataReportingQueryRunFailedEvent,
|
|
175
|
+
Events::V2DataReportingQueryRunSucceededEvent.lookup_type =>
|
|
176
|
+
Events::V2DataReportingQueryRunSucceededEvent,
|
|
177
|
+
Events::V2DataReportingQueryRunUpdatedEvent.lookup_type =>
|
|
178
|
+
Events::V2DataReportingQueryRunUpdatedEvent,
|
|
171
179
|
Events::V2IamApiKeyCreatedEvent.lookup_type => Events::V2IamApiKeyCreatedEvent,
|
|
172
180
|
Events::V2IamApiKeyDefaultSecretRevealedEvent.lookup_type =>
|
|
173
181
|
Events::V2IamApiKeyDefaultSecretRevealedEvent,
|
|
@@ -277,8 +285,12 @@ module Stripe
|
|
|
277
285
|
Events::V2PaymentsOffSessionPaymentCreatedEvent,
|
|
278
286
|
Events::V2PaymentsOffSessionPaymentFailedEvent.lookup_type =>
|
|
279
287
|
Events::V2PaymentsOffSessionPaymentFailedEvent,
|
|
288
|
+
Events::V2PaymentsOffSessionPaymentPausedEvent.lookup_type =>
|
|
289
|
+
Events::V2PaymentsOffSessionPaymentPausedEvent,
|
|
280
290
|
Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent.lookup_type =>
|
|
281
291
|
Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent,
|
|
292
|
+
Events::V2PaymentsOffSessionPaymentResumedEvent.lookup_type =>
|
|
293
|
+
Events::V2PaymentsOffSessionPaymentResumedEvent,
|
|
282
294
|
Events::V2PaymentsOffSessionPaymentSucceededEvent.lookup_type =>
|
|
283
295
|
Events::V2PaymentsOffSessionPaymentSucceededEvent,
|
|
284
296
|
Events::V2PaymentsSettlementAllocationIntentCanceledEvent.lookup_type =>
|
|
@@ -515,6 +527,14 @@ module Stripe
|
|
|
515
527
|
Events::V2CoreHealthWebhookLatencyFiringEventNotification,
|
|
516
528
|
Events::V2CoreHealthWebhookLatencyResolvedEventNotification.lookup_type =>
|
|
517
529
|
Events::V2CoreHealthWebhookLatencyResolvedEventNotification,
|
|
530
|
+
Events::V2DataReportingQueryRunCreatedEventNotification.lookup_type =>
|
|
531
|
+
Events::V2DataReportingQueryRunCreatedEventNotification,
|
|
532
|
+
Events::V2DataReportingQueryRunFailedEventNotification.lookup_type =>
|
|
533
|
+
Events::V2DataReportingQueryRunFailedEventNotification,
|
|
534
|
+
Events::V2DataReportingQueryRunSucceededEventNotification.lookup_type =>
|
|
535
|
+
Events::V2DataReportingQueryRunSucceededEventNotification,
|
|
536
|
+
Events::V2DataReportingQueryRunUpdatedEventNotification.lookup_type =>
|
|
537
|
+
Events::V2DataReportingQueryRunUpdatedEventNotification,
|
|
518
538
|
Events::V2IamApiKeyCreatedEventNotification.lookup_type =>
|
|
519
539
|
Events::V2IamApiKeyCreatedEventNotification,
|
|
520
540
|
Events::V2IamApiKeyDefaultSecretRevealedEventNotification.lookup_type =>
|
|
@@ -629,8 +649,12 @@ module Stripe
|
|
|
629
649
|
Events::V2PaymentsOffSessionPaymentCreatedEventNotification,
|
|
630
650
|
Events::V2PaymentsOffSessionPaymentFailedEventNotification.lookup_type =>
|
|
631
651
|
Events::V2PaymentsOffSessionPaymentFailedEventNotification,
|
|
652
|
+
Events::V2PaymentsOffSessionPaymentPausedEventNotification.lookup_type =>
|
|
653
|
+
Events::V2PaymentsOffSessionPaymentPausedEventNotification,
|
|
632
654
|
Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification.lookup_type =>
|
|
633
655
|
Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification,
|
|
656
|
+
Events::V2PaymentsOffSessionPaymentResumedEventNotification.lookup_type =>
|
|
657
|
+
Events::V2PaymentsOffSessionPaymentResumedEventNotification,
|
|
634
658
|
Events::V2PaymentsOffSessionPaymentSucceededEventNotification.lookup_type =>
|
|
635
659
|
Events::V2PaymentsOffSessionPaymentSucceededEventNotification,
|
|
636
660
|
Events::V2PaymentsSettlementAllocationIntentCanceledEventNotification.lookup_type =>
|
|
@@ -68,6 +68,8 @@ module Stripe
|
|
|
68
68
|
attr_reader :summary
|
|
69
69
|
# The time when the user experience has returned to expected levels.
|
|
70
70
|
attr_reader :resolved_at
|
|
71
|
+
# The alert ID.
|
|
72
|
+
attr_reader :alert_id
|
|
71
73
|
# The user impact.
|
|
72
74
|
attr_reader :impact
|
|
73
75
|
# The time when impact on the user experience was first detected.
|
|
@@ -66,6 +66,8 @@ module Stripe
|
|
|
66
66
|
attr_reader :summary
|
|
67
67
|
# The time when the user experience has returned to expected levels.
|
|
68
68
|
attr_reader :resolved_at
|
|
69
|
+
# The alert ID.
|
|
70
|
+
attr_reader :alert_id
|
|
69
71
|
# The user impact.
|
|
70
72
|
attr_reader :impact
|
|
71
73
|
# The time when impact on the user experience was first detected.
|
|
@@ -55,6 +55,8 @@ module Stripe
|
|
|
55
55
|
attr_reader :summary
|
|
56
56
|
# The time when the user experience has returned to expected levels.
|
|
57
57
|
attr_reader :resolved_at
|
|
58
|
+
# The alert ID.
|
|
59
|
+
attr_reader :alert_id
|
|
58
60
|
# The user impact.
|
|
59
61
|
attr_reader :impact
|
|
60
62
|
# The time when impact on the user experience was first detected.
|
data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb
CHANGED
|
@@ -32,6 +32,8 @@ module Stripe
|
|
|
32
32
|
attr_reader :summary
|
|
33
33
|
# The time when the user experience has returned to expected levels.
|
|
34
34
|
attr_reader :resolved_at
|
|
35
|
+
# The alert ID.
|
|
36
|
+
attr_reader :alert_id
|
|
35
37
|
# The user impact.
|
|
36
38
|
attr_reader :impact
|
|
37
39
|
# The time when impact on the user experience was first detected.
|
data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb
CHANGED
|
@@ -32,6 +32,8 @@ module Stripe
|
|
|
32
32
|
attr_reader :summary
|
|
33
33
|
# The time when the user experience has returned to expected levels.
|
|
34
34
|
attr_reader :resolved_at
|
|
35
|
+
# The alert ID.
|
|
36
|
+
attr_reader :alert_id
|
|
35
37
|
# The user impact.
|
|
36
38
|
attr_reader :impact
|
|
37
39
|
# The time when impact on the user experience was first detected.
|
|
@@ -64,6 +64,8 @@ module Stripe
|
|
|
64
64
|
attr_reader :summary
|
|
65
65
|
# The time when the user experience has returned to expected levels.
|
|
66
66
|
attr_reader :resolved_at
|
|
67
|
+
# The alert ID.
|
|
68
|
+
attr_reader :alert_id
|
|
67
69
|
# The user impact.
|
|
68
70
|
attr_reader :impact
|
|
69
71
|
# The time when impact on the user experience was first detected.
|
|
@@ -32,6 +32,8 @@ module Stripe
|
|
|
32
32
|
attr_reader :summary
|
|
33
33
|
# The time when the user experience has returned to expected levels.
|
|
34
34
|
attr_reader :resolved_at
|
|
35
|
+
# The alert ID.
|
|
36
|
+
attr_reader :alert_id
|
|
35
37
|
# The user impact.
|
|
36
38
|
attr_reader :impact
|
|
37
39
|
# The time when impact on the user experience was first detected.
|
|
@@ -30,6 +30,8 @@ module Stripe
|
|
|
30
30
|
attr_reader :summary
|
|
31
31
|
# The time when the user experience has returned to expected levels.
|
|
32
32
|
attr_reader :resolved_at
|
|
33
|
+
# The alert ID.
|
|
34
|
+
attr_reader :alert_id
|
|
33
35
|
# The user impact.
|
|
34
36
|
attr_reader :impact
|
|
35
37
|
# The time when impact on the user experience was first detected.
|
|
@@ -26,6 +26,8 @@ module Stripe
|
|
|
26
26
|
attr_reader :summary
|
|
27
27
|
# The time when the user experience has returned to expected levels.
|
|
28
28
|
attr_reader :resolved_at
|
|
29
|
+
# The alert ID.
|
|
30
|
+
attr_reader :alert_id
|
|
29
31
|
# The user impact.
|
|
30
32
|
attr_reader :impact
|
|
31
33
|
# The time when impact on the user experience was first detected.
|
|
@@ -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 QueryRun is created.
|
|
7
|
+
class V2DataReportingQueryRunCreatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.data.reporting.query_run.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 QueryRun is created.
|
|
25
|
+
class V2DataReportingQueryRunCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.data.reporting.query_run.created"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the QueryRun 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 QueryRun has failed to complete.
|
|
7
|
+
class V2DataReportingQueryRunFailedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.data.reporting.query_run.failed"
|
|
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 QueryRun has failed to complete.
|
|
25
|
+
class V2DataReportingQueryRunFailedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.data.reporting.query_run.failed"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the QueryRun 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 QueryRun has successfully completed.
|
|
7
|
+
class V2DataReportingQueryRunSucceededEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.data.reporting.query_run.succeeded"
|
|
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 QueryRun has successfully completed.
|
|
25
|
+
class V2DataReportingQueryRunSucceededEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.data.reporting.query_run.succeeded"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the QueryRun 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 QueryRun is updated.
|
|
7
|
+
class V2DataReportingQueryRunUpdatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.data.reporting.query_run.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 QueryRun is updated.
|
|
25
|
+
class V2DataReportingQueryRunUpdatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.data.reporting.query_run.updated"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the QueryRun 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
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.api_key.created"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamApiKeyCreatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of the created key.
|
|
14
|
+
attr_reader :api_key
|
|
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: V2IamApiKeyCreatedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when an API Key is created.
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.api_key.default_secret_revealed"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamApiKeyDefaultSecretRevealedEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of the default key whose secret was revealed.
|
|
14
|
+
attr_reader :api_key
|
|
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: V2IamApiKeyDefaultSecretRevealedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when the default API Key's secret is revealed.
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.api_key.expired"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamApiKeyExpiredEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of the expired key.
|
|
14
|
+
attr_reader :api_key
|
|
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: V2IamApiKeyExpiredEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when an API Key is expired.
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.api_key.permissions_updated"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamApiKeyPermissionsUpdatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of the key whose permissions were updated.
|
|
14
|
+
attr_reader :api_key
|
|
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: V2IamApiKeyPermissionsUpdatedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when an API Key's permissions are updated.
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.api_key.updated"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamApiKeyUpdatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of the updated key.
|
|
14
|
+
attr_reader :api_key
|
|
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: V2IamApiKeyUpdatedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when an API Key is updated.
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.stripe_access_grant.approved"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamStripeAccessGrantApprovedEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of approved Stripe Access Grant.
|
|
14
|
+
attr_reader :stripe_access_grant
|
|
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: V2IamStripeAccessGrantApprovedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when a Stripe Access Grant is approved.
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.stripe_access_grant.canceled"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamStripeAccessGrantCanceledEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of canceled Stripe Access Grant.
|
|
14
|
+
attr_reader :stripe_access_grant
|
|
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: V2IamStripeAccessGrantCanceledEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when a Stripe Access Grant is canceled by the requesting Stripe.
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.stripe_access_grant.denied"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamStripeAccessGrantDeniedEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of denied Stripe Access Grant.
|
|
14
|
+
attr_reader :stripe_access_grant
|
|
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: V2IamStripeAccessGrantDeniedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when a Stripe Access Grant is denied (was pending, then denied by the customer).
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.stripe_access_grant.removed"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamStripeAccessGrantRemovedEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of removed Stripe Access Grant.
|
|
14
|
+
attr_reader :stripe_access_grant
|
|
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: V2IamStripeAccessGrantRemovedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when a Stripe Access Grant is removed (was approved, and then removed by the customer).
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.stripe_access_grant.requested"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamStripeAccessGrantRequestedEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of requested Stripe Access Grant.
|
|
14
|
+
attr_reader :stripe_access_grant
|
|
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: V2IamStripeAccessGrantRequestedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when a Stripe Access Grant is requested.
|
|
@@ -8,6 +8,24 @@ module Stripe
|
|
|
8
8
|
def self.lookup_type
|
|
9
9
|
"v2.iam.stripe_access_grant.updated"
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
class V2IamStripeAccessGrantUpdatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# ID of updated Stripe Access Grant.
|
|
14
|
+
attr_reader :stripe_access_grant
|
|
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: V2IamStripeAccessGrantUpdatedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data
|
|
11
29
|
end
|
|
12
30
|
|
|
13
31
|
# Occurs when a Stripe Access Grant is updated.
|