Class: Stripe::Billing::CreditGrantService::CreateParams::Amount
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::CreditGrantService::CreateParams::Amount
- Defined in:
- lib/stripe/services/billing/credit_grant_service.rb
Defined Under Namespace
Classes: CustomPricingUnit, Monetary
Instance Attribute Summary collapse
-
#custom_pricing_unit ⇒ Object
The custom pricing unit amount.
-
#monetary ⇒ Object
The monetary amount.
-
#type ⇒ Object
The type of this amount.
Instance Method Summary collapse
-
#initialize(custom_pricing_unit: nil, monetary: nil, type: nil) ⇒ Amount
constructor
A new instance of Amount.
Methods inherited from RequestParams
Constructor Details
#initialize(custom_pricing_unit: nil, monetary: nil, type: nil) ⇒ Amount
Returns a new instance of Amount.
70 71 72 73 74 |
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 70 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_unit ⇒ Object
The custom pricing unit amount.
64 65 66 |
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 64 def custom_pricing_unit @custom_pricing_unit end |
#monetary ⇒ Object
The monetary amount.
66 67 68 |
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 66 def monetary @monetary end |
#type ⇒ Object
The type of this amount. We currently only support ‘monetary` billing credits.
68 69 70 |
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 68 def type @type end |