@zennify/sdk-js 1.0.0-beta.28 → 1.0.0-beta.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "1.0.0-beta.28",
3
+ "version": "1.0.0-beta.29",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
package/src/errors.ts CHANGED
@@ -115,6 +115,7 @@ export interface APIErrors {
115
115
  'INVALID_STOCK_CONTENT': {};
116
116
  'INVALID_STOCK_COST': {};
117
117
  // coupon errors
118
+ 'UNKNOWN_COUPON': {},
118
119
  'INVALID_COUPON_NAME': {},
119
120
  'INVALID_COUPON_TYPE': {},
120
121
  'INVALID_COUPON_VALUE': {},
@@ -295,6 +295,10 @@
295
295
  "name": "Invalid item cost",
296
296
  "message": "It must be between R$ 0.00 and R$ 999,999.00"
297
297
  },
298
+ "UNKNOWN_COUPON": {
299
+ "name": "Unknown coupon",
300
+ "message": "Perhaps this coupon no longer exists."
301
+ },
298
302
  "INVALID_COUPON_NAME": {
299
303
  "name": "Invalid coupon name",
300
304
  "message": "Must consist only of letters and numbers"
@@ -295,7 +295,10 @@
295
295
  "name": "O custo do item é inválido",
296
296
  "message": "Deve ser entre R$ 0.00 e R$ 999.999,00"
297
297
  },
298
-
298
+ "UNKNOWN_COUPON": {
299
+ "name": "Cupom desconhecido",
300
+ "message": "Talvez esse cupom não exista mais."
301
+ },
299
302
  "INVALID_COUPON_NAME": {
300
303
  "name": "Nome do cupom inválido",
301
304
  "message": "Deve ser composto apenas de letras e números"
package/types/errors.d.ts CHANGED
@@ -99,6 +99,7 @@ export interface APIErrors {
99
99
  'UNKNOWN_STOCK': {};
100
100
  'INVALID_STOCK_CONTENT': {};
101
101
  'INVALID_STOCK_COST': {};
102
+ 'UNKNOWN_COUPON': {};
102
103
  'INVALID_COUPON_NAME': {};
103
104
  'INVALID_COUPON_TYPE': {};
104
105
  'INVALID_COUPON_VALUE': {};