mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-09-25 00:01:27 -04:00
Compare commits
5 Commits
v15.6.0-al
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
cf0db6f745 | ||
|
4cde8ca569 | ||
|
c279c39d87 | ||
|
8a0ca5aae1 | ||
|
401626c2bf |
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -6,7 +6,6 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- beta
|
||||
- private-preview
|
||||
- sdk-release/**
|
||||
- feature/**
|
||||
tags:
|
||||
|
@ -41,6 +41,12 @@ Metrics/BlockLength:
|
||||
Metrics/ClassLength:
|
||||
Enabled: false
|
||||
|
||||
Metrics/CollectionLiteralLength:
|
||||
Enabled: true
|
||||
Exclude:
|
||||
# We have thin event types that are automatically generated from the OpenAPI spec
|
||||
- "lib/stripe/event_types.rb"
|
||||
|
||||
# There are several methods with many branches in api_requestor due to
|
||||
# request logic.
|
||||
Metrics/CyclomaticComplexity:
|
||||
@ -78,6 +84,7 @@ Metrics/ModuleLength:
|
||||
Enabled: false
|
||||
|
||||
Metrics/ParameterLists:
|
||||
# There's 2 methods in `StripeClient` that have long parameter lists.
|
||||
Max: 8
|
||||
# Optional parameters should be consistent across libraries, we need not be
|
||||
# concerned about this. Was introduced with adding `base_address`
|
||||
@ -209,8 +216,6 @@ Lint/UselessRescue: # new in 1.43
|
||||
Enabled: true
|
||||
Lint/UselessRuby2Keywords: # new in 1.23
|
||||
Enabled: true
|
||||
Metrics/CollectionLiteralLength: # new in 1.47
|
||||
Enabled: true
|
||||
Naming/BlockForwarding: # new in 1.24
|
||||
Enabled: true
|
||||
Security/CompoundHash: # new in 1.28
|
||||
|
@ -1,6 +1,6 @@
|
||||
# This configuration was generated by
|
||||
# `rubocop --auto-gen-config`
|
||||
# on 2023-11-29 18:39:02 UTC using RuboCop version 1.57.2.
|
||||
# on 2023-11-28 01:02:03 UTC using RuboCop version 1.57.2.
|
||||
# The point is for the user to remove these configuration records
|
||||
# one by one as the offenses are removed from the code base.
|
||||
# Note that changes in the inspected code, or installation of new
|
||||
@ -11,15 +11,15 @@ Lint/HashCompareByIdentity:
|
||||
Exclude:
|
||||
- 'lib/stripe/api_requestor.rb'
|
||||
|
||||
# Offense count: 27
|
||||
# Offense count: 26
|
||||
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
||||
Metrics/AbcSize:
|
||||
Max: 55
|
||||
Max: 50
|
||||
|
||||
# Offense count: 10
|
||||
# Offense count: 9
|
||||
# Configuration parameters: CountComments, CountAsOne.
|
||||
Metrics/ClassLength:
|
||||
Max: 618
|
||||
Max: 592
|
||||
|
||||
# Offense count: 12
|
||||
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
||||
@ -27,9 +27,14 @@ Metrics/CyclomaticComplexity:
|
||||
Max: 12
|
||||
|
||||
# Offense count: 9
|
||||
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
||||
Metrics/ParameterLists:
|
||||
Max: 7
|
||||
|
||||
# Offense count: 8
|
||||
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
||||
Metrics/PerceivedComplexity:
|
||||
Max: 13
|
||||
Max: 12
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
@ -44,7 +49,7 @@ Style/CombinableLoops:
|
||||
Exclude:
|
||||
- 'lib/stripe/api_requestor.rb'
|
||||
|
||||
# Offense count: 44
|
||||
# Offense count: 39
|
||||
# Configuration parameters: AllowedConstants.
|
||||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -2,7 +2,8 @@
|
||||
// Show the repo name in the top window bar.
|
||||
"window.title": "${rootName}${separator}${activeEditorMedium}",
|
||||
|
||||
"editor.formatOnSave": true,
|
||||
// formatting on save is very slow in ruby
|
||||
"editor.formatOnSave": false,
|
||||
"files.trimTrailingWhitespace": true,
|
||||
|
||||
// Rubocop settings
|
||||
|
2376
CHANGELOG.md
2376
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
0c253852e3399cf28d0866b76ef13986753ce505
|
||||
v2023
|
@ -5,7 +5,7 @@ From the examples folder, run:
|
||||
|
||||
e.g.
|
||||
|
||||
`RUBYLIB=../lib ruby thinevent_webhook_handler.rb`
|
||||
`RUBYLIB=../lib ruby event_notification_webhook_handler.rb`
|
||||
|
||||
## Adding a new example
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
# typed: false
|
||||
|
||||
# thinevent_webhook_handler.rb - receive and process thin events like the
|
||||
# event_notification_webhook_handler.rb - receive and process event notification like the
|
||||
# v1.billing.meter.error_report_triggered event.
|
||||
#
|
||||
# In this example, we:
|
||||
# - create a StripeClient called client
|
||||
# - use client.parse_thin_event to parse the received thin event webhook body
|
||||
# - use client.parse_event_notification to parse the received event notification webhook body
|
||||
# - call client.v2.core.events.retrieve to retrieve the full event object
|
||||
# - if it is a V1BillingMeterErrorReportTriggeredEvent event type, call
|
||||
# event.fetchRelatedObject to retrieve the Billing Meter object associated
|
||||
@ -24,12 +24,10 @@ client = Stripe::StripeClient.new(api_key)
|
||||
post "/webhook" do
|
||||
webhook_body = request.body.read
|
||||
sig_header = request.env["HTTP_STRIPE_SIGNATURE"]
|
||||
thin_event = client.parse_thin_event(webhook_body, sig_header, webhook_secret)
|
||||
event_notification = client.parse_event_notification(webhook_body, sig_header, webhook_secret)
|
||||
|
||||
# Fetch the event data to understand the failure
|
||||
event = client.v2.core.events.retrieve(thin_event.id)
|
||||
if event.instance_of? Stripe::V1BillingMeterErrorReportTriggeredEvent
|
||||
meter = event.fetch_related_object
|
||||
if event_notification.instance_of?(Stripe::Events::V1BillingMeterErrorReportTriggeredEventNotification)
|
||||
meter = event_notification.fetch_related_object
|
||||
meter_id = meter.id
|
||||
puts "Success!", meter_id
|
||||
end
|
@ -51,7 +51,7 @@ require "stripe/api_resource_test_helpers"
|
||||
require "stripe/singleton_api_resource"
|
||||
require "stripe/webhook"
|
||||
require "stripe/stripe_configuration"
|
||||
require "stripe/thin_event"
|
||||
require "stripe/event_notification"
|
||||
|
||||
# Named API resources
|
||||
require "stripe/resources"
|
||||
@ -108,7 +108,6 @@ module Stripe
|
||||
|
||||
# User configurable options
|
||||
def_delegators :@config, :api_key, :api_key=
|
||||
def_delegators :@config, :authenticator, :authenticator=
|
||||
def_delegators :@config, :api_version, :api_version=
|
||||
def_delegators :@config, :stripe_account, :stripe_account=
|
||||
def_delegators :@config, :api_base, :api_base=
|
||||
@ -156,58 +155,6 @@ module Stripe
|
||||
version: version,
|
||||
}
|
||||
end
|
||||
|
||||
def self.add_beta_version(beta_name, version)
|
||||
unless version.start_with?("v") && version[1..-1].to_i.to_s == version[1..-1]
|
||||
raise ArgumentError, "Version must be in the format 'v' followed by a number (e.g., 'v3')"
|
||||
end
|
||||
|
||||
if (index = api_version.index("; #{beta_name}="))
|
||||
start_index = index + "; #{beta_name}=".length
|
||||
end_index = api_version.index(";", start_index) || api_version.length
|
||||
current_version = api_version[start_index...end_index][1..-1].to_i
|
||||
new_version = version[1..-1].to_i
|
||||
return if new_version <= current_version # Keep the higher version, no update needed
|
||||
|
||||
self.api_version = api_version[0...index] + "; #{beta_name}=#{version}" + api_version[end_index..-1]
|
||||
else
|
||||
self.api_version = "#{api_version}; #{beta_name}=#{version}"
|
||||
end
|
||||
end
|
||||
|
||||
class RawRequest
|
||||
def initialize
|
||||
@opts = {}
|
||||
end
|
||||
|
||||
def execute(method, url, base_address: :api, params: {}, opts: {}, usage: [])
|
||||
opts = Util.normalize_opts(opts)
|
||||
req_opts = RequestOptions.extract_opts_from_hash(opts)
|
||||
|
||||
requestor = APIRequestor.active_requestor
|
||||
resp, = requestor.send(:execute_request_internal, method, url, base_address, params, req_opts,
|
||||
usage)
|
||||
|
||||
requestor.interpret_response(resp)
|
||||
end
|
||||
end
|
||||
|
||||
# Sends a request to Stripe REST API
|
||||
def self.raw_request(method, url, params = {}, opts = {}, base_address: :api)
|
||||
req = RawRequest.new
|
||||
req.execute(method, url, base_address: base_address, params: params, opts: opts,
|
||||
usage: ["raw_request"])
|
||||
end
|
||||
|
||||
def self.deserialize(data, api_mode: :v1)
|
||||
data = JSON.parse(data) if data.is_a?(String)
|
||||
Util.convert_to_stripe_object(data, {}, api_mode: api_mode)
|
||||
end
|
||||
class << self
|
||||
extend Gem::Deprecate
|
||||
deprecate :raw_request, "StripeClient#raw_request", 2024, 9
|
||||
deprecate :deserialize, "StripeClient#deserialize", 2024, 9
|
||||
end
|
||||
end
|
||||
|
||||
Stripe.log_level = ENV["STRIPE_LOG"] unless ENV["STRIPE_LOG"].nil?
|
||||
|
@ -211,7 +211,8 @@ module Stripe
|
||||
|
||||
api_mode = Util.get_api_mode(path)
|
||||
Util.convert_to_stripe_object_with_params(resp.data, params, RequestOptions.persistable(req_opts), resp,
|
||||
api_mode: api_mode, requestor: self)
|
||||
api_mode: api_mode, requestor: self,
|
||||
v2_deleted_object: method == :delete && api_mode == :v2)
|
||||
end
|
||||
|
||||
# Execute request without instantiating a new object if the relevant object's name matches the class
|
||||
@ -850,40 +851,6 @@ module Stripe
|
||||
when "idempotency_error"
|
||||
IdempotencyError.new(error_data[:message], **opts)
|
||||
# switch cases: The beginning of the section generated from our OpenAPI spec
|
||||
when "already_canceled"
|
||||
AlreadyCanceledError.new(error_data[:message], **opts)
|
||||
when "already_exists"
|
||||
AlreadyExistsError.new(error_data[:message], **opts)
|
||||
when "blocked_by_stripe"
|
||||
BlockedByStripeError.new(error_data[:message], **opts)
|
||||
when "controlled_by_dashboard"
|
||||
ControlledByDashboardError.new(error_data[:message], **opts)
|
||||
when "feature_not_enabled"
|
||||
FeatureNotEnabledError.new(error_data[:message], **opts)
|
||||
when "financial_account_not_open"
|
||||
FinancialAccountNotOpenError.new(error_data[:message], **opts)
|
||||
when "insufficient_funds"
|
||||
InsufficientFundsError.new(error_data[:message], **opts)
|
||||
when "invalid_payment_method"
|
||||
|
||||
InvalidPaymentMethodError.new(
|
||||
error_data[:message],
|
||||
**opts,
|
||||
invalid_param: error_data[:invalid_param]
|
||||
)
|
||||
|
||||
when "invalid_payout_method"
|
||||
InvalidPayoutMethodError.new(error_data[:message], **opts)
|
||||
when "non_zero_balance"
|
||||
NonZeroBalanceError.new(error_data[:message], **opts)
|
||||
when "not_cancelable"
|
||||
NotCancelableError.new(error_data[:message], **opts)
|
||||
when "quota_exceeded"
|
||||
QuotaExceededError.new(error_data[:message], **opts)
|
||||
when "rate_limit"
|
||||
RateLimitError.new(error_data[:message], **opts)
|
||||
when "recipient_not_notifiable"
|
||||
RecipientNotNotifiableError.new(error_data[:message], **opts)
|
||||
when "temporary_session_expired"
|
||||
TemporarySessionExpiredError.new(error_data[:message], **opts)
|
||||
# switch cases: The end of the section generated from our OpenAPI spec
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
module Stripe
|
||||
module ApiVersion
|
||||
CURRENT = "2025-08-27.preview"
|
||||
CURRENT = "2025-09-30.clover"
|
||||
CURRENT_MAJOR = "clover"
|
||||
end
|
||||
end
|
||||
|
@ -162,69 +162,6 @@ module Stripe
|
||||
end
|
||||
|
||||
# class definitions: The beginning of the section generated from our OpenAPI spec
|
||||
class AlreadyCanceledError < StripeError
|
||||
end
|
||||
|
||||
class AlreadyExistsError < StripeError
|
||||
end
|
||||
|
||||
class BlockedByStripeError < StripeError
|
||||
end
|
||||
|
||||
class ControlledByDashboardError < StripeError
|
||||
end
|
||||
|
||||
class FeatureNotEnabledError < StripeError
|
||||
end
|
||||
|
||||
class FinancialAccountNotOpenError < StripeError
|
||||
end
|
||||
|
||||
class InsufficientFundsError < StripeError
|
||||
end
|
||||
|
||||
class InvalidPaymentMethodError < StripeError
|
||||
attr_reader :invalid_param
|
||||
|
||||
def initialize(
|
||||
message = nil,
|
||||
http_body: nil,
|
||||
http_status: nil,
|
||||
json_body: nil,
|
||||
http_headers: nil,
|
||||
code: nil,
|
||||
invalid_param: nil
|
||||
)
|
||||
super(
|
||||
message,
|
||||
http_body: http_body,
|
||||
http_status: http_status,
|
||||
json_body: json_body,
|
||||
http_headers: http_headers,
|
||||
code: code,
|
||||
)
|
||||
@invalid_param = invalid_param
|
||||
end
|
||||
end
|
||||
|
||||
class InvalidPayoutMethodError < StripeError
|
||||
end
|
||||
|
||||
class NonZeroBalanceError < StripeError
|
||||
end
|
||||
|
||||
class NotCancelableError < StripeError
|
||||
end
|
||||
|
||||
class QuotaExceededError < StripeError
|
||||
end
|
||||
|
||||
class RateLimitError < StripeError
|
||||
end
|
||||
|
||||
class RecipientNotNotifiableError < StripeError
|
||||
end
|
||||
|
||||
class TemporarySessionExpiredError < StripeError
|
||||
end
|
||||
# class definitions: The end of the section generated from our OpenAPI spec
|
||||
|
70
lib/stripe/event_notification.rb
Normal file
70
lib/stripe/event_notification.rb
Normal file
@ -0,0 +1,70 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
module V2
|
||||
class EventReasonRequest
|
||||
attr_reader :id, :idempotency_key
|
||||
|
||||
def initialize(event_reason_request_payload = {})
|
||||
@id = event_reason_request_payload[:id]
|
||||
@idempotency_key = event_reason_request_payload[:idempotency_key]
|
||||
end
|
||||
end
|
||||
|
||||
class EventReason
|
||||
attr_reader :type, :request
|
||||
|
||||
def initialize(event_reason_payload = {})
|
||||
@type = event_reason_payload[:type]
|
||||
@request = EventReasonRequest.new(event_reason_payload[:request])
|
||||
end
|
||||
end
|
||||
|
||||
class RelatedObject
|
||||
attr_reader :id, :type, :url
|
||||
|
||||
def initialize(related_object)
|
||||
@id = related_object[:id]
|
||||
@type = related_object[:type]
|
||||
@url = related_object[:url]
|
||||
end
|
||||
end
|
||||
|
||||
class EventNotification
|
||||
attr_reader :id, :type, :created, :context, :livemode, :reason
|
||||
|
||||
def initialize(event_payload, client)
|
||||
@id = event_payload[:id]
|
||||
@type = event_payload[:type]
|
||||
@created = event_payload[:created]
|
||||
@livemode = event_payload[:livemode]
|
||||
@context = event_payload[:context]
|
||||
@reason = EventReason.new(event_payload[:reason]) if event_payload[:reason]
|
||||
# private unless a child declares an attr_reader
|
||||
@related_object = RelatedObject.new(event_payload[:related_object]) if event_payload[:related_object]
|
||||
|
||||
# internal use
|
||||
@client = client
|
||||
end
|
||||
|
||||
# Retrieves the Event that generated this EventNotification.
|
||||
def fetch_event
|
||||
resp = @client.raw_request(:get, "/v2/core/events/#{id}", opts: { stripe_context: context },
|
||||
usage: ["fetch_event"])
|
||||
@client.deserialize(resp.http_body, api_mode: :v2)
|
||||
end
|
||||
end
|
||||
|
||||
class UnknownEventNotification < EventNotification
|
||||
attr_reader :related_object
|
||||
|
||||
def fetch_related_object
|
||||
return nil if @related_object.nil?
|
||||
|
||||
resp = @client.raw_request(:get, related_object.url, opts: { stripe_context: context },
|
||||
usage: ["fetch_related_object"])
|
||||
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -2,202 +2,27 @@
|
||||
|
||||
module Stripe
|
||||
module EventTypes
|
||||
def self.thin_event_names_to_classes
|
||||
def self.v2_event_types_to_classes
|
||||
{
|
||||
# The beginning of the section generated from our OpenAPI spec
|
||||
V1BillingMeterErrorReportTriggeredEvent.lookup_type => V1BillingMeterErrorReportTriggeredEvent,
|
||||
V1BillingMeterNoMeterFoundEvent.lookup_type => V1BillingMeterNoMeterFoundEvent,
|
||||
V2BillingCadenceBilledEvent.lookup_type => V2BillingCadenceBilledEvent,
|
||||
V2BillingCadenceCanceledEvent.lookup_type => V2BillingCadenceCanceledEvent,
|
||||
V2BillingCadenceCreatedEvent.lookup_type => V2BillingCadenceCreatedEvent,
|
||||
V2BillingLicenseFeeCreatedEvent.lookup_type => V2BillingLicenseFeeCreatedEvent,
|
||||
V2BillingLicenseFeeUpdatedEvent.lookup_type => V2BillingLicenseFeeUpdatedEvent,
|
||||
V2BillingLicenseFeeVersionCreatedEvent.lookup_type => V2BillingLicenseFeeVersionCreatedEvent,
|
||||
V2BillingLicensedItemCreatedEvent.lookup_type => V2BillingLicensedItemCreatedEvent,
|
||||
V2BillingLicensedItemUpdatedEvent.lookup_type => V2BillingLicensedItemUpdatedEvent,
|
||||
V2BillingMeteredItemCreatedEvent.lookup_type => V2BillingMeteredItemCreatedEvent,
|
||||
V2BillingMeteredItemUpdatedEvent.lookup_type => V2BillingMeteredItemUpdatedEvent,
|
||||
V2BillingPricingPlanComponentCreatedEvent.lookup_type => V2BillingPricingPlanComponentCreatedEvent,
|
||||
V2BillingPricingPlanComponentUpdatedEvent.lookup_type => V2BillingPricingPlanComponentUpdatedEvent,
|
||||
V2BillingPricingPlanCreatedEvent.lookup_type => V2BillingPricingPlanCreatedEvent,
|
||||
V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent.lookup_type =>
|
||||
V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent,
|
||||
V2BillingPricingPlanSubscriptionCollectionCurrentEvent.lookup_type =>
|
||||
V2BillingPricingPlanSubscriptionCollectionCurrentEvent,
|
||||
V2BillingPricingPlanSubscriptionCollectionPastDueEvent.lookup_type =>
|
||||
V2BillingPricingPlanSubscriptionCollectionPastDueEvent,
|
||||
V2BillingPricingPlanSubscriptionCollectionPausedEvent.lookup_type =>
|
||||
V2BillingPricingPlanSubscriptionCollectionPausedEvent,
|
||||
V2BillingPricingPlanSubscriptionCollectionUnpaidEvent.lookup_type =>
|
||||
V2BillingPricingPlanSubscriptionCollectionUnpaidEvent,
|
||||
V2BillingPricingPlanSubscriptionServicingActivatedEvent.lookup_type =>
|
||||
V2BillingPricingPlanSubscriptionServicingActivatedEvent,
|
||||
V2BillingPricingPlanSubscriptionServicingCanceledEvent.lookup_type =>
|
||||
V2BillingPricingPlanSubscriptionServicingCanceledEvent,
|
||||
V2BillingPricingPlanSubscriptionServicingPausedEvent.lookup_type =>
|
||||
V2BillingPricingPlanSubscriptionServicingPausedEvent,
|
||||
V2BillingPricingPlanUpdatedEvent.lookup_type => V2BillingPricingPlanUpdatedEvent,
|
||||
V2BillingPricingPlanVersionCreatedEvent.lookup_type => V2BillingPricingPlanVersionCreatedEvent,
|
||||
V2BillingRateCardCreatedEvent.lookup_type => V2BillingRateCardCreatedEvent,
|
||||
V2BillingRateCardRateCreatedEvent.lookup_type => V2BillingRateCardRateCreatedEvent,
|
||||
V2BillingRateCardSubscriptionActivatedEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionActivatedEvent,
|
||||
V2BillingRateCardSubscriptionCanceledEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionCanceledEvent,
|
||||
V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent,
|
||||
V2BillingRateCardSubscriptionCollectionCurrentEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionCollectionCurrentEvent,
|
||||
V2BillingRateCardSubscriptionCollectionPastDueEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionCollectionPastDueEvent,
|
||||
V2BillingRateCardSubscriptionCollectionPausedEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionCollectionPausedEvent,
|
||||
V2BillingRateCardSubscriptionCollectionUnpaidEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionCollectionUnpaidEvent,
|
||||
V2BillingRateCardSubscriptionServicingActivatedEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionServicingActivatedEvent,
|
||||
V2BillingRateCardSubscriptionServicingCanceledEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionServicingCanceledEvent,
|
||||
V2BillingRateCardSubscriptionServicingPausedEvent.lookup_type =>
|
||||
V2BillingRateCardSubscriptionServicingPausedEvent,
|
||||
V2BillingRateCardUpdatedEvent.lookup_type => V2BillingRateCardUpdatedEvent,
|
||||
V2BillingRateCardVersionCreatedEvent.lookup_type => V2BillingRateCardVersionCreatedEvent,
|
||||
V2CoreAccountClosedEvent.lookup_type => V2CoreAccountClosedEvent,
|
||||
V2CoreAccountCreatedEvent.lookup_type => V2CoreAccountCreatedEvent,
|
||||
V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent,
|
||||
V2CoreAccountIncludingConfigurationCustomerUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingConfigurationCustomerUpdatedEvent,
|
||||
V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent,
|
||||
V2CoreAccountIncludingConfigurationMerchantUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingConfigurationMerchantUpdatedEvent,
|
||||
V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent,
|
||||
V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingConfigurationRecipientUpdatedEvent,
|
||||
V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent,
|
||||
V2CoreAccountIncludingConfigurationStorerUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingConfigurationStorerUpdatedEvent,
|
||||
V2CoreAccountIncludingDefaultsUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingDefaultsUpdatedEvent,
|
||||
V2CoreAccountIncludingIdentityUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingIdentityUpdatedEvent,
|
||||
V2CoreAccountIncludingRequirementsUpdatedEvent.lookup_type =>
|
||||
V2CoreAccountIncludingRequirementsUpdatedEvent,
|
||||
V2CoreAccountLinkReturnedEvent.lookup_type => V2CoreAccountLinkReturnedEvent,
|
||||
V2CoreAccountPersonCreatedEvent.lookup_type => V2CoreAccountPersonCreatedEvent,
|
||||
V2CoreAccountPersonDeletedEvent.lookup_type => V2CoreAccountPersonDeletedEvent,
|
||||
V2CoreAccountPersonUpdatedEvent.lookup_type => V2CoreAccountPersonUpdatedEvent,
|
||||
V2CoreAccountUpdatedEvent.lookup_type => V2CoreAccountUpdatedEvent,
|
||||
V2CoreClaimableSandboxClaimedEvent.lookup_type => V2CoreClaimableSandboxClaimedEvent,
|
||||
V2CoreClaimableSandboxExpiredEvent.lookup_type => V2CoreClaimableSandboxExpiredEvent,
|
||||
V2CoreClaimableSandboxExpiringEvent.lookup_type => V2CoreClaimableSandboxExpiringEvent,
|
||||
V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.lookup_type =>
|
||||
V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent,
|
||||
V2CoreEventDestinationPingEvent.lookup_type => V2CoreEventDestinationPingEvent,
|
||||
V2CoreHealthApiErrorFiringEvent.lookup_type => V2CoreHealthApiErrorFiringEvent,
|
||||
V2CoreHealthApiErrorResolvedEvent.lookup_type => V2CoreHealthApiErrorResolvedEvent,
|
||||
V2CoreHealthApiLatencyFiringEvent.lookup_type => V2CoreHealthApiLatencyFiringEvent,
|
||||
V2CoreHealthApiLatencyResolvedEvent.lookup_type => V2CoreHealthApiLatencyResolvedEvent,
|
||||
V2CoreHealthAuthorizationRateDropFiringEvent.lookup_type =>
|
||||
V2CoreHealthAuthorizationRateDropFiringEvent,
|
||||
V2CoreHealthAuthorizationRateDropResolvedEvent.lookup_type =>
|
||||
V2CoreHealthAuthorizationRateDropResolvedEvent,
|
||||
V2CoreHealthEventGenerationFailureResolvedEvent.lookup_type =>
|
||||
V2CoreHealthEventGenerationFailureResolvedEvent,
|
||||
V2CoreHealthFraudRateIncreasedEvent.lookup_type => V2CoreHealthFraudRateIncreasedEvent,
|
||||
V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.lookup_type =>
|
||||
V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent,
|
||||
V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.lookup_type =>
|
||||
V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent,
|
||||
V2CoreHealthPaymentMethodErrorFiringEvent.lookup_type => V2CoreHealthPaymentMethodErrorFiringEvent,
|
||||
V2CoreHealthPaymentMethodErrorResolvedEvent.lookup_type =>
|
||||
V2CoreHealthPaymentMethodErrorResolvedEvent,
|
||||
V2CoreHealthTrafficVolumeDropFiringEvent.lookup_type => V2CoreHealthTrafficVolumeDropFiringEvent,
|
||||
V2CoreHealthTrafficVolumeDropResolvedEvent.lookup_type =>
|
||||
V2CoreHealthTrafficVolumeDropResolvedEvent,
|
||||
V2CoreHealthWebhookLatencyFiringEvent.lookup_type => V2CoreHealthWebhookLatencyFiringEvent,
|
||||
V2CoreHealthWebhookLatencyResolvedEvent.lookup_type => V2CoreHealthWebhookLatencyResolvedEvent,
|
||||
V2MoneyManagementAdjustmentCreatedEvent.lookup_type => V2MoneyManagementAdjustmentCreatedEvent,
|
||||
V2MoneyManagementFinancialAccountCreatedEvent.lookup_type =>
|
||||
V2MoneyManagementFinancialAccountCreatedEvent,
|
||||
V2MoneyManagementFinancialAccountUpdatedEvent.lookup_type =>
|
||||
V2MoneyManagementFinancialAccountUpdatedEvent,
|
||||
V2MoneyManagementFinancialAddressActivatedEvent.lookup_type =>
|
||||
V2MoneyManagementFinancialAddressActivatedEvent,
|
||||
V2MoneyManagementFinancialAddressFailedEvent.lookup_type =>
|
||||
V2MoneyManagementFinancialAddressFailedEvent,
|
||||
V2MoneyManagementInboundTransferAvailableEvent.lookup_type =>
|
||||
V2MoneyManagementInboundTransferAvailableEvent,
|
||||
V2MoneyManagementInboundTransferBankDebitFailedEvent.lookup_type =>
|
||||
V2MoneyManagementInboundTransferBankDebitFailedEvent,
|
||||
V2MoneyManagementInboundTransferBankDebitProcessingEvent.lookup_type =>
|
||||
V2MoneyManagementInboundTransferBankDebitProcessingEvent,
|
||||
V2MoneyManagementInboundTransferBankDebitQueuedEvent.lookup_type =>
|
||||
V2MoneyManagementInboundTransferBankDebitQueuedEvent,
|
||||
V2MoneyManagementInboundTransferBankDebitReturnedEvent.lookup_type =>
|
||||
V2MoneyManagementInboundTransferBankDebitReturnedEvent,
|
||||
V2MoneyManagementInboundTransferBankDebitSucceededEvent.lookup_type =>
|
||||
V2MoneyManagementInboundTransferBankDebitSucceededEvent,
|
||||
V2MoneyManagementOutboundPaymentCanceledEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundPaymentCanceledEvent,
|
||||
V2MoneyManagementOutboundPaymentCreatedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundPaymentCreatedEvent,
|
||||
V2MoneyManagementOutboundPaymentFailedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundPaymentFailedEvent,
|
||||
V2MoneyManagementOutboundPaymentPostedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundPaymentPostedEvent,
|
||||
V2MoneyManagementOutboundPaymentReturnedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundPaymentReturnedEvent,
|
||||
V2MoneyManagementOutboundPaymentUpdatedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundPaymentUpdatedEvent,
|
||||
V2MoneyManagementOutboundTransferCanceledEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundTransferCanceledEvent,
|
||||
V2MoneyManagementOutboundTransferCreatedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundTransferCreatedEvent,
|
||||
V2MoneyManagementOutboundTransferFailedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundTransferFailedEvent,
|
||||
V2MoneyManagementOutboundTransferPostedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundTransferPostedEvent,
|
||||
V2MoneyManagementOutboundTransferReturnedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundTransferReturnedEvent,
|
||||
V2MoneyManagementOutboundTransferUpdatedEvent.lookup_type =>
|
||||
V2MoneyManagementOutboundTransferUpdatedEvent,
|
||||
V2MoneyManagementPayoutMethodUpdatedEvent.lookup_type => V2MoneyManagementPayoutMethodUpdatedEvent,
|
||||
V2MoneyManagementReceivedCreditAvailableEvent.lookup_type =>
|
||||
V2MoneyManagementReceivedCreditAvailableEvent,
|
||||
V2MoneyManagementReceivedCreditFailedEvent.lookup_type =>
|
||||
V2MoneyManagementReceivedCreditFailedEvent,
|
||||
V2MoneyManagementReceivedCreditReturnedEvent.lookup_type =>
|
||||
V2MoneyManagementReceivedCreditReturnedEvent,
|
||||
V2MoneyManagementReceivedCreditSucceededEvent.lookup_type =>
|
||||
V2MoneyManagementReceivedCreditSucceededEvent,
|
||||
V2MoneyManagementReceivedDebitCanceledEvent.lookup_type =>
|
||||
V2MoneyManagementReceivedDebitCanceledEvent,
|
||||
V2MoneyManagementReceivedDebitFailedEvent.lookup_type => V2MoneyManagementReceivedDebitFailedEvent,
|
||||
V2MoneyManagementReceivedDebitPendingEvent.lookup_type =>
|
||||
V2MoneyManagementReceivedDebitPendingEvent,
|
||||
V2MoneyManagementReceivedDebitSucceededEvent.lookup_type =>
|
||||
V2MoneyManagementReceivedDebitSucceededEvent,
|
||||
V2MoneyManagementReceivedDebitUpdatedEvent.lookup_type =>
|
||||
V2MoneyManagementReceivedDebitUpdatedEvent,
|
||||
V2MoneyManagementTransactionCreatedEvent.lookup_type => V2MoneyManagementTransactionCreatedEvent,
|
||||
V2MoneyManagementTransactionUpdatedEvent.lookup_type => V2MoneyManagementTransactionUpdatedEvent,
|
||||
V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.lookup_type =>
|
||||
V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent,
|
||||
V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.lookup_type =>
|
||||
V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent,
|
||||
V2PaymentsOffSessionPaymentCanceledEvent.lookup_type => V2PaymentsOffSessionPaymentCanceledEvent,
|
||||
V2PaymentsOffSessionPaymentCreatedEvent.lookup_type => V2PaymentsOffSessionPaymentCreatedEvent,
|
||||
V2PaymentsOffSessionPaymentFailedEvent.lookup_type => V2PaymentsOffSessionPaymentFailedEvent,
|
||||
V2PaymentsOffSessionPaymentSucceededEvent.lookup_type => V2PaymentsOffSessionPaymentSucceededEvent,
|
||||
V2ReportingReportRunCreatedEvent.lookup_type => V2ReportingReportRunCreatedEvent,
|
||||
V2ReportingReportRunFailedEvent.lookup_type => V2ReportingReportRunFailedEvent,
|
||||
V2ReportingReportRunSucceededEvent.lookup_type => V2ReportingReportRunSucceededEvent,
|
||||
V2ReportingReportRunUpdatedEvent.lookup_type => V2ReportingReportRunUpdatedEvent,
|
||||
# The end of the section generated from our OpenAPI spec
|
||||
# v2 event types: The beginning of the section generated from our OpenAPI spec
|
||||
Events::V1BillingMeterErrorReportTriggeredEvent.lookup_type =>
|
||||
Events::V1BillingMeterErrorReportTriggeredEvent,
|
||||
Events::V1BillingMeterNoMeterFoundEvent.lookup_type => Events::V1BillingMeterNoMeterFoundEvent,
|
||||
Events::V2CoreEventDestinationPingEvent.lookup_type => Events::V2CoreEventDestinationPingEvent,
|
||||
# v2 event types: The end of the section generated from our OpenAPI spec
|
||||
}
|
||||
end
|
||||
|
||||
def self.event_notification_types_to_classes
|
||||
{
|
||||
# event notification types: The beginning of the section generated from our OpenAPI spec
|
||||
Events::V1BillingMeterErrorReportTriggeredEventNotification.lookup_type =>
|
||||
Events::V1BillingMeterErrorReportTriggeredEventNotification,
|
||||
Events::V1BillingMeterNoMeterFoundEventNotification.lookup_type =>
|
||||
Events::V1BillingMeterNoMeterFoundEventNotification,
|
||||
Events::V2CoreEventDestinationPingEventNotification.lookup_type =>
|
||||
Events::V2CoreEventDestinationPingEventNotification,
|
||||
# event notification types: The end of the section generated from our OpenAPI spec
|
||||
}
|
||||
end
|
||||
end
|
||||
|
@ -2,22 +2,122 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
module Events
|
||||
# Occurs when a Meter has invalid async usage events.
|
||||
class V1BillingMeterErrorReportTriggeredEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.error_report_triggered"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
class V1BillingMeterErrorReportTriggeredEventData < Stripe::StripeObject
|
||||
class Reason < Stripe::StripeObject
|
||||
class ErrorType < Stripe::StripeObject
|
||||
class SampleError < Stripe::StripeObject
|
||||
class Request < Stripe::StripeObject
|
||||
# The request idempotency key.
|
||||
attr_reader :identifier
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The error message.
|
||||
attr_reader :error_message
|
||||
# The request causes the error.
|
||||
attr_reader :request
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { request: Request }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Open Enum.
|
||||
attr_reader :code
|
||||
# The number of errors of this type.
|
||||
attr_reader :error_count
|
||||
# A list of sample errors of this type.
|
||||
attr_reader :sample_errors
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { sample_errors: SampleError }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The total error count within this window.
|
||||
attr_reader :error_count
|
||||
# The error details.
|
||||
attr_reader :error_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { error_types: ErrorType }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# This contains information about why meter error happens.
|
||||
attr_reader :reason
|
||||
# Extra field included in the event's `data` when fetched from /v2/events.
|
||||
attr_reader :developer_message_summary
|
||||
# The start of the window that is encapsulated by this summary.
|
||||
attr_reader :validation_start
|
||||
# The end of the window that is encapsulated by this summary.
|
||||
attr_reader :validation_end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { reason: Reason }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { data: V1BillingMeterErrorReportTriggeredEventData }
|
||||
end
|
||||
attr_reader :data, :related_object
|
||||
|
||||
# Retrieves the related object from the API. Makes an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
opts: { stripe_context: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
# Occurs when a Meter has invalid async usage events.
|
||||
class V1BillingMeterErrorReportTriggeredEventNotification < Stripe::V2::EventNotification
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.error_report_triggered"
|
||||
end
|
||||
|
||||
attr_reader :related_object
|
||||
|
||||
# Retrieves the Meter related to this EventNotification from the Stripe API. Makes an API request on every call.
|
||||
def fetch_related_object
|
||||
resp = @client.raw_request(
|
||||
:get,
|
||||
related_object.url,
|
||||
opts: { stripe_context: context },
|
||||
usage: ["fetch_related_object"]
|
||||
)
|
||||
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -2,12 +2,99 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
module Events
|
||||
# Occurs when a Meter's id is missing or invalid in async usage events.
|
||||
class V1BillingMeterNoMeterFoundEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.no_meter_found"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
class V1BillingMeterNoMeterFoundEventData < Stripe::StripeObject
|
||||
class Reason < Stripe::StripeObject
|
||||
class ErrorType < Stripe::StripeObject
|
||||
class SampleError < Stripe::StripeObject
|
||||
class Request < Stripe::StripeObject
|
||||
# The request idempotency key.
|
||||
attr_reader :identifier
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The error message.
|
||||
attr_reader :error_message
|
||||
# The request causes the error.
|
||||
attr_reader :request
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { request: Request }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Open Enum.
|
||||
attr_reader :code
|
||||
# The number of errors of this type.
|
||||
attr_reader :error_count
|
||||
# A list of sample errors of this type.
|
||||
attr_reader :sample_errors
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { sample_errors: SampleError }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The total error count within this window.
|
||||
attr_reader :error_count
|
||||
# The error details.
|
||||
attr_reader :error_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { error_types: ErrorType }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# This contains information about why meter error happens.
|
||||
attr_reader :reason
|
||||
# Extra field included in the event's `data` when fetched from /v2/events.
|
||||
attr_reader :developer_message_summary
|
||||
# The start of the window that is encapsulated by this summary.
|
||||
attr_reader :validation_start
|
||||
# The end of the window that is encapsulated by this summary.
|
||||
attr_reader :validation_end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { reason: Reason }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { data: V1BillingMeterNoMeterFoundEventData }
|
||||
end
|
||||
attr_reader :data
|
||||
end
|
||||
|
||||
# Occurs when a Meter's id is missing or invalid in async usage events.
|
||||
class V1BillingMeterNoMeterFoundEventNotification < Stripe::V2::EventNotification
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.no_meter_found"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a billing Cadence generates an invoice.
|
||||
class V2BillingCadenceBilledEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.cadence.billed"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a billing Cadence is canceled.
|
||||
class V2BillingCadenceCanceledEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.cadence.canceled"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a billing Cadence is created.
|
||||
class V2BillingCadenceCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.cadence.created"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a LicenseFee is created.
|
||||
class V2BillingLicenseFeeCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.license_fee.created"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a LicenseFee is updated.
|
||||
class V2BillingLicenseFeeUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.license_fee.updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a LicenseFeeVersion is created.
|
||||
class V2BillingLicenseFeeVersionCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.license_fee_version.created"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a LicensedItem is created.
|
||||
class V2BillingLicensedItemCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.licensed_item.created"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a LicensedItem is updated.
|
||||
class V2BillingLicensedItemUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.licensed_item.updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a MeteredItem is created.
|
||||
class V2BillingMeteredItemCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.metered_item.created"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a MeteredItem is updated.
|
||||
class V2BillingMeteredItemUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.metered_item.updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlanComponent is created.
|
||||
class V2BillingPricingPlanComponentCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_component.created"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlanComponent is updated.
|
||||
class V2BillingPricingPlanComponentUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_component.updated"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlan is created.
|
||||
class V2BillingPricingPlanCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan.created"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlanSubscription's collection is awaiting customer action.
|
||||
class V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_subscription.collection_awaiting_customer_action"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlanSubscription's collection is current.
|
||||
class V2BillingPricingPlanSubscriptionCollectionCurrentEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_subscription.collection_current"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlanSubscription's collection is past due.
|
||||
class V2BillingPricingPlanSubscriptionCollectionPastDueEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_subscription.collection_past_due"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlanSubscription's collection is paused.
|
||||
class V2BillingPricingPlanSubscriptionCollectionPausedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_subscription.collection_paused"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlanSubscription's collection is unpaid.
|
||||
class V2BillingPricingPlanSubscriptionCollectionUnpaidEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_subscription.collection_unpaid"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when PricingPlanSubscription servicing is activated.
|
||||
class V2BillingPricingPlanSubscriptionServicingActivatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_subscription.servicing_activated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when PricingPlanSubscription servicing is canceled.
|
||||
class V2BillingPricingPlanSubscriptionServicingCanceledEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_subscription.servicing_canceled"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when PricingPlanSubscription servicing is paused.
|
||||
class V2BillingPricingPlanSubscriptionServicingPausedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_subscription.servicing_paused"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlan is updated.
|
||||
class V2BillingPricingPlanUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan.updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a PricingPlanVersion is created.
|
||||
class V2BillingPricingPlanVersionCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.pricing_plan_version.created"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCard is created.
|
||||
class V2BillingRateCardCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card.created"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCardRate is created.
|
||||
class V2BillingRateCardRateCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_rate.created"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCardSubscription is activated.
|
||||
class V2BillingRateCardSubscriptionActivatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.activated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCardSubscription is canceled.
|
||||
class V2BillingRateCardSubscriptionCanceledEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.canceled"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCardSubscription's collection is awaiting customer action.
|
||||
class V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.collection_awaiting_customer_action"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCardSubscription's collection is current.
|
||||
class V2BillingRateCardSubscriptionCollectionCurrentEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.collection_current"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCardSubscription's collection is past due.
|
||||
class V2BillingRateCardSubscriptionCollectionPastDueEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.collection_past_due"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCardSubscription's collection is paused.
|
||||
class V2BillingRateCardSubscriptionCollectionPausedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.collection_paused"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCardSubscription's collection is unpaid.
|
||||
class V2BillingRateCardSubscriptionCollectionUnpaidEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.collection_unpaid"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when RateCardSubscription servicing is activated.
|
||||
class V2BillingRateCardSubscriptionServicingActivatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.servicing_activated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when RateCardSubscription servicing is canceled.
|
||||
class V2BillingRateCardSubscriptionServicingCanceledEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.servicing_canceled"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when RateCardSubscription servicing is paused.
|
||||
class V2BillingRateCardSubscriptionServicingPausedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_subscription.servicing_paused"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCard is updated.
|
||||
class V2BillingRateCardUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card.updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a RateCardVersion is created.
|
||||
class V2BillingRateCardVersionCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.billing.rate_card_version.created"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# This event occurs when an account is closed.
|
||||
class V2CoreAccountClosedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account.closed"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an Account is created.
|
||||
class V2CoreAccountCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account.created"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when the status of an Account's customer configuration capability is updated.
|
||||
class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[configuration.customer].capability_status_updated"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an Account's customer configuration is updated.
|
||||
class V2CoreAccountIncludingConfigurationCustomerUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[configuration.customer].updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when the status of an Account's merchant configuration capability is updated.
|
||||
class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[configuration.merchant].capability_status_updated"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an Account's merchant configuration is updated.
|
||||
class V2CoreAccountIncludingConfigurationMerchantUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[configuration.merchant].updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when the status of an Account's recipient configuration capability is updated.
|
||||
class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[configuration.recipient].capability_status_updated"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a Recipient's configuration is updated.
|
||||
class V2CoreAccountIncludingConfigurationRecipientUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[configuration.recipient].updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when the status of an Account's storer configuration capability is updated.
|
||||
class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[configuration.storer].capability_status_updated"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a Storer's configuration is updated.
|
||||
class V2CoreAccountIncludingConfigurationStorerUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[configuration.storer].updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# This event occurs when account defaults are created or updated.
|
||||
class V2CoreAccountIncludingDefaultsUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[defaults].updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an Identity is updated.
|
||||
class V2CoreAccountIncludingIdentityUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[identity].updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an Account's requirements are updated.
|
||||
class V2CoreAccountIncludingRequirementsUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account[requirements].updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when the generated AccountLink is completed.
|
||||
class V2CoreAccountLinkReturnedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account_link.returned"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a Person is created.
|
||||
class V2CoreAccountPersonCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account_person.created"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a Person is deleted.
|
||||
class V2CoreAccountPersonDeletedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account_person.deleted"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a Person is updated.
|
||||
class V2CoreAccountPersonUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account_person.updated"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an Account is updated.
|
||||
class V2CoreAccountUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.account.updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a claimable sandbox is claimed.
|
||||
class V2CoreClaimableSandboxClaimedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.claimable_sandbox.claimed"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a claimable sandbox expires.
|
||||
class V2CoreClaimableSandboxExpiredEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.claimable_sandbox.expired"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a claimable sandbox is expiring in 7 days.
|
||||
class V2CoreClaimableSandboxExpiringEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.claimable_sandbox.expiring"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a claimable sandbox is activated by the user with the intention to go live and your Stripe app is installed on the live account.
|
||||
class V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.claimable_sandbox.sandbox_details_owner_account_updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -2,20 +2,43 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
module Events
|
||||
# A ping event used to test the connection to an EventDestination.
|
||||
class V2CoreEventDestinationPingEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.event_destination.ping"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
# Retrieves the related object from the API. Makes an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
opts: { stripe_context: context }
|
||||
)
|
||||
end
|
||||
attr_reader :related_object
|
||||
end
|
||||
|
||||
# A ping event used to test the connection to an EventDestination.
|
||||
class V2CoreEventDestinationPingEventNotification < Stripe::V2::EventNotification
|
||||
def self.lookup_type
|
||||
"v2.core.event_destination.ping"
|
||||
end
|
||||
|
||||
attr_reader :related_object
|
||||
|
||||
# Retrieves the EventDestination related to this EventNotification from the Stripe API. Makes an API request on every call.
|
||||
def fetch_related_object
|
||||
resp = @client.raw_request(
|
||||
:get,
|
||||
related_object.url,
|
||||
opts: { stripe_context: context },
|
||||
usage: ["fetch_related_object"]
|
||||
)
|
||||
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an API error alert is firing.
|
||||
class V2CoreHealthApiErrorFiringEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.api_error.firing"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an API error alert is resolved.
|
||||
class V2CoreHealthApiErrorResolvedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.api_error.resolved"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an API latency alert is firing.
|
||||
class V2CoreHealthApiLatencyFiringEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.api_latency.firing"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an API latency alert is resolved.
|
||||
class V2CoreHealthApiLatencyResolvedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.api_latency.resolved"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an authorization rate drop alert is firing.
|
||||
class V2CoreHealthAuthorizationRateDropFiringEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.authorization_rate_drop.firing"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an authorization rate drop alert is resolved.
|
||||
class V2CoreHealthAuthorizationRateDropResolvedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.authorization_rate_drop.resolved"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an event generation failure alert is resolved.
|
||||
class V2CoreHealthEventGenerationFailureResolvedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.event_generation_failure.resolved"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when the fraud rate has increased.
|
||||
class V2CoreHealthFraudRateIncreasedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.fraud_rate.increased"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an issuing authorization request timeout alert is firing.
|
||||
class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.issuing_authorization_request_timeout.firing"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an issuing authorization request timeout alert is resolved.
|
||||
class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.issuing_authorization_request_timeout.resolved"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a payment method error alert is firing.
|
||||
class V2CoreHealthPaymentMethodErrorFiringEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.payment_method_error.firing"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a payment method error alert is resolved.
|
||||
class V2CoreHealthPaymentMethodErrorResolvedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.payment_method_error.resolved"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a traffic volume drop alert is firing.
|
||||
class V2CoreHealthTrafficVolumeDropFiringEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.traffic_volume_drop.firing"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a traffic volume drop alert is resolved.
|
||||
class V2CoreHealthTrafficVolumeDropResolvedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.traffic_volume_drop.resolved"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a webhook latency alert is firing.
|
||||
class V2CoreHealthWebhookLatencyFiringEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.webhook_latency.firing"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a webhook latency alert is resolved.
|
||||
class V2CoreHealthWebhookLatencyResolvedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.health.webhook_latency.resolved"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an Adjustment is created.
|
||||
class V2MoneyManagementAdjustmentCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.money_management.adjustment.created"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a FinancialAccount is created.
|
||||
class V2MoneyManagementFinancialAccountCreatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.money_management.financial_account.created"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a FinancialAccount is updated.
|
||||
class V2MoneyManagementFinancialAccountUpdatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.money_management.financial_account.updated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a FinancialAddress is activated and is ready to receive funds.
|
||||
class V2MoneyManagementFinancialAddressActivatedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.money_management.financial_address.activated"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a FinancialAddress fails to activate and can not receive funds.
|
||||
class V2MoneyManagementFinancialAddressFailedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.money_management.financial_address.failed"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an InboundTransfer's funds are made available.
|
||||
class V2MoneyManagementInboundTransferAvailableEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.money_management.inbound_transfer.available"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
@ -1,21 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when an InboundTransfer fails.
|
||||
class V2MoneyManagementInboundTransferBankDebitFailedEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.money_management.inbound_transfer.bank_debit_failed"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user