@chrt-inc/typescript-sdk 1.997.0 → 1.999.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billingNew/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/client/Client.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.js +1 -1
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +0 -3
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.ts +0 -6
- package/dist/cjs/api/resources/billingNew/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/index.js +3 -1
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +17 -73
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +50 -193
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +1 -3
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.js +0 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +57 -32
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +169 -89
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +28 -3
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +126 -5
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/index.js +0 -1
- package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/Client.d.ts +128 -0
- package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/Client.js +485 -0
- package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientCreate1.d.ts +21 -0
- package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientUpdate1.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationResolveReq.d.ts +14 -0
- package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationsListV1Request.d.ts +33 -0
- package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/flights/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/flights/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
- package/dist/cjs/api/types/BillingCurrencyCodeEnum1.d.ts +1 -2
- package/dist/cjs/api/types/BillingCurrencyCodeEnum1.js +0 -1
- package/dist/cjs/api/types/BillingPeriodCloseRes.d.ts +8 -0
- package/dist/cjs/api/types/CalculatedInvoiceTax1.d.ts +12 -0
- package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +0 -3
- package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.ts → CreateInvoiceLineItemsFromAwbCostsGroupRes1.d.ts} +2 -2
- package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.ts +1 -1
- package/dist/cjs/api/types/FlightLeg1.d.ts +1 -0
- package/dist/cjs/api/types/FlightTrackPosition1.d.ts +8 -6
- package/dist/cjs/api/types/FlightTrackRes.d.ts +5 -15
- package/dist/cjs/api/{resources/billingNew/resources/invoices/client/requests → types}/InvoiceClientCreate1.d.ts +1 -9
- package/dist/cjs/api/types/InvoiceCreateFromOrdersReq.d.ts +22 -0
- package/dist/cjs/api/types/InvoiceCreateFromOrdersRes.d.ts +14 -0
- package/dist/cjs/api/types/InvoiceCreateReq.d.ts +20 -0
- package/dist/cjs/api/types/InvoiceCreateReq.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemExportListItem.d.ts +3 -2
- package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.d.ts +2 -4
- package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.js +1 -3
- package/dist/cjs/api/types/InvoicePreviewFromOrdersRes.d.ts +15 -0
- package/dist/cjs/api/types/InvoicePreviewFromOrdersRes.js +5 -0
- package/dist/cjs/api/types/InvoicePreviewRes.d.ts +10 -0
- package/dist/cjs/api/types/InvoicePreviewRes.js +5 -0
- package/dist/cjs/api/types/InvoiceTaxCalculation1.d.ts +12 -0
- package/dist/cjs/api/types/InvoiceTaxCalculation1.js +5 -0
- package/dist/cjs/api/types/TaxConfiguration1.d.ts +24 -0
- package/dist/cjs/api/types/TaxConfiguration1.js +5 -0
- package/dist/cjs/api/types/TaxConfigurationListRes.d.ts +8 -0
- package/dist/cjs/api/types/TaxConfigurationListRes.js +5 -0
- package/dist/cjs/api/types/TaxConfigurationSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/TaxConfigurationSortByEnum.js +10 -0
- package/dist/cjs/api/types/{TaxRate1.d.ts → TaxRule1.d.ts} +2 -3
- package/dist/cjs/api/types/TaxRule1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +14 -7
- package/dist/cjs/api/types/index.js +14 -7
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/billingNew/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/client/Client.mjs +5 -0
- package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.mjs +1 -1
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +0 -3
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +0 -6
- package/dist/esm/api/resources/billingNew/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/index.mjs +2 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +17 -73
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +50 -193
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +1 -3
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.mjs +0 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +57 -32
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +169 -89
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +28 -3
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +126 -5
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +0 -1
- package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/Client.d.mts +128 -0
- package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/Client.mjs +448 -0
- package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientCreate1.d.mts +21 -0
- package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientUpdate1.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationResolveReq.d.mts +14 -0
- package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationsListV1Request.d.mts +33 -0
- package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/flights/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/flights/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
- package/dist/esm/api/types/BillingCurrencyCodeEnum1.d.mts +1 -2
- package/dist/esm/api/types/BillingCurrencyCodeEnum1.mjs +0 -1
- package/dist/esm/api/types/BillingPeriodCloseRes.d.mts +8 -0
- package/dist/esm/api/types/CalculatedInvoiceTax1.d.mts +12 -0
- package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +0 -3
- package/dist/esm/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.mts → CreateInvoiceLineItemsFromAwbCostsGroupRes1.d.mts} +2 -2
- package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.mts +1 -1
- package/dist/esm/api/types/FlightLeg1.d.mts +1 -0
- package/dist/esm/api/types/FlightTrackPosition1.d.mts +8 -6
- package/dist/esm/api/types/FlightTrackRes.d.mts +5 -15
- package/dist/esm/api/{resources/billingNew/resources/invoices/client/requests → types}/InvoiceClientCreate1.d.mts +1 -9
- package/dist/esm/api/types/InvoiceCreateFromOrdersReq.d.mts +22 -0
- package/dist/esm/api/types/InvoiceCreateFromOrdersRes.d.mts +14 -0
- package/dist/esm/api/types/InvoiceCreateReq.d.mts +20 -0
- package/dist/esm/api/types/InvoiceCreateReq.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemExportListItem.d.mts +3 -2
- package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +2 -4
- package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +1 -3
- package/dist/esm/api/types/InvoicePreviewFromOrdersRes.d.mts +15 -0
- package/dist/esm/api/types/InvoicePreviewFromOrdersRes.mjs +4 -0
- package/dist/esm/api/types/InvoicePreviewRes.d.mts +10 -0
- package/dist/esm/api/types/InvoicePreviewRes.mjs +4 -0
- package/dist/esm/api/types/InvoiceTaxCalculation1.d.mts +12 -0
- package/dist/esm/api/types/InvoiceTaxCalculation1.mjs +4 -0
- package/dist/esm/api/types/TaxConfiguration1.d.mts +24 -0
- package/dist/esm/api/types/TaxConfiguration1.mjs +4 -0
- package/dist/esm/api/types/TaxConfigurationListRes.d.mts +8 -0
- package/dist/esm/api/types/TaxConfigurationListRes.mjs +4 -0
- package/dist/esm/api/types/TaxConfigurationSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/TaxConfigurationSortByEnum.mjs +7 -0
- package/dist/esm/api/types/{TaxRate1.d.mts → TaxRule1.d.mts} +2 -3
- package/dist/esm/api/types/TaxRule1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +14 -7
- package/dist/esm/api/types/index.mjs +14 -7
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +522 -221
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +0 -32
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.ts +0 -46
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.ts +0 -12
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.d.ts +0 -51
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.js +0 -153
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/index.js +0 -41
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.js +0 -41
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.ts +0 -49
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.js +0 -135
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.js +0 -17
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js +0 -17
- package/dist/cjs/api/types/CreateInvoiceLineItemsFromAmountRes.d.ts +0 -7
- package/dist/cjs/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.ts +0 -7
- package/dist/cjs/api/types/FlightTrackWaypoint1.d.ts +0 -7
- package/dist/cjs/api/types/InvoiceLineItemAmountTransformation1.d.ts +0 -8
- package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.ts +0 -9
- package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.js +0 -11
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +0 -32
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.mts +0 -46
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.mts +0 -12
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.d.mts +0 -51
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.mjs +0 -116
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/index.mjs +0 -2
- package/dist/esm/api/resources/billingNew/resources/orders/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/billingNew/resources/orders/resources/index.mjs +0 -2
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.mts +0 -49
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.mjs +0 -98
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.mts +0 -2
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.mjs +0 -1
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.mjs +0 -1
- package/dist/esm/api/types/CreateInvoiceLineItemsFromAmountRes.d.mts +0 -7
- package/dist/esm/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.mts +0 -7
- package/dist/esm/api/types/FlightTrackWaypoint1.d.mts +0 -7
- package/dist/esm/api/types/InvoiceLineItemAmountTransformation1.d.mts +0 -8
- package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.mts +0 -9
- package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.mjs +0 -8
- /package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.js → taxConfigurations/client/requests/TaxConfigurationClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.js → taxConfigurations/client/requests/TaxConfigurationClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.js → taxConfigurations/client/requests/TaxConfigurationResolveReq.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices/client/requests/InvoiceClientCreate1.js → taxConfigurations/client/requests/TaxConfigurationsListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.js +0 -0
- /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAmountRes.js → BillingPeriodCloseRes.js} +0 -0
- /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.js → CalculatedInvoiceTax1.js} +0 -0
- /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromLineItemsRes.js → CreateInvoiceLineItemsFromAwbCostsGroupRes1.js} +0 -0
- /package/dist/cjs/api/types/{FlightTrackWaypoint1.js → InvoiceClientCreate1.js} +0 -0
- /package/dist/cjs/api/types/{InvoiceLineItemAmountTransformation1.js → InvoiceCreateFromOrdersReq.js} +0 -0
- /package/dist/cjs/api/types/{TaxRate1.js → InvoiceCreateFromOrdersRes.js} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.mjs → taxConfigurations/client/requests/TaxConfigurationClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.mjs → taxConfigurations/client/requests/TaxConfigurationClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.mjs → taxConfigurations/client/requests/TaxConfigurationResolveReq.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices/client/requests/InvoiceClientCreate1.mjs → taxConfigurations/client/requests/TaxConfigurationsListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.mjs +0 -0
- /package/dist/esm/api/types/{CreateInvoiceLineItemsFromAmountRes.mjs → BillingPeriodCloseRes.mjs} +0 -0
- /package/dist/esm/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.mjs → CalculatedInvoiceTax1.mjs} +0 -0
- /package/dist/esm/api/types/{CreateInvoiceLineItemsFromLineItemsRes.mjs → CreateInvoiceLineItemsFromAwbCostsGroupRes1.mjs} +0 -0
- /package/dist/esm/api/types/{FlightTrackWaypoint1.mjs → InvoiceClientCreate1.mjs} +0 -0
- /package/dist/esm/api/types/{InvoiceLineItemAmountTransformation1.mjs → InvoiceCreateFromOrdersReq.mjs} +0 -0
- /package/dist/esm/api/types/{TaxRate1.mjs → InvoiceCreateFromOrdersRes.mjs} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* sort_by: "name",
|
|
9
|
+
* sort_order: "asc",
|
|
10
|
+
* page: 1,
|
|
11
|
+
* page_size: 1,
|
|
12
|
+
* filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
13
|
+
* filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
14
|
+
* filter_counterparty_driver_id: "filter_counterparty_driver_id",
|
|
15
|
+
* filter_shipper_account_id: "filter_shipper_account_id",
|
|
16
|
+
* filter_archived: true,
|
|
17
|
+
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
18
|
+
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
export interface TaxConfigurationsListV1Request {
|
|
22
|
+
sort_by?: Chrt.TaxConfigurationSortByEnum | null;
|
|
23
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
24
|
+
page?: number | null;
|
|
25
|
+
page_size?: number | null;
|
|
26
|
+
filter_counterparty_org_id?: string | null;
|
|
27
|
+
filter_counterparty_off_chrt_org_data_id?: string | null;
|
|
28
|
+
filter_counterparty_driver_id?: string | null;
|
|
29
|
+
filter_shipper_account_id?: string | null;
|
|
30
|
+
filter_archived?: boolean | null;
|
|
31
|
+
filter_created_at_timestamp_gte?: string | null;
|
|
32
|
+
filter_created_at_timestamp_lte?: string | null;
|
|
33
|
+
}
|
package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { type TaxConfigurationClientCreate1 } from "./TaxConfigurationClientCreate1.js";
|
|
2
|
+
export { type TaxConfigurationsListV1Request } from "./TaxConfigurationsListV1Request.js";
|
|
3
|
+
export { type TaxConfigurationResolveReq } from "./TaxConfigurationResolveReq.js";
|
|
4
|
+
export { type TaxConfigurationClientUpdate1 } from "./TaxConfigurationClientUpdate1.js";
|
|
@@ -31,7 +31,7 @@ export declare class Flights {
|
|
|
31
31
|
protected readonly _options: Flights.Options;
|
|
32
32
|
constructor(_options?: Flights.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
|
|
34
|
+
* Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time, ordered by earliest final arrival with unknown arrivals last. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.FlightConnectionsSearchReq} request
|
|
37
37
|
* @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,7 +56,7 @@ class Flights {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
|
|
59
|
+
* Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time, ordered by earliest final arrival with unknown arrivals last. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.FlightConnectionsSearchReq} request
|
|
62
62
|
* @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -70,7 +70,7 @@ export declare class Flights {
|
|
|
70
70
|
getFlightStatusForFlightLegV1(flightLegId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1>;
|
|
71
71
|
private __getFlightStatusForFlightLegV1;
|
|
72
72
|
/**
|
|
73
|
-
* Returns the
|
|
73
|
+
* Returns the FlightAware actual path, planned path, and latest position for a flight leg; pass force_refresh=true to bypass the cache. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
|
|
74
74
|
*
|
|
75
75
|
* @param {string} flightLegId
|
|
76
76
|
* @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
|
|
@@ -233,7 +233,7 @@ class Flights {
|
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
|
-
* Returns the
|
|
236
|
+
* Returns the FlightAware actual path, planned path, and latest position for a flight leg; pass force_refresh=true to bypass the cache. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
|
|
237
237
|
*
|
|
238
238
|
* @param {string} flightLegId
|
|
239
239
|
* @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
|
|
@@ -63,7 +63,7 @@ export declare class Sessions {
|
|
|
63
63
|
flightLegsV1(request: Chrt.tracking.SessionsFlightLegsV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1[]>;
|
|
64
64
|
private __flightLegsV1;
|
|
65
65
|
/**
|
|
66
|
-
* Returns the
|
|
66
|
+
* Returns the FlightAware actual path, planned path, and latest position for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
|
|
67
67
|
*
|
|
68
68
|
* @param {Chrt.tracking.SessionsFlightTrackV1Request} request
|
|
69
69
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -203,7 +203,7 @@ class Sessions {
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
|
-
* Returns the
|
|
206
|
+
* Returns the FlightAware actual path, planned path, and latest position for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
|
|
207
207
|
*
|
|
208
208
|
* @param {Chrt.tracking.SessionsFlightTrackV1Request} request
|
|
209
209
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type BillingCurrencyCodeEnum1 = "USD" | "CAD" | "EUR" | "GBP" | "MXN" | "AUD" | "JPY" | "CNY" | "CHF" | "INR"
|
|
4
|
+
export type BillingCurrencyCodeEnum1 = "USD" | "CAD" | "EUR" | "GBP" | "MXN" | "AUD" | "JPY" | "CNY" | "CHF" | "INR";
|
|
5
5
|
export declare const BillingCurrencyCodeEnum1: {
|
|
6
6
|
readonly Usd: "USD";
|
|
7
7
|
readonly Cad: "CAD";
|
|
@@ -13,5 +13,4 @@ export declare const BillingCurrencyCodeEnum1: {
|
|
|
13
13
|
readonly Cny: "CNY";
|
|
14
14
|
readonly Chf: "CHF";
|
|
15
15
|
readonly Inr: "INR";
|
|
16
|
-
readonly Xxx: "XXX";
|
|
17
16
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface CalculatedInvoiceTax1 {
|
|
5
|
+
export_ref__sage__item_id?: string | null;
|
|
6
|
+
invoice_line_item_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
percentage: number;
|
|
9
|
+
tax_amount: number;
|
|
10
|
+
tax_configuration_id: string;
|
|
11
|
+
taxable_amount: number;
|
|
12
|
+
}
|
|
@@ -32,9 +32,6 @@ export interface ChrtGroundProviderRates1 {
|
|
|
32
32
|
schema_version: number;
|
|
33
33
|
service_line?: Chrt.ServiceLineEnum;
|
|
34
34
|
shipper_account_id?: string | null;
|
|
35
|
-
tax_1?: Chrt.TaxRate1 | null;
|
|
36
|
-
tax_2?: Chrt.TaxRate1 | null;
|
|
37
|
-
tax_3?: Chrt.TaxRate1 | null;
|
|
38
35
|
updated_at_timestamp: string;
|
|
39
36
|
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
40
37
|
wait_time?: Chrt.WaitTimeRate1 | null;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
|
-
export interface
|
|
5
|
+
export interface CreateInvoiceLineItemsFromAwbCostsGroupRes1 {
|
|
6
6
|
counterparty_off_chrt_org_data_id: string;
|
|
7
7
|
created_awb_count: number;
|
|
8
8
|
created_invoice_line_item_count: number;
|
|
9
9
|
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
10
|
-
|
|
10
|
+
invoice_line_item_ids?: string[];
|
|
11
11
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface CreateInvoiceLineItemsFromAwbCostsRes {
|
|
6
|
+
charge_groups?: Chrt.CreateInvoiceLineItemsFromAwbCostsGroupRes1[];
|
|
6
7
|
created_awbs?: Chrt.CreateInvoiceLineItemsFromAwbCostsCreatedAwb1[];
|
|
7
8
|
created_invoice_line_item_count: number;
|
|
8
|
-
invoices?: Chrt.CreateInvoiceLineItemsFromAwbCostsInvoiceRes1[];
|
|
9
9
|
rejected_awbs?: Chrt.CreateInvoiceLineItemsFromAwbCostsRejectedAwb1[];
|
|
10
10
|
}
|
|
@@ -16,6 +16,7 @@ export interface FlightLeg1 {
|
|
|
16
16
|
destination_iata: string;
|
|
17
17
|
estimated_arrival_utc?: string | null;
|
|
18
18
|
estimated_departure_utc?: string | null;
|
|
19
|
+
fa_flight_id?: string | null;
|
|
19
20
|
flight_number: string;
|
|
20
21
|
flight_status?: Chrt.FlightLegStatusEnum1 | null;
|
|
21
22
|
flight_status_fetched_at_utc?: string | null;
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface FlightTrackPosition1 {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
altitude_feet?: number | null;
|
|
6
|
+
ground_speed_knots?: number | null;
|
|
7
|
+
heading_degrees?: number | null;
|
|
8
|
+
latitude?: number | null;
|
|
9
|
+
longitude?: number | null;
|
|
10
|
+
name?: string | null;
|
|
11
|
+
position_source?: string | null;
|
|
12
|
+
received_at_timestamp?: string | null;
|
|
11
13
|
}
|
|
@@ -2,20 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* Positional track for a flight leg: live trail + (optional) planned path.
|
|
7
|
-
*
|
|
8
|
-
* `positions` is the flown breadcrumb trail (present once airborne);
|
|
9
|
-
* `waypoints` / `legacy_route` are the planned path (present once Cirium has
|
|
10
|
-
* the filed flight plan, ~24h before departure). Everything is empty when the
|
|
11
|
-
* leg has no resolvable Cirium `flightId` or Cirium has no track yet — the
|
|
12
|
-
* endpoint never errors on a missing track (fail-soft, like the status route).
|
|
13
|
-
*/
|
|
14
5
|
export interface FlightTrackRes {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
waypoints?: Chrt.FlightTrackWaypoint1[];
|
|
6
|
+
actual_flight_path?: Chrt.FlightTrackPosition1[];
|
|
7
|
+
fa_flight_id?: string | null;
|
|
8
|
+
last_refresh_attempt_at_timestamp?: string | null;
|
|
9
|
+
latest_position?: Chrt.FlightTrackPosition1 | null;
|
|
10
|
+
planned_flight_path?: Chrt.FlightTrackPosition1[];
|
|
21
11
|
}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* currency_code: "USD",
|
|
9
|
-
* invoice_type: "accounts_receivable",
|
|
10
|
-
* schema_version: 1
|
|
11
|
-
* }
|
|
12
|
-
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
13
5
|
export interface InvoiceClientCreate1 {
|
|
14
6
|
counterparty_driver_id?: string | null;
|
|
15
7
|
counterparty_off_chrt_org_data_id?: string | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface InvoiceCreateFromOrdersReq {
|
|
6
|
+
counterparty_driver_id?: string | null;
|
|
7
|
+
counterparty_off_chrt_org_data_id?: string | null;
|
|
8
|
+
/** Must be a string starting with `org_` */
|
|
9
|
+
counterparty_org_id?: string | null;
|
|
10
|
+
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
export_ref__sage__customer_id?: string | null;
|
|
13
|
+
export_ref__sage__department_id?: string | null;
|
|
14
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
15
|
+
name?: string | null;
|
|
16
|
+
order_ids: string[];
|
|
17
|
+
/** When derived, the exclusive UTC midnight after the last delivery day. Explicit bounds are preserved. */
|
|
18
|
+
period_end_at_timestamp?: string | null;
|
|
19
|
+
/** Supply both bounds or omit both to derive the period from delivery completion days in UTC. */
|
|
20
|
+
period_start_at_timestamp?: string | null;
|
|
21
|
+
schema_version: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface InvoiceCreateFromOrdersRes {
|
|
6
|
+
added_invoice_line_item_ids?: string[];
|
|
7
|
+
already_invoiced_line_item_ids?: string[];
|
|
8
|
+
finalized_line_item_ids?: string[];
|
|
9
|
+
/** Created draft, or null when no charges qualify. */
|
|
10
|
+
invoice?: Chrt.Invoice1 | null;
|
|
11
|
+
orders_without_added_charges?: string[];
|
|
12
|
+
/** Charges for another counterparty, invoice type, or currency, regardless of status. */
|
|
13
|
+
unmatched_line_item_ids?: string[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface InvoiceCreateReq {
|
|
6
|
+
counterparty_driver_id?: string | null;
|
|
7
|
+
counterparty_off_chrt_org_data_id?: string | null;
|
|
8
|
+
/** Must be a string starting with `org_` */
|
|
9
|
+
counterparty_org_id?: string | null;
|
|
10
|
+
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
export_ref__sage__customer_id?: string | null;
|
|
13
|
+
export_ref__sage__department_id?: string | null;
|
|
14
|
+
invoice_line_item_ids?: string[];
|
|
15
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
16
|
+
name?: string | null;
|
|
17
|
+
period_end_at_timestamp?: string | null;
|
|
18
|
+
period_start_at_timestamp?: string | null;
|
|
19
|
+
schema_version: number;
|
|
20
|
+
}
|
|
@@ -23,11 +23,12 @@ export interface InvoiceLineItemExportListItem {
|
|
|
23
23
|
destination_iata?: string | null;
|
|
24
24
|
flight_numbers?: string[];
|
|
25
25
|
invoice_approval_timestamp?: string | null;
|
|
26
|
-
invoice_line_item_id
|
|
27
|
-
invoice_line_item_status
|
|
26
|
+
invoice_line_item_id?: string | null;
|
|
27
|
+
invoice_line_item_status?: Chrt.InvoiceLineItemStatusEnum1 | null;
|
|
28
28
|
invoice_number?: string | null;
|
|
29
29
|
invoice_status?: Chrt.InvoiceStatusEnum1 | null;
|
|
30
30
|
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
31
|
+
is_estimate?: boolean;
|
|
31
32
|
/** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
|
|
32
33
|
line_item_awb_number?: string | null;
|
|
33
34
|
line_item_description: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type InvoiceLineItemTypeEnum1 = "base_rate" | "additional_mileage" | "long_distance_mileage" | "fuel" | "extra_stop" | "wait_time" | "attempt" | "pick_and_hold" | "parking" | "tolls" | "additional_fee" | "dispute" | "equipment" | "dangerous_goods" | "special_vehicle" | "after_hours" | "weekend" | "holiday" | "air_waybill" | "insurance" | "off_network_carrier" | "obc_day_rate" | "flight_ticket" | "tracking_device_label" | "tracking_device_tag" | "tracking_device_other" | "
|
|
4
|
+
export type InvoiceLineItemTypeEnum1 = "base_rate" | "additional_mileage" | "long_distance_mileage" | "fuel" | "extra_stop" | "wait_time" | "attempt" | "pick_and_hold" | "parking" | "tolls" | "additional_fee" | "dispute" | "equipment" | "dangerous_goods" | "special_vehicle" | "after_hours" | "weekend" | "holiday" | "air_waybill" | "insurance" | "off_network_carrier" | "obc_day_rate" | "flight_ticket" | "tracking_device_label" | "tracking_device_tag" | "tracking_device_other" | "tax" | "other";
|
|
5
5
|
export declare const InvoiceLineItemTypeEnum1: {
|
|
6
6
|
readonly BaseRate: "base_rate";
|
|
7
7
|
readonly AdditionalMileage: "additional_mileage";
|
|
@@ -29,8 +29,6 @@ export declare const InvoiceLineItemTypeEnum1: {
|
|
|
29
29
|
readonly TrackingDeviceLabel: "tracking_device_label";
|
|
30
30
|
readonly TrackingDeviceTag: "tracking_device_tag";
|
|
31
31
|
readonly TrackingDeviceOther: "tracking_device_other";
|
|
32
|
-
readonly
|
|
33
|
-
readonly Tax2: "tax_2";
|
|
34
|
-
readonly Tax3: "tax_3";
|
|
32
|
+
readonly Tax: "tax";
|
|
35
33
|
readonly Other: "other";
|
|
36
34
|
};
|
|
@@ -31,8 +31,6 @@ exports.InvoiceLineItemTypeEnum1 = {
|
|
|
31
31
|
TrackingDeviceLabel: "tracking_device_label",
|
|
32
32
|
TrackingDeviceTag: "tracking_device_tag",
|
|
33
33
|
TrackingDeviceOther: "tracking_device_other",
|
|
34
|
-
|
|
35
|
-
Tax2: "tax_2",
|
|
36
|
-
Tax3: "tax_3",
|
|
34
|
+
Tax: "tax",
|
|
37
35
|
Other: "other",
|
|
38
36
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface InvoicePreviewFromOrdersRes {
|
|
6
|
+
already_invoiced_line_item_ids?: string[];
|
|
7
|
+
calculation: Chrt.InvoiceTaxCalculation1;
|
|
8
|
+
finalized_line_item_ids?: string[];
|
|
9
|
+
invoice: Chrt.InvoiceClientCreate1;
|
|
10
|
+
invoice_line_items?: Chrt.InvoiceLineItem1[];
|
|
11
|
+
orders_without_selected_charges?: string[];
|
|
12
|
+
tax_configurations_by_line_item_id?: Record<string, (Chrt.TaxConfiguration1 | null) | undefined>;
|
|
13
|
+
tax_line_item_ids?: string[];
|
|
14
|
+
unmatched_line_item_ids?: string[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface InvoicePreviewRes {
|
|
6
|
+
calculation: Chrt.InvoiceTaxCalculation1;
|
|
7
|
+
invoice: Chrt.InvoiceClientCreate1;
|
|
8
|
+
invoice_line_items?: Chrt.InvoiceLineItem1[];
|
|
9
|
+
tax_configurations_by_line_item_id?: Record<string, (Chrt.TaxConfiguration1 | null) | undefined>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface InvoiceTaxCalculation1 {
|
|
6
|
+
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
7
|
+
net_amounts?: Record<string, number>;
|
|
8
|
+
subtotal: number;
|
|
9
|
+
tax_breakdown?: Chrt.CalculatedInvoiceTax1[];
|
|
10
|
+
tax_total: number;
|
|
11
|
+
total_amount: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface TaxConfiguration1 {
|
|
6
|
+
_id: string;
|
|
7
|
+
archived?: boolean;
|
|
8
|
+
counterparty_driver_id?: string | null;
|
|
9
|
+
counterparty_off_chrt_org_data_id?: string | null;
|
|
10
|
+
/** Must be a string starting with `org_` */
|
|
11
|
+
counterparty_org_id?: string | null;
|
|
12
|
+
created_at_timestamp: string;
|
|
13
|
+
/** Must be a string starting with `user_` */
|
|
14
|
+
created_by_user_id: string;
|
|
15
|
+
last_edited_at_timestamp: string;
|
|
16
|
+
/** Must be a string starting with `user_` */
|
|
17
|
+
last_edited_by_user_id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
/** Must be a string starting with `org_` */
|
|
20
|
+
owned_by_org_id: string;
|
|
21
|
+
schema_version: number;
|
|
22
|
+
shipper_account_id?: string | null;
|
|
23
|
+
tax_rules?: Chrt.TaxRule1[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type TaxConfigurationSortByEnum = "name" | "created_at_timestamp";
|
|
5
|
+
export declare const TaxConfigurationSortByEnum: {
|
|
6
|
+
readonly Name: "name";
|
|
7
|
+
readonly CreatedAtTimestamp: "created_at_timestamp";
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TaxConfigurationSortByEnum = void 0;
|
|
7
|
+
exports.TaxConfigurationSortByEnum = {
|
|
8
|
+
Name: "name",
|
|
9
|
+
CreatedAtTimestamp: "created_at_timestamp",
|
|
10
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
4
|
+
export interface TaxRule1 {
|
|
5
|
+
export_ref__sage__item_id?: string | null;
|
|
5
6
|
name: string;
|
|
6
|
-
note?: string | null;
|
|
7
7
|
percentage: number;
|
|
8
|
-
sage_item_id?: string | null;
|
|
9
8
|
}
|
|
@@ -43,12 +43,14 @@ export * from "./BidThreadStatusEnum.js";
|
|
|
43
43
|
export * from "./BillingCurrencyCodeEnum1.js";
|
|
44
44
|
export * from "./BillingInvoiceApprovedWebhookPayload.js";
|
|
45
45
|
export * from "./BillingPeriod1.js";
|
|
46
|
+
export * from "./BillingPeriodCloseRes.js";
|
|
46
47
|
export * from "./BillingPeriodCycleEnum1.js";
|
|
47
48
|
export * from "./BillingPeriodExpanded1.js";
|
|
48
49
|
export * from "./BillingPeriodListRes.js";
|
|
49
50
|
export * from "./BillingPeriodSortByEnum.js";
|
|
50
51
|
export * from "./BillingPeriodStatusEnum1.js";
|
|
51
52
|
export * from "./BillingPeriodTaskGroupsReq.js";
|
|
53
|
+
export * from "./CalculatedInvoiceTax1.js";
|
|
52
54
|
export * from "./Caller.js";
|
|
53
55
|
export * from "./CallerCredentialTypeEnum.js";
|
|
54
56
|
export * from "./Cargo1.js";
|
|
@@ -152,14 +154,12 @@ export * from "./CoordinatorExecutorConnectionsForExecutorListRes.js";
|
|
|
152
154
|
export * from "./CreateCheckoutSessionRes.js";
|
|
153
155
|
export * from "./CreateConnectionReq.js";
|
|
154
156
|
export * from "./CreateCustomerPortalSessionRes.js";
|
|
155
|
-
export * from "./CreateInvoiceLineItemsFromAmountRes.js";
|
|
156
157
|
export * from "./CreateInvoiceLineItemsFromAwbCostsCreatedAwb1.js";
|
|
157
|
-
export * from "./
|
|
158
|
+
export * from "./CreateInvoiceLineItemsFromAwbCostsGroupRes1.js";
|
|
158
159
|
export * from "./CreateInvoiceLineItemsFromAwbCostsItem1.js";
|
|
159
160
|
export * from "./CreateInvoiceLineItemsFromAwbCostsRejectedAwb1.js";
|
|
160
161
|
export * from "./CreateInvoiceLineItemsFromAwbCostsRejectedReasonEnum1.js";
|
|
161
162
|
export * from "./CreateInvoiceLineItemsFromAwbCostsRes.js";
|
|
162
|
-
export * from "./CreateInvoiceLineItemsFromLineItemsRes.js";
|
|
163
163
|
export * from "./CreateOffChrtOrgRes.js";
|
|
164
164
|
export * from "./CreateStripeConnectAccountRes.js";
|
|
165
165
|
export * from "./CredentialInfoRes.js";
|
|
@@ -246,7 +246,6 @@ export * from "./FlightLegStatusSourceEnum1.js";
|
|
|
246
246
|
export * from "./FlightLegWebhookInfo.js";
|
|
247
247
|
export * from "./FlightTrackPosition1.js";
|
|
248
248
|
export * from "./FlightTrackRes.js";
|
|
249
|
-
export * from "./FlightTrackWaypoint1.js";
|
|
250
249
|
export * from "./FraytWebhookResponse.js";
|
|
251
250
|
export * from "./FromPayables1.js";
|
|
252
251
|
export * from "./FuelSurchargeRate1.js";
|
|
@@ -261,11 +260,13 @@ export * from "./HolidayRate1.js";
|
|
|
261
260
|
export * from "./InternalDelegationJwtReq.js";
|
|
262
261
|
export * from "./InternalDelegationJwtRes.js";
|
|
263
262
|
export * from "./Invoice1.js";
|
|
263
|
+
export * from "./InvoiceClientCreate1.js";
|
|
264
|
+
export * from "./InvoiceCreateFromOrdersReq.js";
|
|
265
|
+
export * from "./InvoiceCreateFromOrdersRes.js";
|
|
266
|
+
export * from "./InvoiceCreateReq.js";
|
|
264
267
|
export * from "./InvoiceExpandedListItem.js";
|
|
265
268
|
export * from "./InvoiceExpandedRes.js";
|
|
266
269
|
export * from "./InvoiceLineItem1.js";
|
|
267
|
-
export * from "./InvoiceLineItemAmountTransformation1.js";
|
|
268
|
-
export * from "./InvoiceLineItemAmountTransformationTypeEnum1.js";
|
|
269
270
|
export * from "./InvoiceLineItemClientCreate1.js";
|
|
270
271
|
export * from "./InvoiceLineItemCurrencyConversion1.js";
|
|
271
272
|
export * from "./InvoiceLineItemExpandedListItem.js";
|
|
@@ -283,9 +284,12 @@ export * from "./InvoiceLineItemsDeleteManyRes.js";
|
|
|
283
284
|
export * from "./InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.js";
|
|
284
285
|
export * from "./InvoiceListRes.js";
|
|
285
286
|
export * from "./InvoiceMergeStatusEnum1.js";
|
|
287
|
+
export * from "./InvoicePreviewFromOrdersRes.js";
|
|
288
|
+
export * from "./InvoicePreviewRes.js";
|
|
286
289
|
export * from "./InvoiceSortByEnum.js";
|
|
287
290
|
export * from "./InvoiceStatusEnum1.js";
|
|
288
291
|
export * from "./InvoiceStripeStatusEnum1.js";
|
|
292
|
+
export * from "./InvoiceTaxCalculation1.js";
|
|
289
293
|
export * from "./InvoiceTypeEnum1.js";
|
|
290
294
|
export * from "./LineString.js";
|
|
291
295
|
export * from "./Listing1.js";
|
|
@@ -555,7 +559,10 @@ export * from "./TaskListToApplyToOrder1.js";
|
|
|
555
559
|
export * from "./TaskListToApplyToOrderExpanded.js";
|
|
556
560
|
export * from "./TaskStatusEnum1.js";
|
|
557
561
|
export * from "./TaskWaitTimeGeofenceRes.js";
|
|
558
|
-
export * from "./
|
|
562
|
+
export * from "./TaxConfiguration1.js";
|
|
563
|
+
export * from "./TaxConfigurationListRes.js";
|
|
564
|
+
export * from "./TaxConfigurationSortByEnum.js";
|
|
565
|
+
export * from "./TaxRule1.js";
|
|
559
566
|
export * from "./TemplateRes.js";
|
|
560
567
|
export * from "./TimeBucket.js";
|
|
561
568
|
export * from "./TimeGranularity.js";
|