Class: Stripe::V2::Billing::LicenseFeeCreateParams::TransformQuantity

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/license_fee_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(divide_by: nil, round: nil) ⇒ TransformQuantity

Returns a new instance of TransformQuantity.



38
39
40
41
# File 'lib/stripe/params/v2/billing/license_fee_create_params.rb', line 38

def initialize(divide_by: nil, round: nil)
  @divide_by = divide_by
  @round = round
end

Instance Attribute Details

#divide_byObject

Divide usage by this number.



34
35
36
# File 'lib/stripe/params/v2/billing/license_fee_create_params.rb', line 34

def divide_by
  @divide_by
end

#roundObject

After division, round the result up or down.



36
37
38
# File 'lib/stripe/params/v2/billing/license_fee_create_params.rb', line 36

def round
  @round
end

Class Method Details

.field_encodingsObject



43
44
45
# File 'lib/stripe/params/v2/billing/license_fee_create_params.rb', line 43

def self.field_encodings
  @field_encodings = { divide_by: :int64_string }
end