mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-07 00:00:35 -05:00
Update generated code for v518
This commit is contained in:
parent
c4bdddbe3c
commit
f94c2cb45c
@ -1 +1 @@
|
||||
v515
|
||||
v518
|
||||
@ -5,6 +5,7 @@ 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::Create
|
||||
extend Stripe::APIOperations::List
|
||||
include Stripe::APIOperations::Save
|
||||
|
||||
@ -35,6 +36,15 @@ module Stripe
|
||||
)
|
||||
end
|
||||
|
||||
def self.reject_testmode(card_design, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/reject", { card_design: CGI.escape(card_design) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def activate_testmode(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
@ -52,6 +62,15 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def reject_testmode(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/reject", { card_design: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user