Class: Stripe::AlipayAccount
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::AlipayAccount
- Defined in:
- lib/stripe/resources/alipay_account.rb
Constant Summary collapse
- OBJECT_NAME =
"alipay_account"
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary
Attributes inherited from APIResource
Attributes inherited from StripeObject
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Stripe::APIOperations::Delete
Methods included from Stripe::APIOperations::Save
Methods inherited from APIResource
class_name, custom_method, object_name, #refresh, #request_stripe_object, resource_url, save_nested_resource
Methods included from Stripe::APIOperations::Request
Methods inherited from StripeObject
#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #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
.retrieve(_id, _opts = nil) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/stripe/resources/alipay_account.rb', line 27 def self.retrieve(_id, _opts = nil) raise NotImplementedError, "Alipay accounts cannot be retrieved without a customer ID. " \ "Retrieve an Alipay account using `Customer.retrieve_source(" \ "'customer_id', 'alipay_account_id')`" end |
.update(_id, _params = nil, _opts = nil) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/stripe/resources/alipay_account.rb', line 20 def self.update(_id, _params = nil, _opts = nil) raise NotImplementedError, "Alipay accounts cannot be updated without a customer ID. " \ "Update an Alipay account using `Customer.update_source(" \ "'customer_id', 'alipay_account_id', update_params)`" end |
Instance Method Details
#resource_url ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/stripe/resources/alipay_account.rb', line 10 def resource_url if !respond_to?(:customer) || customer.nil? raise NotImplementedError, "Alipay accounts cannot be accessed without a customer ID." end "#{Customer.resource_url}/#{CGI.escape(customer)}/sources" \ "/#{CGI.escape(id)}" end |