Class: Stripe::Billing::CreditGrant::CreateParams::ApplicabilityConfig::Scope
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::CreditGrant::CreateParams::ApplicabilityConfig::Scope
- Defined in:
- lib/stripe/resources/billing/credit_grant.rb
Defined Under Namespace
Classes: Price
Instance Attribute Summary collapse
-
#price_type ⇒ Object
The price type that credit grants can apply to.
-
#prices ⇒ Object
A list of prices that the credit grant can apply to.
Instance Method Summary collapse
-
#initialize(price_type: nil, prices: nil) ⇒ Scope
constructor
A new instance of Scope.
Methods inherited from RequestParams
Constructor Details
#initialize(price_type: nil, prices: nil) ⇒ Scope
Returns a new instance of Scope.
113 114 115 116 |
# File 'lib/stripe/resources/billing/credit_grant.rb', line 113 def initialize(price_type: nil, prices: nil) @price_type = price_type @prices = prices end |
Instance Attribute Details
#price_type ⇒ Object
The price type that credit grants can apply to. We currently only support the ‘metered` price type. Cannot be used in combination with `prices`.
109 110 111 |
# File 'lib/stripe/resources/billing/credit_grant.rb', line 109 def price_type @price_type end |
#prices ⇒ Object
A list of prices that the credit grant can apply to. We currently only support the ‘metered` prices. Cannot be used in combination with `price_type`.
111 112 113 |
# File 'lib/stripe/resources/billing/credit_grant.rb', line 111 def prices @prices end |