@blue-repository/types 0.3.0 → 0.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/README.md +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/meta.d.ts +2 -2
- package/dist/meta.d.ts.map +1 -1
- package/dist/meta.js +1 -0
- package/dist/meta.js.map +1 -1
- package/dist/packages/common/blue-ids.d.ts +5 -0
- package/dist/packages/common/blue-ids.d.ts.map +1 -0
- package/dist/packages/common/blue-ids.js +5 -0
- package/dist/packages/common/blue-ids.js.map +1 -0
- package/dist/packages/common/contents/Timestamp.d.ts +8 -0
- package/dist/packages/common/contents/Timestamp.d.ts.map +1 -0
- package/dist/packages/common/contents/Timestamp.js +8 -0
- package/dist/packages/common/contents/Timestamp.js.map +1 -0
- package/dist/packages/common/contents/index.d.ts +11 -0
- package/dist/packages/common/contents/index.d.ts.map +1 -0
- package/dist/packages/common/contents/index.js +6 -0
- package/dist/packages/common/contents/index.js.map +1 -0
- package/dist/packages/common/contents.d.ts +3 -0
- package/dist/packages/common/contents.d.ts.map +1 -0
- package/dist/packages/common/contents.js +3 -0
- package/dist/packages/common/contents.js.map +1 -0
- package/dist/packages/common/index.d.ts +39 -0
- package/dist/packages/common/index.d.ts.map +1 -0
- package/dist/packages/common/index.js +6 -0
- package/dist/packages/common/index.js.map +1 -0
- package/dist/packages/common/meta.d.ts +19 -0
- package/dist/packages/common/meta.d.ts.map +1 -0
- package/dist/packages/common/meta.js +23 -0
- package/dist/packages/common/meta.js.map +1 -0
- package/dist/packages/common/schemas/Timestamp.d.ts +8 -0
- package/dist/packages/common/schemas/Timestamp.d.ts.map +1 -0
- package/dist/packages/common/schemas/Timestamp.js +5 -0
- package/dist/packages/common/schemas/Timestamp.js.map +1 -0
- package/dist/packages/common/schemas/index.d.ts +9 -0
- package/dist/packages/common/schemas/index.d.ts.map +1 -0
- package/dist/packages/common/schemas/index.js +6 -0
- package/dist/packages/common/schemas/index.js.map +1 -0
- package/dist/packages/common/schemas.d.ts +3 -0
- package/dist/packages/common/schemas.d.ts.map +1 -0
- package/dist/packages/common/schemas.js +3 -0
- package/dist/packages/common/schemas.js.map +1 -0
- package/dist/packages/index.d.ts +1 -0
- package/dist/packages/index.d.ts.map +1 -1
- package/dist/packages/index.js +1 -0
- package/dist/packages/index.js.map +1 -1
- package/dist/packages/paynote/blue-ids.d.ts +9 -0
- package/dist/packages/paynote/blue-ids.d.ts.map +1 -1
- package/dist/packages/paynote/blue-ids.js +9 -0
- package/dist/packages/paynote/blue-ids.js.map +1 -1
- package/dist/packages/paynote/contents/CardTransactionDetails.d.ts +29 -0
- package/dist/packages/paynote/contents/CardTransactionDetails.d.ts.map +1 -0
- package/dist/packages/paynote/contents/CardTransactionDetails.js +29 -0
- package/dist/packages/paynote/contents/CardTransactionDetails.js.map +1 -0
- package/dist/packages/paynote/contents/PayNoteAcceptedByClient.d.ts +14 -0
- package/dist/packages/paynote/contents/PayNoteAcceptedByClient.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PayNoteAcceptedByClient.js +14 -0
- package/dist/packages/paynote/contents/PayNoteAcceptedByClient.js.map +1 -0
- package/dist/packages/paynote/contents/PayNoteClientDecisionDiscarded.d.ts +26 -0
- package/dist/packages/paynote/contents/PayNoteClientDecisionDiscarded.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PayNoteClientDecisionDiscarded.js +26 -0
- package/dist/packages/paynote/contents/PayNoteClientDecisionDiscarded.js.map +1 -0
- package/dist/packages/paynote/contents/PayNoteDelivery.d.ts +636 -0
- package/dist/packages/paynote/contents/PayNoteDelivery.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PayNoteDelivery.js +672 -0
- package/dist/packages/paynote/contents/PayNoteDelivery.js.map +1 -0
- package/dist/packages/paynote/contents/PayNoteDeliveryBootstrapRequested.d.ts +14 -0
- package/dist/packages/paynote/contents/PayNoteDeliveryBootstrapRequested.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PayNoteDeliveryBootstrapRequested.js +14 -0
- package/dist/packages/paynote/contents/PayNoteDeliveryBootstrapRequested.js.map +1 -0
- package/dist/packages/paynote/contents/PayNoteDeliveryFailed.d.ts +14 -0
- package/dist/packages/paynote/contents/PayNoteDeliveryFailed.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PayNoteDeliveryFailed.js +14 -0
- package/dist/packages/paynote/contents/PayNoteDeliveryFailed.js.map +1 -0
- package/dist/packages/paynote/contents/PayNoteRejectedByClient.d.ts +20 -0
- package/dist/packages/paynote/contents/PayNoteRejectedByClient.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PayNoteRejectedByClient.js +20 -0
- package/dist/packages/paynote/contents/PayNoteRejectedByClient.js.map +1 -0
- package/dist/packages/paynote/contents/TransactionIdentificationFailed.d.ts +14 -0
- package/dist/packages/paynote/contents/TransactionIdentificationFailed.d.ts.map +1 -0
- package/dist/packages/paynote/contents/TransactionIdentificationFailed.js +14 -0
- package/dist/packages/paynote/contents/TransactionIdentificationFailed.js.map +1 -0
- package/dist/packages/paynote/contents/TransactionIdentified.d.ts +8 -0
- package/dist/packages/paynote/contents/TransactionIdentified.d.ts.map +1 -0
- package/dist/packages/paynote/contents/TransactionIdentified.js +8 -0
- package/dist/packages/paynote/contents/TransactionIdentified.js.map +1 -0
- package/dist/packages/paynote/contents/index.d.ts +775 -0
- package/dist/packages/paynote/contents/index.d.ts.map +1 -1
- package/dist/packages/paynote/contents/index.js +27 -0
- package/dist/packages/paynote/contents/index.js.map +1 -1
- package/dist/packages/paynote/index.d.ts +4176 -65
- package/dist/packages/paynote/index.d.ts.map +1 -1
- package/dist/packages/paynote/meta.d.ts +90 -0
- package/dist/packages/paynote/meta.d.ts.map +1 -1
- package/dist/packages/paynote/meta.js +99 -0
- package/dist/packages/paynote/meta.js.map +1 -1
- package/dist/packages/paynote/schemas/CardTransactionDetails.d.ts +25 -0
- package/dist/packages/paynote/schemas/CardTransactionDetails.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/CardTransactionDetails.js +12 -0
- package/dist/packages/paynote/schemas/CardTransactionDetails.js.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteAcceptedByClient.d.ts +27 -0
- package/dist/packages/paynote/schemas/PayNoteAcceptedByClient.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteAcceptedByClient.js +11 -0
- package/dist/packages/paynote/schemas/PayNoteAcceptedByClient.js.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteClientDecisionDiscarded.d.ts +33 -0
- package/dist/packages/paynote/schemas/PayNoteClientDecisionDiscarded.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteClientDecisionDiscarded.js +13 -0
- package/dist/packages/paynote/schemas/PayNoteClientDecisionDiscarded.js.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteDelivery.d.ts +1363 -0
- package/dist/packages/paynote/schemas/PayNoteDelivery.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteDelivery.js +42 -0
- package/dist/packages/paynote/schemas/PayNoteDelivery.js.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteDeliveryBootstrapRequested.d.ts +1750 -0
- package/dist/packages/paynote/schemas/PayNoteDeliveryBootstrapRequested.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteDeliveryBootstrapRequested.js +11 -0
- package/dist/packages/paynote/schemas/PayNoteDeliveryBootstrapRequested.js.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteDeliveryFailed.d.ts +19 -0
- package/dist/packages/paynote/schemas/PayNoteDeliveryFailed.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteDeliveryFailed.js +10 -0
- package/dist/packages/paynote/schemas/PayNoteDeliveryFailed.js.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteRejectedByClient.d.ts +30 -0
- package/dist/packages/paynote/schemas/PayNoteRejectedByClient.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteRejectedByClient.js +12 -0
- package/dist/packages/paynote/schemas/PayNoteRejectedByClient.js.map +1 -0
- package/dist/packages/paynote/schemas/TransactionIdentificationFailed.d.ts +19 -0
- package/dist/packages/paynote/schemas/TransactionIdentificationFailed.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/TransactionIdentificationFailed.js +10 -0
- package/dist/packages/paynote/schemas/TransactionIdentificationFailed.js.map +1 -0
- package/dist/packages/paynote/schemas/TransactionIdentified.d.ts +16 -0
- package/dist/packages/paynote/schemas/TransactionIdentified.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/TransactionIdentified.js +9 -0
- package/dist/packages/paynote/schemas/TransactionIdentified.js.map +1 -0
- package/dist/packages/paynote/schemas/index.d.ts +3441 -177
- package/dist/packages/paynote/schemas/index.d.ts.map +1 -1
- package/dist/packages/paynote/schemas/index.js +27 -0
- package/dist/packages/paynote/schemas/index.js.map +1 -1
- package/dist/repository.d.ts +4607 -463
- package/dist/repository.d.ts.map +1 -1
- package/dist/repository.js +2 -0
- package/dist/repository.js.map +1 -1
- package/dist/type-aliases.d.ts +3 -0
- package/dist/type-aliases.d.ts.map +1 -0
- package/dist/type-aliases.js +25 -0
- package/dist/type-aliases.js.map +1 -0
- package/package.json +10 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const PayNoteClientDecisionDiscarded = {
|
|
2
|
+
decision: {
|
|
3
|
+
description: 'Attempted decision (accepted or rejected).',
|
|
4
|
+
type: {
|
|
5
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
6
|
+
},
|
|
7
|
+
},
|
|
8
|
+
decisionAt: {
|
|
9
|
+
description: 'Timestamp provided with the decision, if any.',
|
|
10
|
+
type: {
|
|
11
|
+
blueId: 'GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
description: "The client's decision was discarded because it could not be applied in the current delivery state.",
|
|
15
|
+
name: 'PayNote Client Decision Discarded',
|
|
16
|
+
reason: {
|
|
17
|
+
description: 'Validation reason for discarding the decision.',
|
|
18
|
+
type: {
|
|
19
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
type: {
|
|
23
|
+
blueId: '5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=PayNoteClientDecisionDiscarded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayNoteClientDecisionDiscarded.js","sourceRoot":"","sources":["../../../../src/packages/paynote/contents/PayNoteClientDecisionDiscarded.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,QAAQ,EAAE;QACR,WAAW,EAAE,4CAA4C;QACzD,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,UAAU,EAAE;QACV,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,WAAW,EACT,oGAAoG;IACtG,IAAI,EAAE,mCAAmC;IACzC,MAAM,EAAE;QACN,WAAW,EAAE,gDAAgD;QAC7D,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,8CAA8C;KACvD;CACO,CAAC"}
|
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
export declare const PayNoteDelivery: {
|
|
2
|
+
readonly cardTransactionDetails: {
|
|
3
|
+
readonly description: "Card network identifiers used to match processor and issuer records.";
|
|
4
|
+
readonly type: {
|
|
5
|
+
readonly blueId: "GZLRe2fEsvs1v7dVcg9kEnCrWEdM3cUZYhFH4XqN5jQT";
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
readonly clientAcceptedAt: {
|
|
9
|
+
readonly description: "Timestamp when the client accepted.";
|
|
10
|
+
readonly type: {
|
|
11
|
+
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
readonly clientDecisionStatus: {
|
|
15
|
+
readonly description: "Client decision (pending, accepted, rejected).";
|
|
16
|
+
readonly type: {
|
|
17
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly clientRejectedAt: {
|
|
21
|
+
readonly description: "Timestamp when the client rejected.";
|
|
22
|
+
readonly type: {
|
|
23
|
+
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly contracts: {
|
|
27
|
+
readonly initialize: {
|
|
28
|
+
readonly channel: {
|
|
29
|
+
readonly type: {
|
|
30
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
31
|
+
};
|
|
32
|
+
readonly value: "initLifecycleChannel";
|
|
33
|
+
};
|
|
34
|
+
readonly steps: {
|
|
35
|
+
readonly items: readonly [{
|
|
36
|
+
readonly changeset: {
|
|
37
|
+
readonly items: readonly [{
|
|
38
|
+
readonly op: {
|
|
39
|
+
readonly type: {
|
|
40
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
41
|
+
};
|
|
42
|
+
readonly value: "replace";
|
|
43
|
+
};
|
|
44
|
+
readonly path: {
|
|
45
|
+
readonly type: {
|
|
46
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
47
|
+
};
|
|
48
|
+
readonly value: "/deliveryStatus";
|
|
49
|
+
};
|
|
50
|
+
readonly val: {
|
|
51
|
+
readonly type: {
|
|
52
|
+
readonly blueId: "ETAPjwZVyYEfPUWvXkCWAuybBhYUayg4hKC2V7mLXmsv";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
readonly op: {
|
|
57
|
+
readonly type: {
|
|
58
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
59
|
+
};
|
|
60
|
+
readonly value: "replace";
|
|
61
|
+
};
|
|
62
|
+
readonly path: {
|
|
63
|
+
readonly type: {
|
|
64
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
65
|
+
};
|
|
66
|
+
readonly value: "/transactionIdentificationStatus";
|
|
67
|
+
};
|
|
68
|
+
readonly val: {
|
|
69
|
+
readonly type: {
|
|
70
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
71
|
+
};
|
|
72
|
+
readonly value: "pending";
|
|
73
|
+
};
|
|
74
|
+
}, {
|
|
75
|
+
readonly op: {
|
|
76
|
+
readonly type: {
|
|
77
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
78
|
+
};
|
|
79
|
+
readonly value: "replace";
|
|
80
|
+
};
|
|
81
|
+
readonly path: {
|
|
82
|
+
readonly type: {
|
|
83
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
84
|
+
};
|
|
85
|
+
readonly value: "/clientDecisionStatus";
|
|
86
|
+
};
|
|
87
|
+
readonly val: {
|
|
88
|
+
readonly type: {
|
|
89
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
90
|
+
};
|
|
91
|
+
readonly value: "pending";
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
readonly op: {
|
|
95
|
+
readonly type: {
|
|
96
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
97
|
+
};
|
|
98
|
+
readonly value: "replace";
|
|
99
|
+
};
|
|
100
|
+
readonly path: {
|
|
101
|
+
readonly type: {
|
|
102
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
103
|
+
};
|
|
104
|
+
readonly value: "/deliveryError";
|
|
105
|
+
};
|
|
106
|
+
readonly val: {
|
|
107
|
+
readonly type: {
|
|
108
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
109
|
+
};
|
|
110
|
+
readonly value: "";
|
|
111
|
+
};
|
|
112
|
+
}];
|
|
113
|
+
};
|
|
114
|
+
readonly name: "Initialize Delivery State";
|
|
115
|
+
readonly type: {
|
|
116
|
+
readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
|
|
117
|
+
};
|
|
118
|
+
}];
|
|
119
|
+
};
|
|
120
|
+
readonly type: {
|
|
121
|
+
readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly initLifecycleChannel: {
|
|
125
|
+
readonly event: {
|
|
126
|
+
readonly type: {
|
|
127
|
+
readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
readonly type: {
|
|
131
|
+
readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly markPayNoteAcceptedByClient: {
|
|
135
|
+
readonly channel: {
|
|
136
|
+
readonly type: {
|
|
137
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
138
|
+
};
|
|
139
|
+
readonly value: "payNoteDeliverer";
|
|
140
|
+
};
|
|
141
|
+
readonly request: {
|
|
142
|
+
readonly acceptedAt: {
|
|
143
|
+
readonly description: "Timestamp when the client accepted.";
|
|
144
|
+
readonly type: {
|
|
145
|
+
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly type: {
|
|
150
|
+
readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
readonly markPayNoteAcceptedByClientImpl: {
|
|
154
|
+
readonly operation: {
|
|
155
|
+
readonly type: {
|
|
156
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
157
|
+
};
|
|
158
|
+
readonly value: "markPayNoteAcceptedByClient";
|
|
159
|
+
};
|
|
160
|
+
readonly steps: {
|
|
161
|
+
readonly items: readonly [{
|
|
162
|
+
readonly code: {
|
|
163
|
+
readonly type: {
|
|
164
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
165
|
+
};
|
|
166
|
+
readonly value: "const request =\n event && event.message ? event.message.request : null;\nconst acceptedAt =\n request && typeof request.acceptedAt === \"string\"\n ? request.acceptedAt\n : \"\";\nconst currentDecisionStatus = document('/clientDecisionStatus');\nconst alreadyAccepted = currentDecisionStatus === \"accepted\";\nconst alreadyRejected = currentDecisionStatus === \"rejected\";\nconst alreadyDecided = alreadyAccepted || alreadyRejected;\nconst transactionStatus = document('/transactionIdentificationStatus');\nconst canAccept =\n transactionStatus === \"identified\" &&\n currentDecisionStatus === \"pending\";\nconst discardReason = canAccept\n ? \"\"\n : alreadyDecided\n ? `PayNote already ${currentDecisionStatus}`\n : transactionStatus === \"failed\"\n ? \"Transaction identification failed\"\n : \"Transaction not identified\";\nconst currentAcceptedAt = document('/clientAcceptedAt');\nconst currentDeliveryStatus =\n document.canonical('/deliveryStatus') || {\n type: \"Conversation/Status Pending\"\n };\nconst currentDeliveryError = document('/deliveryError');\n\nconst nextDecisionStatus = canAccept\n ? \"accepted\"\n : typeof currentDecisionStatus === \"string\"\n ? currentDecisionStatus\n : \"pending\";\nconst nextAcceptedAt = canAccept\n ? acceptedAt\n : typeof currentAcceptedAt === \"string\"\n ? currentAcceptedAt\n : \"\";\nconst nextDeliveryStatus = canAccept\n ? { type: \"Conversation/Status Completed\" }\n : currentDeliveryStatus;\nconst nextDeliveryError = canAccept\n ? \"\"\n : typeof currentDeliveryError === \"string\"\n ? currentDeliveryError\n : \"\";\n\nreturn {\n acceptedAt,\n nextDecisionStatus,\n nextAcceptedAt,\n nextDeliveryStatus,\n nextDeliveryError,\n events: canAccept\n ? [\n {\n type: \"PayNote/PayNote Accepted By Client\",\n acceptedAt\n }\n ]\n : [\n {\n type: \"PayNote/PayNote Client Decision Discarded\",\n decision: \"accepted\",\n reason: discardReason,\n decisionAt: acceptedAt\n }\n ]\n};\n";
|
|
167
|
+
};
|
|
168
|
+
readonly name: "Capture Acceptance Timestamp";
|
|
169
|
+
readonly type: {
|
|
170
|
+
readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
|
|
171
|
+
};
|
|
172
|
+
}, {
|
|
173
|
+
readonly changeset: {
|
|
174
|
+
readonly items: readonly [{
|
|
175
|
+
readonly op: {
|
|
176
|
+
readonly type: {
|
|
177
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
178
|
+
};
|
|
179
|
+
readonly value: "replace";
|
|
180
|
+
};
|
|
181
|
+
readonly path: {
|
|
182
|
+
readonly type: {
|
|
183
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
184
|
+
};
|
|
185
|
+
readonly value: "/clientDecisionStatus";
|
|
186
|
+
};
|
|
187
|
+
readonly val: {
|
|
188
|
+
readonly type: {
|
|
189
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
190
|
+
};
|
|
191
|
+
readonly value: "${steps['Capture Acceptance Timestamp'].nextDecisionStatus}";
|
|
192
|
+
};
|
|
193
|
+
}, {
|
|
194
|
+
readonly op: {
|
|
195
|
+
readonly type: {
|
|
196
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
197
|
+
};
|
|
198
|
+
readonly value: "replace";
|
|
199
|
+
};
|
|
200
|
+
readonly path: {
|
|
201
|
+
readonly type: {
|
|
202
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
203
|
+
};
|
|
204
|
+
readonly value: "/clientAcceptedAt";
|
|
205
|
+
};
|
|
206
|
+
readonly val: {
|
|
207
|
+
readonly type: {
|
|
208
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
209
|
+
};
|
|
210
|
+
readonly value: "${steps['Capture Acceptance Timestamp'].nextAcceptedAt}";
|
|
211
|
+
};
|
|
212
|
+
}, {
|
|
213
|
+
readonly op: {
|
|
214
|
+
readonly type: {
|
|
215
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
216
|
+
};
|
|
217
|
+
readonly value: "replace";
|
|
218
|
+
};
|
|
219
|
+
readonly path: {
|
|
220
|
+
readonly type: {
|
|
221
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
222
|
+
};
|
|
223
|
+
readonly value: "/deliveryStatus";
|
|
224
|
+
};
|
|
225
|
+
readonly val: {
|
|
226
|
+
readonly type: {
|
|
227
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
228
|
+
};
|
|
229
|
+
readonly value: "${steps['Capture Acceptance Timestamp'].nextDeliveryStatus}";
|
|
230
|
+
};
|
|
231
|
+
}, {
|
|
232
|
+
readonly op: {
|
|
233
|
+
readonly type: {
|
|
234
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
235
|
+
};
|
|
236
|
+
readonly value: "replace";
|
|
237
|
+
};
|
|
238
|
+
readonly path: {
|
|
239
|
+
readonly type: {
|
|
240
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
241
|
+
};
|
|
242
|
+
readonly value: "/deliveryError";
|
|
243
|
+
};
|
|
244
|
+
readonly val: {
|
|
245
|
+
readonly type: {
|
|
246
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
247
|
+
};
|
|
248
|
+
readonly value: "${steps['Capture Acceptance Timestamp'].nextDeliveryError}";
|
|
249
|
+
};
|
|
250
|
+
}];
|
|
251
|
+
};
|
|
252
|
+
readonly name: "Apply Acceptance Update";
|
|
253
|
+
readonly type: {
|
|
254
|
+
readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
|
|
255
|
+
};
|
|
256
|
+
}];
|
|
257
|
+
};
|
|
258
|
+
readonly type: {
|
|
259
|
+
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
readonly markPayNoteRejectedByClient: {
|
|
263
|
+
readonly channel: {
|
|
264
|
+
readonly type: {
|
|
265
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
266
|
+
};
|
|
267
|
+
readonly value: "payNoteDeliverer";
|
|
268
|
+
};
|
|
269
|
+
readonly request: {
|
|
270
|
+
readonly reason: {
|
|
271
|
+
readonly description: "Optional rejection reason.";
|
|
272
|
+
readonly type: {
|
|
273
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
readonly rejectedAt: {
|
|
277
|
+
readonly description: "Timestamp when the client rejected.";
|
|
278
|
+
readonly type: {
|
|
279
|
+
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly type: {
|
|
284
|
+
readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly markPayNoteRejectedByClientImpl: {
|
|
288
|
+
readonly operation: {
|
|
289
|
+
readonly type: {
|
|
290
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
291
|
+
};
|
|
292
|
+
readonly value: "markPayNoteRejectedByClient";
|
|
293
|
+
};
|
|
294
|
+
readonly steps: {
|
|
295
|
+
readonly items: readonly [{
|
|
296
|
+
readonly code: {
|
|
297
|
+
readonly type: {
|
|
298
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
299
|
+
};
|
|
300
|
+
readonly value: "const request =\n event && event.message ? event.message.request : null;\nconst safeReason =\n typeof request === \"string\"\n ? request\n : request && typeof request.reason === \"string\"\n ? request.reason\n : \"\";\nconst rejectedAt =\n request && typeof request.rejectedAt === \"string\"\n ? request.rejectedAt\n : \"\";\nconst currentDecisionStatus = document('/clientDecisionStatus');\nconst alreadyAccepted = currentDecisionStatus === \"accepted\";\nconst alreadyRejected = currentDecisionStatus === \"rejected\";\nconst alreadyDecided = alreadyAccepted || alreadyRejected;\nconst transactionStatus = document('/transactionIdentificationStatus');\nconst canReject =\n transactionStatus === \"identified\" &&\n currentDecisionStatus === \"pending\";\nconst discardReason = canReject\n ? \"\"\n : alreadyDecided\n ? `PayNote already ${currentDecisionStatus}`\n : transactionStatus === \"failed\"\n ? \"Transaction identification failed\"\n : \"Transaction not identified\";\n\nconst currentRejectedAt = document('/clientRejectedAt');\nconst currentDeliveryStatus =\n document.canonical('/deliveryStatus') || {\n type: \"Conversation/Status Pending\"\n };\nconst currentDeliveryError = document('/deliveryError');\n\nconst nextDecisionStatus = canReject\n ? \"rejected\"\n : typeof currentDecisionStatus === \"string\"\n ? currentDecisionStatus\n : \"pending\";\nconst nextRejectedAt = canReject\n ? rejectedAt\n : typeof currentRejectedAt === \"string\"\n ? currentRejectedAt\n : \"\";\nconst nextDeliveryStatus = canReject\n ? { type: \"Conversation/Status Failed\" }\n : currentDeliveryStatus;\nconst nextDeliveryError = canReject\n ? safeReason\n : typeof currentDeliveryError === \"string\"\n ? currentDeliveryError\n : \"\";\n\nreturn {\n reason: safeReason,\n rejectedAt,\n nextDecisionStatus,\n nextRejectedAt,\n nextDeliveryStatus,\n nextDeliveryError,\n events: canReject\n ? [\n {\n type: \"PayNote/PayNote Rejected By Client\",\n reason: safeReason,\n rejectedAt\n }\n ]\n : [\n {\n type: \"PayNote/PayNote Client Decision Discarded\",\n decision: \"rejected\",\n reason: discardReason,\n decisionAt: rejectedAt\n }\n ]\n};\n";
|
|
301
|
+
};
|
|
302
|
+
readonly name: "Capture Rejection Reason";
|
|
303
|
+
readonly type: {
|
|
304
|
+
readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
|
|
305
|
+
};
|
|
306
|
+
}, {
|
|
307
|
+
readonly changeset: {
|
|
308
|
+
readonly items: readonly [{
|
|
309
|
+
readonly op: {
|
|
310
|
+
readonly type: {
|
|
311
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
312
|
+
};
|
|
313
|
+
readonly value: "replace";
|
|
314
|
+
};
|
|
315
|
+
readonly path: {
|
|
316
|
+
readonly type: {
|
|
317
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
318
|
+
};
|
|
319
|
+
readonly value: "/clientDecisionStatus";
|
|
320
|
+
};
|
|
321
|
+
readonly val: {
|
|
322
|
+
readonly type: {
|
|
323
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
324
|
+
};
|
|
325
|
+
readonly value: "${steps['Capture Rejection Reason'].nextDecisionStatus}";
|
|
326
|
+
};
|
|
327
|
+
}, {
|
|
328
|
+
readonly op: {
|
|
329
|
+
readonly type: {
|
|
330
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
331
|
+
};
|
|
332
|
+
readonly value: "replace";
|
|
333
|
+
};
|
|
334
|
+
readonly path: {
|
|
335
|
+
readonly type: {
|
|
336
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
337
|
+
};
|
|
338
|
+
readonly value: "/clientRejectedAt";
|
|
339
|
+
};
|
|
340
|
+
readonly val: {
|
|
341
|
+
readonly type: {
|
|
342
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
343
|
+
};
|
|
344
|
+
readonly value: "${steps['Capture Rejection Reason'].nextRejectedAt}";
|
|
345
|
+
};
|
|
346
|
+
}, {
|
|
347
|
+
readonly op: {
|
|
348
|
+
readonly type: {
|
|
349
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
350
|
+
};
|
|
351
|
+
readonly value: "replace";
|
|
352
|
+
};
|
|
353
|
+
readonly path: {
|
|
354
|
+
readonly type: {
|
|
355
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
356
|
+
};
|
|
357
|
+
readonly value: "/deliveryStatus";
|
|
358
|
+
};
|
|
359
|
+
readonly val: {
|
|
360
|
+
readonly type: {
|
|
361
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
362
|
+
};
|
|
363
|
+
readonly value: "${steps['Capture Rejection Reason'].nextDeliveryStatus}";
|
|
364
|
+
};
|
|
365
|
+
}, {
|
|
366
|
+
readonly op: {
|
|
367
|
+
readonly type: {
|
|
368
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
369
|
+
};
|
|
370
|
+
readonly value: "replace";
|
|
371
|
+
};
|
|
372
|
+
readonly path: {
|
|
373
|
+
readonly type: {
|
|
374
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
375
|
+
};
|
|
376
|
+
readonly value: "/deliveryError";
|
|
377
|
+
};
|
|
378
|
+
readonly val: {
|
|
379
|
+
readonly type: {
|
|
380
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
381
|
+
};
|
|
382
|
+
readonly value: "${steps['Capture Rejection Reason'].nextDeliveryError}";
|
|
383
|
+
};
|
|
384
|
+
}];
|
|
385
|
+
};
|
|
386
|
+
readonly name: "Apply Rejection Update";
|
|
387
|
+
readonly type: {
|
|
388
|
+
readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
|
|
389
|
+
};
|
|
390
|
+
}];
|
|
391
|
+
};
|
|
392
|
+
readonly type: {
|
|
393
|
+
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
readonly payNoteDeliverer: {
|
|
397
|
+
readonly description: "Participant delivering and reporting status (e.g., bank).";
|
|
398
|
+
readonly type: {
|
|
399
|
+
readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
readonly payNoteReceiver: {
|
|
403
|
+
readonly description: "Participant receiving the PayNote delivery (payer).";
|
|
404
|
+
readonly type: {
|
|
405
|
+
readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
readonly payNoteSender: {
|
|
409
|
+
readonly description: "Participant submitting the PayNote delivery (merchant or processor).";
|
|
410
|
+
readonly type: {
|
|
411
|
+
readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly reportDeliveryError: {
|
|
415
|
+
readonly channel: {
|
|
416
|
+
readonly type: {
|
|
417
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
418
|
+
};
|
|
419
|
+
readonly value: "payNoteDeliverer";
|
|
420
|
+
};
|
|
421
|
+
readonly request: {
|
|
422
|
+
readonly description: "Delivery error reason.";
|
|
423
|
+
readonly type: {
|
|
424
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
readonly type: {
|
|
428
|
+
readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
readonly reportDeliveryErrorImpl: {
|
|
432
|
+
readonly operation: {
|
|
433
|
+
readonly type: {
|
|
434
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
435
|
+
};
|
|
436
|
+
readonly value: "reportDeliveryError";
|
|
437
|
+
};
|
|
438
|
+
readonly steps: {
|
|
439
|
+
readonly items: readonly [{
|
|
440
|
+
readonly code: {
|
|
441
|
+
readonly type: {
|
|
442
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
443
|
+
};
|
|
444
|
+
readonly value: "const reason =\n event && event.message ? event.message.request : \"\";\nconst safeReason = typeof reason === \"string\" ? reason : \"\";\n\nreturn {\n reason: safeReason,\n events: [\n {\n type: \"PayNote/PayNote Delivery Failed\",\n reason: safeReason\n }\n ]\n};\n";
|
|
445
|
+
};
|
|
446
|
+
readonly name: "Capture Delivery Failure Reason";
|
|
447
|
+
readonly type: {
|
|
448
|
+
readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
|
|
449
|
+
};
|
|
450
|
+
}, {
|
|
451
|
+
readonly changeset: {
|
|
452
|
+
readonly items: readonly [{
|
|
453
|
+
readonly op: {
|
|
454
|
+
readonly type: {
|
|
455
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
456
|
+
};
|
|
457
|
+
readonly value: "replace";
|
|
458
|
+
};
|
|
459
|
+
readonly path: {
|
|
460
|
+
readonly type: {
|
|
461
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
462
|
+
};
|
|
463
|
+
readonly value: "/deliveryStatus";
|
|
464
|
+
};
|
|
465
|
+
readonly val: {
|
|
466
|
+
readonly type: {
|
|
467
|
+
readonly blueId: "Guus3kHbivXvy5G93yhiKs3Pc8sxCc4XVvSo7CqLsQEc";
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
}, {
|
|
471
|
+
readonly op: {
|
|
472
|
+
readonly type: {
|
|
473
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
474
|
+
};
|
|
475
|
+
readonly value: "replace";
|
|
476
|
+
};
|
|
477
|
+
readonly path: {
|
|
478
|
+
readonly type: {
|
|
479
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
480
|
+
};
|
|
481
|
+
readonly value: "/deliveryError";
|
|
482
|
+
};
|
|
483
|
+
readonly val: {
|
|
484
|
+
readonly type: {
|
|
485
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
486
|
+
};
|
|
487
|
+
readonly value: "${steps['Capture Delivery Failure Reason'].reason}";
|
|
488
|
+
};
|
|
489
|
+
}];
|
|
490
|
+
};
|
|
491
|
+
readonly name: "Apply Delivery Failure";
|
|
492
|
+
readonly type: {
|
|
493
|
+
readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
|
|
494
|
+
};
|
|
495
|
+
}];
|
|
496
|
+
};
|
|
497
|
+
readonly type: {
|
|
498
|
+
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
readonly updateTransactionIdentificationStatus: {
|
|
502
|
+
readonly channel: {
|
|
503
|
+
readonly type: {
|
|
504
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
505
|
+
};
|
|
506
|
+
readonly value: "payNoteDeliverer";
|
|
507
|
+
};
|
|
508
|
+
readonly request: {
|
|
509
|
+
readonly description: "True when the transaction is identified.";
|
|
510
|
+
readonly type: {
|
|
511
|
+
readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
readonly type: {
|
|
515
|
+
readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
readonly updateTransactionIdentificationStatusImpl: {
|
|
519
|
+
readonly operation: {
|
|
520
|
+
readonly type: {
|
|
521
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
522
|
+
};
|
|
523
|
+
readonly value: "updateTransactionIdentificationStatus";
|
|
524
|
+
};
|
|
525
|
+
readonly steps: {
|
|
526
|
+
readonly items: readonly [{
|
|
527
|
+
readonly code: {
|
|
528
|
+
readonly type: {
|
|
529
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
530
|
+
};
|
|
531
|
+
readonly value: "const request =\n event && event.message ? event.message.request : null;\nconst identified = request === true;\nconst currentStatus = document('/transactionIdentificationStatus');\nconst canUpdate =\n currentStatus !== \"identified\" && currentStatus !== \"failed\";\nconst identificationStatus = canUpdate\n ? identified\n ? \"identified\"\n : \"failed\"\n : currentStatus;\nconst currentDeliveryStatus =\n document.canonical('/deliveryStatus') || {\n type: \"Conversation/Status Pending\"\n };\nconst deliveryStatus = canUpdate\n ? identified\n ? { type: \"Conversation/Status In Progress\" }\n : { type: \"Conversation/Status Failed\" }\n : currentDeliveryStatus;\nconst currentDeliveryError = document('/deliveryError');\nconst deliveryError = canUpdate\n ? identified\n ? \"\"\n : \"Transaction identification failed\"\n : typeof currentDeliveryError === \"string\"\n ? currentDeliveryError\n : \"\";\nconst eventType = identified\n ? \"PayNote/Transaction Identified\"\n : \"PayNote/Transaction Identification Failed\";\n\nreturn {\n identificationStatus,\n deliveryStatus,\n deliveryError,\n events: canUpdate ? [{ type: eventType }] : []\n};\n";
|
|
532
|
+
};
|
|
533
|
+
readonly name: "Classify Identification Result";
|
|
534
|
+
readonly type: {
|
|
535
|
+
readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
|
|
536
|
+
};
|
|
537
|
+
}, {
|
|
538
|
+
readonly changeset: {
|
|
539
|
+
readonly items: readonly [{
|
|
540
|
+
readonly op: {
|
|
541
|
+
readonly type: {
|
|
542
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
543
|
+
};
|
|
544
|
+
readonly value: "replace";
|
|
545
|
+
};
|
|
546
|
+
readonly path: {
|
|
547
|
+
readonly type: {
|
|
548
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
549
|
+
};
|
|
550
|
+
readonly value: "/transactionIdentificationStatus";
|
|
551
|
+
};
|
|
552
|
+
readonly val: {
|
|
553
|
+
readonly type: {
|
|
554
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
555
|
+
};
|
|
556
|
+
readonly value: "${steps['Classify Identification Result'].identificationStatus}";
|
|
557
|
+
};
|
|
558
|
+
}, {
|
|
559
|
+
readonly op: {
|
|
560
|
+
readonly type: {
|
|
561
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
562
|
+
};
|
|
563
|
+
readonly value: "replace";
|
|
564
|
+
};
|
|
565
|
+
readonly path: {
|
|
566
|
+
readonly type: {
|
|
567
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
568
|
+
};
|
|
569
|
+
readonly value: "/deliveryStatus";
|
|
570
|
+
};
|
|
571
|
+
readonly val: {
|
|
572
|
+
readonly type: {
|
|
573
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
574
|
+
};
|
|
575
|
+
readonly value: "${steps['Classify Identification Result'].deliveryStatus}";
|
|
576
|
+
};
|
|
577
|
+
}, {
|
|
578
|
+
readonly op: {
|
|
579
|
+
readonly type: {
|
|
580
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
581
|
+
};
|
|
582
|
+
readonly value: "replace";
|
|
583
|
+
};
|
|
584
|
+
readonly path: {
|
|
585
|
+
readonly type: {
|
|
586
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
587
|
+
};
|
|
588
|
+
readonly value: "/deliveryError";
|
|
589
|
+
};
|
|
590
|
+
readonly val: {
|
|
591
|
+
readonly type: {
|
|
592
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
593
|
+
};
|
|
594
|
+
readonly value: "${steps['Classify Identification Result'].deliveryError}";
|
|
595
|
+
};
|
|
596
|
+
}];
|
|
597
|
+
};
|
|
598
|
+
readonly name: "Apply Identification Update";
|
|
599
|
+
readonly type: {
|
|
600
|
+
readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
|
|
601
|
+
};
|
|
602
|
+
}];
|
|
603
|
+
};
|
|
604
|
+
readonly type: {
|
|
605
|
+
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
readonly deliveryError: {
|
|
610
|
+
readonly description: "Error message when delivery fails.";
|
|
611
|
+
readonly type: {
|
|
612
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
readonly deliveryStatus: {
|
|
616
|
+
readonly description: "High-level delivery status.";
|
|
617
|
+
readonly type: {
|
|
618
|
+
readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
readonly description: "Tracks delivery of a PayNote through a deliverer (e.g., bank) to a receiver (payer).";
|
|
622
|
+
readonly name: "PayNote Delivery";
|
|
623
|
+
readonly payNote: {
|
|
624
|
+
readonly description: "PayNote being delivered.";
|
|
625
|
+
readonly type: {
|
|
626
|
+
readonly blueId: "CDMVLRyodD2WhScu2PPRgGquEArMNGXxvZCYiJXg2YjT";
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
readonly transactionIdentificationStatus: {
|
|
630
|
+
readonly description: "Identification state (pending, identified, failed).";
|
|
631
|
+
readonly type: {
|
|
632
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
//# sourceMappingURL=PayNoteDelivery.d.ts.map
|