Class: Stripe::Billing::CreditGrant::CreateParams::Amount

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

Defined Under Namespace

Classes: CustomPricingUnit, Monetary

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(custom_pricing_unit: nil, monetary: nil, type: nil) ⇒ Amount

Returns a new instance of Amount.



206
207
208
209
210
# File 'lib/stripe/resources/billing/credit_grant.rb', line 206

def initialize(custom_pricing_unit: nil, monetary: nil, type: nil)
  @custom_pricing_unit = custom_pricing_unit
  @monetary = monetary
  @type = type
end

Instance Attribute Details

#custom_pricing_unitObject

The custom pricing unit amount.



200
201
202
# File 'lib/stripe/resources/billing/credit_grant.rb', line 200

def custom_pricing_unit
  @custom_pricing_unit
end

#monetaryObject

The monetary amount.



202
203
204
# File 'lib/stripe/resources/billing/credit_grant.rb', line 202

def monetary
  @monetary
end

#typeObject

The type of this amount. We currently only support ‘monetary` billing credits.



204
205
206
# File 'lib/stripe/resources/billing/credit_grant.rb', line 204

def type
  @type
end