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
/
CreateCommercialInvoiceLineItem.ts
65 lines (65 loc) · 1.76 KB
/
CreateCommercialInvoiceLineItem.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
/**
* Auto-generated file. Do not change.
*/
import { CreateQuantity } from './CreateQuantity'
import { Metadata } from './Metadata'
import { Money } from './Money'
import { Type } from './Type'
import { Volume } from './Volume'
import { Weight } from './Weight'
import { TypedApiObject } from '../types/TypedApiObject'
export type CreateCommercialInvoiceLineItem = {
/**
* Type of the object
*/
readonly _object: Type.CreateCommercialInvoiceLineItem
/**
* Document line number that this data represents. Counting from 1.
*
* JSON-schema: integer
* @example 4
*/
readonly document_line_number?: number
/**
* JSON-schema: string
* @example "9876-ABC"
*/
readonly purchase_order_number?: string
/**
* JSON-schema: string
* @example "522932-1"
*/
readonly container_number?: string
/**
* JSON-schema: string
* @example "CN"
*/
readonly country_of_origin?: string
/**
* The SKU of the product associated with this line item as it is stored in Flexport's system.
*
* JSON-schema: string
* @example "PRODUCT-123"
*/
readonly product_sku: string
readonly quantity: CreateQuantity
readonly net_value?: Money
readonly first_sale_value?: Money
readonly value: Money
readonly price_per_unit: Money
readonly gross_weight?: Weight
readonly net_weight?: Weight
readonly net_net_weight?: Weight
readonly volume?: Volume
readonly metadata?: Metadata
}
export type LiftedCreateCommercialInvoiceLineItem = TypedApiObject &
CreateCommercialInvoiceLineItem
/**
* Lifts an object return from a Flexport API responses into the SDK domain by augmenting them with higher level properties.
*/
export const liftCreateCommercialInvoiceLineItem = (
original: CreateCommercialInvoiceLineItem,
): LiftedCreateCommercialInvoiceLineItem => {
return original
}