@chrt-inc/typescript-sdk 1.891.0 → 1.892.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.d.ts +3 -0
- package/dist/cjs/Client.js +23 -18
- package/dist/cjs/api/resources/billingNew/client/Client.d.ts +29 -0
- package/dist/cjs/api/resources/billingNew/client/Client.js +27 -0
- package/dist/cjs/api/resources/billingNew/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/client/index.js +2 -0
- package/dist/cjs/api/resources/billingNew/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/index.js +18 -0
- package/dist/cjs/api/resources/billingNew/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/billingNew/resources/index.js +45 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +180 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +639 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.ts +22 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +28 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.ts +45 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.ts +19 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsDeleteManyReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsDeleteManyReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.ts +62 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +217 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +880 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.ts +24 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientUpdate1.d.ts +13 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsAddReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsAddReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsRemoveReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsRemoveReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceVoidReq.d.ts +10 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceVoidReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.ts +51 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/Client.d.ts +145 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/Client.js +578 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.ts +13 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +37 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientCreate1.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.ts +43 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.ts +13 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/RatesListV1Request.d.ts +54 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/RatesListV1Request.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/rates/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +36 -20
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/types/AdditionalMileageRate1.d.ts +9 -0
- package/dist/cjs/api/types/AdditionalMileageRate1.js +5 -0
- package/dist/cjs/api/types/AfterHoursRate1.d.ts +7 -0
- package/dist/cjs/api/types/AfterHoursRate1.js +5 -0
- package/dist/cjs/api/types/ApplyChrtGroundProviderRatesRes.d.ts +7 -0
- package/dist/cjs/api/types/ApplyChrtGroundProviderRatesRes.js +5 -0
- package/dist/cjs/api/types/AttemptRate1.d.ts +7 -0
- package/dist/cjs/api/types/AttemptRate1.js +5 -0
- package/dist/cjs/api/types/BaseMileageRate1.d.ts +8 -0
- package/dist/cjs/api/types/BaseMileageRate1.js +5 -0
- package/dist/cjs/api/types/BillingCurrencyCodeEnum1.d.ts +17 -0
- package/dist/cjs/api/types/BillingCurrencyCodeEnum1.js +19 -0
- package/dist/cjs/api/types/CargoTypeEnum1.d.ts +8 -1
- package/dist/cjs/api/types/CargoTypeEnum1.js +7 -0
- package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +35 -0
- package/dist/cjs/api/types/ChrtGroundProviderRates1.js +5 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesListRes.d.ts +8 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesListRes.js +5 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesSortByEnum.d.ts +10 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesSortByEnum.js +12 -0
- package/dist/cjs/api/types/CreateInvoiceLineItemsFromAmountRes.d.ts +7 -0
- package/dist/cjs/api/types/CreateInvoiceLineItemsFromAmountRes.js +5 -0
- package/dist/cjs/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.ts +7 -0
- package/dist/cjs/api/types/CreateInvoiceLineItemsFromLineItemsRes.js +5 -0
- package/dist/cjs/api/types/DangerousGoodsRate1.d.ts +7 -0
- package/dist/cjs/api/types/DangerousGoodsRate1.js +5 -0
- package/dist/cjs/api/types/ExtraStopRate1.d.ts +7 -0
- package/dist/cjs/api/types/ExtraStopRate1.js +5 -0
- package/dist/cjs/api/types/FlatFeeRate1.d.ts +7 -0
- package/dist/cjs/api/types/FlatFeeRate1.js +5 -0
- package/dist/cjs/api/types/FuelSurchargeRate1.d.ts +7 -0
- package/dist/cjs/api/types/FuelSurchargeRate1.js +5 -0
- package/dist/cjs/api/types/HolidayRate1.d.ts +7 -0
- package/dist/cjs/api/types/HolidayRate1.js +5 -0
- package/dist/cjs/api/types/Invoice1.d.ts +57 -0
- package/dist/cjs/api/types/Invoice1.js +5 -0
- package/dist/cjs/api/types/InvoiceExpandedRes.d.ts +11 -0
- package/dist/cjs/api/types/InvoiceExpandedRes.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItem1.d.ts +31 -0
- package/dist/cjs/api/types/InvoiceLineItem1.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemAmountTransformation1.d.ts +8 -0
- package/dist/cjs/api/types/InvoiceLineItemAmountTransformation1.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.ts +9 -0
- package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.js +11 -0
- package/dist/cjs/api/types/InvoiceLineItemListRes.d.ts +8 -0
- package/dist/cjs/api/types/InvoiceLineItemListRes.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemSortByEnum.d.ts +14 -0
- package/dist/cjs/api/types/InvoiceLineItemSortByEnum.js +16 -0
- package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.d.ts +33 -0
- package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.js +35 -0
- package/dist/cjs/api/types/InvoiceLineItemUnitEnum1.d.ts +14 -0
- package/dist/cjs/api/types/InvoiceLineItemUnitEnum1.js +16 -0
- package/dist/cjs/api/types/InvoiceLineItemsByOrderExpandedRes.d.ts +10 -0
- package/dist/cjs/api/types/InvoiceLineItemsByOrderExpandedRes.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemsDeleteManyRes.d.ts +6 -0
- package/dist/cjs/api/types/InvoiceLineItemsDeleteManyRes.js +5 -0
- package/dist/cjs/api/types/InvoiceListRes.d.ts +8 -0
- package/dist/cjs/api/types/InvoiceListRes.js +5 -0
- package/dist/cjs/api/types/InvoiceMergeStatusEnum1.d.ts +12 -0
- package/dist/cjs/api/types/InvoiceMergeStatusEnum1.js +14 -0
- package/dist/cjs/api/types/InvoiceSortByEnum.d.ts +11 -0
- package/dist/cjs/api/types/InvoiceSortByEnum.js +13 -0
- package/dist/cjs/api/types/InvoiceStatusEnum1.d.ts +9 -0
- package/dist/cjs/api/types/InvoiceStatusEnum1.js +11 -0
- package/dist/cjs/api/types/InvoiceStripeStatusEnum1.d.ts +11 -0
- package/dist/cjs/api/types/InvoiceStripeStatusEnum1.js +13 -0
- package/dist/cjs/api/types/InvoiceTypeEnum1.d.ts +8 -0
- package/dist/cjs/api/types/InvoiceTypeEnum1.js +10 -0
- package/dist/cjs/api/types/LongDistanceSurchargeRate1.d.ts +8 -0
- package/dist/cjs/api/types/LongDistanceSurchargeRate1.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +1 -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/OrderTemplateExpanded1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateReferencesExpanded1.d.ts +1 -0
- package/dist/cjs/api/types/PickAndHoldRate1.d.ts +7 -0
- package/dist/cjs/api/types/PickAndHoldRate1.js +5 -0
- package/dist/cjs/api/types/WaitTimeRate1.d.ts +8 -0
- package/dist/cjs/api/types/WaitTimeRate1.js +5 -0
- package/dist/cjs/api/types/WeekendRate1.d.ts +7 -0
- package/dist/cjs/api/types/WeekendRate1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +37 -0
- package/dist/cjs/api/types/index.js +37 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/billingNew/client/Client.d.mts +29 -0
- package/dist/esm/api/resources/billingNew/client/Client.mjs +23 -0
- package/dist/esm/api/resources/billingNew/client/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/client/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/index.mjs +2 -0
- package/dist/esm/api/resources/billingNew/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/billingNew/resources/index.mjs +6 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +180 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +602 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.mts +22 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +28 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.mts +45 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.mts +19 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsDeleteManyReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsDeleteManyReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.mts +62 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +217 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +843 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.mts +24 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientUpdate1.d.mts +13 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsAddReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsAddReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsRemoveReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsRemoveReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceVoidReq.d.mts +10 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceVoidReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.mts +51 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/Client.d.mts +145 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/Client.mjs +541 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.mts +13 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +37 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +43 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.mts +13 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/RatesListV1Request.d.mts +54 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/RatesListV1Request.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/rates/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/rates/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +36 -20
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/types/AdditionalMileageRate1.d.mts +9 -0
- package/dist/esm/api/types/AdditionalMileageRate1.mjs +4 -0
- package/dist/esm/api/types/AfterHoursRate1.d.mts +7 -0
- package/dist/esm/api/types/AfterHoursRate1.mjs +4 -0
- package/dist/esm/api/types/ApplyChrtGroundProviderRatesRes.d.mts +7 -0
- package/dist/esm/api/types/ApplyChrtGroundProviderRatesRes.mjs +4 -0
- package/dist/esm/api/types/AttemptRate1.d.mts +7 -0
- package/dist/esm/api/types/AttemptRate1.mjs +4 -0
- package/dist/esm/api/types/BaseMileageRate1.d.mts +8 -0
- package/dist/esm/api/types/BaseMileageRate1.mjs +4 -0
- package/dist/esm/api/types/BillingCurrencyCodeEnum1.d.mts +17 -0
- package/dist/esm/api/types/BillingCurrencyCodeEnum1.mjs +16 -0
- package/dist/esm/api/types/CargoTypeEnum1.d.mts +8 -1
- package/dist/esm/api/types/CargoTypeEnum1.mjs +7 -0
- package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +35 -0
- package/dist/esm/api/types/ChrtGroundProviderRates1.mjs +4 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesListRes.d.mts +8 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesListRes.mjs +4 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesSortByEnum.d.mts +10 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesSortByEnum.mjs +9 -0
- package/dist/esm/api/types/CreateInvoiceLineItemsFromAmountRes.d.mts +7 -0
- package/dist/esm/api/types/CreateInvoiceLineItemsFromAmountRes.mjs +4 -0
- package/dist/esm/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.mts +7 -0
- package/dist/esm/api/types/CreateInvoiceLineItemsFromLineItemsRes.mjs +4 -0
- package/dist/esm/api/types/DangerousGoodsRate1.d.mts +7 -0
- package/dist/esm/api/types/DangerousGoodsRate1.mjs +4 -0
- package/dist/esm/api/types/ExtraStopRate1.d.mts +7 -0
- package/dist/esm/api/types/ExtraStopRate1.mjs +4 -0
- package/dist/esm/api/types/FlatFeeRate1.d.mts +7 -0
- package/dist/esm/api/types/FlatFeeRate1.mjs +4 -0
- package/dist/esm/api/types/FuelSurchargeRate1.d.mts +7 -0
- package/dist/esm/api/types/FuelSurchargeRate1.mjs +4 -0
- package/dist/esm/api/types/HolidayRate1.d.mts +7 -0
- package/dist/esm/api/types/HolidayRate1.mjs +4 -0
- package/dist/esm/api/types/Invoice1.d.mts +57 -0
- package/dist/esm/api/types/Invoice1.mjs +4 -0
- package/dist/esm/api/types/InvoiceExpandedRes.d.mts +11 -0
- package/dist/esm/api/types/InvoiceExpandedRes.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItem1.d.mts +31 -0
- package/dist/esm/api/types/InvoiceLineItem1.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemAmountTransformation1.d.mts +8 -0
- package/dist/esm/api/types/InvoiceLineItemAmountTransformation1.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.mts +9 -0
- package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.mjs +8 -0
- package/dist/esm/api/types/InvoiceLineItemListRes.d.mts +8 -0
- package/dist/esm/api/types/InvoiceLineItemListRes.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemSortByEnum.d.mts +14 -0
- package/dist/esm/api/types/InvoiceLineItemSortByEnum.mjs +13 -0
- package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +33 -0
- package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +32 -0
- package/dist/esm/api/types/InvoiceLineItemUnitEnum1.d.mts +14 -0
- package/dist/esm/api/types/InvoiceLineItemUnitEnum1.mjs +13 -0
- package/dist/esm/api/types/InvoiceLineItemsByOrderExpandedRes.d.mts +10 -0
- package/dist/esm/api/types/InvoiceLineItemsByOrderExpandedRes.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemsDeleteManyRes.d.mts +6 -0
- package/dist/esm/api/types/InvoiceLineItemsDeleteManyRes.mjs +4 -0
- package/dist/esm/api/types/InvoiceListRes.d.mts +8 -0
- package/dist/esm/api/types/InvoiceListRes.mjs +4 -0
- package/dist/esm/api/types/InvoiceMergeStatusEnum1.d.mts +12 -0
- package/dist/esm/api/types/InvoiceMergeStatusEnum1.mjs +11 -0
- package/dist/esm/api/types/InvoiceSortByEnum.d.mts +11 -0
- package/dist/esm/api/types/InvoiceSortByEnum.mjs +10 -0
- package/dist/esm/api/types/InvoiceStatusEnum1.d.mts +9 -0
- package/dist/esm/api/types/InvoiceStatusEnum1.mjs +8 -0
- package/dist/esm/api/types/InvoiceStripeStatusEnum1.d.mts +11 -0
- package/dist/esm/api/types/InvoiceStripeStatusEnum1.mjs +10 -0
- package/dist/esm/api/types/InvoiceTypeEnum1.d.mts +8 -0
- package/dist/esm/api/types/InvoiceTypeEnum1.mjs +7 -0
- package/dist/esm/api/types/LongDistanceSurchargeRate1.d.mts +8 -0
- package/dist/esm/api/types/LongDistanceSurchargeRate1.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +1 -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/OrderTemplateExpanded1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateReferencesExpanded1.d.mts +1 -0
- package/dist/esm/api/types/PickAndHoldRate1.d.mts +7 -0
- package/dist/esm/api/types/PickAndHoldRate1.mjs +4 -0
- package/dist/esm/api/types/WaitTimeRate1.d.mts +8 -0
- package/dist/esm/api/types/WaitTimeRate1.mjs +4 -0
- package/dist/esm/api/types/WeekendRate1.d.mts +7 -0
- package/dist/esm/api/types/WeekendRate1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +37 -0
- package/dist/esm/api/types/index.mjs +37 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1822 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* invoice_type: "accounts_receivable",
|
|
9
|
+
* org_id: "org_id",
|
|
10
|
+
* rate_sheet_id: "rate_sheet_id",
|
|
11
|
+
* task_group_id: "task_group_id"
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface ApplyChrtGroundProviderRatesReq {
|
|
15
|
+
account_id?: string | null;
|
|
16
|
+
invoice_id?: string | null;
|
|
17
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
18
|
+
/** Must be a string starting with `org_` */
|
|
19
|
+
org_id: string;
|
|
20
|
+
rate_sheet_id: string;
|
|
21
|
+
task_group_id: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* amount: 1.1,
|
|
9
|
+
* currency_code: "USD",
|
|
10
|
+
* description: "description",
|
|
11
|
+
* invoice_type: "accounts_receivable",
|
|
12
|
+
* line_item_type: "base_rate",
|
|
13
|
+
* org_id: "org_id"
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface CreateInvoiceLineItemsFromAmountReq {
|
|
17
|
+
account_ids?: string[];
|
|
18
|
+
amount: number;
|
|
19
|
+
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
20
|
+
description: string;
|
|
21
|
+
invoice_id?: string | null;
|
|
22
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
23
|
+
line_item_type: Chrt.InvoiceLineItemTypeEnum1;
|
|
24
|
+
order_id?: string | null;
|
|
25
|
+
/** Must be a string starting with `org_` */
|
|
26
|
+
org_id: string;
|
|
27
|
+
task_group_id?: string | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* description: "description",
|
|
9
|
+
* invoice_line_item_amount_transformation: {
|
|
10
|
+
* transformation_type: "percent",
|
|
11
|
+
* value: 1.1
|
|
12
|
+
* },
|
|
13
|
+
* invoice_type: "accounts_receivable",
|
|
14
|
+
* line_item_type: "base_rate",
|
|
15
|
+
* org_id: "org_id",
|
|
16
|
+
* source_invoice_line_items: [{
|
|
17
|
+
* _id: "_id",
|
|
18
|
+
* created_at_timestamp: "2024-01-15T09:30:00Z",
|
|
19
|
+
* created_by_user_id: "created_by_user_id",
|
|
20
|
+
* currency_code: "USD",
|
|
21
|
+
* description: "description",
|
|
22
|
+
* invoice_type: "accounts_receivable",
|
|
23
|
+
* last_edited_at_timestamp: "2024-01-15T09:30:00Z",
|
|
24
|
+
* last_edited_by_user_id: "last_edited_by_user_id",
|
|
25
|
+
* line_item_type: "base_rate",
|
|
26
|
+
* owned_by_org_id: "owned_by_org_id",
|
|
27
|
+
* quantity: 1.1,
|
|
28
|
+
* schema_version: 1,
|
|
29
|
+
* unit_price: 1.1
|
|
30
|
+
* }]
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
export interface CreateInvoiceLineItemsFromLineItemsReq {
|
|
34
|
+
account_ids?: string[];
|
|
35
|
+
description: string;
|
|
36
|
+
invoice_id?: string | null;
|
|
37
|
+
invoice_line_item_amount_transformation: Chrt.InvoiceLineItemAmountTransformation1;
|
|
38
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
39
|
+
line_item_type: Chrt.InvoiceLineItemTypeEnum1;
|
|
40
|
+
order_id?: string | null;
|
|
41
|
+
/** Must be a string starting with `org_` */
|
|
42
|
+
org_id: string;
|
|
43
|
+
source_invoice_line_items: Chrt.InvoiceLineItem1[];
|
|
44
|
+
task_group_id?: string | null;
|
|
45
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface InvoiceLineItemClientUpdate1 {
|
|
10
|
+
currency_code?: Chrt.BillingCurrencyCodeEnum1 | null;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
export_ref__sage__item_id?: string | null;
|
|
13
|
+
export_ref__sage__item_id__set_to_None?: boolean;
|
|
14
|
+
invoice_type?: Chrt.InvoiceTypeEnum1 | null;
|
|
15
|
+
quantity?: number | null;
|
|
16
|
+
unit?: Chrt.InvoiceLineItemUnitEnum1 | null;
|
|
17
|
+
unit__set_to_None?: boolean;
|
|
18
|
+
unit_price?: number | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* sort_by: "created_at_timestamp",
|
|
9
|
+
* sort_order: "asc",
|
|
10
|
+
* page: 1,
|
|
11
|
+
* page_size: 1,
|
|
12
|
+
* filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
13
|
+
* filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
14
|
+
* filter_counterparty_account_id: "filter_counterparty_account_id",
|
|
15
|
+
* filter_invoice_id: "filter_invoice_id",
|
|
16
|
+
* filter_is_invoiced: true,
|
|
17
|
+
* filter_order_id: "filter_order_id",
|
|
18
|
+
* filter_task_group_id: "filter_task_group_id",
|
|
19
|
+
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
|
+
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
|
+
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
|
+
* filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
23
|
+
* }
|
|
24
|
+
*/
|
|
25
|
+
export interface InvoiceLineItemsListV1Request {
|
|
26
|
+
/** Field to sort by. */
|
|
27
|
+
sort_by?: Chrt.InvoiceLineItemSortByEnum | null;
|
|
28
|
+
/** Sort order. */
|
|
29
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
30
|
+
page?: number | null;
|
|
31
|
+
page_size?: number | null;
|
|
32
|
+
/** Filter by one or more invoice types. */
|
|
33
|
+
filter_invoice_types?: (Chrt.InvoiceTypeEnum1 | null) | (Chrt.InvoiceTypeEnum1 | null)[];
|
|
34
|
+
/** Filter by one or more currency codes. */
|
|
35
|
+
filter_currency_codes?: (Chrt.BillingCurrencyCodeEnum1 | null) | (Chrt.BillingCurrencyCodeEnum1 | null)[];
|
|
36
|
+
/** Filter by one or more line item types. */
|
|
37
|
+
filter_line_item_types?: (Chrt.InvoiceLineItemTypeEnum1 | null) | (Chrt.InvoiceLineItemTypeEnum1 | null)[];
|
|
38
|
+
/** Filter by one or more units. */
|
|
39
|
+
filter_units?: (Chrt.InvoiceLineItemUnitEnum1 | null) | (Chrt.InvoiceLineItemUnitEnum1 | null)[];
|
|
40
|
+
/** Filter by an on-CHRT counterparty organization. */
|
|
41
|
+
filter_counterparty_org_id?: string | null;
|
|
42
|
+
/** Filter by off-CHRT counterparty organization data. */
|
|
43
|
+
filter_counterparty_off_chrt_org_data_id?: string | null;
|
|
44
|
+
/** Filter by an associated counterparty account. */
|
|
45
|
+
filter_counterparty_account_id?: string | null;
|
|
46
|
+
/** Filter by an attached invoice. */
|
|
47
|
+
filter_invoice_id?: string | null;
|
|
48
|
+
/** Filter by whether a line item is attached to an invoice. */
|
|
49
|
+
filter_is_invoiced?: boolean | null;
|
|
50
|
+
/** Filter by an attributed order. */
|
|
51
|
+
filter_order_id?: string | null;
|
|
52
|
+
/** Filter by an attributed task group. */
|
|
53
|
+
filter_task_group_id?: string | null;
|
|
54
|
+
/** Filter by created_at_timestamp greater than or equal. */
|
|
55
|
+
filter_created_at_timestamp_gte?: string | null;
|
|
56
|
+
/** Filter by created_at_timestamp less than or equal. */
|
|
57
|
+
filter_created_at_timestamp_lte?: string | null;
|
|
58
|
+
/** Filter by last_edited_at_timestamp greater than or equal. */
|
|
59
|
+
filter_last_edited_at_timestamp_gte?: string | null;
|
|
60
|
+
/** Filter by last_edited_at_timestamp less than or equal. */
|
|
61
|
+
filter_last_edited_at_timestamp_lte?: string | null;
|
|
62
|
+
}
|
package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { type ApplyChrtGroundProviderRatesReq } from "./ApplyChrtGroundProviderRatesReq.js";
|
|
2
|
+
export { type CreateInvoiceLineItemsFromAmountReq } from "./CreateInvoiceLineItemsFromAmountReq.js";
|
|
3
|
+
export { type CreateInvoiceLineItemsFromLineItemsReq } from "./CreateInvoiceLineItemsFromLineItemsReq.js";
|
|
4
|
+
export { type InvoiceLineItemsDeleteManyReq } from "./InvoiceLineItemsDeleteManyReq.js";
|
|
5
|
+
export { type InvoiceLineItemsListV1Request } from "./InvoiceLineItemsListV1Request.js";
|
|
6
|
+
export { type InvoiceLineItemClientUpdate1 } from "./InvoiceLineItemClientUpdate1.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
export declare namespace Invoices {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Invoices {
|
|
31
|
+
protected readonly _options: Invoices.Options;
|
|
32
|
+
constructor(_options?: Invoices.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Approves a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} invoiceId
|
|
37
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.billingNew.invoices.approveV1("invoice_id")
|
|
43
|
+
*/
|
|
44
|
+
approveV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
45
|
+
private __approveV1;
|
|
46
|
+
/**
|
|
47
|
+
* Creates a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
|
|
48
|
+
*
|
|
49
|
+
* @param {Chrt.billingNew.InvoiceClientCreate1} request
|
|
50
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.billingNew.invoices.createV1({
|
|
56
|
+
* currency_code: "USD",
|
|
57
|
+
* invoice_type: "accounts_receivable",
|
|
58
|
+
* schema_version: 1
|
|
59
|
+
* })
|
|
60
|
+
*/
|
|
61
|
+
createV1(request: Chrt.billingNew.InvoiceClientCreate1, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<string>;
|
|
62
|
+
private __createV1;
|
|
63
|
+
/**
|
|
64
|
+
* Hard-deletes a draft invoice and detaches its line items. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
|
|
65
|
+
*
|
|
66
|
+
* @param {string} invoiceId
|
|
67
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.billingNew.invoices.deleteV1("invoice_id")
|
|
73
|
+
*/
|
|
74
|
+
deleteV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
75
|
+
private __deleteV1;
|
|
76
|
+
/**
|
|
77
|
+
* 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)
|
|
78
|
+
*
|
|
79
|
+
* @param {string} invoiceId
|
|
80
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.billingNew.invoices.getExpandedV1("invoice_id")
|
|
86
|
+
*/
|
|
87
|
+
getExpandedV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceExpandedRes>;
|
|
88
|
+
private __getExpandedV1;
|
|
89
|
+
/**
|
|
90
|
+
* 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)
|
|
91
|
+
*
|
|
92
|
+
* @param {string} invoiceId
|
|
93
|
+
* @param {string} invoiceLineItemId
|
|
94
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* await client.billingNew.invoices.addLineItemV1("invoice_id", "invoice_line_item_id")
|
|
100
|
+
*/
|
|
101
|
+
addLineItemV1(invoiceId: string, invoiceLineItemId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
102
|
+
private __addLineItemV1;
|
|
103
|
+
/**
|
|
104
|
+
* 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)
|
|
105
|
+
*
|
|
106
|
+
* @param {string} invoiceId
|
|
107
|
+
* @param {string} invoiceLineItemId
|
|
108
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* await client.billingNew.invoices.removeLineItemV1("invoice_id", "invoice_line_item_id")
|
|
114
|
+
*/
|
|
115
|
+
removeLineItemV1(invoiceId: string, invoiceLineItemId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
116
|
+
private __removeLineItemV1;
|
|
117
|
+
/**
|
|
118
|
+
* 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)
|
|
119
|
+
*
|
|
120
|
+
* @param {string} invoiceId
|
|
121
|
+
* @param {Chrt.billingNew.InvoiceLineItemsAddReq} request
|
|
122
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* await client.billingNew.invoices.addLineItemsV1("invoice_id", {
|
|
128
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"]
|
|
129
|
+
* })
|
|
130
|
+
*/
|
|
131
|
+
addLineItemsV1(invoiceId: string, request: Chrt.billingNew.InvoiceLineItemsAddReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
132
|
+
private __addLineItemsV1;
|
|
133
|
+
/**
|
|
134
|
+
* Detaches existing line items from a draft invoice and synchronizes derived invoice fields. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsRemoveReq) -> (Invoice1)
|
|
135
|
+
*
|
|
136
|
+
* @param {string} invoiceId
|
|
137
|
+
* @param {Chrt.billingNew.InvoiceLineItemsRemoveReq} request
|
|
138
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* await client.billingNew.invoices.removeLineItemsV1("invoice_id", {
|
|
144
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"]
|
|
145
|
+
* })
|
|
146
|
+
*/
|
|
147
|
+
removeLineItemsV1(invoiceId: string, request: Chrt.billingNew.InvoiceLineItemsRemoveReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
148
|
+
private __removeLineItemsV1;
|
|
149
|
+
/**
|
|
150
|
+
* Lists owner-scoped invoices with search, filtering, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceListRes)
|
|
151
|
+
*
|
|
152
|
+
* @param {Chrt.billingNew.InvoicesListV1Request} request
|
|
153
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
154
|
+
*
|
|
155
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* await client.billingNew.invoices.listV1({
|
|
159
|
+
* search: "search",
|
|
160
|
+
* sort_by: "created_at_timestamp",
|
|
161
|
+
* sort_order: "asc",
|
|
162
|
+
* page: 1,
|
|
163
|
+
* page_size: 1,
|
|
164
|
+
* filter_counterparty_org_id: "filter_counterparty_org_id",
|
|
165
|
+
* filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
166
|
+
* filter_counterparty_account_id: "filter_counterparty_account_id",
|
|
167
|
+
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
168
|
+
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
169
|
+
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
170
|
+
* filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
171
|
+
* })
|
|
172
|
+
*/
|
|
173
|
+
listV1(request?: Chrt.billingNew.InvoicesListV1Request, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceListRes>;
|
|
174
|
+
private __listV1;
|
|
175
|
+
/**
|
|
176
|
+
* 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)
|
|
177
|
+
*
|
|
178
|
+
* @param {string} invoiceId
|
|
179
|
+
* @param {Chrt.billingNew.InvoiceClientUpdate1} request
|
|
180
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
181
|
+
*
|
|
182
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* await client.billingNew.invoices.updateV1("invoice_id")
|
|
186
|
+
*/
|
|
187
|
+
updateV1(invoiceId: string, request?: Chrt.billingNew.InvoiceClientUpdate1, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
188
|
+
private __updateV1;
|
|
189
|
+
/**
|
|
190
|
+
* Retrieves an invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
191
|
+
*
|
|
192
|
+
* @param {string} invoiceId
|
|
193
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
194
|
+
*
|
|
195
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* await client.billingNew.invoices.getV1("invoice_id")
|
|
199
|
+
*/
|
|
200
|
+
getV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
201
|
+
private __getV1;
|
|
202
|
+
/**
|
|
203
|
+
* Voids a draft or approved invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceVoidReq) -> (Invoice1)
|
|
204
|
+
*
|
|
205
|
+
* @param {string} invoiceId
|
|
206
|
+
* @param {Chrt.billingNew.InvoiceVoidReq} request
|
|
207
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
|
+
*
|
|
209
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* await client.billingNew.invoices.voidV1("invoice_id")
|
|
213
|
+
*/
|
|
214
|
+
voidV1(invoiceId: string, request?: Chrt.billingNew.InvoiceVoidReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
215
|
+
private __voidV1;
|
|
216
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
217
|
+
}
|