@chrt-inc/typescript-sdk 1.899.0 → 1.906.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 +6 -3
- package/dist/cjs/api/resources/billingNew/client/Client.js +12 -7
- package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.d.ts +43 -55
- package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.js +91 -133
- package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +11 -3
- package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.d.ts +10 -0
- package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.d.ts → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts} +8 -4
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/billingNew/resources/index.d.ts +4 -2
- package/dist/cjs/api/resources/billingNew/resources/index.js +5 -3
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +109 -8
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +363 -14
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +1 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +70 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +248 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +70 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +9 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +9 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +0 -28
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +0 -120
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +36 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.js +9 -1
- package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +15 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +64 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.d.ts +11 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/AdHocInvoiceLineItem1.d.ts +8 -0
- package/dist/cjs/api/types/AdHocInvoiceLineItem1.js +5 -0
- package/dist/cjs/api/types/AdHocInvoiceLineItemsReq.d.ts +8 -0
- package/dist/cjs/api/types/AdHocInvoiceLineItemsReq.js +5 -0
- package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +10 -3
- package/dist/cjs/api/types/FromPayables1.d.ts +9 -0
- package/dist/cjs/api/types/FromPayables1.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItem1.d.ts +4 -1
- package/dist/cjs/api/types/InvoiceLineItemClientCreate1.d.ts +20 -0
- package/dist/cjs/api/types/InvoiceLineItemClientCreate1.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemServerCreate1.d.ts +33 -0
- package/dist/cjs/api/types/InvoiceLineItemServerCreate1.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemStatusEnum1.d.ts +9 -0
- package/dist/cjs/api/types/InvoiceLineItemStatusEnum1.js +11 -0
- package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.d.ts +4 -1
- package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.js +3 -0
- package/dist/cjs/api/types/InvoiceLineItemsByOrderExpandedRes.d.ts +1 -1
- package/dist/cjs/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.d.ts +7 -0
- package/dist/cjs/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +1 -0
- package/dist/cjs/api/types/OrderBillingAccount1.d.ts +7 -0
- package/dist/cjs/api/types/OrderBillingAccount1.js +5 -0
- package/dist/cjs/api/types/OrderBillingCurrencyTotals1.d.ts +9 -0
- package/dist/cjs/api/types/OrderBillingCurrencyTotals1.js +5 -0
- package/dist/cjs/api/types/OrderBillingExecutor1.d.ts +11 -0
- package/dist/cjs/api/types/OrderBillingExecutor1.js +5 -0
- package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +19 -0
- package/dist/cjs/api/types/OrderBillingExpandedListItem1.js +5 -0
- package/dist/cjs/api/types/OrderBillingExpandedListRes.d.ts +8 -0
- package/dist/cjs/api/types/OrderBillingExpandedListRes.js +5 -0
- package/dist/cjs/api/types/OrderBillingShipper1.d.ts +9 -0
- package/dist/cjs/api/types/OrderBillingShipper1.js +5 -0
- package/dist/cjs/api/types/OrderBillingSortByEnum.d.ts +12 -0
- package/dist/cjs/api/types/OrderBillingSortByEnum.js +14 -0
- package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +1 -0
- package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +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/OrderTemplate1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
- package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +2 -0
- package/dist/cjs/api/types/ResolvedTaskGroupChrtGroundProviderRates1.d.ts +9 -0
- package/dist/cjs/api/types/ResolvedTaskGroupChrtGroundProviderRates1.js +5 -0
- package/dist/cjs/api/types/ServiceLineEnum.d.ts +8 -0
- package/dist/cjs/api/types/ServiceLineEnum.js +10 -0
- package/dist/cjs/api/types/Task1.d.ts +1 -0
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -0
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +0 -2
- package/dist/cjs/api/types/TaskGroupChrtGroundProviderRateSheetIds1.d.ts +7 -0
- package/dist/cjs/api/types/TaskGroupChrtGroundProviderRateSheetIds1.js +5 -0
- package/dist/cjs/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.js +5 -0
- package/dist/cjs/api/types/TaxRate1.d.ts +9 -0
- package/dist/cjs/api/types/TaxRate1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +19 -1
- package/dist/cjs/api/types/index.js +19 -1
- 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 +6 -3
- package/dist/esm/api/resources/billingNew/client/Client.mjs +8 -3
- package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.d.mts +43 -55
- package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.mjs +89 -131
- package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +11 -3
- package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +10 -0
- package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.d.mts → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts} +8 -4
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/billingNew/resources/index.d.mts +4 -2
- package/dist/esm/api/resources/billingNew/resources/index.mjs +4 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +109 -8
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +363 -14
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +1 -1
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +70 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +211 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +70 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +9 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +9 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +0 -28
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +0 -120
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +36 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.mjs +9 -1
- package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +15 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +64 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.d.mts +11 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/AdHocInvoiceLineItem1.d.mts +8 -0
- package/dist/esm/api/types/AdHocInvoiceLineItem1.mjs +4 -0
- package/dist/esm/api/types/AdHocInvoiceLineItemsReq.d.mts +8 -0
- package/dist/esm/api/types/AdHocInvoiceLineItemsReq.mjs +4 -0
- package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +10 -3
- package/dist/esm/api/types/FromPayables1.d.mts +9 -0
- package/dist/esm/api/types/FromPayables1.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItem1.d.mts +4 -1
- package/dist/esm/api/types/InvoiceLineItemClientCreate1.d.mts +20 -0
- package/dist/esm/api/types/InvoiceLineItemClientCreate1.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemServerCreate1.d.mts +33 -0
- package/dist/esm/api/types/InvoiceLineItemServerCreate1.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemStatusEnum1.d.mts +9 -0
- package/dist/esm/api/types/InvoiceLineItemStatusEnum1.mjs +8 -0
- package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +4 -1
- package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +3 -0
- package/dist/esm/api/types/InvoiceLineItemsByOrderExpandedRes.d.mts +1 -1
- package/dist/esm/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.d.mts +7 -0
- package/dist/esm/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +1 -0
- package/dist/esm/api/types/OrderBillingAccount1.d.mts +7 -0
- package/dist/esm/api/types/OrderBillingAccount1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingCurrencyTotals1.d.mts +9 -0
- package/dist/esm/api/types/OrderBillingCurrencyTotals1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingExecutor1.d.mts +11 -0
- package/dist/esm/api/types/OrderBillingExecutor1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +19 -0
- package/dist/esm/api/types/OrderBillingExpandedListItem1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingExpandedListRes.d.mts +8 -0
- package/dist/esm/api/types/OrderBillingExpandedListRes.mjs +4 -0
- package/dist/esm/api/types/OrderBillingShipper1.d.mts +9 -0
- package/dist/esm/api/types/OrderBillingShipper1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingSortByEnum.d.mts +12 -0
- package/dist/esm/api/types/OrderBillingSortByEnum.mjs +11 -0
- package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +1 -0
- package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +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/OrderTemplate1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
- package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +2 -0
- package/dist/esm/api/types/ResolvedTaskGroupChrtGroundProviderRates1.d.mts +9 -0
- package/dist/esm/api/types/ResolvedTaskGroupChrtGroundProviderRates1.mjs +4 -0
- package/dist/esm/api/types/ServiceLineEnum.d.mts +8 -0
- package/dist/esm/api/types/ServiceLineEnum.mjs +7 -0
- package/dist/esm/api/types/Task1.d.mts +1 -0
- package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -0
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +0 -2
- package/dist/esm/api/types/TaskGroupChrtGroundProviderRateSheetIds1.d.mts +7 -0
- package/dist/esm/api/types/TaskGroupChrtGroundProviderRateSheetIds1.mjs +4 -0
- package/dist/esm/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.d.mts +9 -0
- package/dist/esm/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.mjs +4 -0
- package/dist/esm/api/types/TaxRate1.d.mts +9 -0
- package/dist/esm/api/types/TaxRate1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +19 -1
- package/dist/esm/api/types/index.mjs +19 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +687 -387
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.ts +0 -22
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.ts +0 -13
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.ts +0 -13
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/index.d.ts +0 -5
- package/dist/cjs/api/types/ApplyChrtGroundProviderRatesRes.d.ts +0 -7
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.mts +0 -22
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.mts +0 -13
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.mts +0 -13
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/index.d.mts +0 -5
- package/dist/esm/api/types/ApplyChrtGroundProviderRatesRes.d.mts +0 -7
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.js → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.js → chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.js → invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.js → invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.js} +0 -0
- /package/dist/cjs/api/{types/ApplyChrtGroundProviderRatesRes.js → resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.js} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.mjs → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.mjs → chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.mjs → invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.mjs → invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.mjs} +0 -0
- /package/dist/esm/api/{types/ApplyChrtGroundProviderRatesRes.mjs → resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.mjs} +0 -0
|
@@ -31,22 +31,72 @@ export declare class InvoiceLineItems {
|
|
|
31
31
|
protected readonly _options: InvoiceLineItems.Options;
|
|
32
32
|
constructor(_options?: InvoiceLineItems.Options);
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Creates account-split ad-hoc line items and attaches them to matching draft invoices. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItem1])
|
|
35
35
|
*
|
|
36
|
-
* @param {Chrt.
|
|
36
|
+
* @param {Chrt.AdHocInvoiceLineItemsReq} request
|
|
37
37
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.billingNew.invoiceLineItems.
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
* await client.billingNew.invoiceLineItems.createAdHocV1({
|
|
43
|
+
* ad_hoc_line_items: [{
|
|
44
|
+
* invoice_line_item: {
|
|
45
|
+
* currency_code: "USD",
|
|
46
|
+
* description: "description",
|
|
47
|
+
* invoice_type: "accounts_receivable",
|
|
48
|
+
* line_item_type: "base_rate",
|
|
49
|
+
* quantity: 1.1,
|
|
50
|
+
* schema_version: 1,
|
|
51
|
+
* unit_price: 1.1
|
|
52
|
+
* }
|
|
53
|
+
* }],
|
|
45
54
|
* task_group_id: "task_group_id"
|
|
46
55
|
* })
|
|
47
56
|
*/
|
|
48
|
-
|
|
49
|
-
private
|
|
57
|
+
createAdHocV1(request: Chrt.AdHocInvoiceLineItemsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1[]>;
|
|
58
|
+
private __createAdHocV1;
|
|
59
|
+
/**
|
|
60
|
+
* Previews account-split ad-hoc line items without persisting them. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItemServerCreate1])
|
|
61
|
+
*
|
|
62
|
+
* @param {Chrt.AdHocInvoiceLineItemsReq} request
|
|
63
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.billingNew.invoiceLineItems.previewAdHocV1({
|
|
69
|
+
* ad_hoc_line_items: [{
|
|
70
|
+
* invoice_line_item: {
|
|
71
|
+
* currency_code: "USD",
|
|
72
|
+
* description: "description",
|
|
73
|
+
* invoice_type: "accounts_receivable",
|
|
74
|
+
* line_item_type: "base_rate",
|
|
75
|
+
* quantity: 1.1,
|
|
76
|
+
* schema_version: 1,
|
|
77
|
+
* unit_price: 1.1
|
|
78
|
+
* }
|
|
79
|
+
* }],
|
|
80
|
+
* task_group_id: "task_group_id"
|
|
81
|
+
* })
|
|
82
|
+
*/
|
|
83
|
+
previewAdHocV1(request: Chrt.AdHocInvoiceLineItemsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemServerCreate1[]>;
|
|
84
|
+
private __previewAdHocV1;
|
|
85
|
+
/**
|
|
86
|
+
* Atomically approves draft line items owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsApproveManyReq) -> (list[InvoiceLineItem1])
|
|
87
|
+
*
|
|
88
|
+
* @param {Chrt.billingNew.InvoiceLineItemsApproveManyReq} request
|
|
89
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* await client.billingNew.invoiceLineItems.approveManyV1({
|
|
95
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"]
|
|
96
|
+
* })
|
|
97
|
+
*/
|
|
98
|
+
approveManyV1(request: Chrt.billingNew.InvoiceLineItemsApproveManyReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1[]>;
|
|
99
|
+
private __approveManyV1;
|
|
50
100
|
/**
|
|
51
101
|
* Lists owner-scoped line items for an order with counterparties and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemsByOrderExpandedRes)
|
|
52
102
|
*
|
|
@@ -130,6 +180,42 @@ export declare class InvoiceLineItems {
|
|
|
130
180
|
*/
|
|
131
181
|
deleteManyV1(request: Chrt.billingNew.InvoiceLineItemsDeleteManyReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemsDeleteManyRes>;
|
|
132
182
|
private __deleteManyV1;
|
|
183
|
+
/**
|
|
184
|
+
* Creates rate-sheet-derived line items and attaches them to matching draft invoices. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[task_group_coordinator_operators] | (InvoiceLineItemsFromChrtGroundProviderRateSheetsReq) -> (list[InvoiceLineItem1])
|
|
185
|
+
*
|
|
186
|
+
* @param {Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq} request
|
|
187
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
188
|
+
*
|
|
189
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* await client.billingNew.invoiceLineItems.createFromRateSheetsV1({
|
|
193
|
+
* task_group_chrt_ground_provider_rate_sheet_ids: [{
|
|
194
|
+
* rate_sheet_ids: ["rate_sheet_ids"],
|
|
195
|
+
* task_group_id: "task_group_id"
|
|
196
|
+
* }]
|
|
197
|
+
* })
|
|
198
|
+
*/
|
|
199
|
+
createFromRateSheetsV1(request: Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1[]>;
|
|
200
|
+
private __createFromRateSheetsV1;
|
|
201
|
+
/**
|
|
202
|
+
* Previews accounts-payable, accounts-receivable, and tax line items from selected active rate sheets. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[task_group_coordinator_operators] | (InvoiceLineItemsFromChrtGroundProviderRateSheetsReq) -> (list[TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1])
|
|
203
|
+
*
|
|
204
|
+
* @param {Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq} request
|
|
205
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
206
|
+
*
|
|
207
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* await client.billingNew.invoiceLineItems.previewFromRateSheetsV1({
|
|
211
|
+
* task_group_chrt_ground_provider_rate_sheet_ids: [{
|
|
212
|
+
* rate_sheet_ids: ["rate_sheet_ids"],
|
|
213
|
+
* task_group_id: "task_group_id"
|
|
214
|
+
* }]
|
|
215
|
+
* })
|
|
216
|
+
*/
|
|
217
|
+
previewFromRateSheetsV1(request: Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1[]>;
|
|
218
|
+
private __previewFromRateSheetsV1;
|
|
133
219
|
/**
|
|
134
220
|
* Lists owner-scoped invoice line items with filtering, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemListRes)
|
|
135
221
|
*
|
|
@@ -146,7 +232,7 @@ export declare class InvoiceLineItems {
|
|
|
146
232
|
* page_size: 1,
|
|
147
233
|
* filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
148
234
|
* filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
149
|
-
*
|
|
235
|
+
* filter_shipper_account_id: "filter_shipper_account_id",
|
|
150
236
|
* filter_invoice_id: "filter_invoice_id",
|
|
151
237
|
* filter_is_invoiced: true,
|
|
152
238
|
* filter_order_id: "filter_order_id",
|
|
@@ -159,6 +245,21 @@ export declare class InvoiceLineItems {
|
|
|
159
245
|
*/
|
|
160
246
|
listV1(request?: Chrt.billingNew.InvoiceLineItemsListV1Request, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemListRes>;
|
|
161
247
|
private __listV1;
|
|
248
|
+
/**
|
|
249
|
+
* 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])
|
|
250
|
+
*
|
|
251
|
+
* @param {Chrt.billingNew.RecalculateOrderTaxInvoiceLineItemsReq} request
|
|
252
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
253
|
+
*
|
|
254
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* await client.billingNew.invoiceLineItems.recalculateTaxesV1({
|
|
258
|
+
* order_id: "order_id"
|
|
259
|
+
* })
|
|
260
|
+
*/
|
|
261
|
+
recalculateTaxesV1(request: Chrt.billingNew.RecalculateOrderTaxInvoiceLineItemsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1[]>;
|
|
262
|
+
private __recalculateTaxesV1;
|
|
162
263
|
/**
|
|
163
264
|
* Updates an owner-scoped line item and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (bool)
|
|
164
265
|
*
|
|
@@ -56,29 +56,38 @@ class InvoiceLineItems {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Creates account-split ad-hoc line items and attaches them to matching draft invoices. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItem1])
|
|
60
60
|
*
|
|
61
|
-
* @param {Chrt.
|
|
61
|
+
* @param {Chrt.AdHocInvoiceLineItemsReq} request
|
|
62
62
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.billingNew.invoiceLineItems.
|
|
68
|
-
*
|
|
69
|
-
*
|
|
67
|
+
* await client.billingNew.invoiceLineItems.createAdHocV1({
|
|
68
|
+
* ad_hoc_line_items: [{
|
|
69
|
+
* invoice_line_item: {
|
|
70
|
+
* currency_code: "USD",
|
|
71
|
+
* description: "description",
|
|
72
|
+
* invoice_type: "accounts_receivable",
|
|
73
|
+
* line_item_type: "base_rate",
|
|
74
|
+
* quantity: 1.1,
|
|
75
|
+
* schema_version: 1,
|
|
76
|
+
* unit_price: 1.1
|
|
77
|
+
* }
|
|
78
|
+
* }],
|
|
70
79
|
* task_group_id: "task_group_id"
|
|
71
80
|
* })
|
|
72
81
|
*/
|
|
73
|
-
|
|
74
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
82
|
+
createAdHocV1(request, requestOptions) {
|
|
83
|
+
return core.HttpResponsePromise.fromPromise(this.__createAdHocV1(request, requestOptions));
|
|
75
84
|
}
|
|
76
|
-
|
|
85
|
+
__createAdHocV1(request, requestOptions) {
|
|
77
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
87
|
var _a, _b, _c, _d;
|
|
79
88
|
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);
|
|
80
89
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
81
|
-
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/
|
|
90
|
+
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/ad_hoc/create/v1"),
|
|
82
91
|
method: "POST",
|
|
83
92
|
headers: _headers,
|
|
84
93
|
contentType: "application/json",
|
|
@@ -112,7 +121,146 @@ class InvoiceLineItems {
|
|
|
112
121
|
rawResponse: _response.rawResponse,
|
|
113
122
|
});
|
|
114
123
|
case "timeout":
|
|
115
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/
|
|
124
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/ad_hoc/create/v1.");
|
|
125
|
+
case "unknown":
|
|
126
|
+
throw new errors.ChrtError({
|
|
127
|
+
message: _response.error.errorMessage,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Previews account-split ad-hoc line items without persisting them. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItemServerCreate1])
|
|
135
|
+
*
|
|
136
|
+
* @param {Chrt.AdHocInvoiceLineItemsReq} request
|
|
137
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* await client.billingNew.invoiceLineItems.previewAdHocV1({
|
|
143
|
+
* ad_hoc_line_items: [{
|
|
144
|
+
* invoice_line_item: {
|
|
145
|
+
* currency_code: "USD",
|
|
146
|
+
* description: "description",
|
|
147
|
+
* invoice_type: "accounts_receivable",
|
|
148
|
+
* line_item_type: "base_rate",
|
|
149
|
+
* quantity: 1.1,
|
|
150
|
+
* schema_version: 1,
|
|
151
|
+
* unit_price: 1.1
|
|
152
|
+
* }
|
|
153
|
+
* }],
|
|
154
|
+
* task_group_id: "task_group_id"
|
|
155
|
+
* })
|
|
156
|
+
*/
|
|
157
|
+
previewAdHocV1(request, requestOptions) {
|
|
158
|
+
return core.HttpResponsePromise.fromPromise(this.__previewAdHocV1(request, requestOptions));
|
|
159
|
+
}
|
|
160
|
+
__previewAdHocV1(request, requestOptions) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
var _a, _b, _c, _d;
|
|
163
|
+
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);
|
|
164
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
165
|
+
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/ad_hoc/preview/v1"),
|
|
166
|
+
method: "POST",
|
|
167
|
+
headers: _headers,
|
|
168
|
+
contentType: "application/json",
|
|
169
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
170
|
+
requestType: "json",
|
|
171
|
+
body: request,
|
|
172
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
173
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
174
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
175
|
+
});
|
|
176
|
+
if (_response.ok) {
|
|
177
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
178
|
+
}
|
|
179
|
+
if (_response.error.reason === "status-code") {
|
|
180
|
+
switch (_response.error.statusCode) {
|
|
181
|
+
case 422:
|
|
182
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
183
|
+
default:
|
|
184
|
+
throw new errors.ChrtError({
|
|
185
|
+
statusCode: _response.error.statusCode,
|
|
186
|
+
body: _response.error.body,
|
|
187
|
+
rawResponse: _response.rawResponse,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
switch (_response.error.reason) {
|
|
192
|
+
case "non-json":
|
|
193
|
+
throw new errors.ChrtError({
|
|
194
|
+
statusCode: _response.error.statusCode,
|
|
195
|
+
body: _response.error.rawBody,
|
|
196
|
+
rawResponse: _response.rawResponse,
|
|
197
|
+
});
|
|
198
|
+
case "timeout":
|
|
199
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/ad_hoc/preview/v1.");
|
|
200
|
+
case "unknown":
|
|
201
|
+
throw new errors.ChrtError({
|
|
202
|
+
message: _response.error.errorMessage,
|
|
203
|
+
rawResponse: _response.rawResponse,
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Atomically approves draft line items owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsApproveManyReq) -> (list[InvoiceLineItem1])
|
|
210
|
+
*
|
|
211
|
+
* @param {Chrt.billingNew.InvoiceLineItemsApproveManyReq} request
|
|
212
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
213
|
+
*
|
|
214
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* await client.billingNew.invoiceLineItems.approveManyV1({
|
|
218
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"]
|
|
219
|
+
* })
|
|
220
|
+
*/
|
|
221
|
+
approveManyV1(request, requestOptions) {
|
|
222
|
+
return core.HttpResponsePromise.fromPromise(this.__approveManyV1(request, requestOptions));
|
|
223
|
+
}
|
|
224
|
+
__approveManyV1(request, requestOptions) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
var _a, _b, _c, _d;
|
|
227
|
+
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);
|
|
228
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
229
|
+
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/approve_many/v1"),
|
|
230
|
+
method: "PATCH",
|
|
231
|
+
headers: _headers,
|
|
232
|
+
contentType: "application/json",
|
|
233
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
234
|
+
requestType: "json",
|
|
235
|
+
body: request,
|
|
236
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
237
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
238
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
239
|
+
});
|
|
240
|
+
if (_response.ok) {
|
|
241
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
242
|
+
}
|
|
243
|
+
if (_response.error.reason === "status-code") {
|
|
244
|
+
switch (_response.error.statusCode) {
|
|
245
|
+
case 422:
|
|
246
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
247
|
+
default:
|
|
248
|
+
throw new errors.ChrtError({
|
|
249
|
+
statusCode: _response.error.statusCode,
|
|
250
|
+
body: _response.error.body,
|
|
251
|
+
rawResponse: _response.rawResponse,
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
switch (_response.error.reason) {
|
|
256
|
+
case "non-json":
|
|
257
|
+
throw new errors.ChrtError({
|
|
258
|
+
statusCode: _response.error.statusCode,
|
|
259
|
+
body: _response.error.rawBody,
|
|
260
|
+
rawResponse: _response.rawResponse,
|
|
261
|
+
});
|
|
262
|
+
case "timeout":
|
|
263
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoice_line_items/approve_many/v1.");
|
|
116
264
|
case "unknown":
|
|
117
265
|
throw new errors.ChrtError({
|
|
118
266
|
message: _response.error.errorMessage,
|
|
@@ -406,6 +554,143 @@ class InvoiceLineItems {
|
|
|
406
554
|
}
|
|
407
555
|
});
|
|
408
556
|
}
|
|
557
|
+
/**
|
|
558
|
+
* Creates rate-sheet-derived line items and attaches them to matching draft invoices. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[task_group_coordinator_operators] | (InvoiceLineItemsFromChrtGroundProviderRateSheetsReq) -> (list[InvoiceLineItem1])
|
|
559
|
+
*
|
|
560
|
+
* @param {Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq} request
|
|
561
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
562
|
+
*
|
|
563
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
564
|
+
*
|
|
565
|
+
* @example
|
|
566
|
+
* await client.billingNew.invoiceLineItems.createFromRateSheetsV1({
|
|
567
|
+
* task_group_chrt_ground_provider_rate_sheet_ids: [{
|
|
568
|
+
* rate_sheet_ids: ["rate_sheet_ids"],
|
|
569
|
+
* task_group_id: "task_group_id"
|
|
570
|
+
* }]
|
|
571
|
+
* })
|
|
572
|
+
*/
|
|
573
|
+
createFromRateSheetsV1(request, requestOptions) {
|
|
574
|
+
return core.HttpResponsePromise.fromPromise(this.__createFromRateSheetsV1(request, requestOptions));
|
|
575
|
+
}
|
|
576
|
+
__createFromRateSheetsV1(request, requestOptions) {
|
|
577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
var _a, _b, _c, _d;
|
|
579
|
+
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);
|
|
580
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
581
|
+
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/from_rate_sheets/create/v1"),
|
|
582
|
+
method: "POST",
|
|
583
|
+
headers: _headers,
|
|
584
|
+
contentType: "application/json",
|
|
585
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
586
|
+
requestType: "json",
|
|
587
|
+
body: request,
|
|
588
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
589
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
590
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
591
|
+
});
|
|
592
|
+
if (_response.ok) {
|
|
593
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
594
|
+
}
|
|
595
|
+
if (_response.error.reason === "status-code") {
|
|
596
|
+
switch (_response.error.statusCode) {
|
|
597
|
+
case 422:
|
|
598
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
599
|
+
default:
|
|
600
|
+
throw new errors.ChrtError({
|
|
601
|
+
statusCode: _response.error.statusCode,
|
|
602
|
+
body: _response.error.body,
|
|
603
|
+
rawResponse: _response.rawResponse,
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
switch (_response.error.reason) {
|
|
608
|
+
case "non-json":
|
|
609
|
+
throw new errors.ChrtError({
|
|
610
|
+
statusCode: _response.error.statusCode,
|
|
611
|
+
body: _response.error.rawBody,
|
|
612
|
+
rawResponse: _response.rawResponse,
|
|
613
|
+
});
|
|
614
|
+
case "timeout":
|
|
615
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/from_rate_sheets/create/v1.");
|
|
616
|
+
case "unknown":
|
|
617
|
+
throw new errors.ChrtError({
|
|
618
|
+
message: _response.error.errorMessage,
|
|
619
|
+
rawResponse: _response.rawResponse,
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* Previews accounts-payable, accounts-receivable, and tax line items from selected active rate sheets. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[task_group_coordinator_operators] | (InvoiceLineItemsFromChrtGroundProviderRateSheetsReq) -> (list[TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1])
|
|
626
|
+
*
|
|
627
|
+
* @param {Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq} request
|
|
628
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
629
|
+
*
|
|
630
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
631
|
+
*
|
|
632
|
+
* @example
|
|
633
|
+
* await client.billingNew.invoiceLineItems.previewFromRateSheetsV1({
|
|
634
|
+
* task_group_chrt_ground_provider_rate_sheet_ids: [{
|
|
635
|
+
* rate_sheet_ids: ["rate_sheet_ids"],
|
|
636
|
+
* task_group_id: "task_group_id"
|
|
637
|
+
* }]
|
|
638
|
+
* })
|
|
639
|
+
*/
|
|
640
|
+
previewFromRateSheetsV1(request, requestOptions) {
|
|
641
|
+
return core.HttpResponsePromise.fromPromise(this.__previewFromRateSheetsV1(request, requestOptions));
|
|
642
|
+
}
|
|
643
|
+
__previewFromRateSheetsV1(request, requestOptions) {
|
|
644
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
645
|
+
var _a, _b, _c, _d;
|
|
646
|
+
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);
|
|
647
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
648
|
+
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/from_rate_sheets/preview/v1"),
|
|
649
|
+
method: "POST",
|
|
650
|
+
headers: _headers,
|
|
651
|
+
contentType: "application/json",
|
|
652
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
653
|
+
requestType: "json",
|
|
654
|
+
body: request,
|
|
655
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
656
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
657
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
658
|
+
});
|
|
659
|
+
if (_response.ok) {
|
|
660
|
+
return {
|
|
661
|
+
data: _response.body,
|
|
662
|
+
rawResponse: _response.rawResponse,
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
if (_response.error.reason === "status-code") {
|
|
666
|
+
switch (_response.error.statusCode) {
|
|
667
|
+
case 422:
|
|
668
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
669
|
+
default:
|
|
670
|
+
throw new errors.ChrtError({
|
|
671
|
+
statusCode: _response.error.statusCode,
|
|
672
|
+
body: _response.error.body,
|
|
673
|
+
rawResponse: _response.rawResponse,
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
switch (_response.error.reason) {
|
|
678
|
+
case "non-json":
|
|
679
|
+
throw new errors.ChrtError({
|
|
680
|
+
statusCode: _response.error.statusCode,
|
|
681
|
+
body: _response.error.rawBody,
|
|
682
|
+
rawResponse: _response.rawResponse,
|
|
683
|
+
});
|
|
684
|
+
case "timeout":
|
|
685
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/from_rate_sheets/preview/v1.");
|
|
686
|
+
case "unknown":
|
|
687
|
+
throw new errors.ChrtError({
|
|
688
|
+
message: _response.error.errorMessage,
|
|
689
|
+
rawResponse: _response.rawResponse,
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
}
|
|
409
694
|
/**
|
|
410
695
|
* Lists owner-scoped invoice line items with filtering, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemListRes)
|
|
411
696
|
*
|
|
@@ -422,7 +707,7 @@ class InvoiceLineItems {
|
|
|
422
707
|
* page_size: 1,
|
|
423
708
|
* filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
424
709
|
* filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
425
|
-
*
|
|
710
|
+
* filter_shipper_account_id: "filter_shipper_account_id",
|
|
426
711
|
* filter_invoice_id: "filter_invoice_id",
|
|
427
712
|
* filter_is_invoiced: true,
|
|
428
713
|
* filter_order_id: "filter_order_id",
|
|
@@ -439,7 +724,7 @@ class InvoiceLineItems {
|
|
|
439
724
|
__listV1() {
|
|
440
725
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
441
726
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
442
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_invoice_types: filterInvoiceTypes, filter_currency_codes: filterCurrencyCodes, filter_line_item_types: filterLineItemTypes, filter_units: filterUnits, filter_counterparty_org_id: filterCounterpartyOrgId, filter_counterparty_off_chrt_org_data_id: filterCounterpartyOffChrtOrgDataId,
|
|
727
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_invoice_types: filterInvoiceTypes, filter_currency_codes: filterCurrencyCodes, filter_line_item_types: filterLineItemTypes, filter_units: filterUnits, filter_counterparty_org_id: filterCounterpartyOrgId, filter_counterparty_off_chrt_org_data_id: filterCounterpartyOffChrtOrgDataId, filter_shipper_account_id: filterShipperAccountId, filter_invoice_id: filterInvoiceId, filter_is_invoiced: filterIsInvoiced, filter_order_id: filterOrderId, filter_task_group_id: filterTaskGroupId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, } = request;
|
|
443
728
|
const _queryParams = {};
|
|
444
729
|
if (sortBy !== undefined) {
|
|
445
730
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -491,8 +776,8 @@ class InvoiceLineItems {
|
|
|
491
776
|
if (filterCounterpartyOffChrtOrgDataId !== undefined) {
|
|
492
777
|
_queryParams["filter_counterparty_off_chrt_org_data_id"] = filterCounterpartyOffChrtOrgDataId;
|
|
493
778
|
}
|
|
494
|
-
if (
|
|
495
|
-
_queryParams["
|
|
779
|
+
if (filterShipperAccountId !== undefined) {
|
|
780
|
+
_queryParams["filter_shipper_account_id"] = filterShipperAccountId;
|
|
496
781
|
}
|
|
497
782
|
if (filterInvoiceId !== undefined) {
|
|
498
783
|
_queryParams["filter_invoice_id"] = filterInvoiceId;
|
|
@@ -560,6 +845,70 @@ class InvoiceLineItems {
|
|
|
560
845
|
}
|
|
561
846
|
});
|
|
562
847
|
}
|
|
848
|
+
/**
|
|
849
|
+
* 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])
|
|
850
|
+
*
|
|
851
|
+
* @param {Chrt.billingNew.RecalculateOrderTaxInvoiceLineItemsReq} request
|
|
852
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
853
|
+
*
|
|
854
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
855
|
+
*
|
|
856
|
+
* @example
|
|
857
|
+
* await client.billingNew.invoiceLineItems.recalculateTaxesV1({
|
|
858
|
+
* order_id: "order_id"
|
|
859
|
+
* })
|
|
860
|
+
*/
|
|
861
|
+
recalculateTaxesV1(request, requestOptions) {
|
|
862
|
+
return core.HttpResponsePromise.fromPromise(this.__recalculateTaxesV1(request, requestOptions));
|
|
863
|
+
}
|
|
864
|
+
__recalculateTaxesV1(request, requestOptions) {
|
|
865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
866
|
+
var _a, _b, _c, _d;
|
|
867
|
+
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);
|
|
868
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
869
|
+
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"),
|
|
870
|
+
method: "POST",
|
|
871
|
+
headers: _headers,
|
|
872
|
+
contentType: "application/json",
|
|
873
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
874
|
+
requestType: "json",
|
|
875
|
+
body: request,
|
|
876
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
877
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
878
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
879
|
+
});
|
|
880
|
+
if (_response.ok) {
|
|
881
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
882
|
+
}
|
|
883
|
+
if (_response.error.reason === "status-code") {
|
|
884
|
+
switch (_response.error.statusCode) {
|
|
885
|
+
case 422:
|
|
886
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
887
|
+
default:
|
|
888
|
+
throw new errors.ChrtError({
|
|
889
|
+
statusCode: _response.error.statusCode,
|
|
890
|
+
body: _response.error.body,
|
|
891
|
+
rawResponse: _response.rawResponse,
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
switch (_response.error.reason) {
|
|
896
|
+
case "non-json":
|
|
897
|
+
throw new errors.ChrtError({
|
|
898
|
+
statusCode: _response.error.statusCode,
|
|
899
|
+
body: _response.error.rawBody,
|
|
900
|
+
rawResponse: _response.rawResponse,
|
|
901
|
+
});
|
|
902
|
+
case "timeout":
|
|
903
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/recalculate_taxes/v1.");
|
|
904
|
+
case "unknown":
|
|
905
|
+
throw new errors.ChrtError({
|
|
906
|
+
message: _response.error.errorMessage,
|
|
907
|
+
rawResponse: _response.rawResponse,
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
}
|
|
563
912
|
/**
|
|
564
913
|
* Updates an owner-scoped line item and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (bool)
|
|
565
914
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"]
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface InvoiceLineItemsApproveManyReq {
|
|
11
|
+
invoice_line_item_ids: string[];
|
|
12
|
+
}
|
|
@@ -11,7 +11,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
11
11
|
* page_size: 1,
|
|
12
12
|
* filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
13
13
|
* filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
14
|
-
*
|
|
14
|
+
* filter_shipper_account_id: "filter_shipper_account_id",
|
|
15
15
|
* filter_invoice_id: "filter_invoice_id",
|
|
16
16
|
* filter_is_invoiced: true,
|
|
17
17
|
* filter_order_id: "filter_order_id",
|
|
@@ -41,8 +41,8 @@ export interface InvoiceLineItemsListV1Request {
|
|
|
41
41
|
filter_counterparty_org_id?: string | null;
|
|
42
42
|
/** Filter by off-CHRT counterparty organization data. */
|
|
43
43
|
filter_counterparty_off_chrt_org_data_id?: string | null;
|
|
44
|
-
/** Filter by an associated
|
|
45
|
-
|
|
44
|
+
/** Filter by an associated shipper account. */
|
|
45
|
+
filter_shipper_account_id?: string | null;
|
|
46
46
|
/** Filter by an attached invoice. */
|
|
47
47
|
filter_invoice_id?: string | null;
|
|
48
48
|
/** Filter by whether a line item is attached to an invoice. */
|