Sha256: 0c2dc923c3f44f7e4b2e1c83a2a8012730e0640ed4d2a21fdc0670d41fa72ba5
Contents?: true
Size: 1.7 KB
Versions: 3
Compression:
Stored size: 1.7 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Issuing # An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. # # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) class Cardholder < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "issuing.cardholder" def self.object_name "issuing.cardholder" end # Creates a new Issuing Cardholder object that can be issued cards. def self.create(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/issuing/cardholders", params: params, opts: opts ) end # Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. def self.list(filters = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/cardholders", params: filters, opts: opts ) end # Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. def self.update(id, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/issuing/cardholders/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems