Class: Stripe::V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::CustomPricingUnit

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, new, #to_h

Constructor Details

#initialize(id: nil, value: nil) ⇒ CustomPricingUnit

Returns a new instance of CustomPricingUnit.



120
121
122
123
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 120

def initialize(id: nil, value: nil)
  @id = id
  @value = value
end

Instance Attribute Details

#idObject

The id of the custom pricing unit.



116
117
118
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 116

def id
  @id
end

#valueObject

The value of the credit grant, decimal value represented as a string.



118
119
120
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 118

def value
  @value
end

Class Method Details

.field_encodingsObject



125
126
127
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 125

def self.field_encodings
  @field_encodings = { value: :decimal_string }
end