@uappi/public-sdk 1.8.0 → 1.9.1

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.
@@ -361,7 +361,7 @@ export interface CustomerOrderPayment {
361
361
  customerCardId: null;
362
362
  paymentType: Exclude<PaymentCode, 'multiple-payment'>;
363
363
  paymentProof: string;
364
- paymentExpirationDate: string;
364
+ paymentExpirationDate: string | null;
365
365
  paymentOptionId: number;
366
366
  parentPaymentOptionId: null;
367
367
  paymentOptionLabel: string;
@@ -20,7 +20,8 @@ export type ProductFields =
20
20
  | 'price'
21
21
  | 'bannerGroups'
22
22
  | 'review'
23
- | 'status';
23
+ | 'status'
24
+ | 'availableCoupons';
24
25
 
25
26
  export type ProductConditionFields =
26
27
  | 'id'
@@ -57,6 +57,8 @@ export interface Product {
57
57
 
58
58
 
59
59
  restriction: ProductRestriction;
60
+
61
+ availableCoupons: null | ProductAvailableCoupon;
60
62
  }
61
63
 
62
64
 
@@ -117,3 +119,19 @@ export interface Stock {
117
119
  reservedStock: number;
118
120
  updatedAt?: string;
119
121
  }
122
+
123
+
124
+ export interface ProductAvailableCoupon {
125
+ id: number,
126
+ hash: string,
127
+ discounts: [
128
+ {
129
+ entityId: number,
130
+ entity: 'coupon',
131
+ itemAmount: number,
132
+ value: number
133
+ }
134
+ ],
135
+ createdAt: string,
136
+ updatedAt: string
137
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uappi/public-sdk",
3
- "version": "1.8.0",
3
+ "version": "1.9.1",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {