Class: Stripe::Billing::CreditGrantService::CreateParams::Amount

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



52
53
54
55
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 52

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

Instance Attribute Details

#monetaryObject

The monetary amount.



48
49
50
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 48

def monetary
  @monetary
end

#typeObject

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



50
51
52
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 50

def type
  @type
end