@commercelayer/sdk 6.8.2 → 6.9.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/lib/index.d.mts +8 -2
- package/lib/index.d.ts +8 -2
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
@@ -7793,7 +7793,7 @@ interface Order extends Resource {
|
|
7793
7793
|
*/
|
7794
7794
|
requires_billing_info?: boolean | null;
|
7795
7795
|
/**
|
7796
|
-
* The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping
|
7796
|
+
* The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping or billing addresses..
|
7797
7797
|
* @example ```"IT"```
|
7798
7798
|
*/
|
7799
7799
|
country_code?: string | null;
|
@@ -10122,6 +10122,11 @@ interface ShipmentUpdate extends ResourceUpdate {
|
|
10122
10122
|
* @example ```"true"```
|
10123
10123
|
*/
|
10124
10124
|
_upcoming?: boolean | null;
|
10125
|
+
/**
|
10126
|
+
* Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered)..
|
10127
|
+
* @example ```"true"```
|
10128
|
+
*/
|
10129
|
+
_cancel?: boolean | null;
|
10125
10130
|
/**
|
10126
10131
|
* Send this attribute if you want to put this shipment on hold..
|
10127
10132
|
* @example ```"true"```
|
@@ -10212,6 +10217,7 @@ declare class Shipments extends ApiResource<Shipment> {
|
|
10212
10217
|
tags(shipmentId: string | Shipment, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
10213
10218
|
versions(shipmentId: string | Shipment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
10214
10219
|
_upcoming(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
10220
|
+
_cancel(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
10215
10221
|
_on_hold(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
10216
10222
|
_picking(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
10217
10223
|
_packing(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
@@ -15219,7 +15225,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
15219
15225
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
15220
15226
|
declare class CommerceLayerClient {
|
15221
15227
|
#private;
|
15222
|
-
readonly openApiSchemaVersion = "5.4.
|
15228
|
+
readonly openApiSchemaVersion = "5.4.3";
|
15223
15229
|
constructor(config: CommerceLayerInitConfig);
|
15224
15230
|
get addresses(): Addresses;
|
15225
15231
|
get adjustments(): Adjustments;
|
package/lib/index.d.ts
CHANGED
@@ -7793,7 +7793,7 @@ interface Order extends Resource {
|
|
7793
7793
|
*/
|
7794
7794
|
requires_billing_info?: boolean | null;
|
7795
7795
|
/**
|
7796
|
-
* The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping
|
7796
|
+
* The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping or billing addresses..
|
7797
7797
|
* @example ```"IT"```
|
7798
7798
|
*/
|
7799
7799
|
country_code?: string | null;
|
@@ -10122,6 +10122,11 @@ interface ShipmentUpdate extends ResourceUpdate {
|
|
10122
10122
|
* @example ```"true"```
|
10123
10123
|
*/
|
10124
10124
|
_upcoming?: boolean | null;
|
10125
|
+
/**
|
10126
|
+
* Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered)..
|
10127
|
+
* @example ```"true"```
|
10128
|
+
*/
|
10129
|
+
_cancel?: boolean | null;
|
10125
10130
|
/**
|
10126
10131
|
* Send this attribute if you want to put this shipment on hold..
|
10127
10132
|
* @example ```"true"```
|
@@ -10212,6 +10217,7 @@ declare class Shipments extends ApiResource<Shipment> {
|
|
10212
10217
|
tags(shipmentId: string | Shipment, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
10213
10218
|
versions(shipmentId: string | Shipment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
10214
10219
|
_upcoming(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
10220
|
+
_cancel(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
10215
10221
|
_on_hold(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
10216
10222
|
_picking(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
10217
10223
|
_packing(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
|
@@ -15219,7 +15225,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
15219
15225
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
15220
15226
|
declare class CommerceLayerClient {
|
15221
15227
|
#private;
|
15222
|
-
readonly openApiSchemaVersion = "5.4.
|
15228
|
+
readonly openApiSchemaVersion = "5.4.3";
|
15223
15229
|
constructor(config: CommerceLayerInitConfig);
|
15224
15230
|
get addresses(): Addresses;
|
15225
15231
|
get adjustments(): Adjustments;
|