Class: Stripe::Billing::CreditGrantService::CreateParams::ApplicabilityConfig::Scope

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/billing/credit_grant_service.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.



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_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`.



69
70
71
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 69

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`.



71
72
73
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 71

def prices
  @prices
end