Class: Stripe::TestHelpers::Issuing::PersonalizationDesignService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::TestHelpers::Issuing::PersonalizationDesignService
- Defined in:
- lib/stripe/services/test_helpers/issuing/personalization_design_service.rb
Instance Method Summary collapse
-
#activate(personalization_design, params = {}, opts = {}) ⇒ Object
Updates the status of the specified testmode personalization design object to active.
-
#deactivate(personalization_design, params = {}, opts = {}) ⇒ Object
Updates the status of the specified testmode personalization design object to inactive.
-
#reject(personalization_design, params = {}, opts = {}) ⇒ Object
Updates the status of the specified testmode personalization design object to rejected.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#activate(personalization_design, params = {}, opts = {}) ⇒ Object
Updates the status of the specified testmode personalization design object to active.
9 10 11 12 13 14 15 16 17 |
# File 'lib/stripe/services/test_helpers/issuing/personalization_design_service.rb', line 9 def activate(personalization_design, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/issuing/personalization_designs/%<personalization_design>s/activate", { personalization_design: CGI.escape(personalization_design) }), params: params, opts: opts, base_address: :api ) end |
#deactivate(personalization_design, params = {}, opts = {}) ⇒ Object
Updates the status of the specified testmode personalization design object to inactive.
20 21 22 23 24 25 26 27 28 |
# File 'lib/stripe/services/test_helpers/issuing/personalization_design_service.rb', line 20 def deactivate(personalization_design, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/issuing/personalization_designs/%<personalization_design>s/deactivate", { personalization_design: CGI.escape(personalization_design) }), params: params, opts: opts, base_address: :api ) end |
#reject(personalization_design, params = {}, opts = {}) ⇒ Object
Updates the status of the specified testmode personalization design object to rejected.
31 32 33 34 35 36 37 38 39 |
# File 'lib/stripe/services/test_helpers/issuing/personalization_design_service.rb', line 31 def reject(personalization_design, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/issuing/personalization_designs/%<personalization_design>s/reject", { personalization_design: CGI.escape(personalization_design) }), params: params, opts: opts, base_address: :api ) end |