@chrt-inc/typescript-sdk 1.998.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/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/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 -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 +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/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/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 -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 +520 -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
|
@@ -44,6 +44,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
47
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
59
|
exports.InvoiceLineItems = void 0;
|
|
49
60
|
const environments = __importStar(require("../../../../../../environments.js"));
|
|
@@ -51,17 +62,12 @@ const core = __importStar(require("../../../../../../core/index.js"));
|
|
|
51
62
|
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
63
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
64
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
-
const Client_js_1 = require("../resources/export/client/Client.js");
|
|
55
65
|
class InvoiceLineItems {
|
|
56
66
|
constructor(_options = {}) {
|
|
57
67
|
this._options = _options;
|
|
58
68
|
}
|
|
59
|
-
get export() {
|
|
60
|
-
var _a;
|
|
61
|
-
return ((_a = this._export) !== null && _a !== void 0 ? _a : (this._export = new Client_js_1.Export(this._options)));
|
|
62
|
-
}
|
|
63
69
|
/**
|
|
64
|
-
* Creates account-split ad-hoc line items
|
|
70
|
+
* Creates account-split ad-hoc line items without assigning invoices. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItem1])
|
|
65
71
|
*
|
|
66
72
|
* @param {Chrt.AdHocInvoiceLineItemsReq} request
|
|
67
73
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -336,77 +342,6 @@ class InvoiceLineItems {
|
|
|
336
342
|
}
|
|
337
343
|
});
|
|
338
344
|
}
|
|
339
|
-
/**
|
|
340
|
-
* 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)
|
|
341
|
-
*
|
|
342
|
-
* @param {Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq} request
|
|
343
|
-
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
344
|
-
*
|
|
345
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
346
|
-
*
|
|
347
|
-
* @example
|
|
348
|
-
* await client.billingNew.invoiceLineItems.createFromAmountV1({
|
|
349
|
-
* amount: 1.1,
|
|
350
|
-
* currency_code: "USD",
|
|
351
|
-
* description: "description",
|
|
352
|
-
* invoice_type: "accounts_receivable",
|
|
353
|
-
* line_item_type: "base_rate"
|
|
354
|
-
* })
|
|
355
|
-
*/
|
|
356
|
-
createFromAmountV1(request, requestOptions) {
|
|
357
|
-
return core.HttpResponsePromise.fromPromise(this.__createFromAmountV1(request, requestOptions));
|
|
358
|
-
}
|
|
359
|
-
__createFromAmountV1(request, requestOptions) {
|
|
360
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
-
var _a, _b, _c, _d;
|
|
362
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
363
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
364
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoice_line_items/create_from_amount/v1"),
|
|
365
|
-
method: "POST",
|
|
366
|
-
headers: _headers,
|
|
367
|
-
contentType: "application/json",
|
|
368
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
369
|
-
requestType: "json",
|
|
370
|
-
body: request,
|
|
371
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
372
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
373
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
374
|
-
});
|
|
375
|
-
if (_response.ok) {
|
|
376
|
-
return {
|
|
377
|
-
data: _response.body,
|
|
378
|
-
rawResponse: _response.rawResponse,
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
if (_response.error.reason === "status-code") {
|
|
382
|
-
switch (_response.error.statusCode) {
|
|
383
|
-
case 422:
|
|
384
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
385
|
-
default:
|
|
386
|
-
throw new errors.ChrtError({
|
|
387
|
-
statusCode: _response.error.statusCode,
|
|
388
|
-
body: _response.error.body,
|
|
389
|
-
rawResponse: _response.rawResponse,
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
switch (_response.error.reason) {
|
|
394
|
-
case "non-json":
|
|
395
|
-
throw new errors.ChrtError({
|
|
396
|
-
statusCode: _response.error.statusCode,
|
|
397
|
-
body: _response.error.rawBody,
|
|
398
|
-
rawResponse: _response.rawResponse,
|
|
399
|
-
});
|
|
400
|
-
case "timeout":
|
|
401
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/create_from_amount/v1.");
|
|
402
|
-
case "unknown":
|
|
403
|
-
throw new errors.ChrtError({
|
|
404
|
-
message: _response.error.errorMessage,
|
|
405
|
-
rawResponse: _response.rawResponse,
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
345
|
/**
|
|
411
346
|
* Creates account-scoped airline payables from AWB costs; receivables remain rate-sheet-driven. | authz: allowed_org_types=[provider], min_org_role=operator | (CreateInvoiceLineItemsFromAwbCostsReq) -> (CreateInvoiceLineItemsFromAwbCostsRes)
|
|
412
347
|
*
|
|
@@ -479,49 +414,28 @@ class InvoiceLineItems {
|
|
|
479
414
|
});
|
|
480
415
|
}
|
|
481
416
|
/**
|
|
482
|
-
*
|
|
417
|
+
* Deletes owner-scoped line items and rebuilds every affected draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsDeleteManyReq) -> (InvoiceLineItemsDeleteManyRes)
|
|
483
418
|
*
|
|
484
|
-
* @param {Chrt.billingNew.
|
|
419
|
+
* @param {Chrt.billingNew.InvoiceLineItemsDeleteManyReq} request
|
|
485
420
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
486
421
|
*
|
|
487
422
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
488
423
|
*
|
|
489
424
|
* @example
|
|
490
|
-
* await client.billingNew.invoiceLineItems.
|
|
491
|
-
*
|
|
492
|
-
* invoice_line_item_amount_transformation: {
|
|
493
|
-
* transformation_type: "percent",
|
|
494
|
-
* value: 1.1
|
|
495
|
-
* },
|
|
496
|
-
* invoice_type: "accounts_receivable",
|
|
497
|
-
* line_item_type: "base_rate",
|
|
498
|
-
* source_invoice_line_items: [{
|
|
499
|
-
* _id: "_id",
|
|
500
|
-
* created_at_timestamp: "2024-01-15T09:30:00Z",
|
|
501
|
-
* created_by_user_id: "created_by_user_id",
|
|
502
|
-
* currency_code: "USD",
|
|
503
|
-
* description: "description",
|
|
504
|
-
* invoice_type: "accounts_receivable",
|
|
505
|
-
* last_edited_at_timestamp: "2024-01-15T09:30:00Z",
|
|
506
|
-
* last_edited_by_user_id: "last_edited_by_user_id",
|
|
507
|
-
* line_item_type: "base_rate",
|
|
508
|
-
* owned_by_org_id: "owned_by_org_id",
|
|
509
|
-
* quantity: 1.1,
|
|
510
|
-
* schema_version: 1,
|
|
511
|
-
* unit_price: 1.1
|
|
512
|
-
* }]
|
|
425
|
+
* await client.billingNew.invoiceLineItems.deleteManyV1({
|
|
426
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"]
|
|
513
427
|
* })
|
|
514
428
|
*/
|
|
515
|
-
|
|
516
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
429
|
+
deleteManyV1(request, requestOptions) {
|
|
430
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteManyV1(request, requestOptions));
|
|
517
431
|
}
|
|
518
|
-
|
|
432
|
+
__deleteManyV1(request, requestOptions) {
|
|
519
433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
520
434
|
var _a, _b, _c, _d;
|
|
521
435
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
522
436
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
523
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoice_line_items/
|
|
524
|
-
method: "
|
|
437
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoice_line_items/delete_many/v1"),
|
|
438
|
+
method: "DELETE",
|
|
525
439
|
headers: _headers,
|
|
526
440
|
contentType: "application/json",
|
|
527
441
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -532,10 +446,7 @@ class InvoiceLineItems {
|
|
|
532
446
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
533
447
|
});
|
|
534
448
|
if (_response.ok) {
|
|
535
|
-
return {
|
|
536
|
-
data: _response.body,
|
|
537
|
-
rawResponse: _response.rawResponse,
|
|
538
|
-
};
|
|
449
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
539
450
|
}
|
|
540
451
|
if (_response.error.reason === "status-code") {
|
|
541
452
|
switch (_response.error.statusCode) {
|
|
@@ -557,7 +468,7 @@ class InvoiceLineItems {
|
|
|
557
468
|
rawResponse: _response.rawResponse,
|
|
558
469
|
});
|
|
559
470
|
case "timeout":
|
|
560
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
471
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /billing_new/invoice_line_items/delete_many/v1.");
|
|
561
472
|
case "unknown":
|
|
562
473
|
throw new errors.ChrtError({
|
|
563
474
|
message: _response.error.errorMessage,
|
|
@@ -567,33 +478,43 @@ class InvoiceLineItems {
|
|
|
567
478
|
});
|
|
568
479
|
}
|
|
569
480
|
/**
|
|
570
|
-
*
|
|
481
|
+
* 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)
|
|
571
482
|
*
|
|
572
|
-
* @param {Chrt.billingNew.
|
|
483
|
+
* @param {Chrt.billingNew.InvoiceLineItemExportListReq} request
|
|
573
484
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
574
485
|
*
|
|
575
486
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
576
487
|
*
|
|
577
488
|
* @example
|
|
578
|
-
* await client.billingNew.invoiceLineItems.
|
|
579
|
-
*
|
|
489
|
+
* await client.billingNew.invoiceLineItems.listExportV1({
|
|
490
|
+
* page: 1,
|
|
491
|
+
* page_size: 1,
|
|
492
|
+
* order_ids: ["order_ids"]
|
|
580
493
|
* })
|
|
581
494
|
*/
|
|
582
|
-
|
|
583
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
495
|
+
listExportV1(request, requestOptions) {
|
|
496
|
+
return core.HttpResponsePromise.fromPromise(this.__listExportV1(request, requestOptions));
|
|
584
497
|
}
|
|
585
|
-
|
|
498
|
+
__listExportV1(request, requestOptions) {
|
|
586
499
|
return __awaiter(this, void 0, void 0, function* () {
|
|
587
|
-
var _a, _b, _c, _d;
|
|
588
|
-
|
|
589
|
-
const
|
|
590
|
-
|
|
591
|
-
|
|
500
|
+
var _a, _b, _c, _d, _e, _f;
|
|
501
|
+
const { page, page_size: pageSize } = request, _body = __rest(request, ["page", "page_size"]);
|
|
502
|
+
const _queryParams = {};
|
|
503
|
+
if (page !== undefined) {
|
|
504
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
505
|
+
}
|
|
506
|
+
if (pageSize !== undefined) {
|
|
507
|
+
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
508
|
+
}
|
|
509
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
510
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
511
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "billing_new/invoice_line_items/export/list/v1"),
|
|
512
|
+
method: "POST",
|
|
592
513
|
headers: _headers,
|
|
593
514
|
contentType: "application/json",
|
|
594
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
515
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
595
516
|
requestType: "json",
|
|
596
|
-
body:
|
|
517
|
+
body: _body,
|
|
597
518
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
598
519
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
599
520
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -621,7 +542,7 @@ class InvoiceLineItems {
|
|
|
621
542
|
rawResponse: _response.rawResponse,
|
|
622
543
|
});
|
|
623
544
|
case "timeout":
|
|
624
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
545
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/export/list/v1.");
|
|
625
546
|
case "unknown":
|
|
626
547
|
throw new errors.ChrtError({
|
|
627
548
|
message: _response.error.errorMessage,
|
|
@@ -631,7 +552,7 @@ class InvoiceLineItems {
|
|
|
631
552
|
});
|
|
632
553
|
}
|
|
633
554
|
/**
|
|
634
|
-
* Creates rate-sheet-derived line items
|
|
555
|
+
* 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])
|
|
635
556
|
*
|
|
636
557
|
* @param {Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq} request
|
|
637
558
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -929,70 +850,6 @@ class InvoiceLineItems {
|
|
|
929
850
|
}
|
|
930
851
|
});
|
|
931
852
|
}
|
|
932
|
-
/**
|
|
933
|
-
* 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])
|
|
934
|
-
*
|
|
935
|
-
* @param {Chrt.billingNew.RecalculateOrderTaxInvoiceLineItemsReq} request
|
|
936
|
-
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
937
|
-
*
|
|
938
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
939
|
-
*
|
|
940
|
-
* @example
|
|
941
|
-
* await client.billingNew.invoiceLineItems.recalculateTaxesV1({
|
|
942
|
-
* order_id: "order_id"
|
|
943
|
-
* })
|
|
944
|
-
*/
|
|
945
|
-
recalculateTaxesV1(request, requestOptions) {
|
|
946
|
-
return core.HttpResponsePromise.fromPromise(this.__recalculateTaxesV1(request, requestOptions));
|
|
947
|
-
}
|
|
948
|
-
__recalculateTaxesV1(request, requestOptions) {
|
|
949
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
950
|
-
var _a, _b, _c, _d;
|
|
951
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
952
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
953
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoice_line_items/recalculate_taxes/v1"),
|
|
954
|
-
method: "POST",
|
|
955
|
-
headers: _headers,
|
|
956
|
-
contentType: "application/json",
|
|
957
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
958
|
-
requestType: "json",
|
|
959
|
-
body: request,
|
|
960
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
961
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
962
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
963
|
-
});
|
|
964
|
-
if (_response.ok) {
|
|
965
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
966
|
-
}
|
|
967
|
-
if (_response.error.reason === "status-code") {
|
|
968
|
-
switch (_response.error.statusCode) {
|
|
969
|
-
case 422:
|
|
970
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
971
|
-
default:
|
|
972
|
-
throw new errors.ChrtError({
|
|
973
|
-
statusCode: _response.error.statusCode,
|
|
974
|
-
body: _response.error.body,
|
|
975
|
-
rawResponse: _response.rawResponse,
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
switch (_response.error.reason) {
|
|
980
|
-
case "non-json":
|
|
981
|
-
throw new errors.ChrtError({
|
|
982
|
-
statusCode: _response.error.statusCode,
|
|
983
|
-
body: _response.error.rawBody,
|
|
984
|
-
rawResponse: _response.rawResponse,
|
|
985
|
-
});
|
|
986
|
-
case "timeout":
|
|
987
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/recalculate_taxes/v1.");
|
|
988
|
-
case "unknown":
|
|
989
|
-
throw new errors.ChrtError({
|
|
990
|
-
message: _response.error.errorMessage,
|
|
991
|
-
rawResponse: _response.rawResponse,
|
|
992
|
-
});
|
|
993
|
-
}
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
853
|
/**
|
|
997
854
|
* 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])
|
|
998
855
|
*
|
|
@@ -1062,7 +919,7 @@ class InvoiceLineItems {
|
|
|
1062
919
|
});
|
|
1063
920
|
}
|
|
1064
921
|
/**
|
|
1065
|
-
*
|
|
922
|
+
* Converts uninvoiced charges or updates exchange rates within their draft invoice currency. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])
|
|
1066
923
|
*
|
|
1067
924
|
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateManyReq} request
|
|
1068
925
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export { type InvoiceLineItemsApproveManyReq } from "./InvoiceLineItemsApproveManyReq.js";
|
|
2
|
-
export { type CreateInvoiceLineItemsFromAmountReq } from "./CreateInvoiceLineItemsFromAmountReq.js";
|
|
3
2
|
export { type CreateInvoiceLineItemsFromAwbCostsReq } from "./CreateInvoiceLineItemsFromAwbCostsReq.js";
|
|
4
|
-
export { type CreateInvoiceLineItemsFromLineItemsReq } from "./CreateInvoiceLineItemsFromLineItemsReq.js";
|
|
5
3
|
export { type InvoiceLineItemsDeleteManyReq } from "./InvoiceLineItemsDeleteManyReq.js";
|
|
4
|
+
export { type InvoiceLineItemExportListReq } from "./InvoiceLineItemExportListReq.js";
|
|
6
5
|
export { type InvoiceLineItemsListV1Request } from "./InvoiceLineItemsListV1Request.js";
|
|
7
|
-
export { type RecalculateOrderTaxInvoiceLineItemsReq } from "./RecalculateOrderTaxInvoiceLineItemsReq.js";
|
|
8
6
|
export { type ReceivablesAcrossOrdersCurrencyConversionUpdateReq } from "./ReceivablesAcrossOrdersCurrencyConversionUpdateReq.js";
|
|
9
7
|
export { type InvoiceLineItemsCurrencyConversionUpdateManyReq } from "./InvoiceLineItemsCurrencyConversionUpdateManyReq.js";
|
|
10
8
|
export { type InvoiceLineItemClientUpdate1 } from "./InvoiceLineItemClientUpdate1.js";
|
|
@@ -44,9 +44,9 @@ export declare class Invoices {
|
|
|
44
44
|
approveV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
45
45
|
private __approveV1;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Creates a new draft invoice, optionally attaching selected uninvoiced charges atomically. Omitted dates derive from completed deliveries; empty drafts and charges without completed delivery dates require explicit bounds. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateReq) -> (PydanticObjectId)
|
|
48
48
|
*
|
|
49
|
-
* @param {Chrt.
|
|
49
|
+
* @param {Chrt.InvoiceCreateReq} request
|
|
50
50
|
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
51
|
*
|
|
52
52
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -58,64 +58,54 @@ export declare class Invoices {
|
|
|
58
58
|
* schema_version: 1
|
|
59
59
|
* })
|
|
60
60
|
*/
|
|
61
|
-
createV1(request: Chrt.
|
|
61
|
+
createV1(request: Chrt.InvoiceCreateReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<string>;
|
|
62
62
|
private __createV1;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Creates one draft from matching order charges and reports skipped items. Billing period dates do not filter charges. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateFromOrdersReq) -> (InvoiceCreateFromOrdersRes)
|
|
65
65
|
*
|
|
66
|
-
* @param {
|
|
66
|
+
* @param {Chrt.InvoiceCreateFromOrdersReq} request
|
|
67
67
|
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.billingNew.invoices.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* @param {string} invoiceId
|
|
80
|
-
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
-
*
|
|
82
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* await client.billingNew.invoices.getExpandedV1("invoice_id")
|
|
72
|
+
* await client.billingNew.invoices.createFromOrdersV1({
|
|
73
|
+
* currency_code: "USD",
|
|
74
|
+
* invoice_type: "accounts_receivable",
|
|
75
|
+
* order_ids: ["order_ids"],
|
|
76
|
+
* schema_version: 1
|
|
77
|
+
* })
|
|
86
78
|
*/
|
|
87
|
-
|
|
88
|
-
private
|
|
79
|
+
createFromOrdersV1(request: Chrt.InvoiceCreateFromOrdersReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceCreateFromOrdersRes>;
|
|
80
|
+
private __createFromOrdersV1;
|
|
89
81
|
/**
|
|
90
|
-
*
|
|
82
|
+
* Hard-deletes a draft invoice and detaches its line items. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
|
|
91
83
|
*
|
|
92
84
|
* @param {string} invoiceId
|
|
93
|
-
* @param {string} invoiceLineItemId
|
|
94
85
|
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
86
|
*
|
|
96
87
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
97
88
|
*
|
|
98
89
|
* @example
|
|
99
|
-
* await client.billingNew.invoices.
|
|
90
|
+
* await client.billingNew.invoices.deleteV1("invoice_id")
|
|
100
91
|
*/
|
|
101
|
-
|
|
102
|
-
private
|
|
92
|
+
deleteV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
93
|
+
private __deleteV1;
|
|
103
94
|
/**
|
|
104
|
-
*
|
|
95
|
+
* Retrieves an owner-scoped invoice with line-item orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)
|
|
105
96
|
*
|
|
106
97
|
* @param {string} invoiceId
|
|
107
|
-
* @param {string} invoiceLineItemId
|
|
108
98
|
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
99
|
*
|
|
110
100
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
111
101
|
*
|
|
112
102
|
* @example
|
|
113
|
-
* await client.billingNew.invoices.
|
|
103
|
+
* await client.billingNew.invoices.getExpandedV1("invoice_id")
|
|
114
104
|
*/
|
|
115
|
-
|
|
116
|
-
private
|
|
105
|
+
getExpandedV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceExpandedRes>;
|
|
106
|
+
private __getExpandedV1;
|
|
117
107
|
/**
|
|
118
|
-
* Attaches
|
|
108
|
+
* Attaches uninvoiced line items to a draft invoice and refreshes its totals and accounts. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsAddReq) -> (Invoice1)
|
|
119
109
|
*
|
|
120
110
|
* @param {string} invoiceId
|
|
121
111
|
* @param {Chrt.billingNew.InvoiceLineItemsAddReq} request
|
|
@@ -176,6 +166,41 @@ export declare class Invoices {
|
|
|
176
166
|
*/
|
|
177
167
|
listV1(request?: Chrt.billingNew.InvoicesListV1Request, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceListRes>;
|
|
178
168
|
private __listV1;
|
|
169
|
+
/**
|
|
170
|
+
* Previews exact uninvoiced charges, current resolved taxes, and explicit or derived billing dates without saving. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateReq) -> (InvoicePreviewRes)
|
|
171
|
+
*
|
|
172
|
+
* @param {Chrt.InvoiceCreateReq} request
|
|
173
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* await client.billingNew.invoices.previewV1({
|
|
179
|
+
* currency_code: "USD",
|
|
180
|
+
* invoice_type: "accounts_receivable",
|
|
181
|
+
* schema_version: 1
|
|
182
|
+
* })
|
|
183
|
+
*/
|
|
184
|
+
previewV1(request: Chrt.InvoiceCreateReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.InvoicePreviewRes>;
|
|
185
|
+
private __previewV1;
|
|
186
|
+
/**
|
|
187
|
+
* Selects matching uninvoiced ordinary charges, reports omitted items, and previews current taxes and billing dates without saving. Period dates do not filter charges. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateFromOrdersReq) -> (InvoicePreviewFromOrdersRes)
|
|
188
|
+
*
|
|
189
|
+
* @param {Chrt.InvoiceCreateFromOrdersReq} request
|
|
190
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* await client.billingNew.invoices.previewFromOrdersV1({
|
|
196
|
+
* currency_code: "USD",
|
|
197
|
+
* invoice_type: "accounts_receivable",
|
|
198
|
+
* order_ids: ["order_ids"],
|
|
199
|
+
* schema_version: 1
|
|
200
|
+
* })
|
|
201
|
+
*/
|
|
202
|
+
previewFromOrdersV1(request: Chrt.InvoiceCreateFromOrdersReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.InvoicePreviewFromOrdersRes>;
|
|
203
|
+
private __previewFromOrdersV1;
|
|
179
204
|
/**
|
|
180
205
|
* Updates the name or description of a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientUpdate1) -> (bool)
|
|
181
206
|
*
|