@paciolan/cybersource-sdk
Version:
CyberSource REST API Typescript SDK
63 lines (62 loc) • 3.34 kB
TypeScript
/**
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { Riskv1decisionsTravelInformationLegs } from './riskv1decisions-travel-information-legs';
import { Riskv1decisionsTravelInformationPassengers } from './riskv1decisions-travel-information-passengers';
/**
*
* @export
* @interface Riskv1decisionsTravelInformation
*/
export interface Riskv1decisionsTravelInformation {
/**
* IATA Code for the actual final destination that the customer intends to travel to. It should be a destination on the completeRoute.
* @type {string}
* @memberof Riskv1decisionsTravelInformation
*/
actualFinalDestination?: string;
/**
* Concatenation of individual travel legs in the format ORIG1-DEST1[:ORIG2-DEST2...:ORIGn-DESTn], for example, SFO-JFK:JFK-LHR:LHR-CDG. For airport codes, see the IATA Airline and Airport Code Search. Note In your request, send either the complete route or the individual legs (_leg#_orig and _leg#_dest). If you send all the fields, the value of _complete_route takes precedence over that of the _leg# fields.
* @type {string}
* @memberof Riskv1decisionsTravelInformation
*/
completeRoute?: string;
/**
* Departure date and time of the first leg of the trip. Use one of the following formats: - yyyy-MM-dd HH:mm z - yyyy-MM-dd hh:mm a z - yyyy-MM-dd hh:mma z HH = hour in 24-hour format hh = hour in 12-hour format a = am or pm (case insensitive) z = time zone of the departing flight, for example: If the airline is based in city A, but the flight departs from city B, z is the time zone of city B at the time of departure. Important For travel information, use GMT instead of UTC, or use the local time zone. Examples 2011-03-20 11:30 PM PDT 2011-03-20 11:30pm GMT 2011-03-20 11:30pm GMT-05:00 Eastern Standard Time: GMT-05:00 or EST Note When specifying an offset from GMT, the format must be exactly as specified in the example. Insert no spaces between the time zone and the offset.
* @type {string}
* @memberof Riskv1decisionsTravelInformation
*/
departureTime?: string;
/**
* Type of travel, for example one way or round trip.
* @type {string}
* @memberof Riskv1decisionsTravelInformation
*/
journeyType?: string;
/**
*
* @type {Array<Riskv1decisionsTravelInformationLegs>}
* @memberof Riskv1decisionsTravelInformation
*/
legs?: Array<Riskv1decisionsTravelInformationLegs>;
/**
* Number of passengers for whom the ticket was issued. If you do not include this field in your request, CyberSource uses a default value of 1. Required for American Express SafeKey (U.S.) for travel-related requests.
* @type {number}
* @memberof Riskv1decisionsTravelInformation
*/
numberOfPassengers?: number;
/**
*
* @type {Array<Riskv1decisionsTravelInformationPassengers>}
* @memberof Riskv1decisionsTravelInformation
*/
passengers?: Array<Riskv1decisionsTravelInformationPassengers>;
}