@chrt-inc/typescript-sdk 1.997.0 → 1.999.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billingNew/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/billingNew/client/Client.js +5 -0
  4. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.d.ts +2 -2
  5. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +0 -3
  7. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.ts +0 -6
  8. package/dist/cjs/api/resources/billingNew/resources/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/billingNew/resources/index.js +3 -1
  10. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +17 -73
  11. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +50 -193
  12. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.d.ts +1 -0
  13. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +1 -3
  14. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.d.ts +0 -1
  15. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.js +0 -1
  16. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +57 -32
  17. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +169 -89
  18. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +0 -1
  19. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +28 -3
  20. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +126 -5
  21. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +0 -1
  23. package/dist/cjs/api/resources/billingNew/resources/orders/index.js +0 -1
  24. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/Client.d.ts +128 -0
  25. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/Client.js +485 -0
  26. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientCreate1.d.ts +21 -0
  27. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientUpdate1.d.ts +12 -0
  28. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationResolveReq.d.ts +14 -0
  29. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationsListV1Request.d.ts +33 -0
  30. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/index.d.ts +4 -0
  31. package/dist/cjs/api/resources/flights/client/Client.d.ts +1 -1
  32. package/dist/cjs/api/resources/flights/client/Client.js +1 -1
  33. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +1 -1
  35. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
  36. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
  37. package/dist/cjs/api/types/BillingCurrencyCodeEnum1.d.ts +1 -2
  38. package/dist/cjs/api/types/BillingCurrencyCodeEnum1.js +0 -1
  39. package/dist/cjs/api/types/BillingPeriodCloseRes.d.ts +8 -0
  40. package/dist/cjs/api/types/CalculatedInvoiceTax1.d.ts +12 -0
  41. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +0 -3
  42. package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.ts → CreateInvoiceLineItemsFromAwbCostsGroupRes1.d.ts} +2 -2
  43. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.ts +1 -1
  44. package/dist/cjs/api/types/FlightLeg1.d.ts +1 -0
  45. package/dist/cjs/api/types/FlightTrackPosition1.d.ts +8 -6
  46. package/dist/cjs/api/types/FlightTrackRes.d.ts +5 -15
  47. package/dist/cjs/api/{resources/billingNew/resources/invoices/client/requests → types}/InvoiceClientCreate1.d.ts +1 -9
  48. package/dist/cjs/api/types/InvoiceCreateFromOrdersReq.d.ts +22 -0
  49. package/dist/cjs/api/types/InvoiceCreateFromOrdersRes.d.ts +14 -0
  50. package/dist/cjs/api/types/InvoiceCreateReq.d.ts +20 -0
  51. package/dist/cjs/api/types/InvoiceCreateReq.js +5 -0
  52. package/dist/cjs/api/types/InvoiceLineItemExportListItem.d.ts +3 -2
  53. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.d.ts +2 -4
  54. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.js +1 -3
  55. package/dist/cjs/api/types/InvoicePreviewFromOrdersRes.d.ts +15 -0
  56. package/dist/cjs/api/types/InvoicePreviewFromOrdersRes.js +5 -0
  57. package/dist/cjs/api/types/InvoicePreviewRes.d.ts +10 -0
  58. package/dist/cjs/api/types/InvoicePreviewRes.js +5 -0
  59. package/dist/cjs/api/types/InvoiceTaxCalculation1.d.ts +12 -0
  60. package/dist/cjs/api/types/InvoiceTaxCalculation1.js +5 -0
  61. package/dist/cjs/api/types/TaxConfiguration1.d.ts +24 -0
  62. package/dist/cjs/api/types/TaxConfiguration1.js +5 -0
  63. package/dist/cjs/api/types/TaxConfigurationListRes.d.ts +8 -0
  64. package/dist/cjs/api/types/TaxConfigurationListRes.js +5 -0
  65. package/dist/cjs/api/types/TaxConfigurationSortByEnum.d.ts +8 -0
  66. package/dist/cjs/api/types/TaxConfigurationSortByEnum.js +10 -0
  67. package/dist/cjs/api/types/{TaxRate1.d.ts → TaxRule1.d.ts} +2 -3
  68. package/dist/cjs/api/types/TaxRule1.js +5 -0
  69. package/dist/cjs/api/types/index.d.ts +14 -7
  70. package/dist/cjs/api/types/index.js +14 -7
  71. package/dist/cjs/version.d.ts +1 -1
  72. package/dist/cjs/version.js +1 -1
  73. package/dist/esm/Client.mjs +2 -2
  74. package/dist/esm/api/resources/billingNew/client/Client.d.mts +3 -0
  75. package/dist/esm/api/resources/billingNew/client/Client.mjs +5 -0
  76. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.d.mts +2 -2
  77. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.mjs +1 -1
  78. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +0 -3
  79. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +0 -6
  80. package/dist/esm/api/resources/billingNew/resources/index.d.mts +2 -0
  81. package/dist/esm/api/resources/billingNew/resources/index.mjs +2 -0
  82. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +17 -73
  83. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +50 -193
  84. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.d.mts +1 -0
  85. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +1 -3
  86. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.d.mts +0 -1
  87. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.mjs +0 -1
  88. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +57 -32
  89. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +169 -89
  90. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +0 -1
  91. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +28 -3
  92. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +126 -5
  93. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.d.mts +1 -0
  94. package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +0 -1
  95. package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +0 -1
  96. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/Client.d.mts +128 -0
  97. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/Client.mjs +448 -0
  98. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientCreate1.d.mts +21 -0
  99. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientUpdate1.d.mts +12 -0
  100. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationResolveReq.d.mts +14 -0
  101. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationsListV1Request.d.mts +33 -0
  102. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/index.d.mts +4 -0
  103. package/dist/esm/api/resources/flights/client/Client.d.mts +1 -1
  104. package/dist/esm/api/resources/flights/client/Client.mjs +1 -1
  105. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +1 -1
  106. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
  107. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
  108. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
  109. package/dist/esm/api/types/BillingCurrencyCodeEnum1.d.mts +1 -2
  110. package/dist/esm/api/types/BillingCurrencyCodeEnum1.mjs +0 -1
  111. package/dist/esm/api/types/BillingPeriodCloseRes.d.mts +8 -0
  112. package/dist/esm/api/types/CalculatedInvoiceTax1.d.mts +12 -0
  113. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +0 -3
  114. package/dist/esm/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.mts → CreateInvoiceLineItemsFromAwbCostsGroupRes1.d.mts} +2 -2
  115. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.mts +1 -1
  116. package/dist/esm/api/types/FlightLeg1.d.mts +1 -0
  117. package/dist/esm/api/types/FlightTrackPosition1.d.mts +8 -6
  118. package/dist/esm/api/types/FlightTrackRes.d.mts +5 -15
  119. package/dist/esm/api/{resources/billingNew/resources/invoices/client/requests → types}/InvoiceClientCreate1.d.mts +1 -9
  120. package/dist/esm/api/types/InvoiceCreateFromOrdersReq.d.mts +22 -0
  121. package/dist/esm/api/types/InvoiceCreateFromOrdersRes.d.mts +14 -0
  122. package/dist/esm/api/types/InvoiceCreateReq.d.mts +20 -0
  123. package/dist/esm/api/types/InvoiceCreateReq.mjs +4 -0
  124. package/dist/esm/api/types/InvoiceLineItemExportListItem.d.mts +3 -2
  125. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +2 -4
  126. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +1 -3
  127. package/dist/esm/api/types/InvoicePreviewFromOrdersRes.d.mts +15 -0
  128. package/dist/esm/api/types/InvoicePreviewFromOrdersRes.mjs +4 -0
  129. package/dist/esm/api/types/InvoicePreviewRes.d.mts +10 -0
  130. package/dist/esm/api/types/InvoicePreviewRes.mjs +4 -0
  131. package/dist/esm/api/types/InvoiceTaxCalculation1.d.mts +12 -0
  132. package/dist/esm/api/types/InvoiceTaxCalculation1.mjs +4 -0
  133. package/dist/esm/api/types/TaxConfiguration1.d.mts +24 -0
  134. package/dist/esm/api/types/TaxConfiguration1.mjs +4 -0
  135. package/dist/esm/api/types/TaxConfigurationListRes.d.mts +8 -0
  136. package/dist/esm/api/types/TaxConfigurationListRes.mjs +4 -0
  137. package/dist/esm/api/types/TaxConfigurationSortByEnum.d.mts +8 -0
  138. package/dist/esm/api/types/TaxConfigurationSortByEnum.mjs +7 -0
  139. package/dist/esm/api/types/{TaxRate1.d.mts → TaxRule1.d.mts} +2 -3
  140. package/dist/esm/api/types/TaxRule1.mjs +4 -0
  141. package/dist/esm/api/types/index.d.mts +14 -7
  142. package/dist/esm/api/types/index.mjs +14 -7
  143. package/dist/esm/version.d.mts +1 -1
  144. package/dist/esm/version.mjs +1 -1
  145. package/package.json +1 -1
  146. package/reference.md +522 -221
  147. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +0 -32
  148. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.ts +0 -46
  149. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.ts +0 -12
  150. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.d.ts +0 -51
  151. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.js +0 -153
  152. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.ts +0 -1
  153. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/index.d.ts +0 -2
  154. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/index.js +0 -41
  155. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.d.ts +0 -2
  156. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.js +0 -41
  157. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.ts +0 -49
  158. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.js +0 -135
  159. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.ts +0 -2
  160. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.js +0 -17
  161. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.ts +0 -1
  162. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.js +0 -2
  163. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts +0 -1
  164. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js +0 -17
  165. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAmountRes.d.ts +0 -7
  166. package/dist/cjs/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.ts +0 -7
  167. package/dist/cjs/api/types/FlightTrackWaypoint1.d.ts +0 -7
  168. package/dist/cjs/api/types/InvoiceLineItemAmountTransformation1.d.ts +0 -8
  169. package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.ts +0 -9
  170. package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.js +0 -11
  171. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +0 -32
  172. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.mts +0 -46
  173. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.mts +0 -12
  174. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.d.mts +0 -51
  175. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.mjs +0 -116
  176. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.mts +0 -1
  177. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/index.d.mts +0 -2
  178. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/index.mjs +0 -2
  179. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.d.mts +0 -2
  180. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.mjs +0 -2
  181. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.mts +0 -49
  182. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.mjs +0 -98
  183. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.mts +0 -2
  184. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.mjs +0 -1
  185. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.mts +0 -1
  186. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.mjs +0 -1
  187. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.mts +0 -1
  188. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.mjs +0 -1
  189. package/dist/esm/api/types/CreateInvoiceLineItemsFromAmountRes.d.mts +0 -7
  190. package/dist/esm/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.mts +0 -7
  191. package/dist/esm/api/types/FlightTrackWaypoint1.d.mts +0 -7
  192. package/dist/esm/api/types/InvoiceLineItemAmountTransformation1.d.mts +0 -8
  193. package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.mts +0 -9
  194. package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.mjs +0 -8
  195. /package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.js +0 -0
  196. /package/dist/cjs/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.d.ts +0 -0
  197. /package/dist/cjs/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.js +0 -0
  198. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.d.ts +0 -0
  199. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.js +0 -0
  200. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.js → taxConfigurations/client/requests/TaxConfigurationClientCreate1.js} +0 -0
  201. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.js → taxConfigurations/client/requests/TaxConfigurationClientUpdate1.js} +0 -0
  202. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.js → taxConfigurations/client/requests/TaxConfigurationResolveReq.js} +0 -0
  203. /package/dist/cjs/api/resources/billingNew/resources/{invoices/client/requests/InvoiceClientCreate1.js → taxConfigurations/client/requests/TaxConfigurationsListV1Request.js} +0 -0
  204. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/requests/index.js +0 -0
  205. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.d.ts +0 -0
  206. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.js +0 -0
  207. /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAmountRes.js → BillingPeriodCloseRes.js} +0 -0
  208. /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.js → CalculatedInvoiceTax1.js} +0 -0
  209. /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromLineItemsRes.js → CreateInvoiceLineItemsFromAwbCostsGroupRes1.js} +0 -0
  210. /package/dist/cjs/api/types/{FlightTrackWaypoint1.js → InvoiceClientCreate1.js} +0 -0
  211. /package/dist/cjs/api/types/{InvoiceLineItemAmountTransformation1.js → InvoiceCreateFromOrdersReq.js} +0 -0
  212. /package/dist/cjs/api/types/{TaxRate1.js → InvoiceCreateFromOrdersRes.js} +0 -0
  213. /package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.mjs +0 -0
  214. /package/dist/esm/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.d.mts +0 -0
  215. /package/dist/esm/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.mjs +0 -0
  216. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.d.mts +0 -0
  217. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.mjs +0 -0
  218. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.mjs → taxConfigurations/client/requests/TaxConfigurationClientCreate1.mjs} +0 -0
  219. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.mjs → taxConfigurations/client/requests/TaxConfigurationClientUpdate1.mjs} +0 -0
  220. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.mjs → taxConfigurations/client/requests/TaxConfigurationResolveReq.mjs} +0 -0
  221. /package/dist/esm/api/resources/billingNew/resources/{invoices/client/requests/InvoiceClientCreate1.mjs → taxConfigurations/client/requests/TaxConfigurationsListV1Request.mjs} +0 -0
  222. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/requests/index.mjs +0 -0
  223. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.d.mts +0 -0
  224. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.mjs +0 -0
  225. /package/dist/esm/api/types/{CreateInvoiceLineItemsFromAmountRes.mjs → BillingPeriodCloseRes.mjs} +0 -0
  226. /package/dist/esm/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.mjs → CalculatedInvoiceTax1.mjs} +0 -0
  227. /package/dist/esm/api/types/{CreateInvoiceLineItemsFromLineItemsRes.mjs → CreateInvoiceLineItemsFromAwbCostsGroupRes1.mjs} +0 -0
  228. /package/dist/esm/api/types/{FlightTrackWaypoint1.mjs → InvoiceClientCreate1.mjs} +0 -0
  229. /package/dist/esm/api/types/{InvoiceLineItemAmountTransformation1.mjs → InvoiceCreateFromOrdersReq.mjs} +0 -0
  230. /package/dist/esm/api/types/{TaxRate1.mjs → InvoiceCreateFromOrdersRes.mjs} +0 -0
