@zennify/sdk-js 1.5.0 → 1.6.0
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 +9 -4
- package/translations/en_US.json +16 -0
- package/translations/pt_BR.json +16 -0
- package/types/errors.d.ts +4 -0
package/package.json
CHANGED
package/src/errors.ts
CHANGED
|
@@ -76,12 +76,17 @@ export interface APIErrors {
|
|
|
76
76
|
addon: string
|
|
77
77
|
};
|
|
78
78
|
'UNKNOWN_ORDER': {}
|
|
79
|
-
|
|
80
|
-
'
|
|
79
|
+
/// for update
|
|
80
|
+
'INVALID_OPERATION_FOR_CURRENT_TRANSACTION_STATUS': {};
|
|
81
|
+
'INVALID_OPERATION_FOR_PAYMENT_ENTITY': {};
|
|
82
|
+
'INVALID_STATUS_FOR_ORDER_UPDATE': {};
|
|
83
|
+
'INVALID_REFUND_VALUE_EXCEEDS_ORDER_VALUE': {};
|
|
84
|
+
'ORDER_TRANSACTION_ALREADY_REFUNDED': {};
|
|
85
|
+
'FAILED_REFUND': {};
|
|
81
86
|
// MP errors
|
|
82
87
|
'MP_ACCOUNT_OFFLINE': {};
|
|
83
|
-
'MP_PIX_KEY_NOT_CONFIGURED': {}
|
|
84
|
-
'MP_NOT_ALLOWED_TO_SELL': {}
|
|
88
|
+
'MP_PIX_KEY_NOT_CONFIGURED': {};
|
|
89
|
+
'MP_NOT_ALLOWED_TO_SELL': {};
|
|
85
90
|
/// bad preference configuration
|
|
86
91
|
'THIS_SELLER_HAS_NOT_YET_CONFIGURED_RECEIPT_VIA_PIX': {};
|
|
87
92
|
'THIS_SELLER_HAS_NOT_YET_CONFIGURED_RECEIPT_VIA_BOLETO': {};
|
package/translations/en_US.json
CHANGED
|
@@ -215,6 +215,22 @@
|
|
|
215
215
|
"name": "This payment entity doesn't support this operation",
|
|
216
216
|
"message": "Try using another payment entity or check the request"
|
|
217
217
|
},
|
|
218
|
+
"INVALID_STATUS_FOR_ORDER_UPDATE": {
|
|
219
|
+
"name": "Invalid status provided",
|
|
220
|
+
"message": "Check the documentation."
|
|
221
|
+
},
|
|
222
|
+
"INVALID_REFUND_VALUE_EXCEEDS_ORDER_VALUE": {
|
|
223
|
+
"name": "The refund amount exceeded the maximum value",
|
|
224
|
+
"message": "The maximum amount is ${max}"
|
|
225
|
+
},
|
|
226
|
+
"ORDER_TRANSACTION_ALREADY_REFUNDED": {
|
|
227
|
+
"name": "This order has already been refunded",
|
|
228
|
+
"message": "The order has already been refunded"
|
|
229
|
+
},
|
|
230
|
+
"FAILED_REFUND": {
|
|
231
|
+
"name": "Failed to refund this order",
|
|
232
|
+
"message": "Please contact support."
|
|
233
|
+
},
|
|
218
234
|
"THIS_SELLER_HAS_NOT_YET_CONFIGURED_RECEIPT_VIA_PIX": {
|
|
219
235
|
"name": "This seller has not yet configured receipt via PIX",
|
|
220
236
|
"message": "Choose another method or wait for seller configuration."
|
package/translations/pt_BR.json
CHANGED
|
@@ -211,6 +211,22 @@
|
|
|
211
211
|
"name": "Essa entidade de pagamento não suporta essa operação",
|
|
212
212
|
"message": "Tente usando uma outra entidade de pagamento"
|
|
213
213
|
},
|
|
214
|
+
"INVALID_STATUS_FOR_ORDER_UPDATE": {
|
|
215
|
+
"name": "Estado inválido fornecido",
|
|
216
|
+
"message": "Verifique a documentação."
|
|
217
|
+
},
|
|
218
|
+
"INVALID_REFUND_VALUE_EXCEEDS_ORDER_VALUE": {
|
|
219
|
+
"name": "O valor do reembolso excedeu o valor máximo",
|
|
220
|
+
"message": "O valor máximo é de R$ {max}"
|
|
221
|
+
},
|
|
222
|
+
"ORDER_TRANSACTION_ALREADY_REFUNDED": {
|
|
223
|
+
"name": "Esse pedido já foi reembolsado",
|
|
224
|
+
"message": "O pedido já foi reembolsado"
|
|
225
|
+
},
|
|
226
|
+
"FAILED_REFUND": {
|
|
227
|
+
"name": "Ocorreu uma falha ao reembolsar este pedido",
|
|
228
|
+
"message": "Entre em contato com o suporte."
|
|
229
|
+
},
|
|
214
230
|
"THIS_SELLER_HAS_NOT_YET_CONFIGURED_RECEIPT_VIA_PIX": {
|
|
215
231
|
"name": "O vendedor não configurou o recebimento via Pix",
|
|
216
232
|
"message": "Escolha outro método ou aguarde a configuração do vendedor."
|
package/types/errors.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ export interface APIErrors {
|
|
|
72
72
|
'UNKNOWN_ORDER': {};
|
|
73
73
|
'INVALID_OPERATION_FOR_CURRENT_TRANSACTION_STATUS': {};
|
|
74
74
|
'INVALID_OPERATION_FOR_PAYMENT_ENTITY': {};
|
|
75
|
+
'INVALID_STATUS_FOR_ORDER_UPDATE': {};
|
|
76
|
+
'INVALID_REFUND_VALUE_EXCEEDS_ORDER_VALUE': {};
|
|
77
|
+
'ORDER_TRANSACTION_ALREADY_REFUNDED': {};
|
|
78
|
+
'FAILED_REFUND': {};
|
|
75
79
|
'MP_ACCOUNT_OFFLINE': {};
|
|
76
80
|
'MP_PIX_KEY_NOT_CONFIGURED': {};
|
|
77
81
|
'MP_NOT_ALLOWED_TO_SELL': {};
|