Sha256: af8c2f7c025579793d132632e58f8484b885928aae7773be85f494e9de2a7ceb
Contents?: true
Size: 697 Bytes
Versions: 5
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true module Stripe class PaymentMethod < APIResource extend Stripe::APIOperations::Create include Stripe::APIOperations::Save extend Stripe::APIOperations::List OBJECT_NAME = "payment_method".freeze custom_method :attach, http_verb: :post custom_method :detach, http_verb: :post def attach(params = {}, opts = {}) url = resource_url + "/attach" resp, opts = request(:post, url, params, opts) initialize_from(resp.data, opts) end def detach(params = {}, opts = {}) url = resource_url + "/detach" resp, opts = request(:post, url, params, opts) initialize_from(resp.data, opts) end end end
Version data entries
5 entries across 5 versions & 1 rubygems