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
/
CreateBooking.ts
92 lines (92 loc) · 2.73 KB
/
CreateBooking.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
/**
* Auto-generated file. Do not change.
*/
import { Cargo } from './Cargo'
import { CreateAirBooking } from './CreateAirBooking'
import { CreateOceanBooking } from './CreateOceanBooking'
import { CreateTruckingBooking } from './CreateTruckingBooking'
import { Metadata } from './Metadata'
export type CreateBooking = {
/**
* Always required. Name of the booking.
*
* JSON-schema: string
* @example "PO 123"
*/
readonly name: string
/**
* Always required. Customizable reference ID of company entity that is the shipper of the booking.
*
* JSON-schema: string
* @example "shipper_company_name_ltd"
*/
readonly shipper_entity_ref: string
/**
* Always required. Customizable reference ID of company entity that is the consignee of the booking.
*
* JSON-schema: string
* @example "consignee_company_name_llc"
*/
readonly consignee_entity_ref: string
/**
* Optional. Name and address of company that is the notify party of the booking. If null, then this is the same as consignee.
*
* JSON-schema: string
*/
readonly notify_party?: string
readonly ocean_booking?: CreateOceanBooking
readonly air_booking?: CreateAirBooking
readonly trucking_booking?: CreateTruckingBooking
/**
* Always required. Customizable reference ID of network location that is the pickup location.
*
* JSON-schema: string
* @example "id-123456"
*/
readonly origin_address_ref: string
/**
* Always required for trucking bookings. Always required for air and ocean bookings if `wants_delivery_service` is TRUE. Customizable reference ID of network location that is the delivery location.
*
* JSON-schema: string
* @example "id-123456"
*/
readonly destination_address_ref: string
/**
* Always required. Date when cargo is ready for pickup at the origin location.
*
* JSON-schema: string (date)
* @example "1970-01-01"
*/
readonly cargo_ready_date: string
/**
* Optional. Target date by when cargo must be delivered.
*
* JSON-schema: string (date)
* @example "1970-01-01"
*/
readonly delivery_date?: string
/**
* Always required. Whether the booking requires Flexport to provide export customs services.
*
* JSON-schema: boolean
*/
readonly wants_export_customs_service?: boolean
readonly cargo: Cargo
/**
* Additional instructions not included in rest of booking form.
*
* JSON-schema: string
* @example "Please book 40ft reefer container."
*/
readonly special_instructions?: string
readonly metadata?: Metadata
}
export type LiftedCreateBooking = CreateBooking
/**
* Lifts an object return from a Flexport API responses into the SDK domain by augmenting them with higher level properties.
*/
export const liftCreateBooking = (
original: CreateBooking,
): LiftedCreateBooking => {
return original
}