@merchi/sdk 1.42.24 → 1.42.26

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.
@@ -1,3 +1,5 @@
1
1
  export declare enum ShipmentService {
2
- SENDLE = 1
2
+ SENDLE = 1,
3
+ AUSTRALIA_POST = 2,
4
+ STARTRACK = 3
3
5
  }
@@ -1,4 +1,6 @@
1
1
  export var ShipmentService;
2
2
  (function (ShipmentService) {
3
3
  ShipmentService[ShipmentService["SENDLE"] = 1] = "SENDLE";
4
+ ShipmentService[ShipmentService["AUSTRALIA_POST"] = 2] = "AUSTRALIA_POST";
5
+ ShipmentService[ShipmentService["STARTRACK"] = 3] = "STARTRACK";
4
6
  })(ShipmentService || (ShipmentService = {}));
@@ -50,6 +50,10 @@ export declare class Company extends Entity {
50
50
  australiaPostPassword?: string;
51
51
  startrackApiKey?: string;
52
52
  startrackPassword?: string;
53
+ australiaPostAccountNumber?: string;
54
+ australiaPostSandbox?: boolean;
55
+ startrackAccountNumber?: string;
56
+ startrackSandbox?: boolean;
53
57
  dhlApiKey?: string;
54
58
  dhlApiSecret?: string;
55
59
  dhlTrackingSandbox?: boolean;
@@ -188,6 +188,22 @@ var Company = /** @class */ (function (_super) {
188
188
  Company.property({ type: String }),
189
189
  __metadata("design:type", String)
190
190
  ], Company.prototype, "startrackPassword", void 0);
191
+ __decorate([
192
+ Company.property({ type: String }),
193
+ __metadata("design:type", String)
194
+ ], Company.prototype, "australiaPostAccountNumber", void 0);
195
+ __decorate([
196
+ Company.property(),
197
+ __metadata("design:type", Boolean)
198
+ ], Company.prototype, "australiaPostSandbox", void 0);
199
+ __decorate([
200
+ Company.property({ type: String }),
201
+ __metadata("design:type", String)
202
+ ], Company.prototype, "startrackAccountNumber", void 0);
203
+ __decorate([
204
+ Company.property(),
205
+ __metadata("design:type", Boolean)
206
+ ], Company.prototype, "startrackSandbox", void 0);
191
207
  __decorate([
192
208
  Company.property({ type: String }),
193
209
  __metadata("design:type", String)
@@ -40,6 +40,13 @@ export declare class Shipment extends Entity {
40
40
  transportCompany?: number | null;
41
41
  transportCompanyName?: string | null;
42
42
  trackingNumber?: string | null;
43
+ carrierShipmentId?: string | null;
44
+ carrierOrderId?: string | null;
45
+ carrierProductId?: string | null;
46
+ carrierCost?: number | null;
47
+ carrierCurrency?: string | null;
48
+ authorityToLeave?: boolean | null;
49
+ allowPartialDelivery?: boolean | null;
43
50
  buyCost?: number | null;
44
51
  buyCurrency?: string | null;
45
52
  cost?: number | null;
@@ -135,6 +135,34 @@ var Shipment = /** @class */ (function (_super) {
135
135
  Shipment.property({ type: String }),
136
136
  __metadata("design:type", Object)
137
137
  ], Shipment.prototype, "trackingNumber", void 0);
138
+ __decorate([
139
+ Shipment.property({ type: String }),
140
+ __metadata("design:type", Object)
141
+ ], Shipment.prototype, "carrierShipmentId", void 0);
142
+ __decorate([
143
+ Shipment.property({ type: String }),
144
+ __metadata("design:type", Object)
145
+ ], Shipment.prototype, "carrierOrderId", void 0);
146
+ __decorate([
147
+ Shipment.property({ type: String }),
148
+ __metadata("design:type", Object)
149
+ ], Shipment.prototype, "carrierProductId", void 0);
150
+ __decorate([
151
+ Shipment.property({ type: Number }),
152
+ __metadata("design:type", Object)
153
+ ], Shipment.prototype, "carrierCost", void 0);
154
+ __decorate([
155
+ Shipment.property({ type: String }),
156
+ __metadata("design:type", Object)
157
+ ], Shipment.prototype, "carrierCurrency", void 0);
158
+ __decorate([
159
+ Shipment.property({ type: Boolean }),
160
+ __metadata("design:type", Object)
161
+ ], Shipment.prototype, "authorityToLeave", void 0);
162
+ __decorate([
163
+ Shipment.property({ type: Boolean }),
164
+ __metadata("design:type", Object)
165
+ ], Shipment.prototype, "allowPartialDelivery", void 0);
138
166
  __decorate([
139
167
  Shipment.property({ type: Number }),
140
168
  __metadata("design:type", Object)
@@ -20,6 +20,10 @@ export declare class ShipmentMethod extends Entity {
20
20
  currency?: string;
21
21
  buyCost?: number;
22
22
  buyCurrency?: string;
23
+ carrierProductId?: string | null;
24
+ carrierMarkupPercent?: number;
25
+ carrierMarkupFixed?: number;
26
+ packagingType?: string;
23
27
  transportCompany?: number | null;
24
28
  transportCompanyName?: string;
25
29
  taxType?: CountryTax | null;
@@ -79,6 +79,22 @@ var ShipmentMethod = /** @class */ (function (_super) {
79
79
  ShipmentMethod.property(),
80
80
  __metadata("design:type", String)
81
81
  ], ShipmentMethod.prototype, "buyCurrency", void 0);
82
+ __decorate([
83
+ ShipmentMethod.property({ type: String }),
84
+ __metadata("design:type", Object)
85
+ ], ShipmentMethod.prototype, "carrierProductId", void 0);
86
+ __decorate([
87
+ ShipmentMethod.property(),
88
+ __metadata("design:type", Number)
89
+ ], ShipmentMethod.prototype, "carrierMarkupPercent", void 0);
90
+ __decorate([
91
+ ShipmentMethod.property(),
92
+ __metadata("design:type", Number)
93
+ ], ShipmentMethod.prototype, "carrierMarkupFixed", void 0);
94
+ __decorate([
95
+ ShipmentMethod.property({ type: String }),
96
+ __metadata("design:type", String)
97
+ ], ShipmentMethod.prototype, "packagingType", void 0);
82
98
  __decorate([
83
99
  ShipmentMethod.property({ type: Number }),
84
100
  __metadata("design:type", Object)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merchi/sdk",
3
- "version": "1.42.24",
3
+ "version": "1.42.26",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -1,3 +1,5 @@
1
1
  export enum ShipmentService {
2
- SENDLE = 1
2
+ SENDLE = 1,
3
+ AUSTRALIA_POST = 2,
4
+ STARTRACK = 3,
3
5
  }
@@ -108,6 +108,18 @@ export class Company extends Entity {
108
108
  @Company.property({type: String})
109
109
  public startrackPassword?: string;
110
110
 
111
+ @Company.property({type: String})
112
+ public australiaPostAccountNumber?: string;
113
+
114
+ @Company.property()
115
+ public australiaPostSandbox?: boolean;
116
+
117
+ @Company.property({type: String})
118
+ public startrackAccountNumber?: string;
119
+
120
+ @Company.property()
121
+ public startrackSandbox?: boolean;
122
+
111
123
  @Company.property({type: String})
112
124
  public dhlApiKey?: string;
113
125
 
@@ -81,6 +81,27 @@ export class Shipment extends Entity {
81
81
  @Shipment.property({type: String})
82
82
  public trackingNumber?: string | null;
83
83
 
84
+ @Shipment.property({type: String})
85
+ public carrierShipmentId?: string | null;
86
+
87
+ @Shipment.property({type: String})
88
+ public carrierOrderId?: string | null;
89
+
90
+ @Shipment.property({type: String})
91
+ public carrierProductId?: string | null;
92
+
93
+ @Shipment.property({type: Number})
94
+ public carrierCost?: number | null;
95
+
96
+ @Shipment.property({type: String})
97
+ public carrierCurrency?: string | null;
98
+
99
+ @Shipment.property({type: Boolean})
100
+ public authorityToLeave?: boolean | null;
101
+
102
+ @Shipment.property({type: Boolean})
103
+ public allowPartialDelivery?: boolean | null;
104
+
84
105
  @Shipment.property({type: Number})
85
106
  public buyCost?: number | null;
86
107
 
@@ -44,6 +44,18 @@ export class ShipmentMethod extends Entity {
44
44
  @ShipmentMethod.property()
45
45
  public buyCurrency?: string;
46
46
 
47
+ @ShipmentMethod.property({type: String})
48
+ public carrierProductId?: string | null;
49
+
50
+ @ShipmentMethod.property()
51
+ public carrierMarkupPercent?: number;
52
+
53
+ @ShipmentMethod.property()
54
+ public carrierMarkupFixed?: number;
55
+
56
+ @ShipmentMethod.property({type: String})
57
+ public packagingType?: string;
58
+
47
59
  @ShipmentMethod.property({type: Number})
48
60
  public transportCompany?: number | null;
49
61