Type aliases
Cart
Cart<S, NC>
: { agency
: S extends JadlogShippingMethods ? string : string | null | undefined; from
: Address; options
: { insurance_value
: number; invoice
: NC extends false ? CartInvoice : null; non_commercial
: NC; own_hand
: false; platform
: string; receipt
: false; reverse
: false; tags
?: Array<{ tag
: string; url
: string | null | undefined }> }; products
: NC extends true ? CartProducts : CartProducts | null | undefined; service
: S; to
: Address; volumes
: S extends CorreiosShippingMethods ? [MelhorEnvioPackage] : Array<MelhorEnvioPackage> }
Type parameters
Type declaration
-
agency: S extends JadlogShippingMethods ? string : string | null | undefined
-
-
options: { insurance_value: number; invoice: NC extends false ? CartInvoice : null; non_commercial: NC; own_hand: false; platform: string; receipt: false; reverse: false; tags?: Array<{ tag: string; url: string | null | undefined }> }
-
insurance_value: number
-
invoice: NC extends false ? CartInvoice : null
-
non_commercial: NC
-
own_hand: false
-
platform: string
-
receipt: false
-
reverse: false
-
Optional tags?: Array<{ tag: string; url: string | null | undefined }>
-
products: NC extends true ? CartProducts : CartProducts | null | undefined
-
service: S
-
-
volumes: S extends CorreiosShippingMethods ? [MelhorEnvioPackage] : Array<MelhorEnvioPackage>
CartInvoice
CartInvoice: { key: string }
CartProducts
CartProducts: Array<{ name: string; quantity: number; unitary_value: number }>
O campo deve conter o valor de seguro do envio, que deve corresponder ao valor dos itens/produtos enviados e deverá bater com o valor da NF.*