Sha256: 0b7fc0dd99883149c32bcfbb9569100b56c61423f97596be291c74d979e17527

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

module Stripe
  class AlipayAccount < APIResource
    include Stripe::APIOperations::Update
    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.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

2 entries across 2 versions & 1 rubygems

Version Path
stripe-1.43.1 lib/stripe/alipay_account.rb
stripe-1.43.0 lib/stripe/alipay_account.rb