Class: Stripe::Billing::CreditGrantCreateParams::Amount

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/billing/credit_grant_create_params.rb

Defined Under Namespace

Classes: Monetary

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Amount.



24
25
26
27
# File 'lib/stripe/params/billing/credit_grant_create_params.rb', line 24

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

Instance Attribute Details

#monetaryObject

The monetary amount.



20
21
22
# File 'lib/stripe/params/billing/credit_grant_create_params.rb', line 20

def monetary
  @monetary
end

#typeObject

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



22
23
24
# File 'lib/stripe/params/billing/credit_grant_create_params.rb', line 22

def type
  @type
end