Class: Stripe::Billing::CreditGrant::CreateParams::ApplicabilityConfig::Scope

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/billing/credit_grant.rb

Defined Under Namespace

Classes: Price

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

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_typeObject

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

#pricesObject

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