@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
package/reference.md
CHANGED
|
@@ -6301,9 +6301,9 @@ await client.billing.lineItems.s3Objects.getV1("line_item_s3_object_metadata_id"
|
|
|
6301
6301
|
</dl>
|
|
6302
6302
|
</details>
|
|
6303
6303
|
|
|
6304
|
-
## BillingNew
|
|
6304
|
+
## BillingNew ChrtGroundProviderRates
|
|
6305
6305
|
|
|
6306
|
-
<details><summary><code>client.billingNew.
|
|
6306
|
+
<details><summary><code>client.billingNew.chrtGroundProviderRates.<a href="/src/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.ts">createV1</a>({ ...params }) -> string</code></summary>
|
|
6307
6307
|
<dl>
|
|
6308
6308
|
<dd>
|
|
6309
6309
|
|
|
@@ -6315,7 +6315,7 @@ await client.billing.lineItems.s3Objects.getV1("line_item_s3_object_metadata_id"
|
|
|
6315
6315
|
<dl>
|
|
6316
6316
|
<dd>
|
|
6317
6317
|
|
|
6318
|
-
|
|
6318
|
+
Creates ground-provider rates owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (ChrtGroundProviderRatesClientCreate1) -> (PydanticObjectId)
|
|
6319
6319
|
|
|
6320
6320
|
</dd>
|
|
6321
6321
|
</dl>
|
|
@@ -6331,10 +6331,10 @@ Applies a caller-owned CHRT-ground rate sheet to a TaskGroup and atomically crea
|
|
|
6331
6331
|
<dd>
|
|
6332
6332
|
|
|
6333
6333
|
```typescript
|
|
6334
|
-
await client.billingNew.
|
|
6334
|
+
await client.billingNew.chrtGroundProviderRates.createV1({
|
|
6335
|
+
currency_code: "USD",
|
|
6335
6336
|
invoice_type: "accounts_receivable",
|
|
6336
|
-
|
|
6337
|
-
task_group_id: "task_group_id",
|
|
6337
|
+
schema_version: 1,
|
|
6338
6338
|
});
|
|
6339
6339
|
```
|
|
6340
6340
|
|
|
@@ -6351,7 +6351,7 @@ await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
|
|
|
6351
6351
|
<dl>
|
|
6352
6352
|
<dd>
|
|
6353
6353
|
|
|
6354
|
-
**request:** `Chrt.billingNew.
|
|
6354
|
+
**request:** `Chrt.billingNew.ChrtGroundProviderRatesClientCreate1`
|
|
6355
6355
|
|
|
6356
6356
|
</dd>
|
|
6357
6357
|
</dl>
|
|
@@ -6359,7 +6359,7 @@ await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
|
|
|
6359
6359
|
<dl>
|
|
6360
6360
|
<dd>
|
|
6361
6361
|
|
|
6362
|
-
**requestOptions:** `
|
|
6362
|
+
**requestOptions:** `ChrtGroundProviderRates.RequestOptions`
|
|
6363
6363
|
|
|
6364
6364
|
</dd>
|
|
6365
6365
|
</dl>
|
|
@@ -6370,7 +6370,7 @@ await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
|
|
|
6370
6370
|
</dl>
|
|
6371
6371
|
</details>
|
|
6372
6372
|
|
|
6373
|
-
<details><summary><code>client.billingNew.
|
|
6373
|
+
<details><summary><code>client.billingNew.chrtGroundProviderRates.<a href="/src/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.ts">deleteV1</a>(rateId) -> boolean</code></summary>
|
|
6374
6374
|
<dl>
|
|
6375
6375
|
<dd>
|
|
6376
6376
|
|
|
@@ -6382,7 +6382,7 @@ await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
|
|
|
6382
6382
|
<dl>
|
|
6383
6383
|
<dd>
|
|
6384
6384
|
|
|
6385
|
-
|
|
6385
|
+
Hard-deletes owner-scoped ground-provider rates. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
|
|
6386
6386
|
|
|
6387
6387
|
</dd>
|
|
6388
6388
|
</dl>
|
|
@@ -6398,7 +6398,7 @@ Lists owner-scoped line items for an order with counterparties and accounts expa
|
|
|
6398
6398
|
<dd>
|
|
6399
6399
|
|
|
6400
6400
|
```typescript
|
|
6401
|
-
await client.billingNew.
|
|
6401
|
+
await client.billingNew.chrtGroundProviderRates.deleteV1("rate_id");
|
|
6402
6402
|
```
|
|
6403
6403
|
|
|
6404
6404
|
</dd>
|
|
@@ -6414,7 +6414,7 @@ await client.billingNew.invoiceLineItems.listByOrderV1("order_id");
|
|
|
6414
6414
|
<dl>
|
|
6415
6415
|
<dd>
|
|
6416
6416
|
|
|
6417
|
-
**
|
|
6417
|
+
**rateId:** `string`
|
|
6418
6418
|
|
|
6419
6419
|
</dd>
|
|
6420
6420
|
</dl>
|
|
@@ -6422,7 +6422,7 @@ await client.billingNew.invoiceLineItems.listByOrderV1("order_id");
|
|
|
6422
6422
|
<dl>
|
|
6423
6423
|
<dd>
|
|
6424
6424
|
|
|
6425
|
-
**requestOptions:** `
|
|
6425
|
+
**requestOptions:** `ChrtGroundProviderRates.RequestOptions`
|
|
6426
6426
|
|
|
6427
6427
|
</dd>
|
|
6428
6428
|
</dl>
|
|
@@ -6433,7 +6433,7 @@ await client.billingNew.invoiceLineItems.listByOrderV1("order_id");
|
|
|
6433
6433
|
</dl>
|
|
6434
6434
|
</details>
|
|
6435
6435
|
|
|
6436
|
-
<details><summary><code>client.billingNew.
|
|
6436
|
+
<details><summary><code>client.billingNew.chrtGroundProviderRates.<a href="/src/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.ts">getV1</a>(rateId) -> Chrt.ChrtGroundProviderRates1</code></summary>
|
|
6437
6437
|
<dl>
|
|
6438
6438
|
<dd>
|
|
6439
6439
|
|
|
@@ -6445,7 +6445,7 @@ await client.billingNew.invoiceLineItems.listByOrderV1("order_id");
|
|
|
6445
6445
|
<dl>
|
|
6446
6446
|
<dd>
|
|
6447
6447
|
|
|
6448
|
-
|
|
6448
|
+
Retrieves owner-scoped ground-provider rates. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ChrtGroundProviderRates1)
|
|
6449
6449
|
|
|
6450
6450
|
</dd>
|
|
6451
6451
|
</dl>
|
|
@@ -6461,12 +6461,83 @@ Creates optionally order-attributed line items from an amount and attaches them
|
|
|
6461
6461
|
<dd>
|
|
6462
6462
|
|
|
6463
6463
|
```typescript
|
|
6464
|
-
await client.billingNew.
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6464
|
+
await client.billingNew.chrtGroundProviderRates.getV1("rate_id");
|
|
6465
|
+
```
|
|
6466
|
+
|
|
6467
|
+
</dd>
|
|
6468
|
+
</dl>
|
|
6469
|
+
</dd>
|
|
6470
|
+
</dl>
|
|
6471
|
+
|
|
6472
|
+
#### ⚙️ Parameters
|
|
6473
|
+
|
|
6474
|
+
<dl>
|
|
6475
|
+
<dd>
|
|
6476
|
+
|
|
6477
|
+
<dl>
|
|
6478
|
+
<dd>
|
|
6479
|
+
|
|
6480
|
+
**rateId:** `string`
|
|
6481
|
+
|
|
6482
|
+
</dd>
|
|
6483
|
+
</dl>
|
|
6484
|
+
|
|
6485
|
+
<dl>
|
|
6486
|
+
<dd>
|
|
6487
|
+
|
|
6488
|
+
**requestOptions:** `ChrtGroundProviderRates.RequestOptions`
|
|
6489
|
+
|
|
6490
|
+
</dd>
|
|
6491
|
+
</dl>
|
|
6492
|
+
</dd>
|
|
6493
|
+
</dl>
|
|
6494
|
+
|
|
6495
|
+
</dd>
|
|
6496
|
+
</dl>
|
|
6497
|
+
</details>
|
|
6498
|
+
|
|
6499
|
+
<details><summary><code>client.billingNew.chrtGroundProviderRates.<a href="/src/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.ts">listV1</a>({ ...params }) -> Chrt.ChrtGroundProviderRatesListRes</code></summary>
|
|
6500
|
+
<dl>
|
|
6501
|
+
<dd>
|
|
6502
|
+
|
|
6503
|
+
#### 📝 Description
|
|
6504
|
+
|
|
6505
|
+
<dl>
|
|
6506
|
+
<dd>
|
|
6507
|
+
|
|
6508
|
+
<dl>
|
|
6509
|
+
<dd>
|
|
6510
|
+
|
|
6511
|
+
Lists owner-scoped ground-provider rates with counterparty, cargo, vehicle, currency, search, sort, and pagination controls. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ChrtGroundProviderRatesListRes)
|
|
6512
|
+
|
|
6513
|
+
</dd>
|
|
6514
|
+
</dl>
|
|
6515
|
+
</dd>
|
|
6516
|
+
</dl>
|
|
6517
|
+
|
|
6518
|
+
#### 🔌 Usage
|
|
6519
|
+
|
|
6520
|
+
<dl>
|
|
6521
|
+
<dd>
|
|
6522
|
+
|
|
6523
|
+
<dl>
|
|
6524
|
+
<dd>
|
|
6525
|
+
|
|
6526
|
+
```typescript
|
|
6527
|
+
await client.billingNew.chrtGroundProviderRates.listV1({
|
|
6528
|
+
search: "search",
|
|
6529
|
+
sort_by: "name",
|
|
6530
|
+
sort_order: "asc",
|
|
6531
|
+
page: 1,
|
|
6532
|
+
page_size: 1,
|
|
6533
|
+
filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
6534
|
+
filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
6535
|
+
filter_shipper_account_id: "filter_shipper_account_id",
|
|
6536
|
+
filter_counterparty_driver_id: "filter_counterparty_driver_id",
|
|
6537
|
+
filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
6538
|
+
filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
6539
|
+
filter_updated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
6540
|
+
filter_updated_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
6470
6541
|
});
|
|
6471
6542
|
```
|
|
6472
6543
|
|
|
@@ -6483,7 +6554,223 @@ await client.billingNew.invoiceLineItems.createFromAmountV1({
|
|
|
6483
6554
|
<dl>
|
|
6484
6555
|
<dd>
|
|
6485
6556
|
|
|
6486
|
-
**request:** `Chrt.billingNew.
|
|
6557
|
+
**request:** `Chrt.billingNew.ChrtGroundProviderRatesListV1Request`
|
|
6558
|
+
|
|
6559
|
+
</dd>
|
|
6560
|
+
</dl>
|
|
6561
|
+
|
|
6562
|
+
<dl>
|
|
6563
|
+
<dd>
|
|
6564
|
+
|
|
6565
|
+
**requestOptions:** `ChrtGroundProviderRates.RequestOptions`
|
|
6566
|
+
|
|
6567
|
+
</dd>
|
|
6568
|
+
</dl>
|
|
6569
|
+
</dd>
|
|
6570
|
+
</dl>
|
|
6571
|
+
|
|
6572
|
+
</dd>
|
|
6573
|
+
</dl>
|
|
6574
|
+
</details>
|
|
6575
|
+
|
|
6576
|
+
<details><summary><code>client.billingNew.chrtGroundProviderRates.<a href="/src/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.ts">resolveV1</a>({ ...params }) -> Chrt.ResolvedTaskGroupChrtGroundProviderRates1[]</code></summary>
|
|
6577
|
+
<dl>
|
|
6578
|
+
<dd>
|
|
6579
|
+
|
|
6580
|
+
#### 📝 Description
|
|
6581
|
+
|
|
6582
|
+
<dl>
|
|
6583
|
+
<dd>
|
|
6584
|
+
|
|
6585
|
+
<dl>
|
|
6586
|
+
<dd>
|
|
6587
|
+
|
|
6588
|
+
Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
6589
|
+
|
|
6590
|
+
</dd>
|
|
6591
|
+
</dl>
|
|
6592
|
+
</dd>
|
|
6593
|
+
</dl>
|
|
6594
|
+
|
|
6595
|
+
#### 🔌 Usage
|
|
6596
|
+
|
|
6597
|
+
<dl>
|
|
6598
|
+
<dd>
|
|
6599
|
+
|
|
6600
|
+
<dl>
|
|
6601
|
+
<dd>
|
|
6602
|
+
|
|
6603
|
+
```typescript
|
|
6604
|
+
await client.billingNew.chrtGroundProviderRates.resolveV1({
|
|
6605
|
+
order_id: "order_id",
|
|
6606
|
+
});
|
|
6607
|
+
```
|
|
6608
|
+
|
|
6609
|
+
</dd>
|
|
6610
|
+
</dl>
|
|
6611
|
+
</dd>
|
|
6612
|
+
</dl>
|
|
6613
|
+
|
|
6614
|
+
#### ⚙️ Parameters
|
|
6615
|
+
|
|
6616
|
+
<dl>
|
|
6617
|
+
<dd>
|
|
6618
|
+
|
|
6619
|
+
<dl>
|
|
6620
|
+
<dd>
|
|
6621
|
+
|
|
6622
|
+
**request:** `Chrt.billingNew.ResolveChrtGroundProviderRatesReq`
|
|
6623
|
+
|
|
6624
|
+
</dd>
|
|
6625
|
+
</dl>
|
|
6626
|
+
|
|
6627
|
+
<dl>
|
|
6628
|
+
<dd>
|
|
6629
|
+
|
|
6630
|
+
**requestOptions:** `ChrtGroundProviderRates.RequestOptions`
|
|
6631
|
+
|
|
6632
|
+
</dd>
|
|
6633
|
+
</dl>
|
|
6634
|
+
</dd>
|
|
6635
|
+
</dl>
|
|
6636
|
+
|
|
6637
|
+
</dd>
|
|
6638
|
+
</dl>
|
|
6639
|
+
</details>
|
|
6640
|
+
|
|
6641
|
+
<details><summary><code>client.billingNew.chrtGroundProviderRates.<a href="/src/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.ts">updateV1</a>(rateId, { ...params }) -> boolean</code></summary>
|
|
6642
|
+
<dl>
|
|
6643
|
+
<dd>
|
|
6644
|
+
|
|
6645
|
+
#### 📝 Description
|
|
6646
|
+
|
|
6647
|
+
<dl>
|
|
6648
|
+
<dd>
|
|
6649
|
+
|
|
6650
|
+
<dl>
|
|
6651
|
+
<dd>
|
|
6652
|
+
|
|
6653
|
+
Updates owner-scoped ground-provider rates and advances the server-managed update timestamp. | authz: allowed_org_types=[provider], min_org_role=operator | (ChrtGroundProviderRatesClientUpdate1) -> (bool)
|
|
6654
|
+
|
|
6655
|
+
</dd>
|
|
6656
|
+
</dl>
|
|
6657
|
+
</dd>
|
|
6658
|
+
</dl>
|
|
6659
|
+
|
|
6660
|
+
#### 🔌 Usage
|
|
6661
|
+
|
|
6662
|
+
<dl>
|
|
6663
|
+
<dd>
|
|
6664
|
+
|
|
6665
|
+
<dl>
|
|
6666
|
+
<dd>
|
|
6667
|
+
|
|
6668
|
+
```typescript
|
|
6669
|
+
await client.billingNew.chrtGroundProviderRates.updateV1("rate_id");
|
|
6670
|
+
```
|
|
6671
|
+
|
|
6672
|
+
</dd>
|
|
6673
|
+
</dl>
|
|
6674
|
+
</dd>
|
|
6675
|
+
</dl>
|
|
6676
|
+
|
|
6677
|
+
#### ⚙️ Parameters
|
|
6678
|
+
|
|
6679
|
+
<dl>
|
|
6680
|
+
<dd>
|
|
6681
|
+
|
|
6682
|
+
<dl>
|
|
6683
|
+
<dd>
|
|
6684
|
+
|
|
6685
|
+
**rateId:** `string`
|
|
6686
|
+
|
|
6687
|
+
</dd>
|
|
6688
|
+
</dl>
|
|
6689
|
+
|
|
6690
|
+
<dl>
|
|
6691
|
+
<dd>
|
|
6692
|
+
|
|
6693
|
+
**request:** `Chrt.billingNew.ChrtGroundProviderRatesClientUpdate1`
|
|
6694
|
+
|
|
6695
|
+
</dd>
|
|
6696
|
+
</dl>
|
|
6697
|
+
|
|
6698
|
+
<dl>
|
|
6699
|
+
<dd>
|
|
6700
|
+
|
|
6701
|
+
**requestOptions:** `ChrtGroundProviderRates.RequestOptions`
|
|
6702
|
+
|
|
6703
|
+
</dd>
|
|
6704
|
+
</dl>
|
|
6705
|
+
</dd>
|
|
6706
|
+
</dl>
|
|
6707
|
+
|
|
6708
|
+
</dd>
|
|
6709
|
+
</dl>
|
|
6710
|
+
</details>
|
|
6711
|
+
|
|
6712
|
+
## BillingNew InvoiceLineItems
|
|
6713
|
+
|
|
6714
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">createAdHocV1</a>({ ...params }) -> Chrt.InvoiceLineItem1[]</code></summary>
|
|
6715
|
+
<dl>
|
|
6716
|
+
<dd>
|
|
6717
|
+
|
|
6718
|
+
#### 📝 Description
|
|
6719
|
+
|
|
6720
|
+
<dl>
|
|
6721
|
+
<dd>
|
|
6722
|
+
|
|
6723
|
+
<dl>
|
|
6724
|
+
<dd>
|
|
6725
|
+
|
|
6726
|
+
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])
|
|
6727
|
+
|
|
6728
|
+
</dd>
|
|
6729
|
+
</dl>
|
|
6730
|
+
</dd>
|
|
6731
|
+
</dl>
|
|
6732
|
+
|
|
6733
|
+
#### 🔌 Usage
|
|
6734
|
+
|
|
6735
|
+
<dl>
|
|
6736
|
+
<dd>
|
|
6737
|
+
|
|
6738
|
+
<dl>
|
|
6739
|
+
<dd>
|
|
6740
|
+
|
|
6741
|
+
```typescript
|
|
6742
|
+
await client.billingNew.invoiceLineItems.createAdHocV1({
|
|
6743
|
+
ad_hoc_line_items: [
|
|
6744
|
+
{
|
|
6745
|
+
invoice_line_item: {
|
|
6746
|
+
currency_code: "USD",
|
|
6747
|
+
description: "description",
|
|
6748
|
+
invoice_type: "accounts_receivable",
|
|
6749
|
+
line_item_type: "base_rate",
|
|
6750
|
+
quantity: 1.1,
|
|
6751
|
+
schema_version: 1,
|
|
6752
|
+
unit_price: 1.1,
|
|
6753
|
+
},
|
|
6754
|
+
},
|
|
6755
|
+
],
|
|
6756
|
+
task_group_id: "task_group_id",
|
|
6757
|
+
});
|
|
6758
|
+
```
|
|
6759
|
+
|
|
6760
|
+
</dd>
|
|
6761
|
+
</dl>
|
|
6762
|
+
</dd>
|
|
6763
|
+
</dl>
|
|
6764
|
+
|
|
6765
|
+
#### ⚙️ Parameters
|
|
6766
|
+
|
|
6767
|
+
<dl>
|
|
6768
|
+
<dd>
|
|
6769
|
+
|
|
6770
|
+
<dl>
|
|
6771
|
+
<dd>
|
|
6772
|
+
|
|
6773
|
+
**request:** `Chrt.AdHocInvoiceLineItemsReq`
|
|
6487
6774
|
|
|
6488
6775
|
</dd>
|
|
6489
6776
|
</dl>
|
|
@@ -6502,7 +6789,7 @@ await client.billingNew.invoiceLineItems.createFromAmountV1({
|
|
|
6502
6789
|
</dl>
|
|
6503
6790
|
</details>
|
|
6504
6791
|
|
|
6505
|
-
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">
|
|
6792
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">previewAdHocV1</a>({ ...params }) -> Chrt.InvoiceLineItemServerCreate1[]</code></summary>
|
|
6506
6793
|
<dl>
|
|
6507
6794
|
<dd>
|
|
6508
6795
|
|
|
@@ -6514,7 +6801,7 @@ await client.billingNew.invoiceLineItems.createFromAmountV1({
|
|
|
6514
6801
|
<dl>
|
|
6515
6802
|
<dd>
|
|
6516
6803
|
|
|
6517
|
-
|
|
6804
|
+
Previews account-split ad-hoc line items without persisting them. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItemServerCreate1])
|
|
6518
6805
|
|
|
6519
6806
|
</dd>
|
|
6520
6807
|
</dl>
|
|
@@ -6530,31 +6817,21 @@ Creates optionally order-attributed line items by transforming submitted line it
|
|
|
6530
6817
|
<dd>
|
|
6531
6818
|
|
|
6532
6819
|
```typescript
|
|
6533
|
-
await client.billingNew.invoiceLineItems.
|
|
6534
|
-
|
|
6535
|
-
invoice_line_item_amount_transformation: {
|
|
6536
|
-
transformation_type: "percent",
|
|
6537
|
-
value: 1.1,
|
|
6538
|
-
},
|
|
6539
|
-
invoice_type: "accounts_receivable",
|
|
6540
|
-
line_item_type: "base_rate",
|
|
6541
|
-
source_invoice_line_items: [
|
|
6820
|
+
await client.billingNew.invoiceLineItems.previewAdHocV1({
|
|
6821
|
+
ad_hoc_line_items: [
|
|
6542
6822
|
{
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
owned_by_org_id: "owned_by_org_id",
|
|
6553
|
-
quantity: 1.1,
|
|
6554
|
-
schema_version: 1,
|
|
6555
|
-
unit_price: 1.1,
|
|
6823
|
+
invoice_line_item: {
|
|
6824
|
+
currency_code: "USD",
|
|
6825
|
+
description: "description",
|
|
6826
|
+
invoice_type: "accounts_receivable",
|
|
6827
|
+
line_item_type: "base_rate",
|
|
6828
|
+
quantity: 1.1,
|
|
6829
|
+
schema_version: 1,
|
|
6830
|
+
unit_price: 1.1,
|
|
6831
|
+
},
|
|
6556
6832
|
},
|
|
6557
6833
|
],
|
|
6834
|
+
task_group_id: "task_group_id",
|
|
6558
6835
|
});
|
|
6559
6836
|
```
|
|
6560
6837
|
|
|
@@ -6571,7 +6848,7 @@ await client.billingNew.invoiceLineItems.createFromLineItemsV1({
|
|
|
6571
6848
|
<dl>
|
|
6572
6849
|
<dd>
|
|
6573
6850
|
|
|
6574
|
-
**request:** `Chrt.
|
|
6851
|
+
**request:** `Chrt.AdHocInvoiceLineItemsReq`
|
|
6575
6852
|
|
|
6576
6853
|
</dd>
|
|
6577
6854
|
</dl>
|
|
@@ -6590,7 +6867,7 @@ await client.billingNew.invoiceLineItems.createFromLineItemsV1({
|
|
|
6590
6867
|
</dl>
|
|
6591
6868
|
</details>
|
|
6592
6869
|
|
|
6593
|
-
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">
|
|
6870
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">approveManyV1</a>({ ...params }) -> Chrt.InvoiceLineItem1[]</code></summary>
|
|
6594
6871
|
<dl>
|
|
6595
6872
|
<dd>
|
|
6596
6873
|
|
|
@@ -6602,7 +6879,7 @@ await client.billingNew.invoiceLineItems.createFromLineItemsV1({
|
|
|
6602
6879
|
<dl>
|
|
6603
6880
|
<dd>
|
|
6604
6881
|
|
|
6605
|
-
|
|
6882
|
+
Atomically approves draft line items owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsApproveManyReq) -> (list[InvoiceLineItem1])
|
|
6606
6883
|
|
|
6607
6884
|
</dd>
|
|
6608
6885
|
</dl>
|
|
@@ -6618,7 +6895,7 @@ Deletes owner-scoped line items and rebuilds every affected draft invoice. | aut
|
|
|
6618
6895
|
<dd>
|
|
6619
6896
|
|
|
6620
6897
|
```typescript
|
|
6621
|
-
await client.billingNew.invoiceLineItems.
|
|
6898
|
+
await client.billingNew.invoiceLineItems.approveManyV1({
|
|
6622
6899
|
invoice_line_item_ids: ["invoice_line_item_ids"],
|
|
6623
6900
|
});
|
|
6624
6901
|
```
|
|
@@ -6636,7 +6913,7 @@ await client.billingNew.invoiceLineItems.deleteManyV1({
|
|
|
6636
6913
|
<dl>
|
|
6637
6914
|
<dd>
|
|
6638
6915
|
|
|
6639
|
-
**request:** `Chrt.billingNew.
|
|
6916
|
+
**request:** `Chrt.billingNew.InvoiceLineItemsApproveManyReq`
|
|
6640
6917
|
|
|
6641
6918
|
</dd>
|
|
6642
6919
|
</dl>
|
|
@@ -6655,7 +6932,7 @@ await client.billingNew.invoiceLineItems.deleteManyV1({
|
|
|
6655
6932
|
</dl>
|
|
6656
6933
|
</details>
|
|
6657
6934
|
|
|
6658
|
-
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">
|
|
6935
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">listByOrderV1</a>(orderId) -> Chrt.InvoiceLineItemsByOrderExpandedRes</code></summary>
|
|
6659
6936
|
<dl>
|
|
6660
6937
|
<dd>
|
|
6661
6938
|
|
|
@@ -6667,7 +6944,7 @@ await client.billingNew.invoiceLineItems.deleteManyV1({
|
|
|
6667
6944
|
<dl>
|
|
6668
6945
|
<dd>
|
|
6669
6946
|
|
|
6670
|
-
Lists owner-scoped
|
|
6947
|
+
Lists owner-scoped line items for an order with counterparties and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemsByOrderExpandedRes)
|
|
6671
6948
|
|
|
6672
6949
|
</dd>
|
|
6673
6950
|
</dl>
|
|
@@ -6683,22 +6960,75 @@ Lists owner-scoped invoice line items with filtering, sorting, and pagination. |
|
|
|
6683
6960
|
<dd>
|
|
6684
6961
|
|
|
6685
6962
|
```typescript
|
|
6686
|
-
await client.billingNew.invoiceLineItems.
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6963
|
+
await client.billingNew.invoiceLineItems.listByOrderV1("order_id");
|
|
6964
|
+
```
|
|
6965
|
+
|
|
6966
|
+
</dd>
|
|
6967
|
+
</dl>
|
|
6968
|
+
</dd>
|
|
6969
|
+
</dl>
|
|
6970
|
+
|
|
6971
|
+
#### ⚙️ Parameters
|
|
6972
|
+
|
|
6973
|
+
<dl>
|
|
6974
|
+
<dd>
|
|
6975
|
+
|
|
6976
|
+
<dl>
|
|
6977
|
+
<dd>
|
|
6978
|
+
|
|
6979
|
+
**orderId:** `string`
|
|
6980
|
+
|
|
6981
|
+
</dd>
|
|
6982
|
+
</dl>
|
|
6983
|
+
|
|
6984
|
+
<dl>
|
|
6985
|
+
<dd>
|
|
6986
|
+
|
|
6987
|
+
**requestOptions:** `InvoiceLineItems.RequestOptions`
|
|
6988
|
+
|
|
6989
|
+
</dd>
|
|
6990
|
+
</dl>
|
|
6991
|
+
</dd>
|
|
6992
|
+
</dl>
|
|
6993
|
+
|
|
6994
|
+
</dd>
|
|
6995
|
+
</dl>
|
|
6996
|
+
</details>
|
|
6997
|
+
|
|
6998
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">createFromAmountV1</a>({ ...params }) -> Chrt.CreateInvoiceLineItemsFromAmountRes</code></summary>
|
|
6999
|
+
<dl>
|
|
7000
|
+
<dd>
|
|
7001
|
+
|
|
7002
|
+
#### 📝 Description
|
|
7003
|
+
|
|
7004
|
+
<dl>
|
|
7005
|
+
<dd>
|
|
7006
|
+
|
|
7007
|
+
<dl>
|
|
7008
|
+
<dd>
|
|
7009
|
+
|
|
7010
|
+
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)
|
|
7011
|
+
|
|
7012
|
+
</dd>
|
|
7013
|
+
</dl>
|
|
7014
|
+
</dd>
|
|
7015
|
+
</dl>
|
|
7016
|
+
|
|
7017
|
+
#### 🔌 Usage
|
|
7018
|
+
|
|
7019
|
+
<dl>
|
|
7020
|
+
<dd>
|
|
7021
|
+
|
|
7022
|
+
<dl>
|
|
7023
|
+
<dd>
|
|
7024
|
+
|
|
7025
|
+
```typescript
|
|
7026
|
+
await client.billingNew.invoiceLineItems.createFromAmountV1({
|
|
7027
|
+
amount: 1.1,
|
|
7028
|
+
currency_code: "USD",
|
|
7029
|
+
description: "description",
|
|
7030
|
+
invoice_type: "accounts_receivable",
|
|
7031
|
+
line_item_type: "base_rate",
|
|
6702
7032
|
});
|
|
6703
7033
|
```
|
|
6704
7034
|
|
|
@@ -6715,7 +7045,7 @@ await client.billingNew.invoiceLineItems.listV1({
|
|
|
6715
7045
|
<dl>
|
|
6716
7046
|
<dd>
|
|
6717
7047
|
|
|
6718
|
-
**request:** `Chrt.billingNew.
|
|
7048
|
+
**request:** `Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq`
|
|
6719
7049
|
|
|
6720
7050
|
</dd>
|
|
6721
7051
|
</dl>
|
|
@@ -6734,7 +7064,7 @@ await client.billingNew.invoiceLineItems.listV1({
|
|
|
6734
7064
|
</dl>
|
|
6735
7065
|
</details>
|
|
6736
7066
|
|
|
6737
|
-
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">
|
|
7067
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">createFromLineItemsV1</a>({ ...params }) -> Chrt.CreateInvoiceLineItemsFromLineItemsRes</code></summary>
|
|
6738
7068
|
<dl>
|
|
6739
7069
|
<dd>
|
|
6740
7070
|
|
|
@@ -6746,7 +7076,7 @@ await client.billingNew.invoiceLineItems.listV1({
|
|
|
6746
7076
|
<dl>
|
|
6747
7077
|
<dd>
|
|
6748
7078
|
|
|
6749
|
-
|
|
7079
|
+
Creates optionally order-attributed line items by transforming submitted line items 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 | (CreateInvoiceLineItemsFromLineItemsReq) -> (CreateInvoiceLineItemsFromLineItemsRes)
|
|
6750
7080
|
|
|
6751
7081
|
</dd>
|
|
6752
7082
|
</dl>
|
|
@@ -6762,7 +7092,32 @@ Updates an owner-scoped line item and rebuilds its draft invoice when attached.
|
|
|
6762
7092
|
<dd>
|
|
6763
7093
|
|
|
6764
7094
|
```typescript
|
|
6765
|
-
await client.billingNew.invoiceLineItems.
|
|
7095
|
+
await client.billingNew.invoiceLineItems.createFromLineItemsV1({
|
|
7096
|
+
description: "description",
|
|
7097
|
+
invoice_line_item_amount_transformation: {
|
|
7098
|
+
transformation_type: "percent",
|
|
7099
|
+
value: 1.1,
|
|
7100
|
+
},
|
|
7101
|
+
invoice_type: "accounts_receivable",
|
|
7102
|
+
line_item_type: "base_rate",
|
|
7103
|
+
source_invoice_line_items: [
|
|
7104
|
+
{
|
|
7105
|
+
_id: "_id",
|
|
7106
|
+
created_at_timestamp: "2024-01-15T09:30:00Z",
|
|
7107
|
+
created_by_user_id: "created_by_user_id",
|
|
7108
|
+
currency_code: "USD",
|
|
7109
|
+
description: "description",
|
|
7110
|
+
invoice_type: "accounts_receivable",
|
|
7111
|
+
last_edited_at_timestamp: "2024-01-15T09:30:00Z",
|
|
7112
|
+
last_edited_by_user_id: "last_edited_by_user_id",
|
|
7113
|
+
line_item_type: "base_rate",
|
|
7114
|
+
owned_by_org_id: "owned_by_org_id",
|
|
7115
|
+
quantity: 1.1,
|
|
7116
|
+
schema_version: 1,
|
|
7117
|
+
unit_price: 1.1,
|
|
7118
|
+
},
|
|
7119
|
+
],
|
|
7120
|
+
});
|
|
6766
7121
|
```
|
|
6767
7122
|
|
|
6768
7123
|
</dd>
|
|
@@ -6778,15 +7133,7 @@ await client.billingNew.invoiceLineItems.updateV1("invoice_line_item_id");
|
|
|
6778
7133
|
<dl>
|
|
6779
7134
|
<dd>
|
|
6780
7135
|
|
|
6781
|
-
**
|
|
6782
|
-
|
|
6783
|
-
</dd>
|
|
6784
|
-
</dl>
|
|
6785
|
-
|
|
6786
|
-
<dl>
|
|
6787
|
-
<dd>
|
|
6788
|
-
|
|
6789
|
-
**request:** `Chrt.billingNew.InvoiceLineItemClientUpdate1`
|
|
7136
|
+
**request:** `Chrt.billingNew.CreateInvoiceLineItemsFromLineItemsReq`
|
|
6790
7137
|
|
|
6791
7138
|
</dd>
|
|
6792
7139
|
</dl>
|
|
@@ -6805,9 +7152,7 @@ await client.billingNew.invoiceLineItems.updateV1("invoice_line_item_id");
|
|
|
6805
7152
|
</dl>
|
|
6806
7153
|
</details>
|
|
6807
7154
|
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">approveV1</a>(invoiceId) -> Chrt.Invoice1</code></summary>
|
|
7155
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">deleteManyV1</a>({ ...params }) -> Chrt.InvoiceLineItemsDeleteManyRes</code></summary>
|
|
6811
7156
|
<dl>
|
|
6812
7157
|
<dd>
|
|
6813
7158
|
|
|
@@ -6819,7 +7164,7 @@ await client.billingNew.invoiceLineItems.updateV1("invoice_line_item_id");
|
|
|
6819
7164
|
<dl>
|
|
6820
7165
|
<dd>
|
|
6821
7166
|
|
|
6822
|
-
|
|
7167
|
+
Deletes owner-scoped line items and rebuilds every affected draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsDeleteManyReq) -> (InvoiceLineItemsDeleteManyRes)
|
|
6823
7168
|
|
|
6824
7169
|
</dd>
|
|
6825
7170
|
</dl>
|
|
@@ -6835,7 +7180,9 @@ Approves a draft invoice owned by the caller's organization. | authz: allowed_or
|
|
|
6835
7180
|
<dd>
|
|
6836
7181
|
|
|
6837
7182
|
```typescript
|
|
6838
|
-
await client.billingNew.
|
|
7183
|
+
await client.billingNew.invoiceLineItems.deleteManyV1({
|
|
7184
|
+
invoice_line_item_ids: ["invoice_line_item_ids"],
|
|
7185
|
+
});
|
|
6839
7186
|
```
|
|
6840
7187
|
|
|
6841
7188
|
</dd>
|
|
@@ -6851,7 +7198,7 @@ await client.billingNew.invoices.approveV1("invoice_id");
|
|
|
6851
7198
|
<dl>
|
|
6852
7199
|
<dd>
|
|
6853
7200
|
|
|
6854
|
-
**
|
|
7201
|
+
**request:** `Chrt.billingNew.InvoiceLineItemsDeleteManyReq`
|
|
6855
7202
|
|
|
6856
7203
|
</dd>
|
|
6857
7204
|
</dl>
|
|
@@ -6859,7 +7206,7 @@ await client.billingNew.invoices.approveV1("invoice_id");
|
|
|
6859
7206
|
<dl>
|
|
6860
7207
|
<dd>
|
|
6861
7208
|
|
|
6862
|
-
**requestOptions:** `
|
|
7209
|
+
**requestOptions:** `InvoiceLineItems.RequestOptions`
|
|
6863
7210
|
|
|
6864
7211
|
</dd>
|
|
6865
7212
|
</dl>
|
|
@@ -6870,7 +7217,7 @@ await client.billingNew.invoices.approveV1("invoice_id");
|
|
|
6870
7217
|
</dl>
|
|
6871
7218
|
</details>
|
|
6872
7219
|
|
|
6873
|
-
<details><summary><code>client.billingNew.
|
|
7220
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">createFromRateSheetsV1</a>({ ...params }) -> Chrt.InvoiceLineItem1[]</code></summary>
|
|
6874
7221
|
<dl>
|
|
6875
7222
|
<dd>
|
|
6876
7223
|
|
|
@@ -6882,7 +7229,7 @@ await client.billingNew.invoices.approveV1("invoice_id");
|
|
|
6882
7229
|
<dl>
|
|
6883
7230
|
<dd>
|
|
6884
7231
|
|
|
6885
|
-
Creates
|
|
7232
|
+
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])
|
|
6886
7233
|
|
|
6887
7234
|
</dd>
|
|
6888
7235
|
</dl>
|
|
@@ -6898,10 +7245,13 @@ Creates a draft invoice owned by the caller's organization. | authz: allowed_org
|
|
|
6898
7245
|
<dd>
|
|
6899
7246
|
|
|
6900
7247
|
```typescript
|
|
6901
|
-
await client.billingNew.
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
7248
|
+
await client.billingNew.invoiceLineItems.createFromRateSheetsV1({
|
|
7249
|
+
task_group_chrt_ground_provider_rate_sheet_ids: [
|
|
7250
|
+
{
|
|
7251
|
+
rate_sheet_ids: ["rate_sheet_ids"],
|
|
7252
|
+
task_group_id: "task_group_id",
|
|
7253
|
+
},
|
|
7254
|
+
],
|
|
6905
7255
|
});
|
|
6906
7256
|
```
|
|
6907
7257
|
|
|
@@ -6918,7 +7268,7 @@ await client.billingNew.invoices.createV1({
|
|
|
6918
7268
|
<dl>
|
|
6919
7269
|
<dd>
|
|
6920
7270
|
|
|
6921
|
-
**request:** `Chrt.
|
|
7271
|
+
**request:** `Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq`
|
|
6922
7272
|
|
|
6923
7273
|
</dd>
|
|
6924
7274
|
</dl>
|
|
@@ -6926,7 +7276,7 @@ await client.billingNew.invoices.createV1({
|
|
|
6926
7276
|
<dl>
|
|
6927
7277
|
<dd>
|
|
6928
7278
|
|
|
6929
|
-
**requestOptions:** `
|
|
7279
|
+
**requestOptions:** `InvoiceLineItems.RequestOptions`
|
|
6930
7280
|
|
|
6931
7281
|
</dd>
|
|
6932
7282
|
</dl>
|
|
@@ -6937,7 +7287,7 @@ await client.billingNew.invoices.createV1({
|
|
|
6937
7287
|
</dl>
|
|
6938
7288
|
</details>
|
|
6939
7289
|
|
|
6940
|
-
<details><summary><code>client.billingNew.
|
|
7290
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">previewFromRateSheetsV1</a>({ ...params }) -> Chrt.TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1[]</code></summary>
|
|
6941
7291
|
<dl>
|
|
6942
7292
|
<dd>
|
|
6943
7293
|
|
|
@@ -6949,7 +7299,7 @@ await client.billingNew.invoices.createV1({
|
|
|
6949
7299
|
<dl>
|
|
6950
7300
|
<dd>
|
|
6951
7301
|
|
|
6952
|
-
|
|
7302
|
+
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])
|
|
6953
7303
|
|
|
6954
7304
|
</dd>
|
|
6955
7305
|
</dl>
|
|
@@ -6965,7 +7315,14 @@ Hard-deletes a draft invoice and detaches its line items. | authz: allowed_org_t
|
|
|
6965
7315
|
<dd>
|
|
6966
7316
|
|
|
6967
7317
|
```typescript
|
|
6968
|
-
await client.billingNew.
|
|
7318
|
+
await client.billingNew.invoiceLineItems.previewFromRateSheetsV1({
|
|
7319
|
+
task_group_chrt_ground_provider_rate_sheet_ids: [
|
|
7320
|
+
{
|
|
7321
|
+
rate_sheet_ids: ["rate_sheet_ids"],
|
|
7322
|
+
task_group_id: "task_group_id",
|
|
7323
|
+
},
|
|
7324
|
+
],
|
|
7325
|
+
});
|
|
6969
7326
|
```
|
|
6970
7327
|
|
|
6971
7328
|
</dd>
|
|
@@ -6981,7 +7338,7 @@ await client.billingNew.invoices.deleteV1("invoice_id");
|
|
|
6981
7338
|
<dl>
|
|
6982
7339
|
<dd>
|
|
6983
7340
|
|
|
6984
|
-
**
|
|
7341
|
+
**request:** `Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq`
|
|
6985
7342
|
|
|
6986
7343
|
</dd>
|
|
6987
7344
|
</dl>
|
|
@@ -6989,7 +7346,7 @@ await client.billingNew.invoices.deleteV1("invoice_id");
|
|
|
6989
7346
|
<dl>
|
|
6990
7347
|
<dd>
|
|
6991
7348
|
|
|
6992
|
-
**requestOptions:** `
|
|
7349
|
+
**requestOptions:** `InvoiceLineItems.RequestOptions`
|
|
6993
7350
|
|
|
6994
7351
|
</dd>
|
|
6995
7352
|
</dl>
|
|
@@ -7000,7 +7357,7 @@ await client.billingNew.invoices.deleteV1("invoice_id");
|
|
|
7000
7357
|
</dl>
|
|
7001
7358
|
</details>
|
|
7002
7359
|
|
|
7003
|
-
<details><summary><code>client.billingNew.
|
|
7360
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">listV1</a>({ ...params }) -> Chrt.InvoiceLineItemListRes</code></summary>
|
|
7004
7361
|
<dl>
|
|
7005
7362
|
<dd>
|
|
7006
7363
|
|
|
@@ -7012,7 +7369,7 @@ await client.billingNew.invoices.deleteV1("invoice_id");
|
|
|
7012
7369
|
<dl>
|
|
7013
7370
|
<dd>
|
|
7014
7371
|
|
|
7015
|
-
|
|
7372
|
+
Lists owner-scoped invoice line items with filtering, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemListRes)
|
|
7016
7373
|
|
|
7017
7374
|
</dd>
|
|
7018
7375
|
</dl>
|
|
@@ -7028,7 +7385,23 @@ Retrieves an owner-scoped invoice with its line items, counterparty organization
|
|
|
7028
7385
|
<dd>
|
|
7029
7386
|
|
|
7030
7387
|
```typescript
|
|
7031
|
-
await client.billingNew.
|
|
7388
|
+
await client.billingNew.invoiceLineItems.listV1({
|
|
7389
|
+
sort_by: "created_at_timestamp",
|
|
7390
|
+
sort_order: "asc",
|
|
7391
|
+
page: 1,
|
|
7392
|
+
page_size: 1,
|
|
7393
|
+
filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
7394
|
+
filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
7395
|
+
filter_shipper_account_id: "filter_shipper_account_id",
|
|
7396
|
+
filter_invoice_id: "filter_invoice_id",
|
|
7397
|
+
filter_is_invoiced: true,
|
|
7398
|
+
filter_order_id: "filter_order_id",
|
|
7399
|
+
filter_task_group_id: "filter_task_group_id",
|
|
7400
|
+
filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
7401
|
+
filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
7402
|
+
filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
7403
|
+
filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
7404
|
+
});
|
|
7032
7405
|
```
|
|
7033
7406
|
|
|
7034
7407
|
</dd>
|
|
@@ -7044,7 +7417,7 @@ await client.billingNew.invoices.getExpandedV1("invoice_id");
|
|
|
7044
7417
|
<dl>
|
|
7045
7418
|
<dd>
|
|
7046
7419
|
|
|
7047
|
-
**
|
|
7420
|
+
**request:** `Chrt.billingNew.InvoiceLineItemsListV1Request`
|
|
7048
7421
|
|
|
7049
7422
|
</dd>
|
|
7050
7423
|
</dl>
|
|
@@ -7052,7 +7425,7 @@ await client.billingNew.invoices.getExpandedV1("invoice_id");
|
|
|
7052
7425
|
<dl>
|
|
7053
7426
|
<dd>
|
|
7054
7427
|
|
|
7055
|
-
**requestOptions:** `
|
|
7428
|
+
**requestOptions:** `InvoiceLineItems.RequestOptions`
|
|
7056
7429
|
|
|
7057
7430
|
</dd>
|
|
7058
7431
|
</dl>
|
|
@@ -7063,7 +7436,7 @@ await client.billingNew.invoices.getExpandedV1("invoice_id");
|
|
|
7063
7436
|
</dl>
|
|
7064
7437
|
</details>
|
|
7065
7438
|
|
|
7066
|
-
<details><summary><code>client.billingNew.
|
|
7439
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">recalculateTaxesV1</a>({ ...params }) -> Chrt.InvoiceLineItem1[]</code></summary>
|
|
7067
7440
|
<dl>
|
|
7068
7441
|
<dd>
|
|
7069
7442
|
|
|
@@ -7075,7 +7448,7 @@ await client.billingNew.invoices.getExpandedV1("invoice_id");
|
|
|
7075
7448
|
<dl>
|
|
7076
7449
|
<dd>
|
|
7077
7450
|
|
|
7078
|
-
|
|
7451
|
+
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])
|
|
7079
7452
|
|
|
7080
7453
|
</dd>
|
|
7081
7454
|
</dl>
|
|
@@ -7091,7 +7464,9 @@ Attaches one line item to a draft invoice, moving it from another draft invoice
|
|
|
7091
7464
|
<dd>
|
|
7092
7465
|
|
|
7093
7466
|
```typescript
|
|
7094
|
-
await client.billingNew.
|
|
7467
|
+
await client.billingNew.invoiceLineItems.recalculateTaxesV1({
|
|
7468
|
+
order_id: "order_id",
|
|
7469
|
+
});
|
|
7095
7470
|
```
|
|
7096
7471
|
|
|
7097
7472
|
</dd>
|
|
@@ -7107,15 +7482,7 @@ await client.billingNew.invoices.addLineItemV1("invoice_id", "invoice_line_item_
|
|
|
7107
7482
|
<dl>
|
|
7108
7483
|
<dd>
|
|
7109
7484
|
|
|
7110
|
-
**
|
|
7111
|
-
|
|
7112
|
-
</dd>
|
|
7113
|
-
</dl>
|
|
7114
|
-
|
|
7115
|
-
<dl>
|
|
7116
|
-
<dd>
|
|
7117
|
-
|
|
7118
|
-
**invoiceLineItemId:** `string`
|
|
7485
|
+
**request:** `Chrt.billingNew.RecalculateOrderTaxInvoiceLineItemsReq`
|
|
7119
7486
|
|
|
7120
7487
|
</dd>
|
|
7121
7488
|
</dl>
|
|
@@ -7123,7 +7490,7 @@ await client.billingNew.invoices.addLineItemV1("invoice_id", "invoice_line_item_
|
|
|
7123
7490
|
<dl>
|
|
7124
7491
|
<dd>
|
|
7125
7492
|
|
|
7126
|
-
**requestOptions:** `
|
|
7493
|
+
**requestOptions:** `InvoiceLineItems.RequestOptions`
|
|
7127
7494
|
|
|
7128
7495
|
</dd>
|
|
7129
7496
|
</dl>
|
|
@@ -7134,7 +7501,7 @@ await client.billingNew.invoices.addLineItemV1("invoice_id", "invoice_line_item_
|
|
|
7134
7501
|
</dl>
|
|
7135
7502
|
</details>
|
|
7136
7503
|
|
|
7137
|
-
<details><summary><code>client.billingNew.
|
|
7504
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">updateV1</a>(invoiceLineItemId, { ...params }) -> boolean</code></summary>
|
|
7138
7505
|
<dl>
|
|
7139
7506
|
<dd>
|
|
7140
7507
|
|
|
@@ -7146,7 +7513,7 @@ await client.billingNew.invoices.addLineItemV1("invoice_id", "invoice_line_item_
|
|
|
7146
7513
|
<dl>
|
|
7147
7514
|
<dd>
|
|
7148
7515
|
|
|
7149
|
-
|
|
7516
|
+
Updates an owner-scoped line item and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (bool)
|
|
7150
7517
|
|
|
7151
7518
|
</dd>
|
|
7152
7519
|
</dl>
|
|
@@ -7162,7 +7529,7 @@ Detaches one line item from a draft invoice and synchronizes the invoice total a
|
|
|
7162
7529
|
<dd>
|
|
7163
7530
|
|
|
7164
7531
|
```typescript
|
|
7165
|
-
await client.billingNew.
|
|
7532
|
+
await client.billingNew.invoiceLineItems.updateV1("invoice_line_item_id");
|
|
7166
7533
|
```
|
|
7167
7534
|
|
|
7168
7535
|
</dd>
|
|
@@ -7178,7 +7545,7 @@ await client.billingNew.invoices.removeLineItemV1("invoice_id", "invoice_line_it
|
|
|
7178
7545
|
<dl>
|
|
7179
7546
|
<dd>
|
|
7180
7547
|
|
|
7181
|
-
**
|
|
7548
|
+
**invoiceLineItemId:** `string`
|
|
7182
7549
|
|
|
7183
7550
|
</dd>
|
|
7184
7551
|
</dl>
|
|
@@ -7186,7 +7553,7 @@ await client.billingNew.invoices.removeLineItemV1("invoice_id", "invoice_line_it
|
|
|
7186
7553
|
<dl>
|
|
7187
7554
|
<dd>
|
|
7188
7555
|
|
|
7189
|
-
**
|
|
7556
|
+
**request:** `Chrt.billingNew.InvoiceLineItemClientUpdate1`
|
|
7190
7557
|
|
|
7191
7558
|
</dd>
|
|
7192
7559
|
</dl>
|
|
@@ -7194,7 +7561,7 @@ await client.billingNew.invoices.removeLineItemV1("invoice_id", "invoice_line_it
|
|
|
7194
7561
|
<dl>
|
|
7195
7562
|
<dd>
|
|
7196
7563
|
|
|
7197
|
-
**requestOptions:** `
|
|
7564
|
+
**requestOptions:** `InvoiceLineItems.RequestOptions`
|
|
7198
7565
|
|
|
7199
7566
|
</dd>
|
|
7200
7567
|
</dl>
|
|
@@ -7205,7 +7572,9 @@ await client.billingNew.invoices.removeLineItemV1("invoice_id", "invoice_line_it
|
|
|
7205
7572
|
</dl>
|
|
7206
7573
|
</details>
|
|
7207
7574
|
|
|
7208
|
-
|
|
7575
|
+
## BillingNew Invoices
|
|
7576
|
+
|
|
7577
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">approveV1</a>(invoiceId) -> Chrt.Invoice1</code></summary>
|
|
7209
7578
|
<dl>
|
|
7210
7579
|
<dd>
|
|
7211
7580
|
|
|
@@ -7217,7 +7586,7 @@ await client.billingNew.invoices.removeLineItemV1("invoice_id", "invoice_line_it
|
|
|
7217
7586
|
<dl>
|
|
7218
7587
|
<dd>
|
|
7219
7588
|
|
|
7220
|
-
|
|
7589
|
+
Approves a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
7221
7590
|
|
|
7222
7591
|
</dd>
|
|
7223
7592
|
</dl>
|
|
@@ -7233,9 +7602,7 @@ Attaches existing line items to a draft invoice, moving them from any other draf
|
|
|
7233
7602
|
<dd>
|
|
7234
7603
|
|
|
7235
7604
|
```typescript
|
|
7236
|
-
await client.billingNew.invoices.
|
|
7237
|
-
invoice_line_item_ids: ["invoice_line_item_ids"],
|
|
7238
|
-
});
|
|
7605
|
+
await client.billingNew.invoices.approveV1("invoice_id");
|
|
7239
7606
|
```
|
|
7240
7607
|
|
|
7241
7608
|
</dd>
|
|
@@ -7259,14 +7626,6 @@ await client.billingNew.invoices.addLineItemsV1("invoice_id", {
|
|
|
7259
7626
|
<dl>
|
|
7260
7627
|
<dd>
|
|
7261
7628
|
|
|
7262
|
-
**request:** `Chrt.billingNew.InvoiceLineItemsAddReq`
|
|
7263
|
-
|
|
7264
|
-
</dd>
|
|
7265
|
-
</dl>
|
|
7266
|
-
|
|
7267
|
-
<dl>
|
|
7268
|
-
<dd>
|
|
7269
|
-
|
|
7270
7629
|
**requestOptions:** `Invoices.RequestOptions`
|
|
7271
7630
|
|
|
7272
7631
|
</dd>
|
|
@@ -7278,7 +7637,7 @@ await client.billingNew.invoices.addLineItemsV1("invoice_id", {
|
|
|
7278
7637
|
</dl>
|
|
7279
7638
|
</details>
|
|
7280
7639
|
|
|
7281
|
-
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">
|
|
7640
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">createV1</a>({ ...params }) -> string</code></summary>
|
|
7282
7641
|
<dl>
|
|
7283
7642
|
<dd>
|
|
7284
7643
|
|
|
@@ -7290,7 +7649,7 @@ await client.billingNew.invoices.addLineItemsV1("invoice_id", {
|
|
|
7290
7649
|
<dl>
|
|
7291
7650
|
<dd>
|
|
7292
7651
|
|
|
7293
|
-
|
|
7652
|
+
Returns the matching owner-counterparty-type-currency draft invoice, or creates one when absent. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
|
|
7294
7653
|
|
|
7295
7654
|
</dd>
|
|
7296
7655
|
</dl>
|
|
@@ -7306,8 +7665,10 @@ Detaches existing line items from a draft invoice and synchronizes derived invoi
|
|
|
7306
7665
|
<dd>
|
|
7307
7666
|
|
|
7308
7667
|
```typescript
|
|
7309
|
-
await client.billingNew.invoices.
|
|
7310
|
-
|
|
7668
|
+
await client.billingNew.invoices.createV1({
|
|
7669
|
+
currency_code: "USD",
|
|
7670
|
+
invoice_type: "accounts_receivable",
|
|
7671
|
+
schema_version: 1,
|
|
7311
7672
|
});
|
|
7312
7673
|
```
|
|
7313
7674
|
|
|
@@ -7324,15 +7685,7 @@ await client.billingNew.invoices.removeLineItemsV1("invoice_id", {
|
|
|
7324
7685
|
<dl>
|
|
7325
7686
|
<dd>
|
|
7326
7687
|
|
|
7327
|
-
**
|
|
7328
|
-
|
|
7329
|
-
</dd>
|
|
7330
|
-
</dl>
|
|
7331
|
-
|
|
7332
|
-
<dl>
|
|
7333
|
-
<dd>
|
|
7334
|
-
|
|
7335
|
-
**request:** `Chrt.billingNew.InvoiceLineItemsRemoveReq`
|
|
7688
|
+
**request:** `Chrt.billingNew.InvoiceClientCreate1`
|
|
7336
7689
|
|
|
7337
7690
|
</dd>
|
|
7338
7691
|
</dl>
|
|
@@ -7351,7 +7704,7 @@ await client.billingNew.invoices.removeLineItemsV1("invoice_id", {
|
|
|
7351
7704
|
</dl>
|
|
7352
7705
|
</details>
|
|
7353
7706
|
|
|
7354
|
-
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">
|
|
7707
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">deleteV1</a>(invoiceId) -> boolean</code></summary>
|
|
7355
7708
|
<dl>
|
|
7356
7709
|
<dd>
|
|
7357
7710
|
|
|
@@ -7363,7 +7716,7 @@ await client.billingNew.invoices.removeLineItemsV1("invoice_id", {
|
|
|
7363
7716
|
<dl>
|
|
7364
7717
|
<dd>
|
|
7365
7718
|
|
|
7366
|
-
|
|
7719
|
+
Hard-deletes a draft invoice and detaches its line items. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
|
|
7367
7720
|
|
|
7368
7721
|
</dd>
|
|
7369
7722
|
</dl>
|
|
@@ -7379,20 +7732,7 @@ Lists owner-scoped invoices with search, filtering, sorting, and pagination. | a
|
|
|
7379
7732
|
<dd>
|
|
7380
7733
|
|
|
7381
7734
|
```typescript
|
|
7382
|
-
await client.billingNew.invoices.
|
|
7383
|
-
search: "search",
|
|
7384
|
-
sort_by: "created_at_timestamp",
|
|
7385
|
-
sort_order: "asc",
|
|
7386
|
-
page: 1,
|
|
7387
|
-
page_size: 1,
|
|
7388
|
-
filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
7389
|
-
filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
7390
|
-
filter_counterparty_account_id: "filter_counterparty_account_id",
|
|
7391
|
-
filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
7392
|
-
filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
7393
|
-
filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
7394
|
-
filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
7395
|
-
});
|
|
7735
|
+
await client.billingNew.invoices.deleteV1("invoice_id");
|
|
7396
7736
|
```
|
|
7397
7737
|
|
|
7398
7738
|
</dd>
|
|
@@ -7408,7 +7748,7 @@ await client.billingNew.invoices.listV1({
|
|
|
7408
7748
|
<dl>
|
|
7409
7749
|
<dd>
|
|
7410
7750
|
|
|
7411
|
-
**
|
|
7751
|
+
**invoiceId:** `string`
|
|
7412
7752
|
|
|
7413
7753
|
</dd>
|
|
7414
7754
|
</dl>
|
|
@@ -7427,7 +7767,7 @@ await client.billingNew.invoices.listV1({
|
|
|
7427
7767
|
</dl>
|
|
7428
7768
|
</details>
|
|
7429
7769
|
|
|
7430
|
-
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">
|
|
7770
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">getExpandedV1</a>(invoiceId) -> Chrt.InvoiceExpandedRes</code></summary>
|
|
7431
7771
|
<dl>
|
|
7432
7772
|
<dd>
|
|
7433
7773
|
|
|
@@ -7439,7 +7779,7 @@ await client.billingNew.invoices.listV1({
|
|
|
7439
7779
|
<dl>
|
|
7440
7780
|
<dd>
|
|
7441
7781
|
|
|
7442
|
-
|
|
7782
|
+
Retrieves an owner-scoped invoice with its line items, counterparty organization data, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)
|
|
7443
7783
|
|
|
7444
7784
|
</dd>
|
|
7445
7785
|
</dl>
|
|
@@ -7455,7 +7795,7 @@ Updates the name or description of a draft invoice owned by the caller's organiz
|
|
|
7455
7795
|
<dd>
|
|
7456
7796
|
|
|
7457
7797
|
```typescript
|
|
7458
|
-
await client.billingNew.invoices.
|
|
7798
|
+
await client.billingNew.invoices.getExpandedV1("invoice_id");
|
|
7459
7799
|
```
|
|
7460
7800
|
|
|
7461
7801
|
</dd>
|
|
@@ -7479,14 +7819,6 @@ await client.billingNew.invoices.updateV1("invoice_id");
|
|
|
7479
7819
|
<dl>
|
|
7480
7820
|
<dd>
|
|
7481
7821
|
|
|
7482
|
-
**request:** `Chrt.billingNew.InvoiceClientUpdate1`
|
|
7483
|
-
|
|
7484
|
-
</dd>
|
|
7485
|
-
</dl>
|
|
7486
|
-
|
|
7487
|
-
<dl>
|
|
7488
|
-
<dd>
|
|
7489
|
-
|
|
7490
7822
|
**requestOptions:** `Invoices.RequestOptions`
|
|
7491
7823
|
|
|
7492
7824
|
</dd>
|
|
@@ -7498,7 +7830,7 @@ await client.billingNew.invoices.updateV1("invoice_id");
|
|
|
7498
7830
|
</dl>
|
|
7499
7831
|
</details>
|
|
7500
7832
|
|
|
7501
|
-
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">
|
|
7833
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">addLineItemV1</a>(invoiceId, invoiceLineItemId) -> Chrt.Invoice1</code></summary>
|
|
7502
7834
|
<dl>
|
|
7503
7835
|
<dd>
|
|
7504
7836
|
|
|
@@ -7510,7 +7842,7 @@ await client.billingNew.invoices.updateV1("invoice_id");
|
|
|
7510
7842
|
<dl>
|
|
7511
7843
|
<dd>
|
|
7512
7844
|
|
|
7513
|
-
|
|
7845
|
+
Attaches one line item to a draft invoice, moving it from another draft invoice when needed, and synchronizes both invoices. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
7514
7846
|
|
|
7515
7847
|
</dd>
|
|
7516
7848
|
</dl>
|
|
@@ -7526,7 +7858,7 @@ Retrieves an invoice owned by the caller's organization. | authz: allowed_org_ty
|
|
|
7526
7858
|
<dd>
|
|
7527
7859
|
|
|
7528
7860
|
```typescript
|
|
7529
|
-
await client.billingNew.invoices.
|
|
7861
|
+
await client.billingNew.invoices.addLineItemV1("invoice_id", "invoice_line_item_id");
|
|
7530
7862
|
```
|
|
7531
7863
|
|
|
7532
7864
|
</dd>
|
|
@@ -7550,6 +7882,14 @@ await client.billingNew.invoices.getV1("invoice_id");
|
|
|
7550
7882
|
<dl>
|
|
7551
7883
|
<dd>
|
|
7552
7884
|
|
|
7885
|
+
**invoiceLineItemId:** `string`
|
|
7886
|
+
|
|
7887
|
+
</dd>
|
|
7888
|
+
</dl>
|
|
7889
|
+
|
|
7890
|
+
<dl>
|
|
7891
|
+
<dd>
|
|
7892
|
+
|
|
7553
7893
|
**requestOptions:** `Invoices.RequestOptions`
|
|
7554
7894
|
|
|
7555
7895
|
</dd>
|
|
@@ -7561,7 +7901,7 @@ await client.billingNew.invoices.getV1("invoice_id");
|
|
|
7561
7901
|
</dl>
|
|
7562
7902
|
</details>
|
|
7563
7903
|
|
|
7564
|
-
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">
|
|
7904
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">removeLineItemV1</a>(invoiceId, invoiceLineItemId) -> Chrt.Invoice1</code></summary>
|
|
7565
7905
|
<dl>
|
|
7566
7906
|
<dd>
|
|
7567
7907
|
|
|
@@ -7573,7 +7913,7 @@ await client.billingNew.invoices.getV1("invoice_id");
|
|
|
7573
7913
|
<dl>
|
|
7574
7914
|
<dd>
|
|
7575
7915
|
|
|
7576
|
-
|
|
7916
|
+
Detaches one line item from a draft invoice and synchronizes the invoice total and accounts. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
7577
7917
|
|
|
7578
7918
|
</dd>
|
|
7579
7919
|
</dl>
|
|
@@ -7589,7 +7929,7 @@ Voids a draft or approved invoice owned by the caller's organization. | authz: a
|
|
|
7589
7929
|
<dd>
|
|
7590
7930
|
|
|
7591
7931
|
```typescript
|
|
7592
|
-
await client.billingNew.invoices.
|
|
7932
|
+
await client.billingNew.invoices.removeLineItemV1("invoice_id", "invoice_line_item_id");
|
|
7593
7933
|
```
|
|
7594
7934
|
|
|
7595
7935
|
</dd>
|
|
@@ -7613,7 +7953,7 @@ await client.billingNew.invoices.voidV1("invoice_id");
|
|
|
7613
7953
|
<dl>
|
|
7614
7954
|
<dd>
|
|
7615
7955
|
|
|
7616
|
-
**
|
|
7956
|
+
**invoiceLineItemId:** `string`
|
|
7617
7957
|
|
|
7618
7958
|
</dd>
|
|
7619
7959
|
</dl>
|
|
@@ -7632,9 +7972,7 @@ await client.billingNew.invoices.voidV1("invoice_id");
|
|
|
7632
7972
|
</dl>
|
|
7633
7973
|
</details>
|
|
7634
7974
|
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
<details><summary><code>client.billingNew.rates.<a href="/src/api/resources/billingNew/resources/rates/client/Client.ts">addCounterpartiesV1</a>(rateId, { ...params }) -> boolean</code></summary>
|
|
7975
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">addLineItemsV1</a>(invoiceId, { ...params }) -> Chrt.Invoice1</code></summary>
|
|
7638
7976
|
<dl>
|
|
7639
7977
|
<dd>
|
|
7640
7978
|
|
|
@@ -7646,7 +7984,7 @@ await client.billingNew.invoices.voidV1("invoice_id");
|
|
|
7646
7984
|
<dl>
|
|
7647
7985
|
<dd>
|
|
7648
7986
|
|
|
7649
|
-
|
|
7987
|
+
Attaches existing line items to a draft invoice, moving them from any other draft invoices, and synchronizes all affected invoice totals and accounts. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsAddReq) -> (Invoice1)
|
|
7650
7988
|
|
|
7651
7989
|
</dd>
|
|
7652
7990
|
</dl>
|
|
@@ -7662,7 +8000,9 @@ Atomically adds counterparties to owner-scoped ground-provider rates without cre
|
|
|
7662
8000
|
<dd>
|
|
7663
8001
|
|
|
7664
8002
|
```typescript
|
|
7665
|
-
await client.billingNew.
|
|
8003
|
+
await client.billingNew.invoices.addLineItemsV1("invoice_id", {
|
|
8004
|
+
invoice_line_item_ids: ["invoice_line_item_ids"],
|
|
8005
|
+
});
|
|
7666
8006
|
```
|
|
7667
8007
|
|
|
7668
8008
|
</dd>
|
|
@@ -7678,7 +8018,7 @@ await client.billingNew.rates.addCounterpartiesV1("rate_id");
|
|
|
7678
8018
|
<dl>
|
|
7679
8019
|
<dd>
|
|
7680
8020
|
|
|
7681
|
-
**
|
|
8021
|
+
**invoiceId:** `string`
|
|
7682
8022
|
|
|
7683
8023
|
</dd>
|
|
7684
8024
|
</dl>
|
|
@@ -7686,7 +8026,7 @@ await client.billingNew.rates.addCounterpartiesV1("rate_id");
|
|
|
7686
8026
|
<dl>
|
|
7687
8027
|
<dd>
|
|
7688
8028
|
|
|
7689
|
-
**request:** `Chrt.billingNew.
|
|
8029
|
+
**request:** `Chrt.billingNew.InvoiceLineItemsAddReq`
|
|
7690
8030
|
|
|
7691
8031
|
</dd>
|
|
7692
8032
|
</dl>
|
|
@@ -7694,7 +8034,7 @@ await client.billingNew.rates.addCounterpartiesV1("rate_id");
|
|
|
7694
8034
|
<dl>
|
|
7695
8035
|
<dd>
|
|
7696
8036
|
|
|
7697
|
-
**requestOptions:** `
|
|
8037
|
+
**requestOptions:** `Invoices.RequestOptions`
|
|
7698
8038
|
|
|
7699
8039
|
</dd>
|
|
7700
8040
|
</dl>
|
|
@@ -7705,7 +8045,7 @@ await client.billingNew.rates.addCounterpartiesV1("rate_id");
|
|
|
7705
8045
|
</dl>
|
|
7706
8046
|
</details>
|
|
7707
8047
|
|
|
7708
|
-
<details><summary><code>client.billingNew.
|
|
8048
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">removeLineItemsV1</a>(invoiceId, { ...params }) -> Chrt.Invoice1</code></summary>
|
|
7709
8049
|
<dl>
|
|
7710
8050
|
<dd>
|
|
7711
8051
|
|
|
@@ -7717,7 +8057,7 @@ await client.billingNew.rates.addCounterpartiesV1("rate_id");
|
|
|
7717
8057
|
<dl>
|
|
7718
8058
|
<dd>
|
|
7719
8059
|
|
|
7720
|
-
|
|
8060
|
+
Detaches existing line items from a draft invoice and synchronizes derived invoice fields. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsRemoveReq) -> (Invoice1)
|
|
7721
8061
|
|
|
7722
8062
|
</dd>
|
|
7723
8063
|
</dl>
|
|
@@ -7733,7 +8073,9 @@ Atomically removes counterparties from owner-scoped ground-provider rates. | aut
|
|
|
7733
8073
|
<dd>
|
|
7734
8074
|
|
|
7735
8075
|
```typescript
|
|
7736
|
-
await client.billingNew.
|
|
8076
|
+
await client.billingNew.invoices.removeLineItemsV1("invoice_id", {
|
|
8077
|
+
invoice_line_item_ids: ["invoice_line_item_ids"],
|
|
8078
|
+
});
|
|
7737
8079
|
```
|
|
7738
8080
|
|
|
7739
8081
|
</dd>
|
|
@@ -7749,7 +8091,7 @@ await client.billingNew.rates.removeCounterpartiesV1("rate_id");
|
|
|
7749
8091
|
<dl>
|
|
7750
8092
|
<dd>
|
|
7751
8093
|
|
|
7752
|
-
**
|
|
8094
|
+
**invoiceId:** `string`
|
|
7753
8095
|
|
|
7754
8096
|
</dd>
|
|
7755
8097
|
</dl>
|
|
@@ -7757,7 +8099,7 @@ await client.billingNew.rates.removeCounterpartiesV1("rate_id");
|
|
|
7757
8099
|
<dl>
|
|
7758
8100
|
<dd>
|
|
7759
8101
|
|
|
7760
|
-
**request:** `Chrt.billingNew.
|
|
8102
|
+
**request:** `Chrt.billingNew.InvoiceLineItemsRemoveReq`
|
|
7761
8103
|
|
|
7762
8104
|
</dd>
|
|
7763
8105
|
</dl>
|
|
@@ -7765,7 +8107,7 @@ await client.billingNew.rates.removeCounterpartiesV1("rate_id");
|
|
|
7765
8107
|
<dl>
|
|
7766
8108
|
<dd>
|
|
7767
8109
|
|
|
7768
|
-
**requestOptions:** `
|
|
8110
|
+
**requestOptions:** `Invoices.RequestOptions`
|
|
7769
8111
|
|
|
7770
8112
|
</dd>
|
|
7771
8113
|
</dl>
|
|
@@ -7776,7 +8118,7 @@ await client.billingNew.rates.removeCounterpartiesV1("rate_id");
|
|
|
7776
8118
|
</dl>
|
|
7777
8119
|
</details>
|
|
7778
8120
|
|
|
7779
|
-
<details><summary><code>client.billingNew.
|
|
8121
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">listV1</a>({ ...params }) -> Chrt.InvoiceListRes</code></summary>
|
|
7780
8122
|
<dl>
|
|
7781
8123
|
<dd>
|
|
7782
8124
|
|
|
@@ -7788,7 +8130,7 @@ await client.billingNew.rates.removeCounterpartiesV1("rate_id");
|
|
|
7788
8130
|
<dl>
|
|
7789
8131
|
<dd>
|
|
7790
8132
|
|
|
7791
|
-
|
|
8133
|
+
Lists owner-scoped invoices with search, filtering, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceListRes)
|
|
7792
8134
|
|
|
7793
8135
|
</dd>
|
|
7794
8136
|
</dl>
|
|
@@ -7804,9 +8146,19 @@ Creates ground-provider rates owned by the caller's organization. | authz: allow
|
|
|
7804
8146
|
<dd>
|
|
7805
8147
|
|
|
7806
8148
|
```typescript
|
|
7807
|
-
await client.billingNew.
|
|
7808
|
-
|
|
7809
|
-
|
|
8149
|
+
await client.billingNew.invoices.listV1({
|
|
8150
|
+
search: "search",
|
|
8151
|
+
sort_by: "created_at_timestamp",
|
|
8152
|
+
sort_order: "asc",
|
|
8153
|
+
page: 1,
|
|
8154
|
+
page_size: 1,
|
|
8155
|
+
filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
8156
|
+
filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
8157
|
+
filter_counterparty_account_id: "filter_counterparty_account_id",
|
|
8158
|
+
filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
8159
|
+
filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
8160
|
+
filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
8161
|
+
filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
7810
8162
|
});
|
|
7811
8163
|
```
|
|
7812
8164
|
|
|
@@ -7823,7 +8175,7 @@ await client.billingNew.rates.createV1({
|
|
|
7823
8175
|
<dl>
|
|
7824
8176
|
<dd>
|
|
7825
8177
|
|
|
7826
|
-
**request:** `Chrt.billingNew.
|
|
8178
|
+
**request:** `Chrt.billingNew.InvoicesListV1Request`
|
|
7827
8179
|
|
|
7828
8180
|
</dd>
|
|
7829
8181
|
</dl>
|
|
@@ -7831,7 +8183,7 @@ await client.billingNew.rates.createV1({
|
|
|
7831
8183
|
<dl>
|
|
7832
8184
|
<dd>
|
|
7833
8185
|
|
|
7834
|
-
**requestOptions:** `
|
|
8186
|
+
**requestOptions:** `Invoices.RequestOptions`
|
|
7835
8187
|
|
|
7836
8188
|
</dd>
|
|
7837
8189
|
</dl>
|
|
@@ -7842,7 +8194,7 @@ await client.billingNew.rates.createV1({
|
|
|
7842
8194
|
</dl>
|
|
7843
8195
|
</details>
|
|
7844
8196
|
|
|
7845
|
-
<details><summary><code>client.billingNew.
|
|
8197
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">updateV1</a>(invoiceId, { ...params }) -> boolean</code></summary>
|
|
7846
8198
|
<dl>
|
|
7847
8199
|
<dd>
|
|
7848
8200
|
|
|
@@ -7854,7 +8206,7 @@ await client.billingNew.rates.createV1({
|
|
|
7854
8206
|
<dl>
|
|
7855
8207
|
<dd>
|
|
7856
8208
|
|
|
7857
|
-
|
|
8209
|
+
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)
|
|
7858
8210
|
|
|
7859
8211
|
</dd>
|
|
7860
8212
|
</dl>
|
|
@@ -7870,7 +8222,7 @@ Hard-deletes owner-scoped ground-provider rates. | authz: allowed_org_types=[pro
|
|
|
7870
8222
|
<dd>
|
|
7871
8223
|
|
|
7872
8224
|
```typescript
|
|
7873
|
-
await client.billingNew.
|
|
8225
|
+
await client.billingNew.invoices.updateV1("invoice_id");
|
|
7874
8226
|
```
|
|
7875
8227
|
|
|
7876
8228
|
</dd>
|
|
@@ -7886,7 +8238,15 @@ await client.billingNew.rates.deleteV1("rate_id");
|
|
|
7886
8238
|
<dl>
|
|
7887
8239
|
<dd>
|
|
7888
8240
|
|
|
7889
|
-
**
|
|
8241
|
+
**invoiceId:** `string`
|
|
8242
|
+
|
|
8243
|
+
</dd>
|
|
8244
|
+
</dl>
|
|
8245
|
+
|
|
8246
|
+
<dl>
|
|
8247
|
+
<dd>
|
|
8248
|
+
|
|
8249
|
+
**request:** `Chrt.billingNew.InvoiceClientUpdate1`
|
|
7890
8250
|
|
|
7891
8251
|
</dd>
|
|
7892
8252
|
</dl>
|
|
@@ -7894,7 +8254,7 @@ await client.billingNew.rates.deleteV1("rate_id");
|
|
|
7894
8254
|
<dl>
|
|
7895
8255
|
<dd>
|
|
7896
8256
|
|
|
7897
|
-
**requestOptions:** `
|
|
8257
|
+
**requestOptions:** `Invoices.RequestOptions`
|
|
7898
8258
|
|
|
7899
8259
|
</dd>
|
|
7900
8260
|
</dl>
|
|
@@ -7905,7 +8265,7 @@ await client.billingNew.rates.deleteV1("rate_id");
|
|
|
7905
8265
|
</dl>
|
|
7906
8266
|
</details>
|
|
7907
8267
|
|
|
7908
|
-
<details><summary><code>client.billingNew.
|
|
8268
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">getV1</a>(invoiceId) -> Chrt.Invoice1</code></summary>
|
|
7909
8269
|
<dl>
|
|
7910
8270
|
<dd>
|
|
7911
8271
|
|
|
@@ -7917,7 +8277,7 @@ await client.billingNew.rates.deleteV1("rate_id");
|
|
|
7917
8277
|
<dl>
|
|
7918
8278
|
<dd>
|
|
7919
8279
|
|
|
7920
|
-
|
|
8280
|
+
Retrieves an invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
7921
8281
|
|
|
7922
8282
|
</dd>
|
|
7923
8283
|
</dl>
|
|
@@ -7933,21 +8293,7 @@ Lists owner-scoped ground-provider rates with counterparty, cargo, vehicle, curr
|
|
|
7933
8293
|
<dd>
|
|
7934
8294
|
|
|
7935
8295
|
```typescript
|
|
7936
|
-
await client.billingNew.
|
|
7937
|
-
search: "search",
|
|
7938
|
-
sort_by: "name",
|
|
7939
|
-
sort_order: "asc",
|
|
7940
|
-
page: 1,
|
|
7941
|
-
page_size: 1,
|
|
7942
|
-
filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
7943
|
-
filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
7944
|
-
filter_counterparty_account_id: "filter_counterparty_account_id",
|
|
7945
|
-
filter_counterparty_driver_id: "filter_counterparty_driver_id",
|
|
7946
|
-
filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
7947
|
-
filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
7948
|
-
filter_updated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
7949
|
-
filter_updated_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
7950
|
-
});
|
|
8296
|
+
await client.billingNew.invoices.getV1("invoice_id");
|
|
7951
8297
|
```
|
|
7952
8298
|
|
|
7953
8299
|
</dd>
|
|
@@ -7963,7 +8309,7 @@ await client.billingNew.rates.listV1({
|
|
|
7963
8309
|
<dl>
|
|
7964
8310
|
<dd>
|
|
7965
8311
|
|
|
7966
|
-
**
|
|
8312
|
+
**invoiceId:** `string`
|
|
7967
8313
|
|
|
7968
8314
|
</dd>
|
|
7969
8315
|
</dl>
|
|
@@ -7971,7 +8317,7 @@ await client.billingNew.rates.listV1({
|
|
|
7971
8317
|
<dl>
|
|
7972
8318
|
<dd>
|
|
7973
8319
|
|
|
7974
|
-
**requestOptions:** `
|
|
8320
|
+
**requestOptions:** `Invoices.RequestOptions`
|
|
7975
8321
|
|
|
7976
8322
|
</dd>
|
|
7977
8323
|
</dl>
|
|
@@ -7982,7 +8328,7 @@ await client.billingNew.rates.listV1({
|
|
|
7982
8328
|
</dl>
|
|
7983
8329
|
</details>
|
|
7984
8330
|
|
|
7985
|
-
<details><summary><code>client.billingNew.
|
|
8331
|
+
<details><summary><code>client.billingNew.invoices.<a href="/src/api/resources/billingNew/resources/invoices/client/Client.ts">voidV1</a>(invoiceId, { ...params }) -> Chrt.Invoice1</code></summary>
|
|
7986
8332
|
<dl>
|
|
7987
8333
|
<dd>
|
|
7988
8334
|
|
|
@@ -7994,7 +8340,7 @@ await client.billingNew.rates.listV1({
|
|
|
7994
8340
|
<dl>
|
|
7995
8341
|
<dd>
|
|
7996
8342
|
|
|
7997
|
-
|
|
8343
|
+
Voids a draft or approved invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceVoidReq) -> (Invoice1)
|
|
7998
8344
|
|
|
7999
8345
|
</dd>
|
|
8000
8346
|
</dl>
|
|
@@ -8010,7 +8356,7 @@ Updates owner-scoped ground-provider rates and advances the server-managed updat
|
|
|
8010
8356
|
<dd>
|
|
8011
8357
|
|
|
8012
8358
|
```typescript
|
|
8013
|
-
await client.billingNew.
|
|
8359
|
+
await client.billingNew.invoices.voidV1("invoice_id");
|
|
8014
8360
|
```
|
|
8015
8361
|
|
|
8016
8362
|
</dd>
|
|
@@ -8026,7 +8372,7 @@ await client.billingNew.rates.updateV1("rate_id");
|
|
|
8026
8372
|
<dl>
|
|
8027
8373
|
<dd>
|
|
8028
8374
|
|
|
8029
|
-
**
|
|
8375
|
+
**invoiceId:** `string`
|
|
8030
8376
|
|
|
8031
8377
|
</dd>
|
|
8032
8378
|
</dl>
|
|
@@ -8034,7 +8380,7 @@ await client.billingNew.rates.updateV1("rate_id");
|
|
|
8034
8380
|
<dl>
|
|
8035
8381
|
<dd>
|
|
8036
8382
|
|
|
8037
|
-
**request:** `Chrt.billingNew.
|
|
8383
|
+
**request:** `Chrt.billingNew.InvoiceVoidReq`
|
|
8038
8384
|
|
|
8039
8385
|
</dd>
|
|
8040
8386
|
</dl>
|
|
@@ -8042,7 +8388,7 @@ await client.billingNew.rates.updateV1("rate_id");
|
|
|
8042
8388
|
<dl>
|
|
8043
8389
|
<dd>
|
|
8044
8390
|
|
|
8045
|
-
**requestOptions:** `
|
|
8391
|
+
**requestOptions:** `Invoices.RequestOptions`
|
|
8046
8392
|
|
|
8047
8393
|
</dd>
|
|
8048
8394
|
</dl>
|
|
@@ -8053,7 +8399,9 @@ await client.billingNew.rates.updateV1("rate_id");
|
|
|
8053
8399
|
</dl>
|
|
8054
8400
|
</details>
|
|
8055
8401
|
|
|
8056
|
-
|
|
8402
|
+
## BillingNew Orders
|
|
8403
|
+
|
|
8404
|
+
<details><summary><code>client.billingNew.orders.<a href="/src/api/resources/billingNew/resources/orders/client/Client.ts">listExpandedForCoordinatorOperatorsV1</a>({ ...params }) -> Chrt.OrderBillingExpandedListRes</code></summary>
|
|
8057
8405
|
<dl>
|
|
8058
8406
|
<dd>
|
|
8059
8407
|
|
|
@@ -8065,7 +8413,7 @@ await client.billingNew.rates.updateV1("rate_id");
|
|
|
8065
8413
|
<dl>
|
|
8066
8414
|
<dd>
|
|
8067
8415
|
|
|
8068
|
-
|
|
8416
|
+
Lists coordinator orders with billing summaries and optional party-name expansion. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderBillingExpandedListReq) -> (OrderBillingExpandedListRes)
|
|
8069
8417
|
|
|
8070
8418
|
</dd>
|
|
8071
8419
|
</dl>
|
|
@@ -8081,7 +8429,30 @@ Retrieves owner-scoped ground-provider rates. | authz: allowed_org_types=[provid
|
|
|
8081
8429
|
<dd>
|
|
8082
8430
|
|
|
8083
8431
|
```typescript
|
|
8084
|
-
await client.billingNew.
|
|
8432
|
+
await client.billingNew.orders.listExpandedForCoordinatorOperatorsV1({
|
|
8433
|
+
sort_by: "draft_started_at_timestamp",
|
|
8434
|
+
sort_order: "asc",
|
|
8435
|
+
page: 1,
|
|
8436
|
+
page_size: 1,
|
|
8437
|
+
search: "search",
|
|
8438
|
+
filter_awb_number: "filter_awb_number",
|
|
8439
|
+
filter_shipper_org_id: "filter_shipper_org_id",
|
|
8440
|
+
filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
8441
|
+
filter_executor_org_id: "filter_executor_org_id",
|
|
8442
|
+
filter_coordinator_label: "filter_coordinator_label",
|
|
8443
|
+
filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
8444
|
+
filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
8445
|
+
filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
8446
|
+
filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
8447
|
+
filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
8448
|
+
filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
8449
|
+
filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
8450
|
+
filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
8451
|
+
filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
8452
|
+
filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
8453
|
+
filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
8454
|
+
filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
8455
|
+
});
|
|
8085
8456
|
```
|
|
8086
8457
|
|
|
8087
8458
|
</dd>
|
|
@@ -8097,7 +8468,7 @@ await client.billingNew.rates.getV1("rate_id");
|
|
|
8097
8468
|
<dl>
|
|
8098
8469
|
<dd>
|
|
8099
8470
|
|
|
8100
|
-
**
|
|
8471
|
+
**request:** `Chrt.billingNew.OrderBillingExpandedListReq`
|
|
8101
8472
|
|
|
8102
8473
|
</dd>
|
|
8103
8474
|
</dl>
|
|
@@ -8105,7 +8476,7 @@ await client.billingNew.rates.getV1("rate_id");
|
|
|
8105
8476
|
<dl>
|
|
8106
8477
|
<dd>
|
|
8107
8478
|
|
|
8108
|
-
**requestOptions:** `
|
|
8479
|
+
**requestOptions:** `Orders.RequestOptions`
|
|
8109
8480
|
|
|
8110
8481
|
</dd>
|
|
8111
8482
|
</dl>
|
|
@@ -22343,148 +22714,6 @@ await client.shipping.orders.cancelManyV1({
|
|
|
22343
22714
|
</dl>
|
|
22344
22715
|
</details>
|
|
22345
22716
|
|
|
22346
|
-
<details><summary><code>client.shipping.orders.<a href="/src/api/resources/shipping/resources/orders/client/Client.ts">addCoordinatorShipperAccountIdV1</a>(orderId, coordinatorShipperAccountId) -> boolean</code></summary>
|
|
22347
|
-
<dl>
|
|
22348
|
-
<dd>
|
|
22349
|
-
|
|
22350
|
-
#### 📝 Description
|
|
22351
|
-
|
|
22352
|
-
<dl>
|
|
22353
|
-
<dd>
|
|
22354
|
-
|
|
22355
|
-
<dl>
|
|
22356
|
-
<dd>
|
|
22357
|
-
|
|
22358
|
-
Adds a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
|
|
22359
|
-
|
|
22360
|
-
</dd>
|
|
22361
|
-
</dl>
|
|
22362
|
-
</dd>
|
|
22363
|
-
</dl>
|
|
22364
|
-
|
|
22365
|
-
#### 🔌 Usage
|
|
22366
|
-
|
|
22367
|
-
<dl>
|
|
22368
|
-
<dd>
|
|
22369
|
-
|
|
22370
|
-
<dl>
|
|
22371
|
-
<dd>
|
|
22372
|
-
|
|
22373
|
-
```typescript
|
|
22374
|
-
await client.shipping.orders.addCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id");
|
|
22375
|
-
```
|
|
22376
|
-
|
|
22377
|
-
</dd>
|
|
22378
|
-
</dl>
|
|
22379
|
-
</dd>
|
|
22380
|
-
</dl>
|
|
22381
|
-
|
|
22382
|
-
#### ⚙️ Parameters
|
|
22383
|
-
|
|
22384
|
-
<dl>
|
|
22385
|
-
<dd>
|
|
22386
|
-
|
|
22387
|
-
<dl>
|
|
22388
|
-
<dd>
|
|
22389
|
-
|
|
22390
|
-
**orderId:** `string`
|
|
22391
|
-
|
|
22392
|
-
</dd>
|
|
22393
|
-
</dl>
|
|
22394
|
-
|
|
22395
|
-
<dl>
|
|
22396
|
-
<dd>
|
|
22397
|
-
|
|
22398
|
-
**coordinatorShipperAccountId:** `string`
|
|
22399
|
-
|
|
22400
|
-
</dd>
|
|
22401
|
-
</dl>
|
|
22402
|
-
|
|
22403
|
-
<dl>
|
|
22404
|
-
<dd>
|
|
22405
|
-
|
|
22406
|
-
**requestOptions:** `Orders.RequestOptions`
|
|
22407
|
-
|
|
22408
|
-
</dd>
|
|
22409
|
-
</dl>
|
|
22410
|
-
</dd>
|
|
22411
|
-
</dl>
|
|
22412
|
-
|
|
22413
|
-
</dd>
|
|
22414
|
-
</dl>
|
|
22415
|
-
</details>
|
|
22416
|
-
|
|
22417
|
-
<details><summary><code>client.shipping.orders.<a href="/src/api/resources/shipping/resources/orders/client/Client.ts">removeCoordinatorShipperAccountIdV1</a>(orderId, coordinatorShipperAccountId) -> boolean</code></summary>
|
|
22418
|
-
<dl>
|
|
22419
|
-
<dd>
|
|
22420
|
-
|
|
22421
|
-
#### 📝 Description
|
|
22422
|
-
|
|
22423
|
-
<dl>
|
|
22424
|
-
<dd>
|
|
22425
|
-
|
|
22426
|
-
<dl>
|
|
22427
|
-
<dd>
|
|
22428
|
-
|
|
22429
|
-
Removes a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
|
|
22430
|
-
|
|
22431
|
-
</dd>
|
|
22432
|
-
</dl>
|
|
22433
|
-
</dd>
|
|
22434
|
-
</dl>
|
|
22435
|
-
|
|
22436
|
-
#### 🔌 Usage
|
|
22437
|
-
|
|
22438
|
-
<dl>
|
|
22439
|
-
<dd>
|
|
22440
|
-
|
|
22441
|
-
<dl>
|
|
22442
|
-
<dd>
|
|
22443
|
-
|
|
22444
|
-
```typescript
|
|
22445
|
-
await client.shipping.orders.removeCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id");
|
|
22446
|
-
```
|
|
22447
|
-
|
|
22448
|
-
</dd>
|
|
22449
|
-
</dl>
|
|
22450
|
-
</dd>
|
|
22451
|
-
</dl>
|
|
22452
|
-
|
|
22453
|
-
#### ⚙️ Parameters
|
|
22454
|
-
|
|
22455
|
-
<dl>
|
|
22456
|
-
<dd>
|
|
22457
|
-
|
|
22458
|
-
<dl>
|
|
22459
|
-
<dd>
|
|
22460
|
-
|
|
22461
|
-
**orderId:** `string`
|
|
22462
|
-
|
|
22463
|
-
</dd>
|
|
22464
|
-
</dl>
|
|
22465
|
-
|
|
22466
|
-
<dl>
|
|
22467
|
-
<dd>
|
|
22468
|
-
|
|
22469
|
-
**coordinatorShipperAccountId:** `string`
|
|
22470
|
-
|
|
22471
|
-
</dd>
|
|
22472
|
-
</dl>
|
|
22473
|
-
|
|
22474
|
-
<dl>
|
|
22475
|
-
<dd>
|
|
22476
|
-
|
|
22477
|
-
**requestOptions:** `Orders.RequestOptions`
|
|
22478
|
-
|
|
22479
|
-
</dd>
|
|
22480
|
-
</dl>
|
|
22481
|
-
</dd>
|
|
22482
|
-
</dl>
|
|
22483
|
-
|
|
22484
|
-
</dd>
|
|
22485
|
-
</dl>
|
|
22486
|
-
</details>
|
|
22487
|
-
|
|
22488
22717
|
<details><summary><code>client.shipping.orders.<a href="/src/api/resources/shipping/resources/orders/client/Client.ts">stageV1</a>(orderId) -> boolean</code></summary>
|
|
22489
22718
|
<dl>
|
|
22490
22719
|
<dd>
|
|
@@ -25304,6 +25533,77 @@ await client.shipping.tasks.deleteV1("task_id");
|
|
|
25304
25533
|
</dl>
|
|
25305
25534
|
</details>
|
|
25306
25535
|
|
|
25536
|
+
<details><summary><code>client.shipping.tasks.<a href="/src/api/resources/shipping/resources/tasks/client/Client.ts">locationFromReferenceV1</a>(taskId, { ...params }) -> string</code></summary>
|
|
25537
|
+
<dl>
|
|
25538
|
+
<dd>
|
|
25539
|
+
|
|
25540
|
+
#### 📝 Description
|
|
25541
|
+
|
|
25542
|
+
<dl>
|
|
25543
|
+
<dd>
|
|
25544
|
+
|
|
25545
|
+
<dl>
|
|
25546
|
+
<dd>
|
|
25547
|
+
|
|
25548
|
+
Overrides a draft or staged task location from a contact or coordinator shipper account and associates the reference. | authz_personas=[draft_creator_org_operator, order_creator_org_operators, lig_owner_operators, coordinator_org_operators] | (TaskLocationFromReferenceReq) -> (PydanticObjectId)
|
|
25549
|
+
|
|
25550
|
+
</dd>
|
|
25551
|
+
</dl>
|
|
25552
|
+
</dd>
|
|
25553
|
+
</dl>
|
|
25554
|
+
|
|
25555
|
+
#### 🔌 Usage
|
|
25556
|
+
|
|
25557
|
+
<dl>
|
|
25558
|
+
<dd>
|
|
25559
|
+
|
|
25560
|
+
<dl>
|
|
25561
|
+
<dd>
|
|
25562
|
+
|
|
25563
|
+
```typescript
|
|
25564
|
+
await client.shipping.tasks.locationFromReferenceV1("task_id");
|
|
25565
|
+
```
|
|
25566
|
+
|
|
25567
|
+
</dd>
|
|
25568
|
+
</dl>
|
|
25569
|
+
</dd>
|
|
25570
|
+
</dl>
|
|
25571
|
+
|
|
25572
|
+
#### ⚙️ Parameters
|
|
25573
|
+
|
|
25574
|
+
<dl>
|
|
25575
|
+
<dd>
|
|
25576
|
+
|
|
25577
|
+
<dl>
|
|
25578
|
+
<dd>
|
|
25579
|
+
|
|
25580
|
+
**taskId:** `string`
|
|
25581
|
+
|
|
25582
|
+
</dd>
|
|
25583
|
+
</dl>
|
|
25584
|
+
|
|
25585
|
+
<dl>
|
|
25586
|
+
<dd>
|
|
25587
|
+
|
|
25588
|
+
**request:** `Chrt.shipping.TaskLocationFromReferenceReq`
|
|
25589
|
+
|
|
25590
|
+
</dd>
|
|
25591
|
+
</dl>
|
|
25592
|
+
|
|
25593
|
+
<dl>
|
|
25594
|
+
<dd>
|
|
25595
|
+
|
|
25596
|
+
**requestOptions:** `Tasks.RequestOptions`
|
|
25597
|
+
|
|
25598
|
+
</dd>
|
|
25599
|
+
</dl>
|
|
25600
|
+
</dd>
|
|
25601
|
+
</dl>
|
|
25602
|
+
|
|
25603
|
+
</dd>
|
|
25604
|
+
</dl>
|
|
25605
|
+
</details>
|
|
25606
|
+
|
|
25307
25607
|
<details><summary><code>client.shipping.tasks.<a href="/src/api/resources/shipping/resources/tasks/client/Client.ts">skipV1</a>(taskId) -> boolean</code></summary>
|
|
25308
25608
|
<dl>
|
|
25309
25609
|
<dd>
|
|
@@ -25379,7 +25679,7 @@ await client.shipping.tasks.skipV1("task_id");
|
|
|
25379
25679
|
<dl>
|
|
25380
25680
|
<dd>
|
|
25381
25681
|
|
|
25382
|
-
Updates a task. Operational fields
|
|
25682
|
+
Updates a task. Operational fields require lig_owner_operators, comments require order_creator_org_operators, contacts allow either, and coordinator_shipper_account_ids require coordinator_org_operators. | authz_personas=[lig_owner_operators, order_creator_org_operators, coordinator_org_operators] | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
25383
25683
|
|
|
25384
25684
|
</dd>
|
|
25385
25685
|
</dl>
|
|
@@ -28511,7 +28811,7 @@ await client.shipping.orders.drafts.task.deleteV1("task_id");
|
|
|
28511
28811
|
<dl>
|
|
28512
28812
|
<dd>
|
|
28513
28813
|
|
|
28514
|
-
Updates a task in an existing draft order. | authz_personas=[draft_creator_org_operator] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
|
|
28814
|
+
Updates a task in an existing draft order. Supplying coordinator_shipper_account_ids additionally requires coordinator_org_operators. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
|
|
28515
28815
|
|
|
28516
28816
|
</dd>
|
|
28517
28817
|
</dl>
|