Class: Stripe::TestHelpers::Issuing::AuthorizationFinalizeAmountParams::Fuel

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(industry_product_code: nil, quantity_decimal: nil, type: nil, unit: nil, unit_cost_decimal: nil) ⇒ Fuel

Returns a new instance of Fuel.



113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb', line 113

def initialize(
  industry_product_code: nil,
  quantity_decimal: nil,
  type: nil,
  unit: nil,
  unit_cost_decimal: nil
)
  @industry_product_code = industry_product_code
  @quantity_decimal = quantity_decimal
  @type = type
  @unit = unit
  @unit_cost_decimal = unit_cost_decimal
end

Instance Attribute Details

#industry_product_codeObject

[Conexxus Payment System Product Code](www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.



103
104
105
# File 'lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb', line 103

def industry_product_code
  @industry_product_code
end

#quantity_decimalObject

The quantity of ‘unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.



105
106
107
# File 'lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb', line 105

def quantity_decimal
  @quantity_decimal
end

#typeObject

The type of fuel that was purchased. One of ‘diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.



107
108
109
# File 'lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb', line 107

def type
  @type
end

#unitObject

The units for ‘quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.



109
110
111
# File 'lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb', line 109

def unit
  @unit
end

#unit_cost_decimalObject

The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.



111
112
113
# File 'lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb', line 111

def unit_cost_decimal
  @unit_cost_decimal
end