class Stripe::AlipayAccount

def self.retrieve(_id, _opts = nil)

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

def self.update(_id, _params = nil, _opts = nil)

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

def resource_url

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