Class: Stripe::Billing::CreditGrantService::CreateParams::ApplicabilityConfig::Scope
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::CreditGrantService::CreateParams::ApplicabilityConfig::Scope
- Defined in:
- lib/stripe/services/billing/credit_grant_service.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.
73 74 75 76 |
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 73 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`.
69 70 71 |
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 69 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`.
71 72 73 |
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 71 def prices @prices end |