@chrt-inc/typescript-sdk 1.976.0 → 1.983.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +21 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +75 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateManyReq.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.d.ts +18 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.js +1 -0
- package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/Client.js +27 -13
- package/dist/cjs/api/resources/billingNew/resources/{invoices/resources/export/client/requests/ExportListV1Request.d.ts → invoiceLineItems/resources/export/client/requests/InvoiceLineItemExportListReq.d.ts} +4 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +0 -5
- package/dist/cjs/api/resources/billingNew/resources/invoices/index.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/index.js +0 -1
- package/dist/cjs/api/types/InvoiceLineItemExportListItem.d.ts +46 -0
- package/dist/cjs/api/types/{InvoiceExportListRes.d.ts → InvoiceLineItemExportListRes.d.ts} +2 -2
- package/dist/cjs/api/types/InvoiceLineItemExportListRes.js +5 -0
- package/dist/cjs/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.d.ts +18 -0
- package/dist/cjs/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.js +14 -0
- package/dist/cjs/api/types/index.d.ts +3 -2
- package/dist/cjs/api/types/index.js +3 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +21 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +75 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateManyReq.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.d.mts +18 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/Client.mjs +27 -13
- package/dist/esm/api/resources/billingNew/resources/{invoices/resources/export/client/requests/ExportListV1Request.d.mts → invoiceLineItems/resources/export/client/requests/InvoiceLineItemExportListReq.d.mts} +4 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +0 -3
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +0 -5
- package/dist/esm/api/resources/billingNew/resources/invoices/index.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/index.mjs +0 -1
- package/dist/esm/api/types/InvoiceLineItemExportListItem.d.mts +46 -0
- package/dist/esm/api/types/{InvoiceExportListRes.d.mts → InvoiceLineItemExportListRes.d.mts} +2 -2
- package/dist/esm/api/types/InvoiceLineItemExportListRes.mjs +4 -0
- package/dist/esm/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.d.mts +18 -0
- package/dist/esm/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.mjs +11 -0
- package/dist/esm/api/types/index.d.mts +3 -2
- package/dist/esm/api/types/index.mjs +3 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +74 -15
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/InvoiceExportListItem.d.ts +0 -46
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/InvoiceExportListItem.d.mts +0 -46
- /package/dist/cjs/api/resources/billingNew/resources/{invoices/resources/export/client/requests/ExportListV1Request.js → invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/index.js +0 -0
- /package/dist/cjs/api/{types/InvoiceExportListItem.js → resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/InvoiceLineItemExportListReq.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/index.js +0 -0
- /package/dist/cjs/api/types/{InvoiceExportListRes.js → InvoiceLineItemExportListItem.js} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices/resources/export/client/requests/ExportListV1Request.mjs → invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/index.mjs +0 -0
- /package/dist/esm/api/{types/InvoiceExportListItem.mjs → resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/InvoiceLineItemExportListReq.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/index.mjs +0 -0
- /package/dist/esm/api/types/{InvoiceExportListRes.mjs → InvoiceLineItemExportListItem.mjs} +0 -0
package/reference.md
CHANGED
|
@@ -2741,6 +2741,72 @@ await client.billingNew.invoiceLineItems.recalculateTaxesV1({
|
|
|
2741
2741
|
</dl>
|
|
2742
2742
|
</details>
|
|
2743
2743
|
|
|
2744
|
+
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">updateCurrencyConversionForReceivablesAcrossOrdersV1</a>({ ...params }) -> Chrt.ReceivablesAcrossOrdersCurrencyConversionOrderRes[]</code></summary>
|
|
2745
|
+
<dl>
|
|
2746
|
+
<dd>
|
|
2747
|
+
|
|
2748
|
+
#### 📝 Description
|
|
2749
|
+
|
|
2750
|
+
<dl>
|
|
2751
|
+
<dd>
|
|
2752
|
+
|
|
2753
|
+
<dl>
|
|
2754
|
+
<dd>
|
|
2755
|
+
|
|
2756
|
+
Applies one currency conversion independently to each selected order and reports each outcome. | authz: allowed_org_types=[provider], min_org_role=operator | (ReceivablesAcrossOrdersCurrencyConversionUpdateReq) -> (list[ReceivablesAcrossOrdersCurrencyConversionOrderRes])
|
|
2757
|
+
|
|
2758
|
+
</dd>
|
|
2759
|
+
</dl>
|
|
2760
|
+
</dd>
|
|
2761
|
+
</dl>
|
|
2762
|
+
|
|
2763
|
+
#### 🔌 Usage
|
|
2764
|
+
|
|
2765
|
+
<dl>
|
|
2766
|
+
<dd>
|
|
2767
|
+
|
|
2768
|
+
<dl>
|
|
2769
|
+
<dd>
|
|
2770
|
+
|
|
2771
|
+
```typescript
|
|
2772
|
+
await client.billingNew.invoiceLineItems.updateCurrencyConversionForReceivablesAcrossOrdersV1({
|
|
2773
|
+
order_ids: ["order_ids"],
|
|
2774
|
+
target_currency_code: "USD",
|
|
2775
|
+
});
|
|
2776
|
+
```
|
|
2777
|
+
|
|
2778
|
+
</dd>
|
|
2779
|
+
</dl>
|
|
2780
|
+
</dd>
|
|
2781
|
+
</dl>
|
|
2782
|
+
|
|
2783
|
+
#### ⚙️ Parameters
|
|
2784
|
+
|
|
2785
|
+
<dl>
|
|
2786
|
+
<dd>
|
|
2787
|
+
|
|
2788
|
+
<dl>
|
|
2789
|
+
<dd>
|
|
2790
|
+
|
|
2791
|
+
**request:** `Chrt.billingNew.ReceivablesAcrossOrdersCurrencyConversionUpdateReq`
|
|
2792
|
+
|
|
2793
|
+
</dd>
|
|
2794
|
+
</dl>
|
|
2795
|
+
|
|
2796
|
+
<dl>
|
|
2797
|
+
<dd>
|
|
2798
|
+
|
|
2799
|
+
**requestOptions:** `InvoiceLineItems.RequestOptions`
|
|
2800
|
+
|
|
2801
|
+
</dd>
|
|
2802
|
+
</dl>
|
|
2803
|
+
</dd>
|
|
2804
|
+
</dl>
|
|
2805
|
+
|
|
2806
|
+
</dd>
|
|
2807
|
+
</dl>
|
|
2808
|
+
</details>
|
|
2809
|
+
|
|
2744
2810
|
<details><summary><code>client.billingNew.invoiceLineItems.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/client/Client.ts">updateCurrencyConversionManyV1</a>({ ...params }) -> Chrt.InvoiceLineItem1[]</code></summary>
|
|
2745
2811
|
<dl>
|
|
2746
2812
|
<dd>
|
|
@@ -2753,7 +2819,7 @@ await client.billingNew.invoiceLineItems.recalculateTaxesV1({
|
|
|
2753
2819
|
<dl>
|
|
2754
2820
|
<dd>
|
|
2755
2821
|
|
|
2756
|
-
Applies or
|
|
2822
|
+
Applies, reverts, or skips one currency conversion from original source values and moves attached items to the matching draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])
|
|
2757
2823
|
|
|
2758
2824
|
</dd>
|
|
2759
2825
|
</dl>
|
|
@@ -2819,7 +2885,7 @@ await client.billingNew.invoiceLineItems.updateCurrencyConversionManyV1({
|
|
|
2819
2885
|
<dl>
|
|
2820
2886
|
<dd>
|
|
2821
2887
|
|
|
2822
|
-
Updates an owner-scoped line item's source fields,
|
|
2888
|
+
Updates an owner-scoped line item's source fields, including its caller-owned shipper account when not rate-sheet-derived, and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (InvoiceLineItem1)
|
|
2823
2889
|
|
|
2824
2890
|
</dd>
|
|
2825
2891
|
</dl>
|
|
@@ -3940,9 +4006,9 @@ await client.billingNew.orders.listExpandedForCoordinatorOperatorsV1({
|
|
|
3940
4006
|
</dl>
|
|
3941
4007
|
</details>
|
|
3942
4008
|
|
|
3943
|
-
## BillingNew
|
|
4009
|
+
## BillingNew InvoiceLineItems Export
|
|
3944
4010
|
|
|
3945
|
-
<details><summary><code>client.billingNew.
|
|
4011
|
+
<details><summary><code>client.billingNew.invoiceLineItems.export.<a href="/src/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.ts">listV1</a>({ ...params }) -> Chrt.InvoiceLineItemExportListRes</code></summary>
|
|
3946
4012
|
<dl>
|
|
3947
4013
|
<dd>
|
|
3948
4014
|
|
|
@@ -3954,7 +4020,7 @@ await client.billingNew.orders.listExpandedForCoordinatorOperatorsV1({
|
|
|
3954
4020
|
<dl>
|
|
3955
4021
|
<dd>
|
|
3956
4022
|
|
|
3957
|
-
Lists up to 1,000
|
|
4023
|
+
Lists up to 1,000 accounts-receivable and accounts-payable line items for the selected Orders, with shipment context. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemExportListReq) -> (InvoiceLineItemExportListRes)
|
|
3958
4024
|
|
|
3959
4025
|
</dd>
|
|
3960
4026
|
</dl>
|
|
@@ -3970,9 +4036,10 @@ Lists up to 1,000 shipment-level export rows for one accounts-receivable invoice
|
|
|
3970
4036
|
<dd>
|
|
3971
4037
|
|
|
3972
4038
|
```typescript
|
|
3973
|
-
await client.billingNew.
|
|
4039
|
+
await client.billingNew.invoiceLineItems.export.listV1({
|
|
3974
4040
|
page: 1,
|
|
3975
4041
|
page_size: 1,
|
|
4042
|
+
order_ids: ["order_ids"],
|
|
3976
4043
|
});
|
|
3977
4044
|
```
|
|
3978
4045
|
|
|
@@ -3989,15 +4056,7 @@ await client.billingNew.invoices.export.listV1("invoice_id", {
|
|
|
3989
4056
|
<dl>
|
|
3990
4057
|
<dd>
|
|
3991
4058
|
|
|
3992
|
-
**
|
|
3993
|
-
|
|
3994
|
-
</dd>
|
|
3995
|
-
</dl>
|
|
3996
|
-
|
|
3997
|
-
<dl>
|
|
3998
|
-
<dd>
|
|
3999
|
-
|
|
4000
|
-
**request:** `Chrt.billingNew.invoices.ExportListV1Request`
|
|
4059
|
+
**request:** `Chrt.billingNew.invoiceLineItems.InvoiceLineItemExportListReq`
|
|
4001
4060
|
|
|
4002
4061
|
</dd>
|
|
4003
4062
|
</dl>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { type ExportListV1Request } from "./ExportListV1Request.js";
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
|
-
export interface InvoiceExportListItem {
|
|
6
|
-
account_name?: string | null;
|
|
7
|
-
airbill_charge: number;
|
|
8
|
-
airlines?: string[];
|
|
9
|
-
awb_numbers?: string[];
|
|
10
|
-
base_rate: number;
|
|
11
|
-
billing_period_end_at_timestamp: string;
|
|
12
|
-
billing_period_start_at_timestamp: string;
|
|
13
|
-
cargo_types?: string[];
|
|
14
|
-
charge_per_quantity?: number | null;
|
|
15
|
-
charges_subtotal: number;
|
|
16
|
-
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
17
|
-
delivery_address?: string | null;
|
|
18
|
-
delivery_location_name?: string | null;
|
|
19
|
-
delivery_status?: string | null;
|
|
20
|
-
delivery_stop_number?: number | null;
|
|
21
|
-
delivery_stops_on_order?: number | null;
|
|
22
|
-
destination_iata?: string | null;
|
|
23
|
-
flight_numbers?: string[];
|
|
24
|
-
invoice_approval_timestamp?: string | null;
|
|
25
|
-
invoice_number: string;
|
|
26
|
-
mileage_estimated?: number | null;
|
|
27
|
-
net_billing: number;
|
|
28
|
-
off_chrt_reference_id?: string | null;
|
|
29
|
-
order_placer_comments?: string | null;
|
|
30
|
-
order_short_id?: string | null;
|
|
31
|
-
origin_iata?: string | null;
|
|
32
|
-
other_charges: number;
|
|
33
|
-
other_charges_detail?: string[];
|
|
34
|
-
pod_date?: string | null;
|
|
35
|
-
pod_name?: string | null;
|
|
36
|
-
pod_time?: string | null;
|
|
37
|
-
quantity?: number | null;
|
|
38
|
-
tax_1_amount?: number | null;
|
|
39
|
-
tax_1_description?: string | null;
|
|
40
|
-
tax_2_amount?: number | null;
|
|
41
|
-
tax_2_description?: string | null;
|
|
42
|
-
tax_3_amount?: number | null;
|
|
43
|
-
tax_3_description?: string | null;
|
|
44
|
-
total_tax: number;
|
|
45
|
-
weight_pounds?: number | null;
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { type ExportListV1Request } from "./ExportListV1Request.mjs";
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
|
-
export interface InvoiceExportListItem {
|
|
6
|
-
account_name?: string | null;
|
|
7
|
-
airbill_charge: number;
|
|
8
|
-
airlines?: string[];
|
|
9
|
-
awb_numbers?: string[];
|
|
10
|
-
base_rate: number;
|
|
11
|
-
billing_period_end_at_timestamp: string;
|
|
12
|
-
billing_period_start_at_timestamp: string;
|
|
13
|
-
cargo_types?: string[];
|
|
14
|
-
charge_per_quantity?: number | null;
|
|
15
|
-
charges_subtotal: number;
|
|
16
|
-
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
17
|
-
delivery_address?: string | null;
|
|
18
|
-
delivery_location_name?: string | null;
|
|
19
|
-
delivery_status?: string | null;
|
|
20
|
-
delivery_stop_number?: number | null;
|
|
21
|
-
delivery_stops_on_order?: number | null;
|
|
22
|
-
destination_iata?: string | null;
|
|
23
|
-
flight_numbers?: string[];
|
|
24
|
-
invoice_approval_timestamp?: string | null;
|
|
25
|
-
invoice_number: string;
|
|
26
|
-
mileage_estimated?: number | null;
|
|
27
|
-
net_billing: number;
|
|
28
|
-
off_chrt_reference_id?: string | null;
|
|
29
|
-
order_placer_comments?: string | null;
|
|
30
|
-
order_short_id?: string | null;
|
|
31
|
-
origin_iata?: string | null;
|
|
32
|
-
other_charges: number;
|
|
33
|
-
other_charges_detail?: string[];
|
|
34
|
-
pod_date?: string | null;
|
|
35
|
-
pod_name?: string | null;
|
|
36
|
-
pod_time?: string | null;
|
|
37
|
-
quantity?: number | null;
|
|
38
|
-
tax_1_amount?: number | null;
|
|
39
|
-
tax_1_description?: string | null;
|
|
40
|
-
tax_2_amount?: number | null;
|
|
41
|
-
tax_2_description?: string | null;
|
|
42
|
-
tax_3_amount?: number | null;
|
|
43
|
-
tax_3_description?: string | null;
|
|
44
|
-
total_tax: number;
|
|
45
|
-
weight_pounds?: number | null;
|
|
46
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|