Class: Stripe::PriceUpdateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PriceUpdateParams
- Defined in:
- lib/stripe/params/price_update_params.rb
Defined Under Namespace
Classes: CurrencyOptions
Instance Attribute Summary collapse
-
#active ⇒ Object
Whether the price can be used for new purchases.
-
#currency_options ⇒ Object
Prices defined in each available currency option.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#lookup_key ⇒ Object
A lookup key used to retrieve prices dynamically from a static string.
-
#metadata ⇒ Object
Set of [key-value pairs](docs.stripe.com/api/metadata) that you can attach to an object.
-
#nickname ⇒ Object
A brief description of the price, hidden from customers.
-
#tax_behavior ⇒ Object
Only required if a [default tax behavior](docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings.
-
#transfer_lookup_key ⇒ Object
If set to true, will atomically remove the lookup key from the existing price, and assign it to this price.
Instance Method Summary collapse
-
#initialize(active: nil, currency_options: nil, expand: nil, lookup_key: nil, metadata: nil, nickname: nil, tax_behavior: nil, transfer_lookup_key: nil) ⇒ PriceUpdateParams
constructor
A new instance of PriceUpdateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(active: nil, currency_options: nil, expand: nil, lookup_key: nil, metadata: nil, nickname: nil, tax_behavior: nil, transfer_lookup_key: nil) ⇒ PriceUpdateParams
Returns a new instance of PriceUpdateParams.
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/stripe/params/price_update_params.rb', line 93 def initialize( active: nil, currency_options: nil, expand: nil, lookup_key: nil, metadata: nil, nickname: nil, tax_behavior: nil, transfer_lookup_key: nil ) @active = active = = @lookup_key = lookup_key = @nickname = nickname @tax_behavior = tax_behavior @transfer_lookup_key = transfer_lookup_key end |
Instance Attribute Details
#active ⇒ Object
Whether the price can be used for new purchases. Defaults to true.
77 78 79 |
# File 'lib/stripe/params/price_update_params.rb', line 77 def active @active end |
#currency_options ⇒ Object
Prices 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).
79 80 81 |
# File 'lib/stripe/params/price_update_params.rb', line 79 def end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
81 82 83 |
# File 'lib/stripe/params/price_update_params.rb', line 81 def end |
#lookup_key ⇒ Object
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
83 84 85 |
# File 'lib/stripe/params/price_update_params.rb', line 83 def lookup_key @lookup_key end |
#metadata ⇒ Object
Set of [key-value pairs](docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
85 86 87 |
# File 'lib/stripe/params/price_update_params.rb', line 85 def end |
#nickname ⇒ Object
A brief description of the price, hidden from customers.
87 88 89 |
# File 'lib/stripe/params/price_update_params.rb', line 87 def nickname @nickname end |
#tax_behavior ⇒ Object
Only required if a [default tax behavior](docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified. Once specified as either inclusive or exclusive, it cannot be changed.
89 90 91 |
# File 'lib/stripe/params/price_update_params.rb', line 89 def tax_behavior @tax_behavior end |
#transfer_lookup_key ⇒ Object
If set to true, will atomically remove the lookup key from the existing price, and assign it to this price.
91 92 93 |
# File 'lib/stripe/params/price_update_params.rb', line 91 def transfer_lookup_key @transfer_lookup_key end |