@zennify/sdk-js 1.0.0-beta.33 → 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 +1 -1
- package/src/errors.ts +3 -0
- package/translations/en_US.json +12 -0
- package/translations/pt_BR.json +12 -0
- package/types/errors.d.ts +3 -0
package/package.json
CHANGED
package/src/errors.ts
CHANGED
|
@@ -148,6 +148,9 @@ export interface APIErrors {
|
|
|
148
148
|
'YOU_REACHED_PANEL_LIMIT': {};
|
|
149
149
|
'PANEL_NAME_ALREADY_EXIST': {};
|
|
150
150
|
'YOU_REACHED_THE_PRODUCT_LIMIT_ON_PANEL': {};
|
|
151
|
+
'STORE_ALREADY_CONFIGURED': {};
|
|
152
|
+
'MP_ACCOUNT_OFFLINE': {};
|
|
153
|
+
'MP_PIX_KEY_NOT_CONFIGURED': {}
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
type ExpectedAdditionalData = {
|
package/translations/en_US.json
CHANGED
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"name": "Expected a valid ID",
|
|
48
48
|
"message": "IDs must be integers between 0 and 2.147.483.647"
|
|
49
49
|
},
|
|
50
|
+
"STORE_ALREADY_CONFIGURED": {
|
|
51
|
+
"name": "This store is already configured",
|
|
52
|
+
"message": "Go back to dashboard and access the store again"
|
|
53
|
+
},
|
|
50
54
|
"DUPLICATED_VALUES_ISNT_ALLOWED": {
|
|
51
55
|
"name": "Duplicated values aren't allowed",
|
|
52
56
|
"message": "Received \"{received}\", Check \"{field}\" field"
|
|
@@ -183,6 +187,14 @@
|
|
|
183
187
|
"name": "Order not found.",
|
|
184
188
|
"message": "Check if the ID is correct."
|
|
185
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
|
+
},
|
|
186
198
|
"INVALID_OPERATION_FOR_CURRENT_TRANSACTION_STATUS": {
|
|
187
199
|
"name": "Invalid operation for this transaction.",
|
|
188
200
|
"message": "The current status doesn't allow this operation."
|
package/translations/pt_BR.json
CHANGED
|
@@ -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."
|
|
@@ -215,6 +223,10 @@
|
|
|
215
223
|
"name": "O cupom inserido está expirado",
|
|
216
224
|
"message": "Tente usar outro cupom."
|
|
217
225
|
},
|
|
226
|
+
"STORE_ALREADY_CONFIGURED": {
|
|
227
|
+
"name": "Essa loja já foi configurada",
|
|
228
|
+
"message": "Volte para a dashboard e acesse a loja normalmente"
|
|
229
|
+
},
|
|
218
230
|
"THIS_COUPON_REACHED_THE_USE_LIMIT": {
|
|
219
231
|
"name": "O cupom atingiu o limite de usos",
|
|
220
232
|
"message": "Tente usar um cupom diferente."
|
package/types/errors.d.ts
CHANGED
|
@@ -129,6 +129,9 @@ export interface APIErrors {
|
|
|
129
129
|
'YOU_REACHED_PANEL_LIMIT': {};
|
|
130
130
|
'PANEL_NAME_ALREADY_EXIST': {};
|
|
131
131
|
'YOU_REACHED_THE_PRODUCT_LIMIT_ON_PANEL': {};
|
|
132
|
+
'STORE_ALREADY_CONFIGURED': {};
|
|
133
|
+
'MP_ACCOUNT_OFFLINE': {};
|
|
134
|
+
'MP_PIX_KEY_NOT_CONFIGURED': {};
|
|
132
135
|
}
|
|
133
136
|
type ExpectedAdditionalData = {
|
|
134
137
|
field: string;
|