Sha256: 6237e37ce1899a8f66cbd7084fccb2c252a40fdf7ff3359dcb3209d19cfbd667
Contents?: true
Size: 785 Bytes
Versions: 31
Compression:
Stored size: 785 Bytes
Contents
module Stripe class AlipayAccount < APIResource include Stripe::APIOperations::Save include Stripe::APIOperations::Delete def resource_url if respond_to?(:customer) && !self.customer.nil? "#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}" end end def self.update(id, params=nil, opts=nil) raise NotImplementedError.new("Alipay accounts cannot be updated without a customer ID. Update an Alipay account by `a = customer.sources.retrieve('alipay_account_id'); a.save`") end def self.retrieve(id, opts=nil) raise NotImplementedError.new("Alipay accounts cannot be retrieved without a customer ID. Retrieve an Alipay account using customer.sources.retrieve('alipay_account_id')") end end end
Version data entries
31 entries across 31 versions & 1 rubygems