@chrt-inc/typescript-sdk 1.998.0 → 1.1000.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 +30 -3
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +137 -6
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +7 -1
- 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/orders/resources/expanded/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +22 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +6 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +6 -0
- 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/{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/InvoiceCreateFromOrdersRes.js +5 -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/InvoiceLineItem1.d.ts +1 -0
- package/dist/cjs/api/types/InvoiceLineItemExportListItem.d.ts +4 -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/Order1.d.ts +1 -0
- package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +7 -0
- package/dist/cjs/api/types/OrderBillingSortByEnum.d.ts +2 -1
- package/dist/cjs/api/types/OrderBillingSortByEnum.js +1 -0
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -0
- package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +1 -0
- package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -1
- package/dist/cjs/api/types/OrderSortByEnum.js +1 -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 -6
- package/dist/cjs/api/types/index.js +14 -6
- 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 +30 -3
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +137 -6
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +7 -1
- 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/orders/resources/expanded/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +22 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +6 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +6 -0
- 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/{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/InvoiceCreateFromOrdersRes.mjs +4 -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/InvoiceLineItem1.d.mts +1 -0
- package/dist/esm/api/types/InvoiceLineItemExportListItem.d.mts +4 -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/Order1.d.mts +1 -0
- package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +7 -0
- package/dist/esm/api/types/OrderBillingSortByEnum.d.mts +2 -1
- package/dist/esm/api/types/OrderBillingSortByEnum.mjs +1 -0
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -0
- package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +1 -0
- package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -1
- package/dist/esm/api/types/OrderSortByEnum.mjs +1 -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 -6
- package/dist/esm/api/types/index.mjs +14 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +526 -219
- 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/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/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/{InvoiceLineItemAmountTransformation1.js → InvoiceClientCreate1.js} +0 -0
- /package/dist/cjs/api/types/{TaxRate1.js → InvoiceCreateFromOrdersReq.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/{InvoiceLineItemAmountTransformation1.mjs → InvoiceClientCreate1.mjs} +0 -0
- /package/dist/esm/api/types/{TaxRate1.mjs → InvoiceCreateFromOrdersReq.mjs} +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type OrderSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "cancelled_at_timestamp" | "exception_at_timestamp";
|
|
4
|
+
export type OrderSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "last_delivery_task_completed_at_timestamp" | "cancelled_at_timestamp" | "exception_at_timestamp";
|
|
5
5
|
export declare const OrderSortByEnum: {
|
|
6
6
|
readonly DraftStartedAtTimestamp: "draft_started_at_timestamp";
|
|
7
7
|
readonly StagedAtTimestamp: "staged_at_timestamp";
|
|
8
8
|
readonly InProgressAtTimestamp: "in_progress_at_timestamp";
|
|
9
9
|
readonly CompletedAtTimestamp: "completed_at_timestamp";
|
|
10
|
+
readonly LastDeliveryTaskCompletedAtTimestamp: "last_delivery_task_completed_at_timestamp";
|
|
10
11
|
readonly CancelledAtTimestamp: "cancelled_at_timestamp";
|
|
11
12
|
readonly ExceptionAtTimestamp: "exception_at_timestamp";
|
|
12
13
|
};
|
|
@@ -9,6 +9,7 @@ exports.OrderSortByEnum = {
|
|
|
9
9
|
StagedAtTimestamp: "staged_at_timestamp",
|
|
10
10
|
InProgressAtTimestamp: "in_progress_at_timestamp",
|
|
11
11
|
CompletedAtTimestamp: "completed_at_timestamp",
|
|
12
|
+
LastDeliveryTaskCompletedAtTimestamp: "last_delivery_task_completed_at_timestamp",
|
|
12
13
|
CancelledAtTimestamp: "cancelled_at_timestamp",
|
|
13
14
|
ExceptionAtTimestamp: "exception_at_timestamp",
|
|
14
15
|
};
|
|
@@ -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";
|
|
@@ -260,11 +260,13 @@ export * from "./HolidayRate1.js";
|
|
|
260
260
|
export * from "./InternalDelegationJwtReq.js";
|
|
261
261
|
export * from "./InternalDelegationJwtRes.js";
|
|
262
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";
|
|
263
267
|
export * from "./InvoiceExpandedListItem.js";
|
|
264
268
|
export * from "./InvoiceExpandedRes.js";
|
|
265
269
|
export * from "./InvoiceLineItem1.js";
|
|
266
|
-
export * from "./InvoiceLineItemAmountTransformation1.js";
|
|
267
|
-
export * from "./InvoiceLineItemAmountTransformationTypeEnum1.js";
|
|
268
270
|
export * from "./InvoiceLineItemClientCreate1.js";
|
|
269
271
|
export * from "./InvoiceLineItemCurrencyConversion1.js";
|
|
270
272
|
export * from "./InvoiceLineItemExpandedListItem.js";
|
|
@@ -282,9 +284,12 @@ export * from "./InvoiceLineItemsDeleteManyRes.js";
|
|
|
282
284
|
export * from "./InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.js";
|
|
283
285
|
export * from "./InvoiceListRes.js";
|
|
284
286
|
export * from "./InvoiceMergeStatusEnum1.js";
|
|
287
|
+
export * from "./InvoicePreviewFromOrdersRes.js";
|
|
288
|
+
export * from "./InvoicePreviewRes.js";
|
|
285
289
|
export * from "./InvoiceSortByEnum.js";
|
|
286
290
|
export * from "./InvoiceStatusEnum1.js";
|
|
287
291
|
export * from "./InvoiceStripeStatusEnum1.js";
|
|
292
|
+
export * from "./InvoiceTaxCalculation1.js";
|
|
288
293
|
export * from "./InvoiceTypeEnum1.js";
|
|
289
294
|
export * from "./LineString.js";
|
|
290
295
|
export * from "./Listing1.js";
|
|
@@ -554,7 +559,10 @@ export * from "./TaskListToApplyToOrder1.js";
|
|
|
554
559
|
export * from "./TaskListToApplyToOrderExpanded.js";
|
|
555
560
|
export * from "./TaskStatusEnum1.js";
|
|
556
561
|
export * from "./TaskWaitTimeGeofenceRes.js";
|
|
557
|
-
export * from "./
|
|
562
|
+
export * from "./TaxConfiguration1.js";
|
|
563
|
+
export * from "./TaxConfigurationListRes.js";
|
|
564
|
+
export * from "./TaxConfigurationSortByEnum.js";
|
|
565
|
+
export * from "./TaxRule1.js";
|
|
558
566
|
export * from "./TemplateRes.js";
|
|
559
567
|
export * from "./TimeBucket.js";
|
|
560
568
|
export * from "./TimeGranularity.js";
|
|
@@ -59,12 +59,14 @@ __exportStar(require("./BidThreadStatusEnum.js"), exports);
|
|
|
59
59
|
__exportStar(require("./BillingCurrencyCodeEnum1.js"), exports);
|
|
60
60
|
__exportStar(require("./BillingInvoiceApprovedWebhookPayload.js"), exports);
|
|
61
61
|
__exportStar(require("./BillingPeriod1.js"), exports);
|
|
62
|
+
__exportStar(require("./BillingPeriodCloseRes.js"), exports);
|
|
62
63
|
__exportStar(require("./BillingPeriodCycleEnum1.js"), exports);
|
|
63
64
|
__exportStar(require("./BillingPeriodExpanded1.js"), exports);
|
|
64
65
|
__exportStar(require("./BillingPeriodListRes.js"), exports);
|
|
65
66
|
__exportStar(require("./BillingPeriodSortByEnum.js"), exports);
|
|
66
67
|
__exportStar(require("./BillingPeriodStatusEnum1.js"), exports);
|
|
67
68
|
__exportStar(require("./BillingPeriodTaskGroupsReq.js"), exports);
|
|
69
|
+
__exportStar(require("./CalculatedInvoiceTax1.js"), exports);
|
|
68
70
|
__exportStar(require("./Caller.js"), exports);
|
|
69
71
|
__exportStar(require("./CallerCredentialTypeEnum.js"), exports);
|
|
70
72
|
__exportStar(require("./Cargo1.js"), exports);
|
|
@@ -168,14 +170,12 @@ __exportStar(require("./CoordinatorExecutorConnectionsForExecutorListRes.js"), e
|
|
|
168
170
|
__exportStar(require("./CreateCheckoutSessionRes.js"), exports);
|
|
169
171
|
__exportStar(require("./CreateConnectionReq.js"), exports);
|
|
170
172
|
__exportStar(require("./CreateCustomerPortalSessionRes.js"), exports);
|
|
171
|
-
__exportStar(require("./CreateInvoiceLineItemsFromAmountRes.js"), exports);
|
|
172
173
|
__exportStar(require("./CreateInvoiceLineItemsFromAwbCostsCreatedAwb1.js"), exports);
|
|
173
|
-
__exportStar(require("./
|
|
174
|
+
__exportStar(require("./CreateInvoiceLineItemsFromAwbCostsGroupRes1.js"), exports);
|
|
174
175
|
__exportStar(require("./CreateInvoiceLineItemsFromAwbCostsItem1.js"), exports);
|
|
175
176
|
__exportStar(require("./CreateInvoiceLineItemsFromAwbCostsRejectedAwb1.js"), exports);
|
|
176
177
|
__exportStar(require("./CreateInvoiceLineItemsFromAwbCostsRejectedReasonEnum1.js"), exports);
|
|
177
178
|
__exportStar(require("./CreateInvoiceLineItemsFromAwbCostsRes.js"), exports);
|
|
178
|
-
__exportStar(require("./CreateInvoiceLineItemsFromLineItemsRes.js"), exports);
|
|
179
179
|
__exportStar(require("./CreateOffChrtOrgRes.js"), exports);
|
|
180
180
|
__exportStar(require("./CreateStripeConnectAccountRes.js"), exports);
|
|
181
181
|
__exportStar(require("./CredentialInfoRes.js"), exports);
|
|
@@ -276,11 +276,13 @@ __exportStar(require("./HolidayRate1.js"), exports);
|
|
|
276
276
|
__exportStar(require("./InternalDelegationJwtReq.js"), exports);
|
|
277
277
|
__exportStar(require("./InternalDelegationJwtRes.js"), exports);
|
|
278
278
|
__exportStar(require("./Invoice1.js"), exports);
|
|
279
|
+
__exportStar(require("./InvoiceClientCreate1.js"), exports);
|
|
280
|
+
__exportStar(require("./InvoiceCreateFromOrdersReq.js"), exports);
|
|
281
|
+
__exportStar(require("./InvoiceCreateFromOrdersRes.js"), exports);
|
|
282
|
+
__exportStar(require("./InvoiceCreateReq.js"), exports);
|
|
279
283
|
__exportStar(require("./InvoiceExpandedListItem.js"), exports);
|
|
280
284
|
__exportStar(require("./InvoiceExpandedRes.js"), exports);
|
|
281
285
|
__exportStar(require("./InvoiceLineItem1.js"), exports);
|
|
282
|
-
__exportStar(require("./InvoiceLineItemAmountTransformation1.js"), exports);
|
|
283
|
-
__exportStar(require("./InvoiceLineItemAmountTransformationTypeEnum1.js"), exports);
|
|
284
286
|
__exportStar(require("./InvoiceLineItemClientCreate1.js"), exports);
|
|
285
287
|
__exportStar(require("./InvoiceLineItemCurrencyConversion1.js"), exports);
|
|
286
288
|
__exportStar(require("./InvoiceLineItemExpandedListItem.js"), exports);
|
|
@@ -298,9 +300,12 @@ __exportStar(require("./InvoiceLineItemsDeleteManyRes.js"), exports);
|
|
|
298
300
|
__exportStar(require("./InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.js"), exports);
|
|
299
301
|
__exportStar(require("./InvoiceListRes.js"), exports);
|
|
300
302
|
__exportStar(require("./InvoiceMergeStatusEnum1.js"), exports);
|
|
303
|
+
__exportStar(require("./InvoicePreviewFromOrdersRes.js"), exports);
|
|
304
|
+
__exportStar(require("./InvoicePreviewRes.js"), exports);
|
|
301
305
|
__exportStar(require("./InvoiceSortByEnum.js"), exports);
|
|
302
306
|
__exportStar(require("./InvoiceStatusEnum1.js"), exports);
|
|
303
307
|
__exportStar(require("./InvoiceStripeStatusEnum1.js"), exports);
|
|
308
|
+
__exportStar(require("./InvoiceTaxCalculation1.js"), exports);
|
|
304
309
|
__exportStar(require("./InvoiceTypeEnum1.js"), exports);
|
|
305
310
|
__exportStar(require("./LineString.js"), exports);
|
|
306
311
|
__exportStar(require("./Listing1.js"), exports);
|
|
@@ -570,7 +575,10 @@ __exportStar(require("./TaskListToApplyToOrder1.js"), exports);
|
|
|
570
575
|
__exportStar(require("./TaskListToApplyToOrderExpanded.js"), exports);
|
|
571
576
|
__exportStar(require("./TaskStatusEnum1.js"), exports);
|
|
572
577
|
__exportStar(require("./TaskWaitTimeGeofenceRes.js"), exports);
|
|
573
|
-
__exportStar(require("./
|
|
578
|
+
__exportStar(require("./TaxConfiguration1.js"), exports);
|
|
579
|
+
__exportStar(require("./TaxConfigurationListRes.js"), exports);
|
|
580
|
+
__exportStar(require("./TaxConfigurationSortByEnum.js"), exports);
|
|
581
|
+
__exportStar(require("./TaxRule1.js"), exports);
|
|
574
582
|
__exportStar(require("./TemplateRes.js"), exports);
|
|
575
583
|
__exportStar(require("./TimeBucket.js"), exports);
|
|
576
584
|
__exportStar(require("./TimeGranularity.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.1000.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -24,8 +24,8 @@ export class ChrtClient {
|
|
|
24
24
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
25
25
|
"X-Fern-Language": "JavaScript",
|
|
26
26
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
27
|
-
"X-Fern-SDK-Version": "1.
|
|
28
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
27
|
+
"X-Fern-SDK-Version": "1.1000.0",
|
|
28
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.1000.0",
|
|
29
29
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
30
30
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
31
31
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -8,6 +8,7 @@ import { ChrtGroundProviderRates } from "../resources/chrtGroundProviderRates/cl
|
|
|
8
8
|
import { InvoiceLineItems } from "../resources/invoiceLineItems/client/Client.mjs";
|
|
9
9
|
import { Invoices } from "../resources/invoices/client/Client.mjs";
|
|
10
10
|
import { Orders } from "../resources/orders/client/Client.mjs";
|
|
11
|
+
import { TaxConfigurations } from "../resources/taxConfigurations/client/Client.mjs";
|
|
11
12
|
export declare namespace BillingNew {
|
|
12
13
|
interface Options {
|
|
13
14
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -26,10 +27,12 @@ export declare class BillingNew {
|
|
|
26
27
|
protected _invoiceLineItems: InvoiceLineItems | undefined;
|
|
27
28
|
protected _invoices: Invoices | undefined;
|
|
28
29
|
protected _orders: Orders | undefined;
|
|
30
|
+
protected _taxConfigurations: TaxConfigurations | undefined;
|
|
29
31
|
constructor(_options?: BillingNew.Options);
|
|
30
32
|
get billingPeriods(): BillingPeriods;
|
|
31
33
|
get chrtGroundProviderRates(): ChrtGroundProviderRates;
|
|
32
34
|
get invoiceLineItems(): InvoiceLineItems;
|
|
33
35
|
get invoices(): Invoices;
|
|
34
36
|
get orders(): Orders;
|
|
37
|
+
get taxConfigurations(): TaxConfigurations;
|
|
35
38
|
}
|
|
@@ -6,6 +6,7 @@ import { ChrtGroundProviderRates } from "../resources/chrtGroundProviderRates/cl
|
|
|
6
6
|
import { InvoiceLineItems } from "../resources/invoiceLineItems/client/Client.mjs";
|
|
7
7
|
import { Invoices } from "../resources/invoices/client/Client.mjs";
|
|
8
8
|
import { Orders } from "../resources/orders/client/Client.mjs";
|
|
9
|
+
import { TaxConfigurations } from "../resources/taxConfigurations/client/Client.mjs";
|
|
9
10
|
export class BillingNew {
|
|
10
11
|
constructor(_options = {}) {
|
|
11
12
|
this._options = _options;
|
|
@@ -30,4 +31,8 @@ export class BillingNew {
|
|
|
30
31
|
var _a;
|
|
31
32
|
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Orders(this._options)));
|
|
32
33
|
}
|
|
34
|
+
get taxConfigurations() {
|
|
35
|
+
var _a;
|
|
36
|
+
return ((_a = this._taxConfigurations) !== null && _a !== void 0 ? _a : (this._taxConfigurations = new TaxConfigurations(this._options)));
|
|
37
|
+
}
|
|
33
38
|
}
|
|
@@ -31,7 +31,7 @@ export declare class BillingPeriods {
|
|
|
31
31
|
protected readonly _options: BillingPeriods.Options;
|
|
32
32
|
constructor(_options?: BillingPeriods.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Closes an open billing period and creates one approved line item
|
|
34
|
+
* Closes an open billing period and creates one approved line item without assigning an invoice. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (BillingPeriodCloseRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} billingPeriodId
|
|
37
37
|
* @param {BillingPeriods.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -41,7 +41,7 @@ export declare class BillingPeriods {
|
|
|
41
41
|
* @example
|
|
42
42
|
* await client.billingNew.billingPeriods.closeV1("billing_period_id")
|
|
43
43
|
*/
|
|
44
|
-
closeV1(billingPeriodId: string, requestOptions?: BillingPeriods.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
44
|
+
closeV1(billingPeriodId: string, requestOptions?: BillingPeriods.RequestOptions): core.HttpResponsePromise<Chrt.BillingPeriodCloseRes>;
|
|
45
45
|
private __closeV1;
|
|
46
46
|
/**
|
|
47
47
|
* Creates an open owner-scoped billing period. | authz: allowed_org_types=[provider], min_org_role=operator | (BillingPeriodClientCreate1) -> (BillingPeriod1)
|
|
@@ -20,7 +20,7 @@ export class BillingPeriods {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Closes an open billing period and creates one approved line item
|
|
23
|
+
* Closes an open billing period and creates one approved line item without assigning an invoice. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (BillingPeriodCloseRes)
|
|
24
24
|
*
|
|
25
25
|
* @param {string} billingPeriodId
|
|
26
26
|
* @param {BillingPeriods.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -36,9 +36,6 @@ export interface ChrtGroundProviderRatesClientCreate1 {
|
|
|
36
36
|
schema_version: number;
|
|
37
37
|
service_line?: Chrt.ServiceLineEnum;
|
|
38
38
|
shipper_account_id?: string | null;
|
|
39
|
-
tax_1?: Chrt.TaxRate1 | null;
|
|
40
|
-
tax_2?: Chrt.TaxRate1 | null;
|
|
41
|
-
tax_3?: Chrt.TaxRate1 | null;
|
|
42
39
|
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
43
40
|
wait_time?: Chrt.WaitTimeRate1 | null;
|
|
44
41
|
weekend?: Chrt.WeekendRate1 | null;
|
|
@@ -39,12 +39,6 @@ export interface ChrtGroundProviderRatesClientUpdate1 {
|
|
|
39
39
|
pick_and_hold?: Chrt.PickAndHoldRate1 | null;
|
|
40
40
|
pick_and_hold__set_to_None?: boolean;
|
|
41
41
|
service_line?: Chrt.ServiceLineEnum | null;
|
|
42
|
-
tax_1?: Chrt.TaxRate1 | null;
|
|
43
|
-
tax_1__set_to_None?: boolean;
|
|
44
|
-
tax_2?: Chrt.TaxRate1 | null;
|
|
45
|
-
tax_2__set_to_None?: boolean;
|
|
46
|
-
tax_3?: Chrt.TaxRate1 | null;
|
|
47
|
-
tax_3__set_to_None?: boolean;
|
|
48
42
|
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
49
43
|
wait_time?: Chrt.WaitTimeRate1 | null;
|
|
50
44
|
wait_time__set_to_None?: boolean;
|
|
@@ -3,8 +3,10 @@ export * as chrtGroundProviderRates from "./chrtGroundProviderRates/index.mjs";
|
|
|
3
3
|
export * as invoiceLineItems from "./invoiceLineItems/index.mjs";
|
|
4
4
|
export * as invoices from "./invoices/index.mjs";
|
|
5
5
|
export * as orders from "./orders/index.mjs";
|
|
6
|
+
export * as taxConfigurations from "./taxConfigurations/index.mjs";
|
|
6
7
|
export * from "./billingPeriods/client/requests/index.mjs";
|
|
7
8
|
export * from "./chrtGroundProviderRates/client/requests/index.mjs";
|
|
8
9
|
export * from "./invoiceLineItems/client/requests/index.mjs";
|
|
9
10
|
export * from "./invoices/client/requests/index.mjs";
|
|
10
11
|
export * from "./orders/client/requests/index.mjs";
|
|
12
|
+
export * from "./taxConfigurations/client/requests/index.mjs";
|
|
@@ -3,8 +3,10 @@ export * as chrtGroundProviderRates from "./chrtGroundProviderRates/index.mjs";
|
|
|
3
3
|
export * as invoiceLineItems from "./invoiceLineItems/index.mjs";
|
|
4
4
|
export * as invoices from "./invoices/index.mjs";
|
|
5
5
|
export * as orders from "./orders/index.mjs";
|
|
6
|
+
export * as taxConfigurations from "./taxConfigurations/index.mjs";
|
|
6
7
|
export * from "./billingPeriods/client/requests/index.mjs";
|
|
7
8
|
export * from "./chrtGroundProviderRates/client/requests/index.mjs";
|
|
8
9
|
export * from "./invoiceLineItems/client/requests/index.mjs";
|
|
9
10
|
export * from "./invoices/client/requests/index.mjs";
|
|
10
11
|
export * from "./orders/client/requests/index.mjs";
|
|
12
|
+
export * from "./taxConfigurations/client/requests/index.mjs";
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import * as environments from "../../../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../../../core/index.mjs";
|
|
6
6
|
import * as Chrt from "../../../../../index.mjs";
|
|
7
|
-
import { Export } from "../resources/export/client/Client.mjs";
|
|
8
7
|
export declare namespace InvoiceLineItems {
|
|
9
8
|
interface Options {
|
|
10
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -30,11 +29,9 @@ export declare namespace InvoiceLineItems {
|
|
|
30
29
|
}
|
|
31
30
|
export declare class InvoiceLineItems {
|
|
32
31
|
protected readonly _options: InvoiceLineItems.Options;
|
|
33
|
-
protected _export: Export | undefined;
|
|
34
32
|
constructor(_options?: InvoiceLineItems.Options);
|
|
35
|
-
get export(): Export;
|
|
36
33
|
/**
|
|
37
|
-
* Creates account-split ad-hoc line items
|
|
34
|
+
* Creates account-split ad-hoc line items without assigning invoices. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItem1])
|
|
38
35
|
*
|
|
39
36
|
* @param {Chrt.AdHocInvoiceLineItemsReq} request
|
|
40
37
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -113,25 +110,6 @@ export declare class InvoiceLineItems {
|
|
|
113
110
|
*/
|
|
114
111
|
listByOrderV1(orderId: string, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemsByOrderExpandedRes>;
|
|
115
112
|
private __listByOrderV1;
|
|
116
|
-
/**
|
|
117
|
-
* Creates optionally order-attributed line items from an amount and attaches them to a draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators, order_executor_org_operators, task_group_coordinator_operators, executor_org_operators] when order-attributed | (CreateInvoiceLineItemsFromAmountReq) -> (CreateInvoiceLineItemsFromAmountRes)
|
|
118
|
-
*
|
|
119
|
-
* @param {Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq} request
|
|
120
|
-
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
-
*
|
|
122
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* await client.billingNew.invoiceLineItems.createFromAmountV1({
|
|
126
|
-
* amount: 1.1,
|
|
127
|
-
* currency_code: "USD",
|
|
128
|
-
* description: "description",
|
|
129
|
-
* invoice_type: "accounts_receivable",
|
|
130
|
-
* line_item_type: "base_rate"
|
|
131
|
-
* })
|
|
132
|
-
*/
|
|
133
|
-
createFromAmountV1(request: Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CreateInvoiceLineItemsFromAmountRes>;
|
|
134
|
-
private __createFromAmountV1;
|
|
135
113
|
/**
|
|
136
114
|
* Creates account-scoped airline payables from AWB costs; receivables remain rate-sheet-driven. | authz: allowed_org_types=[provider], min_org_role=operator | (CreateInvoiceLineItemsFromAwbCostsReq) -> (CreateInvoiceLineItemsFromAwbCostsRes)
|
|
137
115
|
*
|
|
@@ -152,58 +130,39 @@ export declare class InvoiceLineItems {
|
|
|
152
130
|
createFromAwbCostsV1(request: Chrt.billingNew.CreateInvoiceLineItemsFromAwbCostsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CreateInvoiceLineItemsFromAwbCostsRes>;
|
|
153
131
|
private __createFromAwbCostsV1;
|
|
154
132
|
/**
|
|
155
|
-
*
|
|
133
|
+
* Deletes owner-scoped line items and rebuilds every affected draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsDeleteManyReq) -> (InvoiceLineItemsDeleteManyRes)
|
|
156
134
|
*
|
|
157
|
-
* @param {Chrt.billingNew.
|
|
135
|
+
* @param {Chrt.billingNew.InvoiceLineItemsDeleteManyReq} request
|
|
158
136
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
159
137
|
*
|
|
160
138
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
161
139
|
*
|
|
162
140
|
* @example
|
|
163
|
-
* await client.billingNew.invoiceLineItems.
|
|
164
|
-
*
|
|
165
|
-
* invoice_line_item_amount_transformation: {
|
|
166
|
-
* transformation_type: "percent",
|
|
167
|
-
* value: 1.1
|
|
168
|
-
* },
|
|
169
|
-
* invoice_type: "accounts_receivable",
|
|
170
|
-
* line_item_type: "base_rate",
|
|
171
|
-
* source_invoice_line_items: [{
|
|
172
|
-
* _id: "_id",
|
|
173
|
-
* created_at_timestamp: "2024-01-15T09:30:00Z",
|
|
174
|
-
* created_by_user_id: "created_by_user_id",
|
|
175
|
-
* currency_code: "USD",
|
|
176
|
-
* description: "description",
|
|
177
|
-
* invoice_type: "accounts_receivable",
|
|
178
|
-
* last_edited_at_timestamp: "2024-01-15T09:30:00Z",
|
|
179
|
-
* last_edited_by_user_id: "last_edited_by_user_id",
|
|
180
|
-
* line_item_type: "base_rate",
|
|
181
|
-
* owned_by_org_id: "owned_by_org_id",
|
|
182
|
-
* quantity: 1.1,
|
|
183
|
-
* schema_version: 1,
|
|
184
|
-
* unit_price: 1.1
|
|
185
|
-
* }]
|
|
141
|
+
* await client.billingNew.invoiceLineItems.deleteManyV1({
|
|
142
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"]
|
|
186
143
|
* })
|
|
187
144
|
*/
|
|
188
|
-
|
|
189
|
-
private
|
|
145
|
+
deleteManyV1(request: Chrt.billingNew.InvoiceLineItemsDeleteManyReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemsDeleteManyRes>;
|
|
146
|
+
private __deleteManyV1;
|
|
190
147
|
/**
|
|
191
|
-
*
|
|
148
|
+
* Lists up to 1,000 accounts-receivable and accounts-payable line items for the selected Orders, with shipment context and optional estimated taxes for uninvoiced charges (included by default). | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemExportListReq) -> (InvoiceLineItemExportListRes)
|
|
192
149
|
*
|
|
193
|
-
* @param {Chrt.billingNew.
|
|
150
|
+
* @param {Chrt.billingNew.InvoiceLineItemExportListReq} request
|
|
194
151
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
152
|
*
|
|
196
153
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
197
154
|
*
|
|
198
155
|
* @example
|
|
199
|
-
* await client.billingNew.invoiceLineItems.
|
|
200
|
-
*
|
|
156
|
+
* await client.billingNew.invoiceLineItems.listExportV1({
|
|
157
|
+
* page: 1,
|
|
158
|
+
* page_size: 1,
|
|
159
|
+
* order_ids: ["order_ids"]
|
|
201
160
|
* })
|
|
202
161
|
*/
|
|
203
|
-
|
|
204
|
-
private
|
|
162
|
+
listExportV1(request: Chrt.billingNew.InvoiceLineItemExportListReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemExportListRes>;
|
|
163
|
+
private __listExportV1;
|
|
205
164
|
/**
|
|
206
|
-
* Creates rate-sheet-derived line items
|
|
165
|
+
* Creates rate-sheet-derived line items without assigning invoices. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[task_group_coordinator_operators] | (InvoiceLineItemsFromChrtGroundProviderRateSheetsReq) -> (list[InvoiceLineItem1])
|
|
207
166
|
*
|
|
208
167
|
* @param {Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq} request
|
|
209
168
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -272,21 +231,6 @@ export declare class InvoiceLineItems {
|
|
|
272
231
|
*/
|
|
273
232
|
listV1(request?: Chrt.billingNew.InvoiceLineItemsListV1Request, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemListRes>;
|
|
274
233
|
private __listV1;
|
|
275
|
-
/**
|
|
276
|
-
* Recalculates existing tax line items from current non-tax items in the same billing scope. | authz: allowed_org_types=[provider], min_org_role=operator | (RecalculateOrderTaxInvoiceLineItemsReq) -> (list[InvoiceLineItem1])
|
|
277
|
-
*
|
|
278
|
-
* @param {Chrt.billingNew.RecalculateOrderTaxInvoiceLineItemsReq} request
|
|
279
|
-
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
280
|
-
*
|
|
281
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
282
|
-
*
|
|
283
|
-
* @example
|
|
284
|
-
* await client.billingNew.invoiceLineItems.recalculateTaxesV1({
|
|
285
|
-
* order_id: "order_id"
|
|
286
|
-
* })
|
|
287
|
-
*/
|
|
288
|
-
recalculateTaxesV1(request: Chrt.billingNew.RecalculateOrderTaxInvoiceLineItemsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1[]>;
|
|
289
|
-
private __recalculateTaxesV1;
|
|
290
234
|
/**
|
|
291
235
|
* Applies one currency conversion independently to each selected order and reports each outcome. | authz: allowed_org_types=[provider], min_org_role=operator | (ReceivablesAcrossOrdersCurrencyConversionUpdateReq) -> (list[ReceivablesAcrossOrdersCurrencyConversionOrderRes])
|
|
292
236
|
*
|
|
@@ -304,7 +248,7 @@ export declare class InvoiceLineItems {
|
|
|
304
248
|
updateCurrencyConversionForReceivablesAcrossOrdersV1(request: Chrt.billingNew.ReceivablesAcrossOrdersCurrencyConversionUpdateReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.ReceivablesAcrossOrdersCurrencyConversionOrderRes[]>;
|
|
305
249
|
private __updateCurrencyConversionForReceivablesAcrossOrdersV1;
|
|
306
250
|
/**
|
|
307
|
-
*
|
|
251
|
+
* Converts uninvoiced charges or updates exchange rates within their draft invoice currency. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])
|
|
308
252
|
*
|
|
309
253
|
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateManyReq} request
|
|
310
254
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|