Sha256: ae4f6ab5bfaa940f56313d60092601b16551c2033dd53d04537152ba12ade817
Contents?: true
Size: 1.91 KB
Versions: 16
Compression:
Stored size: 1.91 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Issuing # A Card Design is a logical grouping of a Card Bundle, card logo, and carrier text that represents a product line. class CardDesign < APIResource extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "issuing.card_design" def test_helpers TestHelpers.new(self) end class TestHelpers < APIResourceTestHelpers RESOURCE_CLASS = CardDesign def self.activate_testmode(card_design, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/activate", { card_design: CGI.escape(card_design) }), params: params, opts: opts ) end def self.deactivate_testmode(card_design, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/deactivate", { card_design: CGI.escape(card_design) }), params: params, opts: opts ) end def activate_testmode(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/activate", { card_design: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end def deactivate_testmode(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/deactivate", { card_design: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems