Class: Stripe::V2::Billing::ServiceActionService::CreateParams::CreditGrantPerTenant::Amount

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/service_action_service.rb

Defined Under Namespace

Classes: CustomPricingUnit

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Amount.



114
115
116
117
118
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 114

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

Instance Attribute Details

#custom_pricing_unitObject

The custom pricing unit amount of the credit grant. Required if ‘type` is `custom_pricing_unit`.



110
111
112
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 110

def custom_pricing_unit
  @custom_pricing_unit
end

#monetaryObject

The monetary amount of the credit grant. Required if ‘type` is `monetary`.



112
113
114
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 112

def monetary
  @monetary
end

#typeObject

The type of the credit grant amount. We currently support ‘monetary` and `custom_pricing_unit` billing credits.



108
109
110
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 108

def type
  @type
end