Stripe.Params.TestHelpers.Issuing.AuthorizationFinalizeAmountParams
(tiger_stripe v0.3.0)
Copy Markdown
View Source
Parameters for authorization finalize amount.
Summary
Types
@type fleet() :: %{ optional(:cardholder_prompt_data) => fleet_cardholder_prompt_data() | nil, optional(:purchase_type) => String.t() | nil, optional(:reported_breakdown) => fleet_reported_breakdown() | nil, optional(:service_type) => String.t() | nil, optional(String.t()) => term() }
cardholder_prompt_data- Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.purchase_type- The type of purchase. One offuel_purchase,non_fuel_purchase, orfuel_and_non_fuel_purchase. Possible values:fuel_and_non_fuel_purchase,fuel_purchase,non_fuel_purchase. Max length: 5000.reported_breakdown- More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.service_type- The type of fuel service. One ofnon_fuel_transaction,full_service, orself_service. Possible values:full_service,non_fuel_transaction,self_service. Max length: 5000.
@type fleet_cardholder_prompt_data() :: %{ optional(:driver_id) => String.t() | nil, optional(:odometer) => integer() | nil, optional(:unspecified_id) => String.t() | nil, optional(:user_id) => String.t() | nil, optional(:vehicle_number) => String.t() | nil, optional(String.t()) => term() }
driver_id- Driver ID. Max length: 5000.odometer- Odometer reading.unspecified_id- An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type. Max length: 5000.user_id- User ID. Max length: 5000.vehicle_number- Vehicle number. Max length: 5000.
@type fleet_reported_breakdown() :: %{ optional(:fuel) => fleet_reported_breakdown_fuel() | nil, optional(:non_fuel) => fleet_reported_breakdown_non_fuel() | nil, optional(:tax) => fleet_reported_breakdown_tax() | nil, optional(String.t()) => term() }
fuel- Breakdown of fuel portion of the purchase.non_fuel- Breakdown of non-fuel portion of the purchase.tax- Information about tax included in this transaction.
@type fleet_reported_breakdown_fuel() :: %{ optional(:gross_amount_decimal) => String.t() | nil, optional(String.t()) => term() }
gross_amount_decimal- Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. Format: decimal string.
@type fleet_reported_breakdown_non_fuel() :: %{ optional(:gross_amount_decimal) => String.t() | nil, optional(String.t()) => term() }
gross_amount_decimal- Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. Format: decimal string.
@type fleet_reported_breakdown_tax() :: %{ optional(:local_amount_decimal) => String.t() | nil, optional(:national_amount_decimal) => String.t() | nil, optional(String.t()) => term() }
local_amount_decimal- Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. Format: decimal string.national_amount_decimal- Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. Format: decimal string.
@type fuel() :: %{ optional(:industry_product_code) => String.t() | nil, optional(:quantity_decimal) => String.t() | nil, optional(:type) => String.t() | nil, optional(:unit) => String.t() | nil, optional(:unit_cost_decimal) => String.t() | nil, optional(String.t()) => term() }
industry_product_code- Conexxus Payment System Product Code identifying the primary fuel product purchased. Max length: 5000.quantity_decimal- The quantity ofunits of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. Format: decimal string.type- The type of fuel that was purchased. One ofdiesel,unleaded_plus,unleaded_regular,unleaded_super, orother. Possible values:diesel,other,unleaded_plus,unleaded_regular,unleaded_super. Max length: 5000.unit- The units forquantity_decimal. One ofcharging_minute,imperial_gallon,kilogram,kilowatt_hour,liter,pound,us_gallon, orother. Possible values:charging_minute,imperial_gallon,kilogram,kilowatt_hour,liter,other,pound,us_gallon. Max length: 5000.unit_cost_decimal- The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places. Format: decimal string.
@type t() :: %Stripe.Params.TestHelpers.Issuing.AuthorizationFinalizeAmountParams{ expand: [String.t()] | nil, final_amount: integer(), fleet: fleet() | nil, fuel: fuel() | nil }
expand- Specifies which fields in the response should be expanded.final_amount- The final authorization amount that will be captured by the merchant. This amount is in the authorization currency and in the smallest currency unit.fleet- Fleet-specific information for authorizations using Fleet cards.fuel- Information about fuel that was purchased with this transaction.