Class: Stripe::TestHelpers::Issuing::AuthorizationCaptureParams::PurchaseDetails::Fuel
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::AuthorizationCaptureParams::PurchaseDetails::Fuel
- Defined in:
- lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb
Instance Attribute Summary collapse
-
#industry_product_code ⇒ Object
Conexxus Payment System Product Code identifying the primary fuel product purchased.
-
#quantity_decimal ⇒ Object
The quantity of
units of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. -
#type ⇒ Object
The type of fuel that was purchased.
-
#unit ⇒ Object
The units for
quantity_decimal. -
#unit_cost_decimal ⇒ Object
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(industry_product_code: nil, quantity_decimal: nil, type: nil, unit: nil, unit_cost_decimal: nil) ⇒ Fuel
constructor
A new instance of Fuel.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #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.
219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 219 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_code ⇒ Object
Conexxus Payment System Product Code identifying the primary fuel product purchased.
209 210 211 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 209 def industry_product_code @industry_product_code end |
#quantity_decimal ⇒ Object
The quantity of units of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
211 212 213 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 211 def quantity_decimal @quantity_decimal end |
#type ⇒ Object
The type of fuel that was purchased. One of diesel, unleaded_plus, unleaded_regular, unleaded_super, or other.
213 214 215 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 213 def type @type end |
#unit ⇒ Object
The units for quantity_decimal. One of charging_minute, imperial_gallon, kilogram, kilowatt_hour, liter, pound, us_gallon, or other.
215 216 217 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 215 def unit @unit end |
#unit_cost_decimal ⇒ Object
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
217 218 219 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 217 def unit_cost_decimal @unit_cost_decimal end |
Class Method Details
.field_encodings ⇒ Object
233 234 235 236 237 238 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 233 def self.field_encodings @field_encodings = { quantity_decimal: :decimal_string, unit_cost_decimal: :decimal_string, } end |