Method: Stripe::PromotionCode.create

Defined in:
lib/stripe/resources/promotion_code.rb

.create(params = {}, opts = {}) ⇒ Object

A promotion code points to an underlying promotion. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.



95
96
97
# File 'lib/stripe/resources/promotion_code.rb', line 95

def self.create(params = {}, opts = {})
  request_stripe_object(method: :post, path: "/v1/promotion_codes", params: params, opts: opts)
end