platform-types 1.10.757 → 1.10.759
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.
|
@@ -45,6 +45,8 @@ exports.PAYMENT_ATTEMPT_STATES = [
|
|
|
45
45
|
* - `PAYMENT_ATTEMPT_EXPIRED` · 410 — the attempt's `expiresAt` passed.
|
|
46
46
|
* - `PAYMENT_METHOD_UNAVAILABLE` · 409 — the checkout chose an online payment
|
|
47
47
|
* method the store cannot take right now (its provider is not connected).
|
|
48
|
+
* - `MP_PREFERENCE_CREATE_FAILED` · 502 — Mercado Pago refused the checkout or
|
|
49
|
+
* did not answer in time. No attempt was written, so starting again is safe.
|
|
48
50
|
*/
|
|
49
51
|
exports.PAYMENT_ATTEMPT_ERROR_CODES = [
|
|
50
52
|
'PAYMENT_PROVIDER_NOT_CONNECTED',
|
|
@@ -52,6 +54,7 @@ exports.PAYMENT_ATTEMPT_ERROR_CODES = [
|
|
|
52
54
|
'ORDER_NOT_PAYABLE',
|
|
53
55
|
'PAYMENT_ATTEMPT_EXPIRED',
|
|
54
56
|
'PAYMENT_METHOD_UNAVAILABLE',
|
|
57
|
+
'MP_PREFERENCE_CREATE_FAILED',
|
|
55
58
|
];
|
|
56
59
|
/**
|
|
57
60
|
* Every `data.reason` of `409 ORDER_NOT_PAYABLE`:
|
package/dist/paymentAttempt.d.ts
CHANGED
|
@@ -106,8 +106,10 @@ export declare const PAYMENT_ATTEMPT_STATES: readonly ["created", "pending", "ap
|
|
|
106
106
|
* - `PAYMENT_ATTEMPT_EXPIRED` · 410 — the attempt's `expiresAt` passed.
|
|
107
107
|
* - `PAYMENT_METHOD_UNAVAILABLE` · 409 — the checkout chose an online payment
|
|
108
108
|
* method the store cannot take right now (its provider is not connected).
|
|
109
|
+
* - `MP_PREFERENCE_CREATE_FAILED` · 502 — Mercado Pago refused the checkout or
|
|
110
|
+
* did not answer in time. No attempt was written, so starting again is safe.
|
|
109
111
|
*/
|
|
110
|
-
export declare const PAYMENT_ATTEMPT_ERROR_CODES: readonly ["PAYMENT_PROVIDER_NOT_CONNECTED", "PAYMENT_PROVIDER_TOKEN_EXPIRED", "ORDER_NOT_PAYABLE", "PAYMENT_ATTEMPT_EXPIRED", "PAYMENT_METHOD_UNAVAILABLE"];
|
|
112
|
+
export declare const PAYMENT_ATTEMPT_ERROR_CODES: readonly ["PAYMENT_PROVIDER_NOT_CONNECTED", "PAYMENT_PROVIDER_TOKEN_EXPIRED", "ORDER_NOT_PAYABLE", "PAYMENT_ATTEMPT_EXPIRED", "PAYMENT_METHOD_UNAVAILABLE", "MP_PREFERENCE_CREATE_FAILED"];
|
|
111
113
|
/**
|
|
112
114
|
* Every `data.reason` of `409 ORDER_NOT_PAYABLE`:
|
|
113
115
|
*
|
package/dist/paymentAttempt.js
CHANGED
|
@@ -42,6 +42,8 @@ export const PAYMENT_ATTEMPT_STATES = [
|
|
|
42
42
|
* - `PAYMENT_ATTEMPT_EXPIRED` · 410 — the attempt's `expiresAt` passed.
|
|
43
43
|
* - `PAYMENT_METHOD_UNAVAILABLE` · 409 — the checkout chose an online payment
|
|
44
44
|
* method the store cannot take right now (its provider is not connected).
|
|
45
|
+
* - `MP_PREFERENCE_CREATE_FAILED` · 502 — Mercado Pago refused the checkout or
|
|
46
|
+
* did not answer in time. No attempt was written, so starting again is safe.
|
|
45
47
|
*/
|
|
46
48
|
export const PAYMENT_ATTEMPT_ERROR_CODES = [
|
|
47
49
|
'PAYMENT_PROVIDER_NOT_CONNECTED',
|
|
@@ -49,6 +51,7 @@ export const PAYMENT_ATTEMPT_ERROR_CODES = [
|
|
|
49
51
|
'ORDER_NOT_PAYABLE',
|
|
50
52
|
'PAYMENT_ATTEMPT_EXPIRED',
|
|
51
53
|
'PAYMENT_METHOD_UNAVAILABLE',
|
|
54
|
+
'MP_PREFERENCE_CREATE_FAILED',
|
|
52
55
|
];
|
|
53
56
|
/**
|
|
54
57
|
* Every `data.reason` of `409 ORDER_NOT_PAYABLE`:
|
package/dist/store.d.ts
CHANGED
|
@@ -910,7 +910,8 @@ declare global {
|
|
|
910
910
|
* Write rule, unlike `reviewed`: when SENT in a `config.onboarding`
|
|
911
911
|
* block it REPLACES the stored list as one member (so `[]` clears it and
|
|
912
912
|
* an item can be un-dismissed); when OMITTED from the block the stored
|
|
913
|
-
* list is kept, as `reviewed` is.
|
|
913
|
+
* list is kept, as `reviewed` is. ADMIN-tier, unlike the rest of the
|
|
914
|
+
* block: a USER sending it is refused `403 STORE_CONFIG_FORBIDDEN`.
|
|
914
915
|
*/
|
|
915
916
|
dismissedItems?: string[];
|
|
916
917
|
};
|