@moonpay/platform-protocol 1.3.0 → 1.4.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/models/transaction.ts"],"sourcesContent":["/**\n * Transaction shape as sent within frame postMessage payloads.\n * Two variants: happy path (`{ id, status }`) and explicit failed path with\n * `failureReason` for partner-facing diagnostics.\n */\nexport type FrameTransaction =\n | { id: string; status:
|
|
1
|
+
{"version":3,"sources":["../../src/models/transaction.ts"],"sourcesContent":["export type FrameTransactionStatus = 'pending' | 'completed' | 'failed';\n\nexport type FrameTransactionFailureCode =\n | 'applePayMerchantUnavailable'\n | 'authorizationDeclined'\n | 'serviceUnavailable'\n | 'transactionDeclined'\n | 'transactionNotAllowed'\n | 'unknown'\n | 'validationError';\n\n/**\n * Transaction shape as sent within frame postMessage payloads.\n * Two variants: happy path (`{ id, status }`) and explicit failed path with\n * `failureReason` for partner-facing diagnostics.\n */\nexport type FrameTransaction =\n | { id: string; status: FrameTransactionStatus }\n | {\n id?: string;\n status: 'failed';\n failureReason: string;\n failureCode: FrameTransactionFailureCode;\n };\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
type FrameTransactionStatus = 'pending' | 'completed' | 'failed';
|
|
2
|
+
type FrameTransactionFailureCode = 'applePayMerchantUnavailable' | 'authorizationDeclined' | 'serviceUnavailable' | 'transactionDeclined' | 'transactionNotAllowed' | 'unknown' | 'validationError';
|
|
1
3
|
/**
|
|
2
4
|
* Transaction shape as sent within frame postMessage payloads.
|
|
3
5
|
* Two variants: happy path (`{ id, status }`) and explicit failed path with
|
|
@@ -5,11 +7,12 @@
|
|
|
5
7
|
*/
|
|
6
8
|
type FrameTransaction = {
|
|
7
9
|
id: string;
|
|
8
|
-
status:
|
|
10
|
+
status: FrameTransactionStatus;
|
|
9
11
|
} | {
|
|
10
12
|
id?: string;
|
|
11
13
|
status: 'failed';
|
|
12
14
|
failureReason: string;
|
|
15
|
+
failureCode: FrameTransactionFailureCode;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
|
-
export type { FrameTransaction };
|
|
18
|
+
export type { FrameTransaction, FrameTransactionFailureCode, FrameTransactionStatus };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
type FrameTransactionStatus = 'pending' | 'completed' | 'failed';
|
|
2
|
+
type FrameTransactionFailureCode = 'applePayMerchantUnavailable' | 'authorizationDeclined' | 'serviceUnavailable' | 'transactionDeclined' | 'transactionNotAllowed' | 'unknown' | 'validationError';
|
|
1
3
|
/**
|
|
2
4
|
* Transaction shape as sent within frame postMessage payloads.
|
|
3
5
|
* Two variants: happy path (`{ id, status }`) and explicit failed path with
|
|
@@ -5,11 +7,12 @@
|
|
|
5
7
|
*/
|
|
6
8
|
type FrameTransaction = {
|
|
7
9
|
id: string;
|
|
8
|
-
status:
|
|
10
|
+
status: FrameTransactionStatus;
|
|
9
11
|
} | {
|
|
10
12
|
id?: string;
|
|
11
13
|
status: 'failed';
|
|
12
14
|
failureReason: string;
|
|
15
|
+
failureCode: FrameTransactionFailureCode;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
|
-
export type { FrameTransaction };
|
|
18
|
+
export type { FrameTransaction, FrameTransactionFailureCode, FrameTransactionStatus };
|