@@ -79,9 +79,9 @@ export class Invoices {
79
79
  });
80
80
  }
81
81
  /**
82
- * Returns the matching draft invoice period, or creates one with an optional rolling-month default. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
82
+ * Creates a new draft invoice, optionally attaching selected uninvoiced charges atomically. Omitted dates derive from completed deliveries; empty drafts and charges without completed delivery dates require explicit bounds. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateReq) -> (PydanticObjectId)
83
83
  *
84
- * @param {Chrt.billingNew.InvoiceClientCreate1} request
84
+ * @param {Chrt.InvoiceCreateReq} request
85
85
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
86
86
  *
87
87
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -145,87 +145,36 @@ export class Invoices {
145
145
  });
146
146
  }
147
147
  /**
148
- * Hard-deletes a draft invoice and detaches its line items. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
148
+ * Creates one draft from matching order charges and reports skipped items. Billing period dates do not filter charges. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateFromOrdersReq) -> (InvoiceCreateFromOrdersRes)
149
149
  *
150
- * @param {string} invoiceId
150
+ * @param {Chrt.InvoiceCreateFromOrdersReq} request
151
151
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
152
152
  *
153
153
  * @throws {@link Chrt.UnprocessableEntityError}
154
154
  *
155
155
  * @example
156
- * await client.billingNew.invoices.deleteV1("invoice_id")
157
- */
158
- deleteV1(invoiceId, requestOptions) {
159
- return core.HttpResponsePromise.fromPromise(this.__deleteV1(invoiceId, requestOptions));
160
- }
161
- __deleteV1(invoiceId, requestOptions) {
162
- return __awaiter(this, void 0, void 0, function* () {
163
- var _a, _b, _c, _d;
164
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
165
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
166
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing_new/invoices/delete/v1/${encodeURIComponent(invoiceId)}`),
167
- method: "DELETE",
168
- headers: _headers,
169
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
170
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
171
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
172
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
173
- });
174
- if (_response.ok) {
175
- return { data: _response.body, rawResponse: _response.rawResponse };
176
- }
177
- if (_response.error.reason === "status-code") {
178
- switch (_response.error.statusCode) {
179
- case 422:
180
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
181
- default:
182
- throw new errors.ChrtError({
183
- statusCode: _response.error.statusCode,
184
- body: _response.error.body,
185
- rawResponse: _response.rawResponse,
186
- });
187
- }
188
- }
189
- switch (_response.error.reason) {
190
- case "non-json":
191
- throw new errors.ChrtError({
192
- statusCode: _response.error.statusCode,
193
- body: _response.error.rawBody,
194
- rawResponse: _response.rawResponse,
195
- });
196
- case "timeout":
197
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /billing_new/invoices/delete/v1/{invoice_id}.");
198
- case "unknown":
199
- throw new errors.ChrtError({
200
- message: _response.error.errorMessage,
201
- rawResponse: _response.rawResponse,
202
- });
203
- }
204
- });
205
- }
206
- /**
207
- * Retrieves an owner-scoped invoice with line-item orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)
208
- *
209
- * @param {string} invoiceId
210
- * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
211
- *
212
- * @throws {@link Chrt.UnprocessableEntityError}
213
- *
214
- * @example
215
- * await client.billingNew.invoices.getExpandedV1("invoice_id")
156
+ * await client.billingNew.invoices.createFromOrdersV1({
157
+ * currency_code: "USD",
158
+ * invoice_type: "accounts_receivable",
159
+ * order_ids: ["order_ids"],
160
+ * schema_version: 1
161
+ * })
216
162
  */
217
- getExpandedV1(invoiceId, requestOptions) {
218
- return core.HttpResponsePromise.fromPromise(this.__getExpandedV1(invoiceId, requestOptions));
163
+ createFromOrdersV1(request, requestOptions) {
164
+ return core.HttpResponsePromise.fromPromise(this.__createFromOrdersV1(request, requestOptions));
219
165
  }
220
- __getExpandedV1(invoiceId, requestOptions) {
166
+ __createFromOrdersV1(request, requestOptions) {
221
167
  return __awaiter(this, void 0, void 0, function* () {
222
168
  var _a, _b, _c, _d;
223
169
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
224
170
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
225
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing_new/invoices/expanded/v1/${encodeURIComponent(invoiceId)}`),
226
- method: "GET",
171
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoices/create_from_orders/v1"),
172
+ method: "POST",
227
173
  headers: _headers,
174
+ contentType: "application/json",
228
175
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
176
+ requestType: "json",
177
+ body: request,
229
178
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
230
179
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
231
180
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -253,7 +202,7 @@ export class Invoices {
253
202
  rawResponse: _response.rawResponse,
254
203
  });
255
204
  case "timeout":
256
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing_new/invoices/expanded/v1/{invoice_id}.");
205
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoices/create_from_orders/v1.");
257
206
  case "unknown":
258
207
  throw new errors.ChrtError({
259
208
  message: _response.error.errorMessage,
@@ -263,27 +212,26 @@ export class Invoices {
263
212
  });
264
213
  }
265
214
  /**
266
- * 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)
215
+ * Hard-deletes a draft invoice and detaches its line items. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
267
216
  *
268
217
  * @param {string} invoiceId
269
- * @param {string} invoiceLineItemId
270
218
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
271
219
  *
272
220
  * @throws {@link Chrt.UnprocessableEntityError}
273
221
  *
274
222
  * @example
275
- * await client.billingNew.invoices.addLineItemV1("invoice_id", "invoice_line_item_id")
223
+ * await client.billingNew.invoices.deleteV1("invoice_id")
276
224
  */
277
- addLineItemV1(invoiceId, invoiceLineItemId, requestOptions) {
278
- return core.HttpResponsePromise.fromPromise(this.__addLineItemV1(invoiceId, invoiceLineItemId, requestOptions));
225
+ deleteV1(invoiceId, requestOptions) {
226
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(invoiceId, requestOptions));
279
227
  }
280
- __addLineItemV1(invoiceId, invoiceLineItemId, requestOptions) {
228
+ __deleteV1(invoiceId, requestOptions) {
281
229
  return __awaiter(this, void 0, void 0, function* () {
282
230
  var _a, _b, _c, _d;
283
231
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
284
232
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
285
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing_new/invoices/line_item/add/v1/${encodeURIComponent(invoiceId)}/${encodeURIComponent(invoiceLineItemId)}`),
286
- method: "POST",
233
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing_new/invoices/delete/v1/${encodeURIComponent(invoiceId)}`),
234
+ method: "DELETE",
287
235
  headers: _headers,
288
236
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
289
237
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -313,7 +261,7 @@ export class Invoices {
313
261
  rawResponse: _response.rawResponse,
314
262
  });
315
263
  case "timeout":
316
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoices/line_item/add/v1/{invoice_id}/{invoice_line_item_id}.");
264
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /billing_new/invoices/delete/v1/{invoice_id}.");
317
265
  case "unknown":
318
266
  throw new errors.ChrtError({
319
267
  message: _response.error.errorMessage,
@@ -323,27 +271,26 @@ export class Invoices {
323
271
  });
324
272
  }
325
273
  /**
326
- * 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)
274
+ * Retrieves an owner-scoped invoice with line-item orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)
327
275
  *
328
276
  * @param {string} invoiceId
329
- * @param {string} invoiceLineItemId
330
277
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
331
278
  *
332
279
  * @throws {@link Chrt.UnprocessableEntityError}
333
280
  *
334
281
  * @example
335
- * await client.billingNew.invoices.removeLineItemV1("invoice_id", "invoice_line_item_id")
282
+ * await client.billingNew.invoices.getExpandedV1("invoice_id")
336
283
  */
337
- removeLineItemV1(invoiceId, invoiceLineItemId, requestOptions) {
338
- return core.HttpResponsePromise.fromPromise(this.__removeLineItemV1(invoiceId, invoiceLineItemId, requestOptions));
284
+ getExpandedV1(invoiceId, requestOptions) {
285
+ return core.HttpResponsePromise.fromPromise(this.__getExpandedV1(invoiceId, requestOptions));
339
286
  }
340
- __removeLineItemV1(invoiceId, invoiceLineItemId, requestOptions) {
287
+ __getExpandedV1(invoiceId, requestOptions) {
341
288
  return __awaiter(this, void 0, void 0, function* () {
342
289
  var _a, _b, _c, _d;
343
290
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
344
291
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
345
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing_new/invoices/line_item/remove/v1/${encodeURIComponent(invoiceId)}/${encodeURIComponent(invoiceLineItemId)}`),
346
- method: "DELETE",
292
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing_new/invoices/expanded/v1/${encodeURIComponent(invoiceId)}`),
293
+ method: "GET",
347
294
  headers: _headers,
348
295
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
349
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -373,7 +320,7 @@ export class Invoices {
373
320
  rawResponse: _response.rawResponse,
374
321
  });
375
322
  case "timeout":
376
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /billing_new/invoices/line_item/remove/v1/{invoice_id}/{invoice_line_item_id}.");
323
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing_new/invoices/expanded/v1/{invoice_id}.");
377
324
  case "unknown":
378
325
  throw new errors.ChrtError({
379
326
  message: _response.error.errorMessage,
@@ -383,7 +330,7 @@ export class Invoices {
383
330
  });
384
331
  }
385
332
  /**
386
- * 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)
333
+ * Attaches uninvoiced line items to a draft invoice and refreshes its totals and accounts. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsAddReq) -> (Invoice1)
387
334
  *
388
335
  * @param {string} invoiceId
389
336
  * @param {Chrt.billingNew.InvoiceLineItemsAddReq} request
@@ -653,6 +600,139 @@ export class Invoices {
653
600
  }
654
601
  });
655
602
  }
603
+ /**
604
+ * Previews exact uninvoiced charges, current resolved taxes, and explicit or derived billing dates without saving. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateReq) -> (InvoicePreviewRes)
605
+ *
606
+ * @param {Chrt.InvoiceCreateReq} request
607
+ * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
608
+ *
609
+ * @throws {@link Chrt.UnprocessableEntityError}
610
+ *
611
+ * @example
612
+ * await client.billingNew.invoices.previewV1({
613
+ * currency_code: "USD",
614
+ * invoice_type: "accounts_receivable",
615
+ * schema_version: 1
616
+ * })
617
+ */
618
+ previewV1(request, requestOptions) {
619
+ return core.HttpResponsePromise.fromPromise(this.__previewV1(request, requestOptions));
620
+ }
621
+ __previewV1(request, requestOptions) {
622
+ return __awaiter(this, void 0, void 0, function* () {
623
+ var _a, _b, _c, _d;
624
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
625
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
626
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoices/preview/v1"),
627
+ method: "POST",
628
+ headers: _headers,
629
+ contentType: "application/json",
630
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
631
+ requestType: "json",
632
+ body: request,
633
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
634
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
635
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
636
+ });
637
+ if (_response.ok) {
638
+ return { data: _response.body, rawResponse: _response.rawResponse };
639
+ }
640
+ if (_response.error.reason === "status-code") {
641
+ switch (_response.error.statusCode) {
642
+ case 422:
643
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
644
+ default:
645
+ throw new errors.ChrtError({
646
+ statusCode: _response.error.statusCode,
647
+ body: _response.error.body,
648
+ rawResponse: _response.rawResponse,
649
+ });
650
+ }
651
+ }
652
+ switch (_response.error.reason) {
653
+ case "non-json":
654
+ throw new errors.ChrtError({
655
+ statusCode: _response.error.statusCode,
656
+ body: _response.error.rawBody,
657
+ rawResponse: _response.rawResponse,
658
+ });
659
+ case "timeout":
660
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoices/preview/v1.");
661
+ case "unknown":
662
+ throw new errors.ChrtError({
663
+ message: _response.error.errorMessage,
664
+ rawResponse: _response.rawResponse,
665
+ });
666
+ }
667
+ });
668
+ }
669
+ /**
670
+ * Selects matching uninvoiced ordinary charges, reports omitted items, and previews current taxes and billing dates without saving. Period dates do not filter charges. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateFromOrdersReq) -> (InvoicePreviewFromOrdersRes)
671
+ *
672
+ * @param {Chrt.InvoiceCreateFromOrdersReq} request
673
+ * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
674
+ *
675
+ * @throws {@link Chrt.UnprocessableEntityError}
676
+ *
677
+ * @example
678
+ * await client.billingNew.invoices.previewFromOrdersV1({
679
+ * currency_code: "USD",
680
+ * invoice_type: "accounts_receivable",
681
+ * order_ids: ["order_ids"],
682
+ * schema_version: 1
683
+ * })
684
+ */
685
+ previewFromOrdersV1(request, requestOptions) {
686
+ return core.HttpResponsePromise.fromPromise(this.__previewFromOrdersV1(request, requestOptions));
687
+ }
688
+ __previewFromOrdersV1(request, requestOptions) {
689
+ return __awaiter(this, void 0, void 0, function* () {
690
+ var _a, _b, _c, _d;
691
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
692
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
693
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoices/preview_from_orders/v1"),
694
+ method: "POST",
695
+ headers: _headers,
696
+ contentType: "application/json",
697
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
698
+ requestType: "json",
699
+ body: request,
700
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
701
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
702
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
703
+ });
704
+ if (_response.ok) {
705
+ return { data: _response.body, rawResponse: _response.rawResponse };
706
+ }
707
+ if (_response.error.reason === "status-code") {
708
+ switch (_response.error.statusCode) {
709
+ case 422:
710
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
711
+ default:
712
+ throw new errors.ChrtError({
713
+ statusCode: _response.error.statusCode,
714
+ body: _response.error.body,
715
+ rawResponse: _response.rawResponse,
716
+ });
717
+ }
718
+ }
719
+ switch (_response.error.reason) {
720
+ case "non-json":
721
+ throw new errors.ChrtError({
722
+ statusCode: _response.error.statusCode,
723
+ body: _response.error.rawBody,
724
+ rawResponse: _response.rawResponse,
725
+ });
726
+ case "timeout":
727
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoices/preview_from_orders/v1.");
728
+ case "unknown":
729
+ throw new errors.ChrtError({
730
+ message: _response.error.errorMessage,
731
+ rawResponse: _response.rawResponse,
732
+ });
733
+ }
734
+ });
735
+ }
656
736
  /**
657
737
  * 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)
658
738
  *
@@ -1,4 +1,3 @@
1
- export { type InvoiceClientCreate1 } from "./InvoiceClientCreate1.mjs";
2
1
  export { type InvoiceLineItemsAddReq } from "./InvoiceLineItemsAddReq.mjs";
3
2
  export { type InvoiceLineItemsRemoveReq } from "./InvoiceLineItemsRemoveReq.mjs";
4
3
  export { type InvoicesListV1Request } from "./InvoicesListV1Request.mjs";
@@ -4,7 +4,6 @@
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 { RateSheetLineItems } from "../resources/rateSheetLineItems/client/Client.mjs";
8
7
  export declare namespace Orders {
9
8
  interface Options {
10
9
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
@@ -30,9 +29,7 @@ export declare namespace Orders {
30
29
  }
31
30
  export declare class Orders {
32
31
  protected readonly _options: Orders.Options;
33
- protected _rateSheetLineItems: RateSheetLineItems | undefined;
34
32
  constructor(_options?: Orders.Options);
35
- get rateSheetLineItems(): RateSheetLineItems;
36
33
  /**
37
34
  * Lists completed, unbilled AWBs with delivery account allocations. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderAwbBillingListRes)
38
35
  *
@@ -88,5 +85,33 @@ export declare class Orders {
88
85
  */
89
86
  listExpandedForCoordinatorOperatorsV1(request?: Chrt.billingNew.OrderBillingExpandedListReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrderBillingExpandedListRes>;
90
87
  private __listExpandedForCoordinatorOperatorsV1;
88
+ /**
89
+ * Regenerates uninvoiced rate-sheet charges per Order, reporting skips and failures. Detach existing charges before regeneration. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (OrderRateSheetLineItemsGenerateManyReq) -> (OrderRateSheetLineItemsGenerateManyRes)
90
+ *
91
+ * @param {Chrt.billingNew.OrderRateSheetLineItemsGenerateManyReq} request
92
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
93
+ *
94
+ * @throws {@link Chrt.UnprocessableEntityError}
95
+ *
96
+ * @example
97
+ * await client.billingNew.orders.generateRateSheetLineItemsManyV1({
98
+ * order_ids: ["order_ids"]
99
+ * })
100
+ */
101
+ generateRateSheetLineItemsManyV1(request: Chrt.billingNew.OrderRateSheetLineItemsGenerateManyReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrderRateSheetLineItemsGenerateManyRes>;
102
+ private __generateRateSheetLineItemsManyV1;
103
+ /**
104
+ * Estimates current taxes for uninvoiced ordinary charges grouped by counterparty, direction, and currency. Returns an empty list when no charges qualify. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[InvoicePreviewRes])
105
+ *
106
+ * @param {string} orderId
107
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
108
+ *
109
+ * @throws {@link Chrt.UnprocessableEntityError}
110
+ *
111
+ * @example
112
+ * await client.billingNew.orders.taxEstimatesV1("order_id")
113
+ */
114
+ taxEstimatesV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.InvoicePreviewRes[]>;
115
+ private __taxEstimatesV1;
91
116
  protected _getAuthorizationHeader(): Promise<string | undefined>;
92
117
  }
@@ -26,15 +26,10 @@ import * as core from "../../../../../../core/index.mjs";
26
26
  import * as Chrt from "../../../../../index.mjs";
27
27
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
28
28
  import * as errors from "../../../../../../errors/index.mjs";
29
- import { RateSheetLineItems } from "../resources/rateSheetLineItems/client/Client.mjs";
30
29
  export class Orders {
31
30
  constructor(_options = {}) {
32
31
  this._options = _options;
33
32
  }
34
- get rateSheetLineItems() {
35
- var _a;
36
- return ((_a = this._rateSheetLineItems) !== null && _a !== void 0 ? _a : (this._rateSheetLineItems = new RateSheetLineItems(this._options)));
37
- }
38
33
  /**
39
34
  * Lists completed, unbilled AWBs with delivery account allocations. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderAwbBillingListRes)
40
35
  *
@@ -285,6 +280,132 @@ export class Orders {
285
280
  }
286
281
  });
287
282
  }
283
+ /**
284
+ * Regenerates uninvoiced rate-sheet charges per Order, reporting skips and failures. Detach existing charges before regeneration. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (OrderRateSheetLineItemsGenerateManyReq) -> (OrderRateSheetLineItemsGenerateManyRes)
285
+ *
286
+ * @param {Chrt.billingNew.OrderRateSheetLineItemsGenerateManyReq} request
287
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
288
+ *
289
+ * @throws {@link Chrt.UnprocessableEntityError}
290
+ *
291
+ * @example
292
+ * await client.billingNew.orders.generateRateSheetLineItemsManyV1({
293
+ * order_ids: ["order_ids"]
294
+ * })
295
+ */
296
+ generateRateSheetLineItemsManyV1(request, requestOptions) {
297
+ return core.HttpResponsePromise.fromPromise(this.__generateRateSheetLineItemsManyV1(request, requestOptions));
298
+ }
299
+ __generateRateSheetLineItemsManyV1(request, requestOptions) {
300
+ return __awaiter(this, void 0, void 0, function* () {
301
+ var _a, _b, _c, _d;
302
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
303
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
304
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/orders/rate_sheet_line_items/generate_many/v1"),
305
+ method: "POST",
306
+ headers: _headers,
307
+ contentType: "application/json",
308
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
309
+ requestType: "json",
310
+ body: request,
311
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
312
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
313
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
314
+ });
315
+ if (_response.ok) {
316
+ return {
317
+ data: _response.body,
318
+ rawResponse: _response.rawResponse,
319
+ };
320
+ }
321
+ if (_response.error.reason === "status-code") {
322
+ switch (_response.error.statusCode) {
323
+ case 422:
324
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
325
+ default:
326
+ throw new errors.ChrtError({
327
+ statusCode: _response.error.statusCode,
328
+ body: _response.error.body,
329
+ rawResponse: _response.rawResponse,
330
+ });
331
+ }
332
+ }
333
+ switch (_response.error.reason) {
334
+ case "non-json":
335
+ throw new errors.ChrtError({
336
+ statusCode: _response.error.statusCode,
337
+ body: _response.error.rawBody,
338
+ rawResponse: _response.rawResponse,
339
+ });
340
+ case "timeout":
341
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/orders/rate_sheet_line_items/generate_many/v1.");
342
+ case "unknown":
343
+ throw new errors.ChrtError({
344
+ message: _response.error.errorMessage,
345
+ rawResponse: _response.rawResponse,
346
+ });
347
+ }
348
+ });
349
+ }
350
+ /**
351
+ * Estimates current taxes for uninvoiced ordinary charges grouped by counterparty, direction, and currency. Returns an empty list when no charges qualify. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[InvoicePreviewRes])
352
+ *
353
+ * @param {string} orderId
354
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
355
+ *
356
+ * @throws {@link Chrt.UnprocessableEntityError}
357
+ *
358
+ * @example
359
+ * await client.billingNew.orders.taxEstimatesV1("order_id")
360
+ */
361
+ taxEstimatesV1(orderId, requestOptions) {
362
+ return core.HttpResponsePromise.fromPromise(this.__taxEstimatesV1(orderId, requestOptions));
363
+ }
364
+ __taxEstimatesV1(orderId, requestOptions) {
365
+ return __awaiter(this, void 0, void 0, function* () {
366
+ var _a, _b, _c, _d;
367
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
368
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
369
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing_new/orders/tax_estimates/v1/${encodeURIComponent(orderId)}`),
370
+ method: "GET",
371
+ headers: _headers,
372
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
373
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
374
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
375
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
376
+ });
377
+ if (_response.ok) {
378
+ return { data: _response.body, rawResponse: _response.rawResponse };
379
+ }
380
+ if (_response.error.reason === "status-code") {
381
+ switch (_response.error.statusCode) {
382
+ case 422:
383
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
384
+ default:
385
+ throw new errors.ChrtError({
386
+ statusCode: _response.error.statusCode,
387
+ body: _response.error.body,
388
+ rawResponse: _response.rawResponse,
389
+ });
390
+ }
391
+ }
392
+ switch (_response.error.reason) {
393
+ case "non-json":
394
+ throw new errors.ChrtError({
395
+ statusCode: _response.error.statusCode,
396
+ body: _response.error.rawBody,
397
+ rawResponse: _response.rawResponse,
398
+ });
399
+ case "timeout":
400
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing_new/orders/tax_estimates/v1/{order_id}.");
401
+ case "unknown":
402
+ throw new errors.ChrtError({
403
+ message: _response.error.errorMessage,
404
+ rawResponse: _response.rawResponse,
405
+ });
406
+ }
407
+ });
408
+ }
288
409
  _getAuthorizationHeader() {
289
410
  return __awaiter(this, void 0, void 0, function* () {
290
411
  const bearer = yield core.Supplier.get(this._options.token);
@@ -1,2 +1,3 @@
1
1
  export { type OrdersListAwbBillingForCoordinatorOperatorsV1Request } from "./OrdersListAwbBillingForCoordinatorOperatorsV1Request.mjs";
2
2
  export { type OrderBillingExpandedListReq } from "./OrderBillingExpandedListReq.mjs";
3
+ export { type OrderRateSheetLineItemsGenerateManyReq } from "./OrderRateSheetLineItemsGenerateManyReq.mjs";
@@ -1,2 +1 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./resources/index.mjs";
@@ -1,2 +1 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./resources/index.mjs";