@zennify/sdk-js 1.3.1 → 1.5.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
CHANGED
package/src/errors.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface APIErrors {
|
|
|
47
47
|
'THE_URL_IS_INACCESSIBLE_BY_THE_WEBHOOK_SERVER': {};
|
|
48
48
|
'THE_URL_WOULD_NOT_HAVE_REDIRECTS': {};
|
|
49
49
|
'THE_URL_HAS_TIMEOUT_5S': {};
|
|
50
|
+
'WEBHOOK_RECEIVED_INVALID_DATA': { status: number };
|
|
50
51
|
/// payment errors
|
|
51
52
|
'INVALID_PAYMENT_METHOD': {};
|
|
52
53
|
// Order Errors
|
package/src/interfaces/Stores.ts
CHANGED
package/translations/en_US.json
CHANGED
|
@@ -151,6 +151,10 @@
|
|
|
151
151
|
"name": "The URL exceeded the timeout (5s)",
|
|
152
152
|
"message": "It's essential that the server responds in less than 5 seconds"
|
|
153
153
|
},
|
|
154
|
+
"WEBHOOK_RECEIVED_INVALID_DATA": {
|
|
155
|
+
"name": "The Webhook received invalid data (HTTP {status})",
|
|
156
|
+
"message": "Must send 200 OK {\"source\":\"zennify\"}"
|
|
157
|
+
},
|
|
154
158
|
"INVALID_PAYMENT_METHOD": {
|
|
155
159
|
"name": "Invalid payment method",
|
|
156
160
|
"message": "Try again with another method."
|
package/translations/pt_BR.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"UNKNOWN_ERROR": {
|
|
3
|
-
"name": "Um erro
|
|
3
|
+
"name": "Um erro desconhecido ocorreu.",
|
|
4
4
|
"message": "Contate o suporte com o ID {id}"
|
|
5
5
|
},
|
|
6
6
|
"MISSING_PERMISSIONS": {
|
|
@@ -147,6 +147,10 @@
|
|
|
147
147
|
"name": "A URL excedeu o timeout (5s)",
|
|
148
148
|
"message": "É essencial que o servidor responda em menos de 5 segundps"
|
|
149
149
|
},
|
|
150
|
+
"WEBHOOK_RECEIVED_INVALID_DATA": {
|
|
151
|
+
"name": "O Webhook recebeu dados inválidos (HTTP {status})",
|
|
152
|
+
"message": "Deve ser enviado 200 OK {\"source\":\"zennify\"}"
|
|
153
|
+
},
|
|
150
154
|
"INVALID_PAYMENT_METHOD": {
|
|
151
155
|
"name": "Método de pagamento inválido",
|
|
152
156
|
"message": "Tente novamente com outro método."
|
package/types/errors.d.ts
CHANGED
|
@@ -41,6 +41,9 @@ export interface APIErrors {
|
|
|
41
41
|
'THE_URL_IS_INACCESSIBLE_BY_THE_WEBHOOK_SERVER': {};
|
|
42
42
|
'THE_URL_WOULD_NOT_HAVE_REDIRECTS': {};
|
|
43
43
|
'THE_URL_HAS_TIMEOUT_5S': {};
|
|
44
|
+
'WEBHOOK_RECEIVED_INVALID_DATA': {
|
|
45
|
+
status: number;
|
|
46
|
+
};
|
|
44
47
|
'INVALID_PAYMENT_METHOD': {};
|
|
45
48
|
'YOU_NEED_TO_INSERT_AT_LEAST_1_ITEM': {};
|
|
46
49
|
'ONE_PROVIDED_PRODUCT_IS_OUT_OF_STOCK': {
|