# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Issuing # A Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text that represents a product line. class PersonalizationDesign < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "issuing.personalization_design" def test_helpers TestHelpers.new(self) end class TestHelpers < APIResourceTestHelpers RESOURCE_CLASS = PersonalizationDesign def self.activate(personalization_design, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/personalization_designs/%s/activate", { personalization_design: CGI.escape(personalization_design) }), params: params, opts: opts ) end def self.deactivate(personalization_design, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/personalization_designs/%s/deactivate", { personalization_design: CGI.escape(personalization_design) }), params: params, opts: opts ) end def self.reject(personalization_design, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/personalization_designs/%s/reject", { personalization_design: CGI.escape(personalization_design) }), params: params, opts: opts ) end def activate(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/personalization_designs/%s/activate", { personalization_design: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end def deactivate(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/personalization_designs/%s/deactivate", { personalization_design: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end def reject(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/issuing/personalization_designs/%s/reject", { personalization_design: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end end end end end