import type * as Samsara from "../../../../index.js"; /** * @example * { * fuelQuantityLiters: "676.8", * transactionLocation: "350 Rhode Island St, San Francisco, CA 94103", * transactionPrice: { * amount: "640.2", * currency: "usd" * }, * transactionReference: "5454534", * transactionTime: "2022-07-13T14:20:50.52-07:00" * } */ export interface FuelPurchasePostFuelPurchaseRequestBody { discount?: Samsara.PostFuelPurchaseRequestBodyDiscountRequestBody; /** Samsara ID of the driver that purchased the fuel. */ driverId?: string; /** The grade of the fuel purchased. Valid values: `Unknown`, `Regular`, `Premium` */ fuelGrade?: FuelPurchasePostFuelPurchaseRequestBody.FuelGrade; /** The amount of fuel purchased in liters. */ fuelQuantityLiters: string; /** The type of fuel purchased supported by IFTA. Valid values: `Unspecified`, `A55`, `Biodiesel`, `CompressedNaturalGas`, `Diesel`, `E85`, `Electricity`, `Ethanol`, `Gasohol`, `Gasoline`, `Hydrogen`, `LiquifiedNaturalGas`, `M85`, `Methanol`, `Propane`, `Other` */ iftaFuelType?: FuelPurchasePostFuelPurchaseRequestBody.IftaFuelType; /** Brand name of the fuel station the fuel was purchased at. For example: Shell, Bp, Exxon. */ merchantName?: string; /** The integration provider. For example: Customer, Shell Integration */ source?: string; /** The full street address for the location of the fuel transaction, as it might be recognized by Google Maps. Ideal entries should be in accordance with the format used by the national postal service of the country concerned (example: 1 De Haro St, San Francisco, CA 94107, United States). Alternatively, exact latitude/longitude can be provided (example: 40.748441, -73.985664). */ transactionLocation: string; transactionPrice: Samsara.PostFuelPurchaseRequestBodyPriceRequestBody; /** The fuel transaction reference. This is the transaction identifier. For instance, this can be the Serial Number on the invoice. */ transactionReference: string; /** The time of the fuel transaction in RFC 3339 format. Timezone must be specified. For example, 2022-07-13T14:20:50.52-07:00 is a time in Pacific Daylight Time. */ transactionTime: string; /** Samsara ID of the vehicle that purchased the fuel. */ vehicleId?: string; } export declare namespace FuelPurchasePostFuelPurchaseRequestBody { /** The grade of the fuel purchased. Valid values: `Unknown`, `Regular`, `Premium` */ const FuelGrade: { readonly Unknown: "Unknown"; readonly Regular: "Regular"; readonly Premium: "Premium"; }; type FuelGrade = (typeof FuelGrade)[keyof typeof FuelGrade]; /** The type of fuel purchased supported by IFTA. Valid values: `Unspecified`, `A55`, `Biodiesel`, `CompressedNaturalGas`, `Diesel`, `E85`, `Electricity`, `Ethanol`, `Gasohol`, `Gasoline`, `Hydrogen`, `LiquifiedNaturalGas`, `M85`, `Methanol`, `Propane`, `Other` */ const IftaFuelType: { readonly Unspecified: "Unspecified"; readonly A55: "A55"; readonly Biodiesel: "Biodiesel"; readonly CompressedNaturalGas: "CompressedNaturalGas"; readonly Diesel: "Diesel"; readonly E85: "E85"; readonly Electricity: "Electricity"; readonly Ethanol: "Ethanol"; readonly Gasohol: "Gasohol"; readonly Gasoline: "Gasoline"; readonly Hydrogen: "Hydrogen"; readonly LiquifiedNaturalGas: "LiquifiedNaturalGas"; readonly M85: "M85"; readonly Methanol: "Methanol"; readonly Propane: "Propane"; readonly Other: "Other"; }; type IftaFuelType = (typeof IftaFuelType)[keyof typeof IftaFuelType]; }