Class: Stripe::Billing::CreditGrant::CreateParams::Amount
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::CreditGrant::CreateParams::Amount
- Defined in:
- lib/stripe/resources/billing/credit_grant.rb
Defined Under Namespace
Classes: Monetary
Instance Attribute Summary collapse
-
#monetary ⇒ Object
The monetary amount.
-
#type ⇒ Object
Specify the type of this amount.
Instance Method Summary collapse
-
#initialize(monetary: nil, type: nil) ⇒ Amount
constructor
A new instance of Amount.
Methods inherited from RequestParams
Constructor Details
#initialize(monetary: nil, type: nil) ⇒ Amount
Returns a new instance of Amount.
94 95 96 97 |
# File 'lib/stripe/resources/billing/credit_grant.rb', line 94 def initialize(monetary: nil, type: nil) @monetary = monetary @type = type end |
Instance Attribute Details
#monetary ⇒ Object
The monetary amount.
89 90 91 |
# File 'lib/stripe/resources/billing/credit_grant.rb', line 89 def monetary @monetary end |
#type ⇒ Object
Specify the type of this amount. We currently only support ‘monetary` billing credits.
92 93 94 |
# File 'lib/stripe/resources/billing/credit_grant.rb', line 92 def type @type end |