Sha256: 8478ad41db4045bbf032665f3d5eaf15ffc344f1a23fe49e2b31eb15fe15262b
Contents?: true
Size: 1.61 KB
Versions: 2
Compression:
Stored size: 1.61 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#create-cardholder) class Cardholder < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "issuing.cardholder" # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stripe-10.9.0.pre.beta.1 | lib/stripe/resources/issuing/cardholder.rb |
stripe-10.8.0 | lib/stripe/resources/issuing/cardholder.rb |