This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateAirBooking.ts
103 lines (103 loc) · 3.63 KB
/
CreateAirBooking.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/**
* Auto-generated file. Do not change.
*/
import { CreateBookingHsCode } from './CreateBookingHsCode'
export enum CreateAirBookingIncotermTypes {
EXW = 'EXW',
FOB = 'FOB',
FAS = 'FAS',
FCA = 'FCA',
CPT = 'CPT',
CFR = 'CFR',
CIF = 'CIF',
CIP = 'CIP',
DAT = 'DAT',
DAP = 'DAP',
DDP = 'DDP',
DPU = 'DPU',
}
export type CreateAirBooking = {
/**
* JSON-schema: string
* @example "FOB"
*/
readonly incoterm: CreateAirBookingIncotermTypes
/**
* JSON-schema: array
*/
readonly product_descriptions: CreateBookingHsCode[]
/**
* Always required. Whether transportation is requested from the origin location to the port.
*
* JSON-schema: boolean
* @example true
*/
readonly wants_pickup_service: boolean
/**
* Optional. Whether transportation is requested from the destination port to destination address. If unknown, then leave as `null`.
*
* JSON-schema: boolean
* @example true
*/
readonly wants_delivery_service?: boolean
/**
* One of `origin_port_us_cbp_port_code`, `origin_port_loc_code`, `origin_port_iata_code`, or `origin_port_icao_code` is required if `pickup_service` = `no`. Unique port reference code used by US CBP, not applicable for non-US airports.
*
* JSON-schema: string
*/
readonly origin_port_us_cbp_port_code?: string
/**
* One of `origin_port_us_cbp_port_code`, `origin_port_loc_code`, `origin_port_iata_code`, or `origin_port_icao_code` is required if `pickup_service` = `no`. Unique port reference code published in the UN/LOCODE.
*
* JSON-schema: string
* @example "HKHKG"
*/
readonly origin_port_loc_code?: string
/**
* One of `origin_port_us_cbp_port_code`, `origin_port_loc_code`, `origin_port_iata_code`, or `origin_port_icao_code` is required if `pickup_service` = `no`. Unique airport reference code used by IATA.
*
* JSON-schema: string
* @example "HKG"
*/
readonly origin_port_iata_code?: string
/**
* One of `origin_port_us_cbp_port_code`, `origin_port_loc_code`, `origin_port_iata_code`, or `origin_port_icao_code` is required if `pickup_service` = `no`. Unique airport reference code used by ICAO.
*
* JSON-schema: string
* @example "VHHH"
*/
readonly origin_port_icao_code?: string
/**
* Optional, provide one of `destination_port_us_cbp_port_code`, `destination_port_loc_code`, `destination_port_iata_code`, or `destination_port_icao_code`. Unique port reference code used by US CBP, not applicable for non-US airports.
*
* JSON-schema: string
*/
readonly destination_port_us_cbp_port_code?: string
/**
* Optional, provide one of `destination_port_us_cbp_port_code`, `destination_port_loc_code`, `destination_port_iata_code`, or `destination_port_icao_code`. Unique port reference code published in the UN/LOCODE.
*
* JSON-schema: string
*/
readonly destination_port_loc_code?: string
/**
* Optional, provide one of `destination_port_us_cbp_port_code`, `destination_port_loc_code`, `destination_port_iata_code`, or `destination_port_icao_code`. Unique airport reference code used by IATA.
*
* JSON-schema: string
*/
readonly destination_port_iata_code?: string
/**
* Optional, provide one of `destination_port_us_cbp_port_code`, `destination_port_loc_code`, `destination_port_iata_code`, or `destination_port_icao_code`. Unique airport reference code used by ICAO.
*
* JSON-schema: string
*/
readonly destination_port_icao_code?: string
}
export type LiftedCreateAirBooking = CreateAirBooking
/**
* Lifts an object return from a Flexport API responses into the SDK domain by augmenting them with higher level properties.
*/
export const liftCreateAirBooking = (
original: CreateAirBooking,
): LiftedCreateAirBooking => {
return original
}