@artisan-commerce/types 0.14.0-canary.4 → 0.14.0-canary.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.14.0-canary.6](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.5...@artisan-commerce/types@0.14.0-canary.6) (2021-08-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **global:** add missing properties to order interfaces and types ([757157f](https://bitbucket.org/tradesystem/artisn_sdk/commit/757157fbb2dd25d04efc791cd9b9511e41685471))
12
+
13
+
14
+
15
+ ## [0.14.0-canary.5](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.4...@artisan-commerce/types@0.14.0-canary.5) (2021-08-23)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **global:** add missing properties to shipping address and complete document type ([c9156f6](https://bitbucket.org/tradesystem/artisn_sdk/commit/c9156f6db3e55f23479484577760f5196e112afc))
21
+
22
+
23
+
6
24
  ## [0.14.0-canary.4](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.3...@artisan-commerce/types@0.14.0-canary.4) (2021-08-12)
7
25
 
8
26
 
@@ -1,3 +1,9 @@
1
+ import { ARDocumentType, BODocumentType } from "./country.types";
2
+ import { BRDocumentType, CLDocumentType } from "./country.types";
3
+ import { CODocumentType, ECDocumentType } from "./country.types";
4
+ import { PYDocumentType, PEDocumentType } from "./country.types";
5
+ import { UYDocumentType, VEDocumentType } from "./country.types";
6
+ import { USDocumentType } from "./country.types";
1
7
  /**
2
8
  * Representation of a generic object.
3
9
  *
@@ -12,9 +18,9 @@ export interface Objectify<T> {
12
18
  * The possible values of a document type.
13
19
  *
14
20
  * @typedef DocumentType
15
- * @since 0.5.14
21
+ * @since 0.1.0
16
22
  */
17
- export declare type DocumentType = "CI" | "RUC" | "PASSPORT";
23
+ export declare type DocumentType = ARDocumentType | BODocumentType | BRDocumentType | CLDocumentType | CODocumentType | ECDocumentType | PYDocumentType | PEDocumentType | UYDocumentType | VEDocumentType | USDocumentType;
18
24
  /**
19
25
  * Representation of the country's summary.
20
26
  *
@@ -57,3 +57,87 @@ export interface CountryTax {
57
57
  * @see https://www.nationsonline.org/oneworld/country_code_list.htm for reference
58
58
  */
59
59
  export declare type CountryCode = "AR" | "BO" | "BR" | "CL" | "CO" | "EC" | "PY" | "PE" | "UY" | "VE" | "US";
60
+ /**
61
+ * Default documents for all countries.
62
+ *
63
+ * @typedef CommonDocumentType
64
+ * @since 0.1.0
65
+ */
66
+ export declare type CommonDocumentType = "PASSPORT";
67
+ /**
68
+ * Argentina supported document types.
69
+ *
70
+ * @typedef ARDocumentType
71
+ * @since 0.1.0
72
+ */
73
+ export declare type ARDocumentType = CommonDocumentType;
74
+ /**
75
+ * Bolivia supported document types.
76
+ *
77
+ * @typedef BODocumentType
78
+ * @since 0.1.0
79
+ */
80
+ export declare type BODocumentType = CommonDocumentType;
81
+ /**
82
+ * Brasil supported document types.
83
+ *
84
+ * @typedef BRDocumentType
85
+ * @since 0.1.0
86
+ */
87
+ export declare type BRDocumentType = CommonDocumentType;
88
+ /**
89
+ * Chile supported document types.
90
+ *
91
+ * @typedef CLDocumentType
92
+ * @since 0.1.0
93
+ */
94
+ export declare type CLDocumentType = CommonDocumentType;
95
+ /**
96
+ * Colombia supported document types.
97
+ *
98
+ * @typedef CODocumentType
99
+ * @since 0.1.0
100
+ */
101
+ export declare type CODocumentType = CommonDocumentType | "RUT" | "NIT" | "CE" | "CC";
102
+ /**
103
+ * Ecuador supported document types.
104
+ *
105
+ * @typedef ECDocumentType
106
+ * @since 0.1.0
107
+ */
108
+ export declare type ECDocumentType = CommonDocumentType | "CI" | "RUC";
109
+ /**
110
+ * Paraguay supported document types.
111
+ *
112
+ * @typedef PYDocumentType
113
+ * @since 0.1.0
114
+ */
115
+ export declare type PYDocumentType = CommonDocumentType;
116
+ /**
117
+ * Perú supported document types.
118
+ *
119
+ * @typedef PEDocumentType
120
+ * @since 0.1.0
121
+ */
122
+ export declare type PEDocumentType = CommonDocumentType;
123
+ /**
124
+ * Uruguay supported document types.
125
+ *
126
+ * @typedef UYDocumentType
127
+ * @since 0.1.0
128
+ */
129
+ export declare type UYDocumentType = CommonDocumentType;
130
+ /**
131
+ * Venezuela supported document types.
132
+ *
133
+ * @typedef VEDocumentType
134
+ * @since 0.1.0
135
+ */
136
+ export declare type VEDocumentType = CommonDocumentType;
137
+ /**
138
+ * United States supported document types.
139
+ *
140
+ * @typedef USDocumentType
141
+ * @since 0.1.0
142
+ */
143
+ export declare type USDocumentType = CommonDocumentType;
@@ -1,23 +1,41 @@
1
- import { BillTotalCategory } from "./shoppingCart.types";
1
+ import { ShoppingCart } from "./shoppingCart.types";
2
2
  import { ShippingAddress } from "./shippingAddress.types";
3
3
  import { BillingData } from "./billingData.types";
4
+ import { StepCategory, StepCode } from "./fulfillment.types";
5
+ import { BaseUser } from "./user.types";
4
6
  /**
5
7
  * Representation of common properties of the order.
6
8
  *
7
9
  * @interface BaseOrder
8
- * @since 0.5.15
10
+ * @since 0.1.0
9
11
  */
10
12
  export interface BaseOrder {
11
13
  /** Order unique identifier */
12
14
  id: number;
13
- /** Order additional info */
14
- additionalInfo: any[];
15
+ /** Account unique identifier */
16
+ accountId: number;
17
+ /** Order additional info, see {@link OrderAdditionalInfo} */
18
+ additionalInfo: OrderAdditionalInfo;
19
+ /** User's order billing data' unique identifier */
20
+ billingDataByUserId: string;
15
21
  /** Order additional messages */
16
22
  additionalMessage: string | null;
17
- /** Order allocation */
18
- allocation: string;
23
+ /** Order allocation, see {@link Allocation} */
24
+ allocation: Allocation;
19
25
  /** Channel unique identifier */
20
26
  channelId: number;
27
+ /** Order channel name */
28
+ channelName: string;
29
+ /** Order comment */
30
+ comment: string;
31
+ /** Order hash */
32
+ hash: string;
33
+ /** Order issue unique identifier */
34
+ issueId: string;
35
+ /** Order pickup cook time */
36
+ pickupCooktime: string | null;
37
+ /** User's order shipping address' unique identifier */
38
+ shippingAddressByUserId: string;
21
39
  /** Order date, e.g.: `02 Aug 2021` */
22
40
  orderDate: string;
23
41
  /** Order time, e.g.: `17:00 am` */
@@ -31,97 +49,275 @@ export interface BaseOrder {
31
49
  /** Shopping cart associated with the order, see {@link OrderShoppingCart} */
32
50
  shoppingCart: OrderShoppingCart;
33
51
  /** Order step, see {@link OrderStep} */
34
- step: OrderStep;
35
- /** Step category */
36
- stepCategory: string;
37
- /** Step code */
38
- stepCode: string;
52
+ step: number;
53
+ /** Step category, see {@link StepCategory} */
54
+ stepCategory: StepCategory;
55
+ /** Step code, see {@link StepCode} */
56
+ stepCode: StepCode;
39
57
  /** Step unique identifier */
40
58
  stepId: number;
41
59
  /** Step name */
42
60
  stepName: string;
61
+ /** User unique identifier */
62
+ uid: string;
63
+ /** Order user, see {@link OrderUser} */
64
+ user: OrderUser;
43
65
  /** Order transaction unique identifier */
44
66
  transactionId: number | null;
45
67
  /** Vendor unique identifier */
46
68
  vendorId: number;
69
+ /** Vendor name */
70
+ vendorName: string;
71
+ /** Order operator information, see {@link OperatorInformation} */
72
+ createdByOperator: OperatorInformation;
47
73
  }
48
74
  /**
49
75
  * The shopping cart associated with the order.
50
76
  *
51
77
  * @interface OrderShoppingCart
52
- * @since 0.5.15
78
+ * @since 0.1.0
79
+ * @extends {{@link ShoppingCart}
53
80
  */
54
- export interface OrderShoppingCart {
55
- /** Order bill total category, see {@link BillTotalCategory} */
56
- billTotal: BillTotalCategory;
81
+ export interface OrderShoppingCart extends ShoppingCart {
82
+ /** Order shopping cart comment */
83
+ comment: string | null;
84
+ /** Order instructions */
85
+ instructions: string | null;
86
+ /** Order status unique identifier */
87
+ statusId: number;
88
+ /** Order issue unique identifier */
89
+ issueId: string | null;
90
+ /** Order invoice number */
91
+ invoiceNumber: string | null;
92
+ /** Order status name */
93
+ statusName: string;
94
+ /** Status code, see {@link StepCode} */
95
+ statusCode: StepCode;
96
+ /** Order payment status, see {@link OrderStatus} */
97
+ paymentStatus: OrderStatus;
57
98
  /**
58
99
  * An array of the order paid payment methods,
59
- * see {@link OrderPaidPaymentMethod}
100
+ * see {@link OrderPaymentMethod}
60
101
  */
61
- paidPaymentMethods: OrderPaidPaymentMethod[];
62
- /** An array of order stores, see {@link OrderStore} */
63
- stores: OrderStore[];
102
+ paidPaymentMethods: OrderPaymentMethod[] | null;
103
+ /** An array of order retries, see {@link OrderRetry} */
104
+ allRetries: OrderRetry[];
105
+ /**
106
+ * An array of the order rejected payment methods,
107
+ * see {@link OrderPaymentMethod}
108
+ */
109
+ rejectedPaymentMethods: OrderPaymentMethod[] | null;
64
110
  }
65
111
  /**
66
- * Store associated with the order.
112
+ * Order common fields.
67
113
  *
68
- * @interface OrderStore
69
- * @since 0.5.15
114
+ * @interface OrderCommonFields
115
+ * @since 0.1.0
70
116
  */
71
- export interface OrderStore {
72
- /**
73
- * An array of products associated with the order,
74
- * see {@link OrderProduct}
75
- */
76
- products: OrderProduct[];
77
- /** Store name */
78
- storeName: string;
117
+ export interface OrderCommonFields {
118
+ /** Order amount **/
119
+ amount: string;
120
+ /** Order status **/
121
+ status: string;
122
+ /** Order created date **/
123
+ created_at: string;
124
+ /** Order update date **/
125
+ updated_at: string;
79
126
  }
80
127
  /**
81
- * Product associated with the order.
128
+ * The retry of the order.
82
129
  *
83
- * @interface OrderProduct
84
- * @since 0.5.15
130
+ * @interface OrderRetry
131
+ * @since 0.1.0
132
+ * @extends {{@link Status}, {@link OrderCommonFields}
133
+ */
134
+ export interface OrderRetry extends Status, OrderCommonFields {
135
+ /** Order retry unique identifier */
136
+ id: number;
137
+ /** Order payment method id **/
138
+ payment_method_by_order_id: number;
139
+ /** Order retry reference **/
140
+ reference: string;
141
+ /** Order retry platform **/
142
+ platform: string;
143
+ /** Order retry user agent **/
144
+ user_agent: string;
145
+ /** Order retry ip address **/
146
+ ip_address: string;
147
+ /** Order retry request id **/
148
+ request_id: string;
149
+ /** Order retry process url **/
150
+ process_url: string;
151
+ /** Order payment method, see {@link PaymentMethodByOrder} **/
152
+ payment_method_by_order: PaymentMethodByOrder;
153
+ /** Order step, see {@link OrderStep} */
154
+ step: OrderStep;
155
+ }
156
+ /**
157
+ * The retry of the order.
158
+ *
159
+ * @interface PaymentMethodByOrder
160
+ * @since 0.1.0
161
+ * @extends {{@link Status}, {@link OrderCommonFields}
85
162
  */
86
- export interface OrderProduct {
87
- /** Product unique identifier */
88
- productId: number;
89
- /** Product name */
90
- productName: string;
163
+ export interface PaymentMethodByOrder extends Status, OrderCommonFields {
164
+ /** Payment method by order unique identifier **/
165
+ id: number;
166
+ /** Order unique identifier **/
167
+ order_id: number;
168
+ /** Payment method id **/
169
+ payment_method_id: number;
170
+ /** Internal revenue service payment method id **/
171
+ sri_payment_method_id: number;
172
+ /** Order payment method, see {@link OrderRetryPaymentMethod} */
173
+ order: OrderRetryPaymentMethod;
91
174
  }
92
175
  /**
93
- * Paid payment methods associated with the order.
176
+ * Order retry payment method.
94
177
  *
95
- * @interface OrderPaidPaymentMethod
96
- * @since 0.5.15
178
+ * @interface OrderRetryPaymentMethod
179
+ * @since 0.1.0
97
180
  */
98
- export interface OrderPaidPaymentMethod {
99
- /** Order paid payment methods */
100
- payment_method_name: string;
101
- /** Order last retry, see {@link OrderLastRetry} */
102
- lastRetry: OrderLastRetry;
181
+ export interface OrderRetryPaymentMethod extends Status {
182
+ /** Order retry payment method unique identifier **/
183
+ id: number;
184
+ /** User unique identifier associated with the order retry **/
185
+ uid: string;
186
+ /** Order retry billing data by user id **/
187
+ billing_data_by_user_id: string;
188
+ /** Order retry shopping cart id **/
189
+ shopping_cart_id: string;
190
+ /** Order retry latitude **/
191
+ latitude: string;
192
+ /** Order retry longitude **/
193
+ longitude: string;
194
+ /** Order payment status, {@link OrderStatus} **/
195
+ payment_status: OrderStatus;
196
+ /** Order retry step **/
197
+ step: number;
198
+ /** In soft order process */
199
+ insoft_order_process: string;
200
+ /** Order retry sent fulfillment **/
201
+ sent_fulfillment: string;
202
+ /** Order retry account id **/
203
+ account_id: number;
204
+ /** Order retry sequence value **/
205
+ seq_val: string;
206
+ /** Order retry vendor id **/
207
+ vendor_id: number;
208
+ /** Order retry channel id **/
209
+ channel_id: number;
210
+ /** Order retry created date **/
211
+ created_at: string;
212
+ /** Order retry update date **/
213
+ updated_at: string;
214
+ /** Order retry allocation, see {@link Allocation} **/
215
+ allocation: Allocation;
216
+ /** Order retry suborder, see {@link Suborder} **/
217
+ suborders: Suborder[];
103
218
  }
104
219
  /**
105
- * The last retry of the order.
220
+ * Representation of a order status.
106
221
  *
107
- * @interface OrderLastRetry
108
- * @since 0.5.15
222
+ * @interface Status
223
+ * @since 0.1.0
109
224
  */
110
- export interface OrderLastRetry {
111
- /** Order last retry step */
112
- step: OrderStep;
225
+ export interface Status {
226
+ /** Status unique identifier **/
227
+ status_id: number;
228
+ /** Status name **/
229
+ status_name: string;
230
+ /** Status code **/
231
+ status_code: string;
232
+ /** Status category **/
233
+ status_category: string;
234
+ }
235
+ /**
236
+ * Representation of a suborder object.
237
+ *
238
+ * @interface Suborder
239
+ * @since 0.1.0
240
+ * @extends {{@link Status}
241
+ */
242
+ export interface Suborder extends Status {
243
+ /** Suborder unique identifier **/
244
+ id: number;
245
+ /** Suborder store unique identifier **/
246
+ store_id: number;
247
+ /** Suborder store unique identifier **/
248
+ store_name: string;
249
+ /** Suborder order id **/
250
+ order_id: number;
251
+ /** Suborder digital command sent **/
252
+ digital_command_sent: string;
253
+ /** Suborder vendor **/
254
+ vendor: string;
255
+ /** Suborder additional information **/
256
+ additional_info: string;
257
+ /** Suborder creation date**/
258
+ created_at: string;
259
+ /** Suborder update date **/
260
+ updated_at: string;
113
261
  }
114
262
  /**
115
263
  * The step where the order is located.
116
264
  *
117
265
  * @interface OrderStep
118
- * @since 0.5.15
266
+ * @since 0.1.0
119
267
  */
120
268
  export interface OrderStep {
121
- /** Step title to use on front end */
269
+ /** Order step title to use on front end */
122
270
  title_frontend: string;
123
- /** Step description to use on front end */
271
+ /** Order step description to use on front end */
124
272
  description_frontend: string;
273
+ /** Order step unique identifier */
274
+ id: number;
275
+ /** Order step name */
276
+ name: string;
277
+ /** Order step code */
278
+ code: string;
279
+ /** Order step description */
280
+ description: string;
281
+ /** Order step category */
282
+ category: string;
283
+ /** Order step subtitle to use on front end */
284
+ subtitle_frontend: string;
285
+ /** Order step color */
286
+ color: string;
287
+ /** Order step additional information, see {@link OrderStepAdditionalInfo} */
288
+ additional_info: OrderStepAdditionalInfo;
289
+ }
290
+ /**
291
+ * Order step additional information.
292
+ *
293
+ * @interface OrderStepAdditionalInfo
294
+ * @since 0.1.0
295
+ */
296
+ export interface OrderStepAdditionalInfo {
297
+ /** Whether or not to use the client on front end */
298
+ client_frontend: boolean;
299
+ /** Whether or not to use the operators on front end */
300
+ operators_frontend: boolean;
301
+ /** Whether or not to use the client has an error on front end */
302
+ client_frontend_error: boolean;
303
+ /** Order additional information group, see {@link OrderStepAdditionalInfoGroup} */
304
+ group: OrderStepAdditionalInfoGroup;
305
+ }
306
+ /**
307
+ * Order step additional information group.
308
+ *
309
+ * @interface OrderStepAdditionalInfoGroup
310
+ * @since 0.1.0
311
+ */
312
+ export interface OrderStepAdditionalInfoGroup {
313
+ /** Order additional information group code */
314
+ code: string;
315
+ /** Order additional information group description */
316
+ description: string;
317
+ /** Order additional information group weight */
318
+ weight: string;
319
+ /** Order additional information group type */
320
+ type: string;
125
321
  }
126
322
  /**
127
323
  * The details of the order.
@@ -155,3 +351,179 @@ export interface OrderDetailShippingCost {
155
351
  * @since 0.5.15
156
352
  */
157
353
  export declare type Order = BaseOrder | OrderDetails;
354
+ /**
355
+ * Order shipping metadata base field.
356
+ *
357
+ * @interface BaseField
358
+ * @since 0.1.0
359
+ */
360
+ export interface BaseField {
361
+ /** Base field unique identifier */
362
+ id: number;
363
+ /** Base field name */
364
+ name: string;
365
+ }
366
+ /**
367
+ * Order shipping metadata zip code base field.
368
+ *
369
+ * @interface ZipCodeField
370
+ * @since 0.1.0
371
+ * @extends {{@link BaseField}
372
+ */
373
+ export interface ZipCodeField extends BaseField {
374
+ /** Base field zip code */
375
+ zipCode: string;
376
+ }
377
+ /**
378
+ * Order injection field.
379
+ *
380
+ * @interface Injection
381
+ * @since 0.1.0
382
+ * @property {InjectionDetail} [key: string] object with key as string
383
+ * and value as InjectionDetail
384
+ */
385
+ export interface Injection {
386
+ [key: string]: InjectionDetail;
387
+ }
388
+ /**
389
+ * Order injection detail field.
390
+ *
391
+ * @interface InjectionDetail
392
+ * @since 0.1.0
393
+ */
394
+ export interface InjectionDetail {
395
+ /**
396
+ * Order injection detail cause,
397
+ * property is purposefully named in spanish
398
+ */
399
+ causa: string;
400
+ /**
401
+ * Order injection detail code
402
+ * property is purposefully named in spanish
403
+ */
404
+ codigo: number;
405
+ /**
406
+ * Order injection detail message
407
+ * property is purposefully named in spanish
408
+ * */
409
+ mensaje: string;
410
+ }
411
+ /**
412
+ * Order integration message.
413
+ *
414
+ * @interface IntegrationMessage
415
+ * @since 0.1.0
416
+ */
417
+ export interface IntegrationMessage {
418
+ /** Order injection, see {@link Injection} */
419
+ kfcInjection: Injection;
420
+ }
421
+ /**
422
+ * Order shipping metadata.
423
+ *
424
+ * @interface MetadataShipping
425
+ * @since 0.1.0
426
+ */
427
+ export interface MetadataShipping {
428
+ /** Order shipping area, see {@link BaseField} */
429
+ area: BaseField;
430
+ /** Order shipping city, see {@link BaseField} */
431
+ city: BaseField;
432
+ /** Order shipping zone, see {@link ZipCodeField} */
433
+ zone: ZipCodeField;
434
+ /** Order shipping store, see {@link BaseField} */
435
+ store: BaseField;
436
+ /** Order shipping country, see {@link BaseField} */
437
+ country: BaseField;
438
+ }
439
+ /**
440
+ * Order additional info.
441
+ *
442
+ * @interface OrderAdditionalInfo
443
+ * @since 0.1.0
444
+ */
445
+ export interface OrderAdditionalInfo {
446
+ /** Order auth provider */
447
+ providerAuth: string | null;
448
+ /** Order metadata shipping, see {@link MetadataShipping} */
449
+ metadataShipping: MetadataShipping;
450
+ /** Order integration messages, see {@link IntegrationMessage} */
451
+ integrationMessages: IntegrationMessage;
452
+ /** Order parent shipping cart */
453
+ parentShoppingCart: boolean;
454
+ }
455
+ /**
456
+ * Order allocation options.
457
+ *
458
+ * @typedef Allocation
459
+ * @since 0.1.0
460
+ */
461
+ export declare type Allocation = "PICKUP_TO_GO" | "PICKUP_IN_PLACE" | "DELIVERY";
462
+ /**
463
+ * Order user.
464
+ *
465
+ * @interface OrderUser
466
+ * @since 0.1.0
467
+ * @extends {{@link BaseUser}
468
+ */
469
+ export interface OrderUser extends BaseUser {
470
+ /** Order user settings, see {@link NotificationSettings} */
471
+ settings: NotificationSettings;
472
+ }
473
+ /**
474
+ * Order user notification settings.
475
+ *
476
+ * @interface NotificationSettings
477
+ * @since 0.1.0
478
+ */
479
+ export interface NotificationSettings {
480
+ /** Whether or not the user has email notifications enabled */
481
+ emailNotifications: boolean;
482
+ /** Whether or not the user has push notifications enabled */
483
+ pushNotifications: boolean;
484
+ }
485
+ /**
486
+ * Order operator information.
487
+ *
488
+ * @interface OperatorInformation
489
+ * @since 0.1.0
490
+ */
491
+ export interface OperatorInformation {
492
+ /** Operator unique identifier */
493
+ id: string;
494
+ /** Operator name */
495
+ name: string;
496
+ /** Operator email */
497
+ email: string;
498
+ /** Operator skill */
499
+ skill: string;
500
+ /** Operator document */
501
+ document: string;
502
+ }
503
+ /**
504
+ * Order payment method.
505
+ *
506
+ * @interface OrderPaymentMethod
507
+ * @since 0.1.0
508
+ */
509
+ export interface OrderPaymentMethod {
510
+ /** Order payment method id */
511
+ payment_method_id: number;
512
+ /** Order payment method name */
513
+ payment_method_name: string;
514
+ /** Order total by payment method */
515
+ total: string;
516
+ /** Order status, see {@link OrderStatus} */
517
+ status: OrderStatus;
518
+ /** Order payment method last retry, see {@link OrderRetry} */
519
+ lastRetry: OrderRetry;
520
+ /** Order step, see {@link OrderStep} */
521
+ step: OrderStep;
522
+ }
523
+ /**
524
+ * Order status.
525
+ *
526
+ * @typedef OrderStatus
527
+ * @since 0.1.0
528
+ */
529
+ export declare type OrderStatus = "APPROVED" | "REJECTED" | "PENDING";
@@ -21,10 +21,16 @@ export interface BaseShippingAddress {
21
21
  number: string;
22
22
  /** Shipping address' secondary street */
23
23
  secondaryStreet: string;
24
- /** Shipping address' reference */
25
- addressReference: string;
26
24
  /** It contains country id and country name, see {@link CountrySummary} */
27
25
  country: CountrySummary;
26
+ /** Shipping address' update date */
27
+ updatedAt?: string;
28
+ /** Shipping address' creation date */
29
+ createdAt: string;
30
+ /** Shipping address' nickname */
31
+ nickname: string;
32
+ /** Shipping address' number contact address */
33
+ numberContactAddress: string;
28
34
  }
29
35
  /**
30
36
  * Representation of a Commerce Shipping Address.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisn's types and interfaces library",
4
- "version": "0.14.0-canary.4",
4
+ "version": "0.14.0-canary.6",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
7
7
  "files": [
@@ -42,5 +42,5 @@
42
42
  "prettier": "^2.1.2",
43
43
  "webpack-bundle-analyzer": "^3.9.0"
44
44
  },
45
- "gitHead": "f4abe618634cd11424484eaf7e0422fc97b615e8"
45
+ "gitHead": "b1b59c5298c8d01599287be797a956078821728d"
46
46
  }