Class: Stripe::PromotionCode::Restrictions
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::PromotionCode::Restrictions
- Defined in:
- lib/stripe/resources/promotion_code.rb
Defined Under Namespace
Classes: CurrencyOptions
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#currency_options ⇒ Object
readonly
Promotion code restrictions defined in each available currency option.
-
#first_time_transaction ⇒ Object
readonly
A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices.
-
#minimum_amount ⇒ Object
readonly
Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).
-
#minimum_amount_currency ⇒ Object
readonly
Three-letter [ISO code](stripe.com/docs/currencies) for minimum_amount.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#currency_options ⇒ Object (readonly)
Promotion code restrictions defined in each available currency option. Each key must be a three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html) and a [supported currency](stripe.com/docs/currencies).
49 50 51 |
# File 'lib/stripe/resources/promotion_code.rb', line 49 def end |
#first_time_transaction ⇒ Object (readonly)
A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices
51 52 53 |
# File 'lib/stripe/resources/promotion_code.rb', line 51 def first_time_transaction @first_time_transaction end |
#minimum_amount ⇒ Object (readonly)
Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).
53 54 55 |
# File 'lib/stripe/resources/promotion_code.rb', line 53 def minimum_amount @minimum_amount end |
#minimum_amount_currency ⇒ Object (readonly)
Three-letter [ISO code](stripe.com/docs/currencies) for minimum_amount
55 56 57 |
# File 'lib/stripe/resources/promotion_code.rb', line 55 def minimum_amount_currency @minimum_amount_currency end |
Class Method Details
.field_remappings ⇒ Object
61 62 63 |
# File 'lib/stripe/resources/promotion_code.rb', line 61 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
57 58 59 |
# File 'lib/stripe/resources/promotion_code.rb', line 57 def self.inner_class_types @inner_class_types = { currency_options: CurrencyOptions } end |