Class: Stripe::Issuing::Transaction::PurchaseDetails::Fuel
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Issuing::Transaction::PurchaseDetails::Fuel
- Defined in:
- lib/stripe/resources/issuing/transaction.rb
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#industry_product_code ⇒ Object
readonly
Conexxus Payment System Product Code identifying the primary fuel product purchased.
-
#quantity_decimal ⇒ Object
readonly
The quantity of
units of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. -
#type ⇒ Object
readonly
The type of fuel that was purchased.
-
#unit ⇒ Object
readonly
The units for
quantity_decimal. -
#unit_cost_decimal ⇒ Object
readonly
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#industry_product_code ⇒ Object (readonly)
Conexxus Payment System Product Code identifying the primary fuel product purchased.
278 279 280 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 278 def industry_product_code @industry_product_code end |
#quantity_decimal ⇒ Object (readonly)
The quantity of units of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
280 281 282 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 280 def quantity_decimal @quantity_decimal end |
#type ⇒ Object (readonly)
The type of fuel that was purchased. One of diesel, unleaded_plus, unleaded_regular, unleaded_super, or other.
282 283 284 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 282 def type @type end |
#unit ⇒ Object (readonly)
The units for quantity_decimal. One of charging_minute, imperial_gallon, kilogram, kilowatt_hour, liter, pound, us_gallon, or other.
284 285 286 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 284 def unit @unit end |
#unit_cost_decimal ⇒ Object (readonly)
The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
286 287 288 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 286 def unit_cost_decimal @unit_cost_decimal end |
Class Method Details
.field_encodings ⇒ Object
296 297 298 299 300 301 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 296 def self.field_encodings @field_encodings = { quantity_decimal: :decimal_string, unit_cost_decimal: :decimal_string, } end |
.field_remappings ⇒ Object
292 293 294 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 292 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
288 289 290 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 288 def self.inner_class_types @inner_class_types = {} end |