Class: Stripe::V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent

Inherits:
Stripe::V2::Event show all
Defined in:
lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb

Overview

Sent when our internal scheduling system kicks off an attempt at authorization, whether it’s a retry or an initial authorization.

Constant Summary

Constants inherited from Stripe::V2::Event

Stripe::V2::Event::OBJECT_NAME

Constants inherited from APIResource

APIResource::OBJECT_NAME

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary

Attributes inherited from Stripe::V2::Event

#changes, #context, #created, #id, #livemode, #object, #reason, #type

Attributes inherited from APIResource

#save_with_parent

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Stripe::V2::Event

field_remappings, inner_class_types, object_name

Methods inherited from APIResource

class_name, custom_method, object_name, #refresh, #request_stripe_object, resource_url, #resource_url, retrieve, save_nested_resource

Methods included from APIOperations::Request

included

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, field_remappings, #hash, #initialize, inner_class_types, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Class Method Details

.lookup_typeObject



8
9
10
# File 'lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb', line 8

def self.lookup_type
  "v2.payments.off_session_payment.authorization_attempt_started"
end

Instance Method Details

Retrieves the related object from the API. Make an API request on every call.



13
14
15
16
17
18
19
20
# File 'lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb', line 13

def fetch_related_object
  _request(
    method: :get,
    path: related_object.url,
    base_address: :api,
    opts: { stripe_account: context }
  )
end