Class: Airwallex::PaymentSource
- Inherits:
-
APIResource
- Object
- APIResource
- Airwallex::PaymentSource
- Extended by:
- APIOperations::Create, APIOperations::List, APIOperations::Retrieve
- Defined in:
- lib/airwallex/resources/payment_source.rb
Overview
Represents a Billing Payment Source — the object a BillingSubscription's payment_source_id actually references. NOT the same object as PaymentConsent (/pa/payment_consents).
external_id is the id of a PaymentMethod (/pa/payment_methods), not a PaymentConsent's own id. The PaymentConsent is still part of the flow — it's what authorizes that PaymentMethod for merchant-initiated (unscheduled) charges — but the id PaymentSource wants is the underlying PaymentMethod's.
Instance Attribute Summary
Attributes inherited from APIResource
Class Method Summary collapse
-
.resource_path ⇒ String
API resource path for billing payment sources.
Methods included from APIOperations::Create
Methods included from APIOperations::Retrieve
Methods included from APIOperations::List
Methods inherited from APIResource
#changed_attributes, #dirty?, #initialize, #inspect, #method_missing, #refresh, #refresh_from, resource_name, #respond_to_missing?, #to_hash, #to_json, #to_s
Constructor Details
This class inherits a constructor from Airwallex::APIResource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Airwallex::APIResource
Class Method Details
.resource_path ⇒ String
Returns API resource path for billing payment sources.
48 49 50 |
# File 'lib/airwallex/resources/payment_source.rb', line 48 def self.resource_path "/api/v1/billing/payment_sources" end |