@kiriminaja/types 0.1.22 → 0.1.24

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.
Files changed (2) hide show
  1. package/dist/oms.d.ts +17 -1
  2. package/package.json +1 -1
package/dist/oms.d.ts CHANGED
@@ -264,7 +264,7 @@ export type OmsBuilderTemplateSuccessConfigurationT = {
264
264
  };
265
265
  };
266
266
  redirect_web?: {
267
- url?: string | null;
267
+ url?: string;
268
268
  };
269
269
  redirect_whatsapp?: {
270
270
  phone?: string;
@@ -272,6 +272,21 @@ export type OmsBuilderTemplateSuccessConfigurationT = {
272
272
  content_non_cod?: string;
273
273
  };
274
274
  };
275
+ export type OmsCouponT = {
276
+ id?: number;
277
+ name?: string;
278
+ code?: string;
279
+ status?: 'active' | 'inactive';
280
+ quota?: number;
281
+ type?: 'flat' | 'percentage';
282
+ value?: number;
283
+ min_price?: number;
284
+ used_count?: number;
285
+ products?: OmsProductCatalogDetailT[];
286
+ start_at?: string;
287
+ end_at?: string;
288
+ created_at?: string;
289
+ };
275
290
  export type OmsBuilderTemplateT = {
276
291
  id?: number;
277
292
  name?: string;
@@ -291,4 +306,5 @@ export type OmsBuilderTemplateT = {
291
306
  export type OmsDataT = {
292
307
  product?: OmsProductCatalogDetailT;
293
308
  configuration?: OmsBuilderTemplateT;
309
+ coupons?: OmsCouponT[];
294
310
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiriminaja/types",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"