@zennify/sdk-js 1.0.0-beta.34 → 1.0.0-beta.35

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.34",
3
+ "version": "1.0.0-beta.35",
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
@@ -149,6 +149,8 @@ export interface APIErrors {
149
149
  'PANEL_NAME_ALREADY_EXIST': {};
150
150
  'YOU_REACHED_THE_PRODUCT_LIMIT_ON_PANEL': {};
151
151
  'STORE_ALREADY_CONFIGURED': {};
152
+ 'MP_ACCOUNT_OFFLINE': {};
153
+ 'MP_PIX_KEY_NOT_CONFIGURED': {}
152
154
  }
153
155
 
154
156
  type ExpectedAdditionalData = {
@@ -187,6 +187,14 @@
187
187
  "name": "Order not found.",
188
188
  "message": "Check if the ID is correct."
189
189
  },
190
+ "MP_ACCOUNT_OFFLINE": {
191
+ "name": "Unable to generate an order",
192
+ "message": "It appears that this Mercado Pago account is offline."
193
+ },
194
+ "MP_PIX_KEY_NOT_CONFIGURED": {
195
+ "name": "PIX key not configured",
196
+ "message": "The seller must configure a PIX key in Mercado Pago."
197
+ },
190
198
  "INVALID_OPERATION_FOR_CURRENT_TRANSACTION_STATUS": {
191
199
  "name": "Invalid operation for this transaction.",
192
200
  "message": "The current status doesn't allow this operation."
@@ -183,6 +183,14 @@
183
183
  "name": "Pedido não encontrado.",
184
184
  "message": "Verifique o ID enviado."
185
185
  },
186
+ "MP_ACCOUNT_OFFLINE": {
187
+ "name": "Não foi possível gerar um pedido",
188
+ "message": "Aparentemente essa conta do Mercado Pago está inoperante."
189
+ },
190
+ "MP_PIX_KEY_NOT_CONFIGURED": {
191
+ "name": "Chave PIX não configurada",
192
+ "message": "O vendedor deve configurar uma chave pix no Mercado Pago."
193
+ },
186
194
  "INVALID_OPERATION_FOR_CURRENT_TRANSACTION_STATUS": {
187
195
  "name": "Operação inválida para essa transação.",
188
196
  "message": "O estado atual não permite que a operação seja realizada."
package/types/errors.d.ts CHANGED
@@ -130,6 +130,8 @@ export interface APIErrors {
130
130
  'PANEL_NAME_ALREADY_EXIST': {};
131
131
  'YOU_REACHED_THE_PRODUCT_LIMIT_ON_PANEL': {};
132
132
  'STORE_ALREADY_CONFIGURED': {};
133
+ 'MP_ACCOUNT_OFFLINE': {};
134
+ 'MP_PIX_KEY_NOT_CONFIGURED': {};
133
135
  }
134
136
  type ExpectedAdditionalData = {
135
137
  field: string;