platform-types 1.10.757 → 1.10.758

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`:
@@ -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
  *
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.757",
3
+ "version": "1.10.758",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",