@chrt-inc/typescript-sdk 0.0.197 → 0.0.205
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 -6
- package/dist/cjs/Client.js +5 -10
- package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/client/Client.d.ts +30 -30
- package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/client/Client.js +47 -47
- package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/Client.js +2 -2
- package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/Client.js +2 -2
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +57 -57
- package/dist/cjs/api/resources/index.d.ts +2 -4
- package/dist/cjs/api/resources/index.js +3 -5
- package/dist/cjs/api/resources/payments/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +31 -12
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +93 -26
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/index.js +0 -15
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/index.js +1 -0
- package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/Client.js +2 -2
- package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/Client.js +2 -2
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +50 -17
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +171 -39
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/index.js +15 -0
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/requests/ListPaymentsByCourierReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/requests/ListPaymentsByShipperReq.d.ts +15 -0
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/{resources/courierPayDriverLineItemGroup/client/requests → types}/CourierPayDriverLineItemGroupCreateReq.d.ts +0 -7
- package/dist/cjs/api/types/{CourierPayDriverLineItemGroupPreviewRes.d.ts → CourierPayDriverLineItemGroupServerCreate1.d.ts} +6 -6
- package/dist/cjs/api/types/CreateShipperPayCourierPaymentReq.d.ts +0 -3
- package/dist/cjs/api/types/GetShipperPayCourierPaymentsForShipperRes.d.ts +0 -3
- package/dist/cjs/api/types/OrgPublicData2.d.ts +2 -2
- package/dist/cjs/api/types/PaymentPreviewResponse.d.ts +0 -3
- package/dist/cjs/api/{resources/shipperPayCourierLineItemGroups/client/requests → types}/ShipperPayCourierLineItemGroupCreateReq.d.ts +0 -11
- package/dist/cjs/api/types/ShipperPayCourierPayment1.d.ts +5 -4
- package/dist/cjs/api/types/StripeConnectInvoiceStatusEnum.d.ts +13 -0
- package/dist/cjs/api/types/StripeConnectInvoiceStatusEnum.js +15 -0
- package/dist/cjs/api/types/index.d.ts +4 -4
- package/dist/cjs/api/types/index.js +4 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -6
- package/dist/esm/Client.mjs +5 -10
- package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/client/Client.d.mts +30 -30
- package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/client/Client.mjs +45 -45
- package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/Client.mjs +2 -2
- package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/Client.mjs +2 -2
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +57 -57
- package/dist/esm/api/resources/index.d.mts +2 -4
- package/dist/esm/api/resources/index.mjs +2 -4
- package/dist/esm/api/resources/payments/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +31 -12
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +93 -26
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/index.d.mts +0 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/index.mjs +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/index.mjs +1 -0
- package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/Client.mjs +2 -2
- package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/Client.mjs +2 -2
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +50 -17
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +171 -39
- package/dist/esm/api/resources/shipperPayCourierPayments/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierPayments/client/index.mjs +1 -1
- package/dist/esm/api/resources/shipperPayCourierPayments/client/requests/ListPaymentsByCourierReq.d.mts +16 -0
- package/dist/esm/api/resources/shipperPayCourierPayments/client/requests/ListPaymentsByShipperReq.d.mts +15 -0
- package/dist/esm/api/resources/shipperPayCourierPayments/client/requests/index.d.mts +2 -0
- package/dist/esm/api/{resources/courierPayDriverLineItemGroup/client/requests → types}/CourierPayDriverLineItemGroupCreateReq.d.mts +0 -7
- package/dist/esm/api/types/{CourierPayDriverLineItemGroupPreviewRes.d.mts → CourierPayDriverLineItemGroupServerCreate1.d.mts} +6 -6
- package/dist/esm/api/types/CreateShipperPayCourierPaymentReq.d.mts +0 -3
- package/dist/esm/api/types/GetShipperPayCourierPaymentsForShipperRes.d.mts +0 -3
- package/dist/esm/api/types/OrgPublicData2.d.mts +2 -2
- package/dist/esm/api/types/PaymentPreviewResponse.d.mts +0 -3
- package/dist/esm/api/{resources/shipperPayCourierLineItemGroups/client/requests → types}/ShipperPayCourierLineItemGroupCreateReq.d.mts +0 -11
- package/dist/esm/api/types/ShipperPayCourierPayment1.d.mts +5 -4
- package/dist/esm/api/types/StripeConnectInvoiceStatusEnum.d.mts +13 -0
- package/dist/esm/api/types/StripeConnectInvoiceStatusEnum.mjs +12 -0
- package/dist/esm/api/types/index.d.mts +4 -4
- package/dist/esm/api/types/index.mjs +4 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +315 -107
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewReq.d.ts +0 -27
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/Client.d.ts +0 -26
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/client/Client.js +0 -22
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/index.js +0 -18
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.js +0 -17
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/requests/ShipperPayCourierLineItemGroupPreviewReq.d.ts +0 -28
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/requests/index.js +0 -2
- package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +0 -6
- package/dist/cjs/api/types/CreateConnectAccountRes.js +0 -5
- package/dist/cjs/api/types/GetShipperPayCourierPaymentsRes.d.ts +0 -10
- package/dist/cjs/api/types/GetShipperPayCourierPaymentsRes.js +0 -5
- package/dist/cjs/api/types/PaymentStatusEnum.d.ts +0 -11
- package/dist/cjs/api/types/PaymentStatusEnum.js +0 -13
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewReq.d.mts +0 -27
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/Client.d.mts +0 -26
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/client/Client.mjs +0 -18
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/index.d.mts +0 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/index.mjs +0 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.d.mts +0 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroup/resources/removeLineItems/client/index.mjs +0 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/requests/ShipperPayCourierLineItemGroupPreviewReq.d.mts +0 -28
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/requests/index.mjs +0 -1
- package/dist/esm/api/types/CreateConnectAccountRes.d.mts +0 -6
- package/dist/esm/api/types/CreateConnectAccountRes.mjs +0 -4
- package/dist/esm/api/types/GetShipperPayCourierPaymentsRes.d.mts +0 -10
- package/dist/esm/api/types/GetShipperPayCourierPaymentsRes.mjs +0 -4
- package/dist/esm/api/types/PaymentStatusEnum.d.mts +0 -11
- package/dist/esm/api/types/PaymentStatusEnum.mjs +0 -10
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → courierPayDriverLineItemGroups}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup/client/requests → courierPayDriverLineItemGroups/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups/resources/addLineItems}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups/resources/addLineItems}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/requests/CourierPayDriverLineItemGroupAddLineItemsReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/requests/CourierPayDriverLineItemGroupAddLineItemsReq.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup/resources/addLineItems → courierPayDriverLineItemGroups/resources/removeLineItems}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup/resources/addLineItems → courierPayDriverLineItemGroups/resources/removeLineItems}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/requests/CourierPayDriverLineItemGroupRemoveLineItemsReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/requests/CourierPayDriverLineItemGroupRemoveLineItemsReq.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup/resources/removeLineItems → shipperPayCourierLineItemGroups/resources/addLineItems}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup/resources/removeLineItems → shipperPayCourierLineItemGroups/resources/addLineItems}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.js +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup/client → shipperPayCourierLineItemGroups/resources/addLineItems/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup/resources/addLineItems → shipperPayCourierLineItemGroups/resources/removeLineItems}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup/resources/addLineItems → shipperPayCourierLineItemGroups/resources/removeLineItems}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.js +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup/resources/addLineItems → shipperPayCourierLineItemGroups/resources/removeLineItems}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateReq.js → shipperPayCourierPayments/client/requests/ListPaymentsByCourierReq.js} +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewReq.js → shipperPayCourierPayments/client/requests/ListPaymentsByShipperReq.js} +0 -0
- /package/dist/cjs/api/resources/{shipperPayCourierLineItemGroup/resources/removeLineItems → shipperPayCourierPayments}/client/requests/index.js +0 -0
- /package/dist/cjs/api/{resources/shipperPayCourierLineItemGroups/client/requests/ShipperPayCourierLineItemGroupCreateReq.js → types/CourierPayDriverLineItemGroupCreateReq.js} +0 -0
- /package/dist/cjs/api/{resources/shipperPayCourierLineItemGroups/client/requests/ShipperPayCourierLineItemGroupPreviewReq.js → types/CourierPayDriverLineItemGroupServerCreate1.js} +0 -0
- /package/dist/cjs/api/types/{CourierPayDriverLineItemGroupPreviewRes.js → ShipperPayCourierLineItemGroupCreateReq.js} +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → courierPayDriverLineItemGroups}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup/client/requests → courierPayDriverLineItemGroups/client}/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups/resources/addLineItems}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups/resources/addLineItems}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/requests/CourierPayDriverLineItemGroupAddLineItemsReq.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/requests/CourierPayDriverLineItemGroupAddLineItemsReq.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/addLineItems/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup/resources/addLineItems → courierPayDriverLineItemGroups/resources/removeLineItems}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup/resources/addLineItems → courierPayDriverLineItemGroups/resources/removeLineItems}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/requests/CourierPayDriverLineItemGroupRemoveLineItemsReq.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/requests/CourierPayDriverLineItemGroupRemoveLineItemsReq.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup → courierPayDriverLineItemGroups}/resources/removeLineItems/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup/resources/removeLineItems → shipperPayCourierLineItemGroups/resources/addLineItems}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup/resources/removeLineItems → shipperPayCourierLineItemGroups/resources/addLineItems}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/requests/ShipperPayCourierLineItemGroupAddLineItemsReq.mjs +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup/client → shipperPayCourierLineItemGroups/resources/addLineItems/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/addLineItems/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup/resources/addLineItems → shipperPayCourierLineItemGroups/resources/removeLineItems}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup/resources/addLineItems → shipperPayCourierLineItemGroups/resources/removeLineItems}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/requests/ShipperPayCourierLineItemGroupRemoveLineItemsReq.mjs +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup/resources/addLineItems → shipperPayCourierLineItemGroups/resources/removeLineItems}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup → shipperPayCourierLineItemGroups}/resources/removeLineItems/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateReq.mjs → shipperPayCourierPayments/client/requests/ListPaymentsByCourierReq.mjs} +0 -0
- /package/dist/esm/api/resources/{courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewReq.mjs → shipperPayCourierPayments/client/requests/ListPaymentsByShipperReq.mjs} +0 -0
- /package/dist/esm/api/resources/{shipperPayCourierLineItemGroup/resources/removeLineItems → shipperPayCourierPayments}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/{resources/shipperPayCourierLineItemGroups/client/requests/ShipperPayCourierLineItemGroupCreateReq.mjs → types/CourierPayDriverLineItemGroupCreateReq.mjs} +0 -0
- /package/dist/esm/api/{resources/shipperPayCourierLineItemGroups/client/requests/ShipperPayCourierLineItemGroupPreviewReq.mjs → types/CourierPayDriverLineItemGroupServerCreate1.mjs} +0 -0
- /package/dist/esm/api/types/{CourierPayDriverLineItemGroupPreviewRes.mjs → ShipperPayCourierLineItemGroupCreateReq.mjs} +0 -0
|
@@ -38,6 +38,19 @@ export declare class CourierPayDriverRateSheets {
|
|
|
38
38
|
*/
|
|
39
39
|
listByCourierOrgId(requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
|
|
40
40
|
private __listByCourierOrgId;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves all rate sheets assigned to a specific driver.
|
|
43
|
+
*
|
|
44
|
+
* @param {string} driverId
|
|
45
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.courierPayDriverRateSheets.listByDriverId("driver_id")
|
|
51
|
+
*/
|
|
52
|
+
listByDriverId(driverId: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
|
|
53
|
+
private __listByDriverId;
|
|
41
54
|
/**
|
|
42
55
|
* Creates a new driver rate sheet for calculating courier payments.
|
|
43
56
|
*
|
|
@@ -107,18 +120,5 @@ export declare class CourierPayDriverRateSheets {
|
|
|
107
120
|
*/
|
|
108
121
|
updateById(id: string, request?: Chrt.CourierPayDriverRateSheetClientUpdate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
|
|
109
122
|
private __updateById;
|
|
110
|
-
/**
|
|
111
|
-
* Retrieves all rate sheets assigned to a specific driver.
|
|
112
|
-
*
|
|
113
|
-
* @param {string} driverId
|
|
114
|
-
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
-
*
|
|
116
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* await client.courierPayDriverRateSheets.listByDriverId("driver_id")
|
|
120
|
-
*/
|
|
121
|
-
listByDriverId(driverId: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
|
|
122
|
-
private __listByDriverId;
|
|
123
123
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
124
124
|
}
|
|
@@ -68,6 +68,63 @@ export class CourierPayDriverRateSheets {
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves all rate sheets assigned to a specific driver.
|
|
73
|
+
*
|
|
74
|
+
* @param {string} driverId
|
|
75
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.courierPayDriverRateSheets.listByDriverId("driver_id")
|
|
81
|
+
*/
|
|
82
|
+
listByDriverId(driverId, requestOptions) {
|
|
83
|
+
return core.HttpResponsePromise.fromPromise(this.__listByDriverId(driverId, requestOptions));
|
|
84
|
+
}
|
|
85
|
+
__listByDriverId(driverId, requestOptions) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
var _a, _b, _c, _d;
|
|
88
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
89
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_rate_sheets/by_driver_id/${encodeURIComponent(driverId)}`),
|
|
90
|
+
method: "GET",
|
|
91
|
+
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
93
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
94
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
+
});
|
|
96
|
+
if (_response.ok) {
|
|
97
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
98
|
+
}
|
|
99
|
+
if (_response.error.reason === "status-code") {
|
|
100
|
+
switch (_response.error.statusCode) {
|
|
101
|
+
case 422:
|
|
102
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
103
|
+
default:
|
|
104
|
+
throw new errors.ChrtError({
|
|
105
|
+
statusCode: _response.error.statusCode,
|
|
106
|
+
body: _response.error.body,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
switch (_response.error.reason) {
|
|
112
|
+
case "non-json":
|
|
113
|
+
throw new errors.ChrtError({
|
|
114
|
+
statusCode: _response.error.statusCode,
|
|
115
|
+
body: _response.error.rawBody,
|
|
116
|
+
rawResponse: _response.rawResponse,
|
|
117
|
+
});
|
|
118
|
+
case "timeout":
|
|
119
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/by_driver_id/{driver_id}.");
|
|
120
|
+
case "unknown":
|
|
121
|
+
throw new errors.ChrtError({
|
|
122
|
+
message: _response.error.errorMessage,
|
|
123
|
+
rawResponse: _response.rawResponse,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
71
128
|
/**
|
|
72
129
|
* Creates a new driver rate sheet for calculating courier payments.
|
|
73
130
|
*
|
|
@@ -319,63 +376,6 @@ export class CourierPayDriverRateSheets {
|
|
|
319
376
|
}
|
|
320
377
|
});
|
|
321
378
|
}
|
|
322
|
-
/**
|
|
323
|
-
* Retrieves all rate sheets assigned to a specific driver.
|
|
324
|
-
*
|
|
325
|
-
* @param {string} driverId
|
|
326
|
-
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
327
|
-
*
|
|
328
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
329
|
-
*
|
|
330
|
-
* @example
|
|
331
|
-
* await client.courierPayDriverRateSheets.listByDriverId("driver_id")
|
|
332
|
-
*/
|
|
333
|
-
listByDriverId(driverId, requestOptions) {
|
|
334
|
-
return core.HttpResponsePromise.fromPromise(this.__listByDriverId(driverId, requestOptions));
|
|
335
|
-
}
|
|
336
|
-
__listByDriverId(driverId, requestOptions) {
|
|
337
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
338
|
-
var _a, _b, _c, _d;
|
|
339
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
340
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_rate_sheets/list/by_driver_id/${encodeURIComponent(driverId)}`),
|
|
341
|
-
method: "GET",
|
|
342
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
343
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
344
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
345
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
346
|
-
});
|
|
347
|
-
if (_response.ok) {
|
|
348
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
349
|
-
}
|
|
350
|
-
if (_response.error.reason === "status-code") {
|
|
351
|
-
switch (_response.error.statusCode) {
|
|
352
|
-
case 422:
|
|
353
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
354
|
-
default:
|
|
355
|
-
throw new errors.ChrtError({
|
|
356
|
-
statusCode: _response.error.statusCode,
|
|
357
|
-
body: _response.error.body,
|
|
358
|
-
rawResponse: _response.rawResponse,
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
switch (_response.error.reason) {
|
|
363
|
-
case "non-json":
|
|
364
|
-
throw new errors.ChrtError({
|
|
365
|
-
statusCode: _response.error.statusCode,
|
|
366
|
-
body: _response.error.rawBody,
|
|
367
|
-
rawResponse: _response.rawResponse,
|
|
368
|
-
});
|
|
369
|
-
case "timeout":
|
|
370
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/list/by_driver_id/{driver_id}.");
|
|
371
|
-
case "unknown":
|
|
372
|
-
throw new errors.ChrtError({
|
|
373
|
-
message: _response.error.errorMessage,
|
|
374
|
-
rawResponse: _response.rawResponse,
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
379
|
_getAuthorizationHeader() {
|
|
380
380
|
return __awaiter(this, void 0, void 0, function* () {
|
|
381
381
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -6,7 +6,7 @@ export * as orgProfiles from "./orgProfiles/index.mjs";
|
|
|
6
6
|
export * as orders from "./orders/index.mjs";
|
|
7
7
|
export * as courierPayDriverRateSheets from "./courierPayDriverRateSheets/index.mjs";
|
|
8
8
|
export * as shipperPayCourierRateSheets from "./shipperPayCourierRateSheets/index.mjs";
|
|
9
|
-
export * as
|
|
9
|
+
export * as courierPayDriverLineItemGroups from "./courierPayDriverLineItemGroups/index.mjs";
|
|
10
10
|
export * as shipperPayCourierLineItemGroups from "./shipperPayCourierLineItemGroups/index.mjs";
|
|
11
11
|
export * as shipperPayCourierPayments from "./shipperPayCourierPayments/index.mjs";
|
|
12
12
|
export * as courierPayDriverPayouts from "./courierPayDriverPayouts/index.mjs";
|
|
@@ -20,7 +20,6 @@ export * as root from "./root/index.mjs";
|
|
|
20
20
|
export * as users from "./users/index.mjs";
|
|
21
21
|
export * as notifications from "./notifications/index.mjs";
|
|
22
22
|
export * as orgConnectionInfos from "./orgConnectionInfos/index.mjs";
|
|
23
|
-
export * as shipperPayCourierLineItemGroup from "./shipperPayCourierLineItemGroup/index.mjs";
|
|
24
23
|
export * from "./dev/client/requests/index.mjs";
|
|
25
24
|
export * from "./drivers/client/requests/index.mjs";
|
|
26
25
|
export * from "./milestones/client/requests/index.mjs";
|
|
@@ -29,8 +28,7 @@ export * from "./orgProfiles/client/requests/index.mjs";
|
|
|
29
28
|
export * from "./orders/client/requests/index.mjs";
|
|
30
29
|
export * from "./courierPayDriverRateSheets/client/requests/index.mjs";
|
|
31
30
|
export * from "./shipperPayCourierRateSheets/client/requests/index.mjs";
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./shipperPayCourierLineItemGroups/client/requests/index.mjs";
|
|
31
|
+
export * from "./shipperPayCourierPayments/client/requests/index.mjs";
|
|
34
32
|
export * from "./courierPayDriverPayouts/client/requests/index.mjs";
|
|
35
33
|
export * from "./taskGroups/client/requests/index.mjs";
|
|
36
34
|
export * from "./shipperContactInfo/client/requests/index.mjs";
|
|
@@ -6,7 +6,7 @@ export * as orgProfiles from "./orgProfiles/index.mjs";
|
|
|
6
6
|
export * as orders from "./orders/index.mjs";
|
|
7
7
|
export * as courierPayDriverRateSheets from "./courierPayDriverRateSheets/index.mjs";
|
|
8
8
|
export * as shipperPayCourierRateSheets from "./shipperPayCourierRateSheets/index.mjs";
|
|
9
|
-
export * as
|
|
9
|
+
export * as courierPayDriverLineItemGroups from "./courierPayDriverLineItemGroups/index.mjs";
|
|
10
10
|
export * as shipperPayCourierLineItemGroups from "./shipperPayCourierLineItemGroups/index.mjs";
|
|
11
11
|
export * as shipperPayCourierPayments from "./shipperPayCourierPayments/index.mjs";
|
|
12
12
|
export * as courierPayDriverPayouts from "./courierPayDriverPayouts/index.mjs";
|
|
@@ -20,7 +20,6 @@ export * as root from "./root/index.mjs";
|
|
|
20
20
|
export * as users from "./users/index.mjs";
|
|
21
21
|
export * as notifications from "./notifications/index.mjs";
|
|
22
22
|
export * as orgConnectionInfos from "./orgConnectionInfos/index.mjs";
|
|
23
|
-
export * as shipperPayCourierLineItemGroup from "./shipperPayCourierLineItemGroup/index.mjs";
|
|
24
23
|
export * from "./dev/client/requests/index.mjs";
|
|
25
24
|
export * from "./drivers/client/requests/index.mjs";
|
|
26
25
|
export * from "./milestones/client/requests/index.mjs";
|
|
@@ -29,8 +28,7 @@ export * from "./orgProfiles/client/requests/index.mjs";
|
|
|
29
28
|
export * from "./orders/client/requests/index.mjs";
|
|
30
29
|
export * from "./courierPayDriverRateSheets/client/requests/index.mjs";
|
|
31
30
|
export * from "./shipperPayCourierRateSheets/client/requests/index.mjs";
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./shipperPayCourierLineItemGroups/client/requests/index.mjs";
|
|
31
|
+
export * from "./shipperPayCourierPayments/client/requests/index.mjs";
|
|
34
32
|
export * from "./courierPayDriverPayouts/client/requests/index.mjs";
|
|
35
33
|
export * from "./taskGroups/client/requests/index.mjs";
|
|
36
34
|
export * from "./shipperContactInfo/client/requests/index.mjs";
|
|
@@ -61,7 +61,7 @@ export declare class Payments {
|
|
|
61
61
|
* @example
|
|
62
62
|
* await client.payments.createConnectAccount()
|
|
63
63
|
*/
|
|
64
|
-
createConnectAccount(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<
|
|
64
|
+
createConnectAccount(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
65
65
|
private __createConnectAccount;
|
|
66
66
|
/**
|
|
67
67
|
* Create an onboarding link for a Stripe Connect account
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../core/index.mjs";
|
|
6
6
|
import * as Chrt from "../../../index.mjs";
|
|
7
|
+
import { AddLineItems } from "../resources/addLineItems/client/Client.mjs";
|
|
8
|
+
import { RemoveLineItems } from "../resources/removeLineItems/client/Client.mjs";
|
|
7
9
|
export declare namespace ShipperPayCourierLineItemGroups {
|
|
8
10
|
interface Options {
|
|
9
11
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -27,25 +29,26 @@ export declare namespace ShipperPayCourierLineItemGroups {
|
|
|
27
29
|
}
|
|
28
30
|
export declare class ShipperPayCourierLineItemGroups {
|
|
29
31
|
protected readonly _options: ShipperPayCourierLineItemGroups.Options;
|
|
32
|
+
protected _addLineItems: AddLineItems | undefined;
|
|
33
|
+
protected _removeLineItems: RemoveLineItems | undefined;
|
|
30
34
|
constructor(_options?: ShipperPayCourierLineItemGroups.Options);
|
|
35
|
+
get addLineItems(): AddLineItems;
|
|
36
|
+
get removeLineItems(): RemoveLineItems;
|
|
31
37
|
/**
|
|
32
|
-
*
|
|
38
|
+
* Retrieves a shipper pay courier line item group by its ID.
|
|
33
39
|
*
|
|
34
|
-
* @param {
|
|
40
|
+
* @param {string} id
|
|
35
41
|
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
42
|
*
|
|
37
43
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
38
44
|
*
|
|
39
45
|
* @example
|
|
40
|
-
* await client.shipperPayCourierLineItemGroups.
|
|
41
|
-
* shipper_pay_courier_rate_sheet_id: "shipper_pay_courier_rate_sheet_id",
|
|
42
|
-
* task_group_id: "task_group_id"
|
|
43
|
-
* })
|
|
46
|
+
* await client.shipperPayCourierLineItemGroups.getById("id")
|
|
44
47
|
*/
|
|
45
|
-
|
|
46
|
-
private
|
|
48
|
+
getById(id: string, requestOptions?: ShipperPayCourierLineItemGroups.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
|
|
49
|
+
private __getById;
|
|
47
50
|
/**
|
|
48
|
-
*
|
|
51
|
+
* Deletes a shipper pay courier line item group by its ID.
|
|
49
52
|
*
|
|
50
53
|
* @param {string} id
|
|
51
54
|
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -53,10 +56,10 @@ export declare class ShipperPayCourierLineItemGroups {
|
|
|
53
56
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
54
57
|
*
|
|
55
58
|
* @example
|
|
56
|
-
* await client.shipperPayCourierLineItemGroups.
|
|
59
|
+
* await client.shipperPayCourierLineItemGroups.deleteById("id")
|
|
57
60
|
*/
|
|
58
|
-
|
|
59
|
-
private
|
|
61
|
+
deleteById(id: string, requestOptions?: ShipperPayCourierLineItemGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
62
|
+
private __deleteById;
|
|
60
63
|
/**
|
|
61
64
|
* Retrieves a shipper pay courier line item group by its associated task group ID.
|
|
62
65
|
*
|
|
@@ -70,6 +73,22 @@ export declare class ShipperPayCourierLineItemGroups {
|
|
|
70
73
|
*/
|
|
71
74
|
byTaskGroupId(taskGroupId: string, requestOptions?: ShipperPayCourierLineItemGroups.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
|
|
72
75
|
private __byTaskGroupId;
|
|
76
|
+
/**
|
|
77
|
+
* Previews calculated line items for a shipper pay courier based on rate sheet and task group without creating the group.
|
|
78
|
+
*
|
|
79
|
+
* @param {Chrt.ShipperPayCourierLineItemGroupCreateReq} request
|
|
80
|
+
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.shipperPayCourierLineItemGroups.preview({
|
|
86
|
+
* shipper_pay_courier_rate_sheet_id: "shipper_pay_courier_rate_sheet_id",
|
|
87
|
+
* task_group_id: "task_group_id"
|
|
88
|
+
* })
|
|
89
|
+
*/
|
|
90
|
+
preview(request: Chrt.ShipperPayCourierLineItemGroupCreateReq, requestOptions?: ShipperPayCourierLineItemGroups.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroupServerCreate1>;
|
|
91
|
+
private __preview;
|
|
73
92
|
/**
|
|
74
93
|
* Creates a shipper pay courier line item group by calculating items from rate sheet and task group.
|
|
75
94
|
*
|
|
@@ -15,46 +15,47 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as Chrt from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
import { AddLineItems } from "../resources/addLineItems/client/Client.mjs";
|
|
19
|
+
import { RemoveLineItems } from "../resources/removeLineItems/client/Client.mjs";
|
|
18
20
|
export class ShipperPayCourierLineItemGroups {
|
|
19
21
|
constructor(_options = {}) {
|
|
20
22
|
this._options = _options;
|
|
21
23
|
}
|
|
24
|
+
get addLineItems() {
|
|
25
|
+
var _a;
|
|
26
|
+
return ((_a = this._addLineItems) !== null && _a !== void 0 ? _a : (this._addLineItems = new AddLineItems(this._options)));
|
|
27
|
+
}
|
|
28
|
+
get removeLineItems() {
|
|
29
|
+
var _a;
|
|
30
|
+
return ((_a = this._removeLineItems) !== null && _a !== void 0 ? _a : (this._removeLineItems = new RemoveLineItems(this._options)));
|
|
31
|
+
}
|
|
22
32
|
/**
|
|
23
|
-
*
|
|
33
|
+
* Retrieves a shipper pay courier line item group by its ID.
|
|
24
34
|
*
|
|
25
|
-
* @param {
|
|
35
|
+
* @param {string} id
|
|
26
36
|
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
37
|
*
|
|
28
38
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
39
|
*
|
|
30
40
|
* @example
|
|
31
|
-
* await client.shipperPayCourierLineItemGroups.
|
|
32
|
-
* shipper_pay_courier_rate_sheet_id: "shipper_pay_courier_rate_sheet_id",
|
|
33
|
-
* task_group_id: "task_group_id"
|
|
34
|
-
* })
|
|
41
|
+
* await client.shipperPayCourierLineItemGroups.getById("id")
|
|
35
42
|
*/
|
|
36
|
-
|
|
37
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
43
|
+
getById(id, requestOptions) {
|
|
44
|
+
return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
|
|
38
45
|
}
|
|
39
|
-
|
|
46
|
+
__getById(id, requestOptions) {
|
|
40
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
48
|
var _a, _b, _c, _d;
|
|
42
49
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
43
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
44
|
-
method: "
|
|
50
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_line_item_groups/${encodeURIComponent(id)}`),
|
|
51
|
+
method: "GET",
|
|
45
52
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
46
|
-
contentType: "application/json",
|
|
47
|
-
requestType: "json",
|
|
48
|
-
body: request,
|
|
49
53
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
50
54
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
51
55
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
52
56
|
});
|
|
53
57
|
if (_response.ok) {
|
|
54
|
-
return {
|
|
55
|
-
data: _response.body,
|
|
56
|
-
rawResponse: _response.rawResponse,
|
|
57
|
-
};
|
|
58
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
58
59
|
}
|
|
59
60
|
if (_response.error.reason === "status-code") {
|
|
60
61
|
switch (_response.error.statusCode) {
|
|
@@ -76,7 +77,7 @@ export class ShipperPayCourierLineItemGroups {
|
|
|
76
77
|
rawResponse: _response.rawResponse,
|
|
77
78
|
});
|
|
78
79
|
case "timeout":
|
|
79
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
80
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/{id}.");
|
|
80
81
|
case "unknown":
|
|
81
82
|
throw new errors.ChrtError({
|
|
82
83
|
message: _response.error.errorMessage,
|
|
@@ -86,7 +87,7 @@ export class ShipperPayCourierLineItemGroups {
|
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
89
|
/**
|
|
89
|
-
*
|
|
90
|
+
* Deletes a shipper pay courier line item group by its ID.
|
|
90
91
|
*
|
|
91
92
|
* @param {string} id
|
|
92
93
|
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -94,17 +95,17 @@ export class ShipperPayCourierLineItemGroups {
|
|
|
94
95
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
95
96
|
*
|
|
96
97
|
* @example
|
|
97
|
-
* await client.shipperPayCourierLineItemGroups.
|
|
98
|
+
* await client.shipperPayCourierLineItemGroups.deleteById("id")
|
|
98
99
|
*/
|
|
99
|
-
|
|
100
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
100
|
+
deleteById(id, requestOptions) {
|
|
101
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteById(id, requestOptions));
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
+
__deleteById(id, requestOptions) {
|
|
103
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
105
|
var _a, _b, _c, _d;
|
|
105
106
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
106
107
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_line_item_groups/${encodeURIComponent(id)}`),
|
|
107
|
-
method: "
|
|
108
|
+
method: "DELETE",
|
|
108
109
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
109
110
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
110
111
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -133,7 +134,7 @@ export class ShipperPayCourierLineItemGroups {
|
|
|
133
134
|
rawResponse: _response.rawResponse,
|
|
134
135
|
});
|
|
135
136
|
case "timeout":
|
|
136
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
137
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_pay_courier_line_item_groups/{id}.");
|
|
137
138
|
case "unknown":
|
|
138
139
|
throw new errors.ChrtError({
|
|
139
140
|
message: _response.error.errorMessage,
|
|
@@ -199,6 +200,72 @@ export class ShipperPayCourierLineItemGroups {
|
|
|
199
200
|
}
|
|
200
201
|
});
|
|
201
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* Previews calculated line items for a shipper pay courier based on rate sheet and task group without creating the group.
|
|
205
|
+
*
|
|
206
|
+
* @param {Chrt.ShipperPayCourierLineItemGroupCreateReq} request
|
|
207
|
+
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
|
+
*
|
|
209
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* await client.shipperPayCourierLineItemGroups.preview({
|
|
213
|
+
* shipper_pay_courier_rate_sheet_id: "shipper_pay_courier_rate_sheet_id",
|
|
214
|
+
* task_group_id: "task_group_id"
|
|
215
|
+
* })
|
|
216
|
+
*/
|
|
217
|
+
preview(request, requestOptions) {
|
|
218
|
+
return core.HttpResponsePromise.fromPromise(this.__preview(request, requestOptions));
|
|
219
|
+
}
|
|
220
|
+
__preview(request, requestOptions) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
var _a, _b, _c, _d;
|
|
223
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
224
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_pay_courier_line_item_groups/preview"),
|
|
225
|
+
method: "POST",
|
|
226
|
+
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
227
|
+
contentType: "application/json",
|
|
228
|
+
requestType: "json",
|
|
229
|
+
body: request,
|
|
230
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
231
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
232
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
233
|
+
});
|
|
234
|
+
if (_response.ok) {
|
|
235
|
+
return {
|
|
236
|
+
data: _response.body,
|
|
237
|
+
rawResponse: _response.rawResponse,
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
if (_response.error.reason === "status-code") {
|
|
241
|
+
switch (_response.error.statusCode) {
|
|
242
|
+
case 422:
|
|
243
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
244
|
+
default:
|
|
245
|
+
throw new errors.ChrtError({
|
|
246
|
+
statusCode: _response.error.statusCode,
|
|
247
|
+
body: _response.error.body,
|
|
248
|
+
rawResponse: _response.rawResponse,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
switch (_response.error.reason) {
|
|
253
|
+
case "non-json":
|
|
254
|
+
throw new errors.ChrtError({
|
|
255
|
+
statusCode: _response.error.statusCode,
|
|
256
|
+
body: _response.error.rawBody,
|
|
257
|
+
rawResponse: _response.rawResponse,
|
|
258
|
+
});
|
|
259
|
+
case "timeout":
|
|
260
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_pay_courier_line_item_groups/preview.");
|
|
261
|
+
case "unknown":
|
|
262
|
+
throw new errors.ChrtError({
|
|
263
|
+
message: _response.error.errorMessage,
|
|
264
|
+
rawResponse: _response.rawResponse,
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
202
269
|
/**
|
|
203
270
|
* Creates a shipper pay courier line item group by calculating items from rate sheet and task group.
|
|
204
271
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -32,13 +32,13 @@ export declare class AddLineItems {
|
|
|
32
32
|
* Adds additional line items to an existing shipper pay courier line item group.
|
|
33
33
|
*
|
|
34
34
|
* @param {string} id
|
|
35
|
-
* @param {Chrt.
|
|
35
|
+
* @param {Chrt.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupAddLineItemsReq} request
|
|
36
36
|
* @param {AddLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
|
-
* await client.
|
|
41
|
+
* await client.shipperPayCourierLineItemGroups.addLineItems.byId("id", {
|
|
42
42
|
* line_items: [{
|
|
43
43
|
* schema_version: 1,
|
|
44
44
|
* item: "base_rate",
|
|
@@ -47,7 +47,7 @@ export declare class AddLineItems {
|
|
|
47
47
|
* }]
|
|
48
48
|
* })
|
|
49
49
|
*/
|
|
50
|
-
byId(id: string, request: Chrt.
|
|
50
|
+
byId(id: string, request: Chrt.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupAddLineItemsReq, requestOptions?: AddLineItems.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
|
|
51
51
|
private __byId;
|
|
52
52
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
53
53
|
}
|
|
@@ -23,13 +23,13 @@ export class AddLineItems {
|
|
|
23
23
|
* Adds additional line items to an existing shipper pay courier line item group.
|
|
24
24
|
*
|
|
25
25
|
* @param {string} id
|
|
26
|
-
* @param {Chrt.
|
|
26
|
+
* @param {Chrt.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupAddLineItemsReq} request
|
|
27
27
|
* @param {AddLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.
|
|
32
|
+
* await client.shipperPayCourierLineItemGroups.addLineItems.byId("id", {
|
|
33
33
|
* line_items: [{
|
|
34
34
|
* schema_version: 1,
|
|
35
35
|
* item: "base_rate",
|
|
@@ -32,17 +32,17 @@ export declare class RemoveLineItems {
|
|
|
32
32
|
* Removes specific line items from a shipper pay courier line item group by exact match.
|
|
33
33
|
*
|
|
34
34
|
* @param {string} id
|
|
35
|
-
* @param {Chrt.
|
|
35
|
+
* @param {Chrt.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupRemoveLineItemsReq} request
|
|
36
36
|
* @param {RemoveLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
|
-
* await client.
|
|
41
|
+
* await client.shipperPayCourierLineItemGroups.removeLineItems.byId("id", {
|
|
42
42
|
* line_item_uuid_strs: ["line_item_uuid_strs"]
|
|
43
43
|
* })
|
|
44
44
|
*/
|
|
45
|
-
byId(id: string, request: Chrt.
|
|
45
|
+
byId(id: string, request: Chrt.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupRemoveLineItemsReq, requestOptions?: RemoveLineItems.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
|
|
46
46
|
private __byId;
|
|
47
47
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
48
48
|
}
|
|
@@ -23,13 +23,13 @@ export class RemoveLineItems {
|
|
|
23
23
|
* Removes specific line items from a shipper pay courier line item group by exact match.
|
|
24
24
|
*
|
|
25
25
|
* @param {string} id
|
|
26
|
-
* @param {Chrt.
|
|
26
|
+
* @param {Chrt.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupRemoveLineItemsReq} request
|
|
27
27
|
* @param {RemoveLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.
|
|
32
|
+
* await client.shipperPayCourierLineItemGroups.removeLineItems.byId("id", {
|
|
33
33
|
* line_item_uuid_strs: ["line_item_uuid_strs"]
|
|
34
34
|
* })
|
|
35
35
|
*/
|