@blue-repository/types 0.18.0 → 0.19.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.
Files changed (72) hide show
  1. package/README.md +1 -1
  2. package/dist/meta.d.ts +2 -2
  3. package/dist/meta.d.ts.map +1 -1
  4. package/dist/meta.js +1 -0
  5. package/dist/meta.js.map +1 -1
  6. package/dist/packages/paynote/blue-ids.d.ts +6 -7
  7. package/dist/packages/paynote/blue-ids.d.ts.map +1 -1
  8. package/dist/packages/paynote/blue-ids.js +6 -7
  9. package/dist/packages/paynote/blue-ids.js.map +1 -1
  10. package/dist/packages/paynote/contents/PayNoteDelivery.d.ts +1 -1
  11. package/dist/packages/paynote/contents/PayNoteDelivery.js +1 -1
  12. package/dist/packages/paynote/contents/PaymentMandate.d.ts +119 -6
  13. package/dist/packages/paynote/contents/PaymentMandate.d.ts.map +1 -1
  14. package/dist/packages/paynote/contents/PaymentMandate.js +119 -6
  15. package/dist/packages/paynote/contents/PaymentMandate.js.map +1 -1
  16. package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationRequested.d.ts +3 -9
  17. package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationRequested.d.ts.map +1 -1
  18. package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationRequested.js +3 -9
  19. package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationRequested.js.map +1 -1
  20. package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationResponded.d.ts +1 -1
  21. package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationResponded.js +1 -1
  22. package/dist/packages/paynote/contents/PaymentMandateSpendSettled.d.ts +12 -6
  23. package/dist/packages/paynote/contents/PaymentMandateSpendSettled.d.ts.map +1 -1
  24. package/dist/packages/paynote/contents/PaymentMandateSpendSettled.js +12 -6
  25. package/dist/packages/paynote/contents/PaymentMandateSpendSettled.js.map +1 -1
  26. package/dist/packages/paynote/contents/PaymentMandateSpendSettlementResponded.d.ts +7 -1
  27. package/dist/packages/paynote/contents/PaymentMandateSpendSettlementResponded.d.ts.map +1 -1
  28. package/dist/packages/paynote/contents/PaymentMandateSpendSettlementResponded.js +7 -1
  29. package/dist/packages/paynote/contents/PaymentMandateSpendSettlementResponded.js.map +1 -1
  30. package/dist/packages/paynote/contents/index.d.ts +1355 -1349
  31. package/dist/packages/paynote/contents/index.d.ts.map +1 -1
  32. package/dist/packages/paynote/contents/index.js +18 -21
  33. package/dist/packages/paynote/contents/index.js.map +1 -1
  34. package/dist/packages/paynote/index.d.ts +1427 -1520
  35. package/dist/packages/paynote/index.d.ts.map +1 -1
  36. package/dist/packages/paynote/meta.d.ts +24 -34
  37. package/dist/packages/paynote/meta.d.ts.map +1 -1
  38. package/dist/packages/paynote/meta.js +18 -29
  39. package/dist/packages/paynote/meta.js.map +1 -1
  40. package/dist/packages/paynote/schemas/PaymentMandate.d.ts +13 -18
  41. package/dist/packages/paynote/schemas/PaymentMandate.d.ts.map +1 -1
  42. package/dist/packages/paynote/schemas/PaymentMandate.js +21 -2
  43. package/dist/packages/paynote/schemas/PaymentMandate.js.map +1 -1
  44. package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationRequested.d.ts +3 -6
  45. package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationRequested.d.ts.map +1 -1
  46. package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationRequested.js +1 -2
  47. package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationRequested.js.map +1 -1
  48. package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationResponded.d.ts +3 -3
  49. package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationResponded.js +1 -1
  50. package/dist/packages/paynote/schemas/PaymentMandateSpendSettled.d.ts +6 -3
  51. package/dist/packages/paynote/schemas/PaymentMandateSpendSettled.d.ts.map +1 -1
  52. package/dist/packages/paynote/schemas/PaymentMandateSpendSettled.js +2 -1
  53. package/dist/packages/paynote/schemas/PaymentMandateSpendSettled.js.map +1 -1
  54. package/dist/packages/paynote/schemas/PaymentMandateSpendSettlementResponded.d.ts +6 -3
  55. package/dist/packages/paynote/schemas/PaymentMandateSpendSettlementResponded.d.ts.map +1 -1
  56. package/dist/packages/paynote/schemas/PaymentMandateSpendSettlementResponded.js +2 -1
  57. package/dist/packages/paynote/schemas/PaymentMandateSpendSettlementResponded.js.map +1 -1
  58. package/dist/packages/paynote/schemas/index.d.ts +37 -128
  59. package/dist/packages/paynote/schemas/index.d.ts.map +1 -1
  60. package/dist/packages/paynote/schemas/index.js +6 -9
  61. package/dist/packages/paynote/schemas/index.js.map +1 -1
  62. package/dist/repository.d.ts +1428 -1521
  63. package/dist/repository.d.ts.map +1 -1
  64. package/package.json +2 -2
  65. package/dist/packages/paynote/contents/PaymentMandateChargeAttemptState.d.ts +0 -113
  66. package/dist/packages/paynote/contents/PaymentMandateChargeAttemptState.d.ts.map +0 -1
  67. package/dist/packages/paynote/contents/PaymentMandateChargeAttemptState.js +0 -113
  68. package/dist/packages/paynote/contents/PaymentMandateChargeAttemptState.js.map +0 -1
  69. package/dist/packages/paynote/schemas/PaymentMandateChargeAttemptState.d.ts +0 -91
  70. package/dist/packages/paynote/schemas/PaymentMandateChargeAttemptState.d.ts.map +0 -1
  71. package/dist/packages/paynote/schemas/PaymentMandateChargeAttemptState.js +0 -28
  72. package/dist/packages/paynote/schemas/PaymentMandateChargeAttemptState.js.map +0 -1
@@ -86,310 +86,676 @@ declare const _default: {
86
86
  readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
87
87
  };
88
88
  };
89
- readonly '2QkcYqeXBPfAzjYtasCrt91CKjQjcfdjfnHpZ3EX132g': {
89
+ readonly '2wqxtvdRHf7Z3qNNKnycnu3SBVqw4BenK8et9xeT7n86': {
90
90
  readonly cardTransactionDetails: {
91
- readonly description: "Card network identifiers used to match processor and issuer records.";
92
91
  readonly type: {
93
- readonly blueId: "GZLRe2fEsvs1v7dVcg9kEnCrWEdM3cUZYhFH4XqN5jQT";
92
+ readonly blueId: "GZLRe2fEsvs1v7dVcg9kEnCrWEdM3cUZYhFH4XqN5jQT";
93
+ };
94
+ };
95
+ readonly description: "PayNote tied to a specific card transaction via ISO scheme identifiers.";
96
+ readonly name: "Card Transaction PayNote";
97
+ readonly type: {
98
+ readonly blueId: "Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F";
99
+ };
100
+ };
101
+ readonly '3b3ePGPg5GzS6KYfqoDfgjWbjccXVnGzytbpFS53x4HM': {
102
+ readonly description: "The Guarantor rejects the proposed settlement amount.";
103
+ readonly name: "Settlement Amount Rejected";
104
+ readonly reason: {
105
+ readonly type: {
106
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
107
+ };
108
+ };
109
+ readonly type: {
110
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
111
+ };
112
+ };
113
+ readonly '3XstDYFkqsUP5PdM6Z6mwspPzgdQMFtUpNyMsKPK2o6N': {
114
+ readonly amount: {
115
+ readonly type: {
116
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
117
+ };
118
+ };
119
+ readonly description: "Equivalent of Reserve Funds Requested + Capture Funds Requested";
120
+ readonly name: "Reserve Funds and Capture Immediately Requested";
121
+ readonly type: {
122
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
123
+ };
124
+ };
125
+ readonly '3Y3TYmSfZMmPYKmF5i3eR8YcVPNP5Sic2bZN8xRnvMWm': {
126
+ readonly amount: {
127
+ readonly type: {
128
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
129
+ };
130
+ };
131
+ readonly description: "A participant requests the Guarantor to reserve (hold) a specific amount.";
132
+ readonly name: "Reserve Funds Requested";
133
+ readonly type: {
134
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
135
+ };
136
+ };
137
+ readonly '49TYrHpnk2gepJiGduJP3afrnT2DJ6kDxqF4Y9M4C4t7': {
138
+ readonly description: "Payment Mandate was successfully attached to the PayNote context.";
139
+ readonly name: "Payment Mandate Attached";
140
+ readonly paymentMandateDocumentId: {
141
+ readonly description: "Document id of the attached Payment Mandate.";
142
+ readonly type: {
143
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
144
+ };
145
+ };
146
+ readonly type: {
147
+ readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
148
+ };
149
+ };
150
+ readonly '4pVAdZo93FHRRkAkshqCZW4pUvvV1ccczJZ2Lu4jkD1D': {
151
+ readonly description: "The Guarantor confirms the final settlement amount, which may differ from the initial total.";
152
+ readonly finalAmount: {
153
+ readonly type: {
154
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
155
+ };
156
+ };
157
+ readonly name: "Settlement Amount Specified";
158
+ readonly type: {
159
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
160
+ };
161
+ };
162
+ readonly '4xS8bmZQBGPENmaPfsrtYguYfq4hTtaZAXrefdyFNkKq': {
163
+ readonly description: "The Guarantor could not reserve the requested funds.";
164
+ readonly name: "Reservation Declined";
165
+ readonly reason: {
166
+ readonly type: {
167
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
168
+ };
169
+ };
170
+ readonly type: {
171
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
172
+ };
173
+ };
174
+ readonly '531sxtH5rD9ter3EzwBTcn9GMdA7RAYFwmSQRzxCru8z': {
175
+ readonly cardTransactionDetails: {
176
+ readonly type: {
177
+ readonly blueId: "GZLRe2fEsvs1v7dVcg9kEnCrWEdM3cUZYhFH4XqN5jQT";
178
+ };
179
+ };
180
+ readonly description: "Request to the card issuer to process any following card transaction capture requests.";
181
+ readonly name: "Card Transaction Capture Unlock Requested";
182
+ readonly type: {
183
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
184
+ };
185
+ };
186
+ readonly '53Dir2sGy1NHuCQXF6suGoDMxYacNhbcy23AKD89SghD': {
187
+ readonly childPayNote: {
188
+ readonly description: "Complete PayNote";
189
+ };
190
+ readonly description: "The Payer requests to issue a new PayNote.\nThe requested PayNote must have amount/total specified and in the same currency as this PayNote.\nIf approved by Guarator, amount/total of this PayNote will be deducted by this value.\nIf child PayNote is later cancelled, or captured value is smaller than the total, the funds will be added back to amount/total.\n";
191
+ readonly name: "Issue Child PayNote Requested";
192
+ readonly type: {
193
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
194
+ };
195
+ };
196
+ readonly '649PKUqAakwi2JwDwHyypfWb4VmrrBAeEqzSU6FDWfgm': {
197
+ readonly description: "Request to start monitoring card events for a target merchant.";
198
+ readonly events: {
199
+ readonly description: "Requested card event categories.\nFor now:\n- transaction\n";
200
+ readonly itemType: {
201
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
202
+ };
203
+ readonly type: {
204
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
205
+ };
206
+ };
207
+ readonly name: "Start Card Transaction Monitoring Requested";
208
+ readonly requestedAt: {
209
+ readonly description: "Timestamp (microseconds since epoch).";
210
+ readonly type: {
211
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
212
+ };
213
+ };
214
+ readonly targetMerchantId: {
215
+ readonly type: {
216
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
217
+ };
218
+ };
219
+ readonly type: {
220
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
221
+ };
222
+ };
223
+ readonly '653sCbbRH3RiKhGjmVxh6wFVs4rn54wJRKDXRMKBZtjA': {
224
+ readonly description: "The Guarantor failed to release the reserved funds.";
225
+ readonly name: "Reservation Release Declined";
226
+ readonly reason: {
227
+ readonly type: {
228
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
229
+ };
230
+ };
231
+ readonly type: {
232
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
233
+ };
234
+ };
235
+ readonly '6aPqmL9AQV31CCV576ZmEcUgysbdbQAfAig9J5VYeR6v': {
236
+ readonly authorizationId: {
237
+ readonly description: "Correlation key copied from Payment Mandate Spend Authorization Requested.";
238
+ readonly type: {
239
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
240
+ };
241
+ };
242
+ readonly capturedDeltaMinor: {
243
+ readonly description: "Net change to amountCaptured in minor units. Positive for successful capture.\n";
244
+ readonly type: {
245
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
246
+ };
247
+ };
248
+ readonly description: "Settlement update sent by bank to Payment Mandate after charge execution, used to apply deterministic reserved/captured deltas in mandate state. For approved authorizations, mandate may already reserve capacity at authorize step. Deltas should express net post-execution adjustment from current mandate state.\n";
249
+ readonly holdId: {
250
+ readonly description: "Optional hold id produced by banking execution.";
251
+ readonly type: {
252
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
253
+ };
254
+ };
255
+ readonly name: "Payment Mandate Spend Settled";
256
+ readonly reason: {
257
+ readonly description: "Optional failure reason.";
258
+ readonly type: {
259
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
260
+ };
261
+ };
262
+ readonly reservedDeltaMinor: {
263
+ readonly description: "Net change to amountReserved in minor units. Positive for new reserve, negative for release/capture settlement. For authorize-only success this is typically 0 when authorization already reserved capacity.\n";
264
+ readonly type: {
265
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
266
+ };
267
+ };
268
+ readonly settledAt: {
269
+ readonly description: "Timestamp when settlement result was emitted.";
270
+ readonly type: {
271
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
272
+ };
273
+ };
274
+ readonly settlementId: {
275
+ readonly description: "Optional settlement correlation id for idempotent settlement updates.";
276
+ readonly type: {
277
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
278
+ };
279
+ };
280
+ readonly status: {
281
+ readonly description: "Settlement status (\"succeeded\" | \"failed\").";
282
+ readonly type: {
283
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
284
+ };
285
+ };
286
+ readonly transactionId: {
287
+ readonly description: "Optional transaction id produced by banking execution.";
288
+ readonly type: {
289
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
290
+ };
291
+ };
292
+ readonly type: {
293
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
294
+ };
295
+ };
296
+ readonly '6gQWKeJHZEbBo13Vvyf2nsdg7TA9kLSYdzMaJgySPG7V': {
297
+ readonly description: "The deliverer identified the card transaction.";
298
+ readonly name: "Transaction Identified";
299
+ readonly type: {
300
+ readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
301
+ };
302
+ };
303
+ readonly '6UFd89oNox3PCpeVFaaCXwbGDp3k3Qc56e4DktnK3F8P': {
304
+ readonly authorizationId: {
305
+ readonly description: "Correlation key copied from Payment Mandate Spend Authorization Requested.";
306
+ readonly type: {
307
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
308
+ };
309
+ };
310
+ readonly description: "Decision from Payment Mandate for a spend authorization request.";
311
+ readonly name: "Payment Mandate Spend Authorization Responded";
312
+ readonly reason: {
313
+ readonly description: "Optional rejection reason.";
314
+ readonly type: {
315
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
316
+ };
317
+ };
318
+ readonly remainingAmountMinor: {
319
+ readonly description: "Optional remaining mandate capacity in minor currency units after decision.";
320
+ readonly type: {
321
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
322
+ };
323
+ };
324
+ readonly respondedAt: {
325
+ readonly description: "Timestamp when the decision was emitted.";
326
+ readonly type: {
327
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
328
+ };
329
+ };
330
+ readonly status: {
331
+ readonly description: "Decision status (\"approved\" | \"rejected\").";
332
+ readonly type: {
333
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
334
+ };
335
+ };
336
+ readonly type: {
337
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
338
+ };
339
+ };
340
+ readonly '6vnMMWuq6qJ1hxLqL1P2ckCqC9JtJF3QNW8s7rMTgZ4Q': {
341
+ readonly description: "Confirmation that linked PayNote startup was requested successfully.";
342
+ readonly name: "Linked PayNote Started";
343
+ readonly payNoteDocumentId: {
344
+ readonly description: "Document id of the bootstrapped linked PayNote when available.";
345
+ readonly type: {
346
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
347
+ };
348
+ };
349
+ readonly payNoteSessionId: {
350
+ readonly description: "Session id of the bootstrapped linked PayNote document.";
351
+ readonly type: {
352
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
353
+ };
354
+ };
355
+ readonly type: {
356
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
357
+ };
358
+ };
359
+ readonly '6VQC585V4SdpyA5hCeQQGM178bbeW3D2WcKt8ZCWK9s3': {
360
+ readonly acceptedAt: {
361
+ readonly description: "Timestamp when the client accepted.";
362
+ readonly type: {
363
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
364
+ };
365
+ };
366
+ readonly description: "The client accepted the PayNote.";
367
+ readonly name: "PayNote Accepted By Client";
368
+ readonly type: {
369
+ readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
370
+ };
371
+ };
372
+ readonly '7EKvVzbT63C2taKWfLf9J2BiVL7BCL6Ld86tH8b9kmxF': {
373
+ readonly amountMinor: {
374
+ readonly description: "Requested amount in minor currency units.";
375
+ readonly type: {
376
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
377
+ };
378
+ };
379
+ readonly authorizationId: {
380
+ readonly description: "Correlation and idempotency key for a single authorization lifecycle.";
381
+ readonly type: {
382
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
383
+ };
384
+ };
385
+ readonly counterpartyId: {
386
+ readonly description: "Counterparty identifier interpreted according to counterpartyType.";
387
+ readonly type: {
388
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
389
+ };
390
+ };
391
+ readonly counterpartyType: {
392
+ readonly description: "Counterparty identifier type (\"merchantId\" | \"customerId\" | \"accountNumber\").";
393
+ readonly type: {
394
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
395
+ };
396
+ };
397
+ readonly currency: {
398
+ readonly description: "Currency used to validate amountMinor against mandate limits.";
399
+ readonly type: {
400
+ readonly blueId: "CBnZ7aaNetj9KEqXpUWj5jvjKbmviLivP98T2EiyxiYc";
401
+ };
402
+ };
403
+ readonly description: "Bank asks a Payment Mandate document to authorize a single spend before reserve/capture execution.\n";
404
+ readonly name: "Payment Mandate Spend Authorization Requested";
405
+ readonly requestedAt: {
406
+ readonly description: "Timestamp when the authorization request was created.";
407
+ readonly type: {
408
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
409
+ };
410
+ };
411
+ readonly requestingDocumentId: {
412
+ readonly description: "Document id that requested the charge.";
413
+ readonly type: {
414
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
415
+ };
416
+ };
417
+ readonly requestingSessionId: {
418
+ readonly description: "Session id that requested the charge.";
419
+ readonly type: {
420
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
421
+ };
422
+ };
423
+ readonly type: {
424
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
425
+ };
426
+ };
427
+ readonly '8dggwonfALwrTSRhg8g8ncXFXierke2mogtEZQXHab64': {
428
+ readonly description: "Linked PayNote startup failed after charge processing.";
429
+ readonly name: "Linked PayNote Start Failed";
430
+ readonly reason: {
431
+ readonly description: "Failure reason.";
432
+ readonly type: {
433
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
434
+ };
435
+ };
436
+ readonly type: {
437
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
438
+ };
439
+ };
440
+ readonly '96buyUXwhkak8xKoCR5nAW9tMuwzkevJFdELVvwKxR6Y': {
441
+ readonly description: "The Guarantor confirms PayNote cancellation requested by Payer.";
442
+ readonly name: "PayNote Cancelled";
443
+ readonly type: {
444
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
445
+ };
446
+ };
447
+ readonly '9dJ3W19EJ8MqtTJR8oidX8eRrkeB8xNQyqeTZeqBHZjo': {
448
+ readonly description: "Base PayNote where payer is merchant and payee is customer. Bank sets/validates payer channel bindings.";
449
+ readonly name: "Merchant To Customer PayNote";
450
+ readonly type: {
451
+ readonly blueId: "Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F";
452
+ };
453
+ };
454
+ readonly AdKfkwRfzRUxUKSzhRfYANsaUBNnz4u6JFWR66qhzyZe: {
455
+ readonly description: "The Guarantor denies the creation of the PayNote.";
456
+ readonly name: "PayNote Rejected";
457
+ readonly reason: {
458
+ readonly type: {
459
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
460
+ };
461
+ };
462
+ readonly type: {
463
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
464
+ };
465
+ };
466
+ readonly AopfdGqnwcxsw4mJzXbmjDMnASRtkce9BZB1n6QSRNXX: {
467
+ readonly amountReserved: {
468
+ readonly type: {
469
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
470
+ };
471
+ };
472
+ readonly description: "The Guarantor confirms that funds have been successfully reserved (held).";
473
+ readonly name: "Funds Reserved";
474
+ readonly type: {
475
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
476
+ };
477
+ };
478
+ readonly Aq4dNFtLHLWYfCS7aqAgWwGi48MgbQmp2EZJtDBN7FSg: {
479
+ readonly amount: {
480
+ readonly description: "Charge amount in minor currency units.";
481
+ readonly type: {
482
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
483
+ };
484
+ };
485
+ readonly description: "Request to create a new card charge linked to the root card transaction context.";
486
+ readonly name: "Linked Card Charge Requested";
487
+ readonly paymentMandateDocumentId: {
488
+ readonly description: "Optional Payment Mandate document id used to authorize charge execution.";
489
+ readonly type: {
490
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
491
+ };
492
+ };
493
+ readonly paynote: {
494
+ readonly description: "Optional PayNote document to bootstrap for the created charge context.";
495
+ };
496
+ readonly type: {
497
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
498
+ };
499
+ };
500
+ readonly B2iherBskP5f4x7x31GahNmsJtyzian6ZN92b8kE1E5q: {
501
+ readonly description: "Notification that card transaction monitoring was rejected.";
502
+ readonly events: {
503
+ readonly itemType: {
504
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
505
+ };
506
+ readonly type: {
507
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
94
508
  };
95
509
  };
96
- readonly clientAcceptedAt: {
97
- readonly description: "Timestamp when the client accepted.";
510
+ readonly name: "Card Transaction Monitoring Request Rejected";
511
+ readonly reason: {
512
+ readonly description: "Reason monitoring was rejected.";
98
513
  readonly type: {
99
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
514
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
100
515
  };
101
516
  };
102
- readonly clientDecisionStatus: {
103
- readonly description: "Client decision (pending, accepted, rejected).";
517
+ readonly rejectedAt: {
518
+ readonly description: "Timestamp (microseconds since epoch) when monitoring was rejected.";
519
+ readonly type: {
520
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
521
+ };
522
+ };
523
+ readonly targetMerchantId: {
524
+ readonly description: "External merchant identifier requested for monitoring.";
104
525
  readonly type: {
105
526
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
106
527
  };
107
528
  };
108
- readonly clientRejectedAt: {
109
- readonly description: "Timestamp when the client rejected.";
529
+ readonly type: {
530
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
531
+ };
532
+ };
533
+ readonly BJvjorbC5ed5KTV7SxoV3CvrJXjrFPcFxY9QT4jHBbXi: {
534
+ readonly amountCaptured: {
110
535
  readonly type: {
111
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
536
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
112
537
  };
113
538
  };
114
- readonly contracts: {
115
- readonly acceptPayNote: {
116
- readonly channel: {
539
+ readonly description: "The Guarantor confirms that funds have been successfully transferred to the Payee.";
540
+ readonly name: "Funds Captured";
541
+ readonly type: {
542
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
543
+ };
544
+ };
545
+ readonly BKKgKnHFhLmmUxq4WRvhV7HYZNu6ngDEce1LvHjZimJr: {
546
+ readonly allowedPaymentCounterparties: {
547
+ readonly description: "Optional payment counterparty allowlist. Missing list means wildcard (any counterparty is allowed).\n";
548
+ readonly itemType: {
549
+ readonly counterpartyId: {
550
+ readonly description: "Counterparty identifier interpreted according to counterpartyType.";
117
551
  readonly type: {
118
552
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
119
553
  };
120
- readonly value: "payNoteDeliverer";
121
554
  };
122
- readonly request: {
123
- readonly acceptedAt: {
124
- readonly description: "Timestamp when the client accepted.";
125
- readonly type: {
126
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
127
- };
555
+ readonly counterpartyType: {
556
+ readonly description: "Allowed payment counterparty identifier type:\n- merchantId\n- customerId\n- accountNumber\n";
557
+ readonly type: {
558
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
128
559
  };
129
560
  };
130
- readonly type: {
131
- readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
561
+ };
562
+ readonly type: {
563
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
564
+ };
565
+ };
566
+ readonly allowedPayNotes: {
567
+ readonly description: "Optional linked PayNote allowlist. Used only when allowLinkedPayNote is true. Missing list means wildcard (any linked PayNote is allowed). Each entry must set exactly one selector: typeBlueId or documentBlueId.\n";
568
+ readonly itemType: {
569
+ readonly documentBlueId: {
570
+ readonly description: "Optional blue-id of an allowed concrete PayNote document. Mutually exclusive with typeBlueId.\n";
571
+ readonly type: {
572
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
573
+ };
574
+ };
575
+ readonly typeBlueId: {
576
+ readonly description: "Optional blue-id of an allowed PayNote type. Mutually exclusive with documentBlueId.\n";
577
+ readonly type: {
578
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
579
+ };
132
580
  };
133
581
  };
134
- readonly acceptPayNoteImpl: {
135
- readonly operation: {
582
+ readonly type: {
583
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
584
+ };
585
+ };
586
+ readonly allowLinkedPayNote: {
587
+ readonly description: "Whether this mandate allows linked PayNote startup after charge execution.";
588
+ readonly type: {
589
+ readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
590
+ };
591
+ };
592
+ readonly amountCaptured: {
593
+ readonly description: "Running captured amount in minor currency units. Increased after successful capture.\n";
594
+ readonly type: {
595
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
596
+ };
597
+ };
598
+ readonly amountLimit: {
599
+ readonly description: "Maximum amount in minor currency units allowed by this mandate.";
600
+ readonly type: {
601
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
602
+ };
603
+ };
604
+ readonly amountReserved: {
605
+ readonly description: "Running reserved amount in minor currency units. Increased after successful reserve/authorize, decreased after release/capture.\n";
606
+ readonly type: {
607
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
608
+ };
609
+ };
610
+ readonly chargeAttempts: {
611
+ readonly description: "Stateful map of authorizationId -> authorization state (authorization + settlement).";
612
+ readonly keyType: {
613
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
614
+ };
615
+ readonly type: {
616
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
617
+ };
618
+ readonly valueType: {
619
+ readonly amountMinor: {
620
+ readonly description: "Requested amount in minor currency units.";
621
+ readonly type: {
622
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
623
+ };
624
+ };
625
+ readonly authorizationReason: {
626
+ readonly description: "Optional authorization rejection reason.";
136
627
  readonly type: {
137
628
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
138
629
  };
139
- readonly value: "acceptPayNote";
140
630
  };
141
- readonly steps: {
142
- readonly items: readonly [{
143
- readonly code: {
144
- readonly type: {
145
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
146
- };
147
- 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');\nconst payNoteBootstrapRequest = document('/payNoteBootstrapRequest');\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 payNoteBootstrapRequest\n ]\n : [\n {\n type: \"PayNote/PayNote Client Decision Discarded\",\n decision: \"accepted\",\n reason: discardReason,\n decisionAt: acceptedAt\n }\n ]\n};\n";
148
- };
149
- readonly name: "Capture Acceptance Timestamp";
150
- readonly type: {
151
- readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
152
- };
153
- }, {
154
- readonly changeset: {
155
- readonly items: readonly [{
156
- readonly op: {
157
- readonly type: {
158
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
159
- };
160
- readonly value: "replace";
161
- };
162
- readonly path: {
163
- readonly type: {
164
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
165
- };
166
- readonly value: "/clientDecisionStatus";
167
- };
168
- readonly val: {
169
- readonly type: {
170
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
171
- };
172
- readonly value: "${steps['Capture Acceptance Timestamp'].nextDecisionStatus}";
173
- };
174
- }, {
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: "/clientAcceptedAt";
186
- };
187
- readonly val: {
188
- readonly type: {
189
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
190
- };
191
- readonly value: "${steps['Capture Acceptance Timestamp'].nextAcceptedAt}";
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: "/deliveryStatus";
205
- };
206
- readonly val: {
207
- readonly type: {
208
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
209
- };
210
- readonly value: "${steps['Capture Acceptance Timestamp'].nextDeliveryStatus}";
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: "/deliveryError";
224
- };
225
- readonly val: {
226
- readonly type: {
227
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
228
- };
229
- readonly value: "${steps['Capture Acceptance Timestamp'].nextDeliveryError}";
230
- };
231
- }];
232
- };
233
- readonly name: "Apply Acceptance Update";
234
- readonly type: {
235
- readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
236
- };
237
- }];
631
+ readonly authorizationRespondedAt: {
632
+ readonly description: "Timestamp of authorization decision response.";
633
+ readonly type: {
634
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
635
+ };
238
636
  };
239
- readonly type: {
240
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
637
+ readonly authorizationStatus: {
638
+ readonly description: "Authorization decision status (\"approved\" | \"rejected\").";
639
+ readonly type: {
640
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
641
+ };
241
642
  };
242
- };
243
- readonly initialize: {
244
- readonly channel: {
643
+ readonly authorizedAmountMinor: {
644
+ readonly description: "Authorized amount reserved against mandate capacity for this attempt.";
645
+ readonly type: {
646
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
647
+ };
648
+ };
649
+ readonly capturedDeltaMinor: {
650
+ readonly description: "Captured delta applied for accepted settlement.";
651
+ readonly type: {
652
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
653
+ };
654
+ };
655
+ readonly chargeMode: {
656
+ readonly description: "Requested charge mode (\"authorize_only\" | \"authorize_and_capture\").";
657
+ readonly type: {
658
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
659
+ };
660
+ };
661
+ readonly counterpartyId: {
662
+ readonly description: "Counterparty identifier interpreted according to counterpartyType.";
663
+ readonly type: {
664
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
665
+ };
666
+ };
667
+ readonly counterpartyType: {
668
+ readonly description: "Counterparty identifier type (\"merchantId\" | \"customerId\" | \"accountNumber\").";
669
+ readonly type: {
670
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
671
+ };
672
+ };
673
+ readonly currency: {
674
+ readonly description: "Requested currency.";
675
+ readonly type: {
676
+ readonly blueId: "CBnZ7aaNetj9KEqXpUWj5jvjKbmviLivP98T2EiyxiYc";
677
+ };
678
+ };
679
+ readonly holdId: {
680
+ readonly description: "Optional hold id associated with settlement.";
681
+ readonly type: {
682
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
683
+ };
684
+ };
685
+ readonly lastSettlementId: {
686
+ readonly description: "Optional last applied settlement id for idempotency tracking.";
687
+ readonly type: {
688
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
689
+ };
690
+ };
691
+ readonly lastSettlementProcessingStatus: {
692
+ readonly description: "Mandate processing status for last settlement (\"accepted\" | \"rejected\").";
245
693
  readonly type: {
246
694
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
247
695
  };
248
- readonly value: "initLifecycleChannel";
249
696
  };
250
- readonly steps: {
251
- readonly items: readonly [{
252
- readonly changeset: {
253
- readonly items: readonly [{
254
- readonly op: {
255
- readonly type: {
256
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
257
- };
258
- readonly value: "replace";
259
- };
260
- readonly path: {
261
- readonly type: {
262
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
263
- };
264
- readonly value: "/deliveryStatus";
265
- };
266
- readonly val: {
267
- readonly type: {
268
- readonly blueId: "ETAPjwZVyYEfPUWvXkCWAuybBhYUayg4hKC2V7mLXmsv";
269
- };
270
- };
271
- }, {
272
- readonly op: {
273
- readonly type: {
274
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
275
- };
276
- readonly value: "replace";
277
- };
278
- readonly path: {
279
- readonly type: {
280
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
281
- };
282
- readonly value: "/transactionIdentificationStatus";
283
- };
284
- readonly val: {
285
- readonly type: {
286
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
287
- };
288
- readonly value: "pending";
289
- };
290
- }, {
291
- readonly op: {
292
- readonly type: {
293
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
294
- };
295
- readonly value: "replace";
296
- };
297
- readonly path: {
298
- readonly type: {
299
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
300
- };
301
- readonly value: "/clientDecisionStatus";
302
- };
303
- readonly val: {
304
- readonly type: {
305
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
306
- };
307
- readonly value: "pending";
308
- };
309
- }, {
310
- readonly op: {
311
- readonly type: {
312
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
313
- };
314
- readonly value: "replace";
315
- };
316
- readonly path: {
317
- readonly type: {
318
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
319
- };
320
- readonly value: "/deliveryError";
321
- };
322
- readonly val: {
323
- readonly type: {
324
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
325
- };
326
- readonly value: "";
327
- };
328
- }];
329
- };
330
- readonly name: "Initialize Delivery State";
331
- readonly type: {
332
- readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
333
- };
334
- }];
697
+ readonly lastSettlementRequestStatus: {
698
+ readonly description: "Last settlement request status received from bank (\"succeeded\" | \"failed\").";
699
+ readonly type: {
700
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
701
+ };
335
702
  };
336
- readonly type: {
337
- readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
703
+ readonly reservedDeltaMinor: {
704
+ readonly description: "Reserved delta applied for accepted settlement.";
705
+ readonly type: {
706
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
707
+ };
338
708
  };
339
- };
340
- readonly initLifecycleChannel: {
341
- readonly event: {
709
+ readonly settled: {
710
+ readonly description: "Whether mandate accepted settlement for this attempt.";
342
711
  readonly type: {
343
- readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
712
+ readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
344
713
  };
345
714
  };
346
- readonly type: {
347
- readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
715
+ readonly settlementReason: {
716
+ readonly description: "Optional settlement rejection/info reason.";
717
+ readonly type: {
718
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
719
+ };
348
720
  };
349
- };
350
- readonly payNoteDeliverer: {
351
- readonly description: "Participant delivering and reporting status (e.g., bank).";
352
- readonly type: {
353
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
721
+ readonly settlementRespondedAt: {
722
+ readonly description: "Timestamp of last settlement processing response.";
723
+ readonly type: {
724
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
725
+ };
354
726
  };
355
- };
356
- readonly payNoteSender: {
357
- readonly description: "Participant submitting the PayNote delivery (merchant or processor).";
358
- readonly type: {
359
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
727
+ readonly transactionId: {
728
+ readonly description: "Optional transaction id associated with settlement.";
729
+ readonly type: {
730
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
731
+ };
360
732
  };
361
733
  };
362
- readonly rejectPayNote: {
734
+ };
735
+ readonly contracts: {
736
+ readonly authorizeSpend: {
363
737
  readonly channel: {
364
738
  readonly type: {
365
739
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
366
740
  };
367
- readonly value: "payNoteDeliverer";
741
+ readonly value: "guarantorChannel";
368
742
  };
743
+ readonly description: "Validate a charge attempt against mandate policy and reserve capacity.";
369
744
  readonly request: {
370
- readonly reason: {
371
- readonly description: "Optional rejection reason.";
372
- readonly type: {
373
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
374
- };
375
- };
376
- readonly rejectedAt: {
377
- readonly description: "Timestamp when the client rejected.";
378
- readonly type: {
379
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
380
- };
745
+ readonly type: {
746
+ readonly blueId: "7EKvVzbT63C2taKWfLf9J2BiVL7BCL6Ld86tH8b9kmxF";
381
747
  };
382
748
  };
383
749
  readonly type: {
384
750
  readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
385
751
  };
386
752
  };
387
- readonly rejectPayNoteImpl: {
753
+ readonly authorizeSpendImpl: {
388
754
  readonly operation: {
389
755
  readonly type: {
390
756
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
391
757
  };
392
- readonly value: "rejectPayNote";
758
+ readonly value: "authorizeSpend";
393
759
  };
394
760
  readonly steps: {
395
761
  readonly items: readonly [{
@@ -397,9 +763,9 @@ declare const _default: {
397
763
  readonly type: {
398
764
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
399
765
  };
400
- 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";
766
+ readonly value: "const documentCanonical = document.canonical('/');\nconst requestCanonical = eventCanonical\n ? canon.at(eventCanonical, '/message/request')\n : undefined;\n\nconst requestedAtNode = requestCanonical\n ? canon.at(requestCanonical, '/requestedAt')\n : undefined;\nconst requestedAtRaw = requestedAtNode ? canon.unwrap(requestedAtNode) : '';\nconst requestedAt = typeof requestedAtRaw === 'string' ? requestedAtRaw : '';\nconst nowIso =\n requestedAt ||\n (typeof event.timestamp === 'string' ? event.timestamp : '');\n\nconst normalizeTimestamp = function (value) {\n if (typeof value !== 'string' || !value) {\n return '';\n }\n let digits = '';\n let index = 0;\n while (index < value.length) {\n const code = value.charCodeAt(index);\n if (code >= 48 && code <= 57) {\n digits += value.charAt(index);\n }\n index += 1;\n }\n if (digits.length < 14) {\n return '';\n }\n return digits.slice(0, 14);\n};\n\nconst authorizationIdNode = requestCanonical\n ? canon.at(requestCanonical, '/authorizationId')\n : undefined;\nconst authorizationIdRaw = authorizationIdNode\n ? canon.unwrap(authorizationIdNode)\n : '';\nconst authorizationId =\n typeof authorizationIdRaw === 'string' ? authorizationIdRaw : '';\n\nconst amountMinorNode = requestCanonical\n ? canon.at(requestCanonical, '/amountMinor')\n : undefined;\nconst amountMinorRaw = amountMinorNode ? canon.unwrap(amountMinorNode) : 0;\nconst amountMinor = typeof amountMinorRaw === 'number' ? amountMinorRaw : 0;\n\nconst counterpartyTypeNode = requestCanonical\n ? canon.at(requestCanonical, '/counterpartyType')\n : undefined;\nconst counterpartyTypeRaw = counterpartyTypeNode\n ? canon.unwrap(counterpartyTypeNode)\n : '';\nconst counterpartyType =\n typeof counterpartyTypeRaw === 'string' ? counterpartyTypeRaw : '';\n\nconst counterpartyIdNode = requestCanonical\n ? canon.at(requestCanonical, '/counterpartyId')\n : undefined;\nconst counterpartyIdRaw = counterpartyIdNode\n ? canon.unwrap(counterpartyIdNode)\n : '';\nconst counterpartyId =\n typeof counterpartyIdRaw === 'string' ? counterpartyIdRaw : '';\n\nconst requestedCurrencyNode = requestCanonical\n ? canon.at(requestCanonical, '/currency')\n : undefined;\nconst requestedCurrencyRaw = requestedCurrencyNode\n ? canon.unwrap(requestedCurrencyNode)\n : '';\nconst requestedCurrency =\n typeof requestedCurrencyRaw === 'string' ? requestedCurrencyRaw : '';\n\nconst chargeAttemptsNode = canon.at(documentCanonical, '/chargeAttempts');\nconst chargeAttemptsRaw = chargeAttemptsNode\n ? canon.unwrap(chargeAttemptsNode)\n : {};\nconst chargeAttempts =\n chargeAttemptsRaw &&\n typeof chargeAttemptsRaw === 'object' &&\n !Array.isArray(chargeAttemptsRaw)\n ? chargeAttemptsRaw\n : {};\nconst nextChargeAttempts = { ...chargeAttempts };\n\nconst existingAttemptRaw = authorizationId\n ? chargeAttempts[authorizationId]\n : undefined;\nconst existingAttempt =\n existingAttemptRaw &&\n typeof existingAttemptRaw === 'object' &&\n !Array.isArray(existingAttemptRaw)\n ? existingAttemptRaw\n : null;\nconst existingDecision =\n existingAttempt &&\n typeof existingAttempt.authorizationStatus === 'string'\n ? existingAttempt.authorizationStatus\n : '';\nconst existingReason =\n existingAttempt && typeof existingAttempt.authorizationReason === 'string'\n ? existingAttempt.authorizationReason\n : '';\n\nconst amountLimitNode = canon.at(documentCanonical, '/amountLimit');\nconst amountLimitRaw = amountLimitNode ? canon.unwrap(amountLimitNode) : 0;\nconst amountLimit = typeof amountLimitRaw === 'number' ? amountLimitRaw : 0;\n\nconst amountReservedNode = canon.at(documentCanonical, '/amountReserved');\nconst amountReservedRaw = amountReservedNode\n ? canon.unwrap(amountReservedNode)\n : 0;\nconst amountReserved =\n typeof amountReservedRaw === 'number' ? amountReservedRaw : 0;\n\nconst amountCapturedNode = canon.at(documentCanonical, '/amountCaptured');\nconst amountCapturedRaw = amountCapturedNode\n ? canon.unwrap(amountCapturedNode)\n : 0;\nconst amountCaptured =\n typeof amountCapturedRaw === 'number' ? amountCapturedRaw : 0;\n\nconst mandateCurrencyNode = canon.at(documentCanonical, '/currency');\nconst mandateCurrencyRaw = mandateCurrencyNode\n ? canon.unwrap(mandateCurrencyNode)\n : '';\nconst mandateCurrency =\n typeof mandateCurrencyRaw === 'string' ? mandateCurrencyRaw : '';\n\nconst expiresAtNode = canon.at(documentCanonical, '/expiresAt');\nconst expiresAtRaw = expiresAtNode ? canon.unwrap(expiresAtNode) : '';\nconst expiresAt = typeof expiresAtRaw === 'string' ? expiresAtRaw : '';\n\nconst revokedAtNode = canon.at(documentCanonical, '/revokedAt');\nconst revokedAtRaw = revokedAtNode ? canon.unwrap(revokedAtNode) : '';\nconst revokedAt = typeof revokedAtRaw === 'string' ? revokedAtRaw : '';\n\nconst nowComparable = normalizeTimestamp(nowIso);\n\nconst allowedCounterpartiesNode = canon.at(\n documentCanonical,\n '/allowedPaymentCounterparties'\n);\nconst allowedCounterpartiesRaw = allowedCounterpartiesNode\n ? canon.unwrap(allowedCounterpartiesNode)\n : [];\nconst allowedCounterparties = Array.isArray(allowedCounterpartiesRaw)\n ? allowedCounterpartiesRaw\n : [];\nconst isCounterpartyAllowed =\n allowedCounterparties.length === 0 ||\n allowedCounterparties.some(function (item) {\n const itemType =\n item && typeof item.counterpartyType === 'string'\n ? item.counterpartyType\n : '';\n const itemId =\n item && typeof item.counterpartyId === 'string'\n ? item.counterpartyId\n : '';\n return (\n item &&\n itemType === counterpartyType &&\n itemId === counterpartyId\n );\n });\n\nlet status = 'rejected';\nlet reason = '';\nlet nextAmountReserved = amountReserved;\n\nif (existingDecision === 'approved' || existingDecision === 'rejected') {\n status = existingDecision;\n reason = existingDecision === 'rejected' ? existingReason : '';\n} else if (!authorizationId) {\n reason = 'Missing authorizationId.';\n} else if (amountMinor <= 0) {\n reason = 'Amount must be greater than zero.';\n} else if (!requestedCurrency || requestedCurrency !== mandateCurrency) {\n reason = 'Currency does not match mandate currency.';\n} else if (revokedAt) {\n reason = 'Mandate is revoked.';\n} else if (\n expiresAt &&\n normalizeTimestamp(expiresAt) &&\n nowComparable &&\n normalizeTimestamp(expiresAt) < nowComparable\n) {\n reason = 'Mandate is expired.';\n} else if (!isCounterpartyAllowed) {\n reason = 'Counterparty is not allowed by mandate.';\n} else if (amountReserved + amountCaptured + amountMinor > amountLimit) {\n reason = 'Mandate amount limit exceeded.';\n} else {\n status = 'approved';\n nextAmountReserved = amountReserved + amountMinor;\n}\n\nif (authorizationId && !existingDecision) {\n const chargeModeNode = requestCanonical\n ? canon.at(requestCanonical, '/chargeMode')\n : undefined;\n const chargeModeRaw = chargeModeNode ? canon.unwrap(chargeModeNode) : '';\n const chargeMode = typeof chargeModeRaw === 'string' ? chargeModeRaw : '';\n\n nextChargeAttempts[authorizationId] = {\n amountMinor,\n currency: requestedCurrency,\n counterpartyType,\n counterpartyId,\n chargeMode,\n authorizationStatus: status,\n authorizationReason: reason,\n authorizationRespondedAt: nowIso,\n authorizedAmountMinor: status === 'approved' ? amountMinor : 0,\n settled: false,\n lastSettlementRequestStatus: '',\n lastSettlementProcessingStatus: '',\n settlementReason: '',\n settlementRespondedAt: '',\n reservedDeltaMinor: 0,\n capturedDeltaMinor: 0,\n holdId: '',\n transactionId: ''\n };\n}\n\nconst remainingAmountMinor = Math.max(\n 0,\n amountLimit - (nextAmountReserved + amountCaptured)\n);\n\nconst responseEvent = {\n type: 'PayNote/Payment Mandate Spend Authorization Responded',\n authorizationId,\n status,\n remainingAmountMinor,\n respondedAt: nowIso\n};\n\nif (reason) {\n responseEvent.reason = reason;\n}\n\nreturn {\n nextChargeAttempts: nextChargeAttempts,\n nextAmountReserved: nextAmountReserved,\n events: [responseEvent]\n};\n";
401
767
  };
402
- readonly name: "Capture Rejection Reason";
768
+ readonly name: "Decide Spend Authorization";
403
769
  readonly type: {
404
770
  readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
405
771
  };
@@ -416,51 +782,13 @@ declare const _default: {
416
782
  readonly type: {
417
783
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
418
784
  };
419
- readonly value: "/clientDecisionStatus";
420
- };
421
- readonly val: {
422
- readonly type: {
423
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
424
- };
425
- readonly value: "${steps['Capture Rejection Reason'].nextDecisionStatus}";
426
- };
427
- }, {
428
- readonly op: {
429
- readonly type: {
430
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
431
- };
432
- readonly value: "replace";
433
- };
434
- readonly path: {
435
- readonly type: {
436
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
437
- };
438
- readonly value: "/clientRejectedAt";
439
- };
440
- readonly val: {
441
- readonly type: {
442
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
443
- };
444
- readonly value: "${steps['Capture Rejection Reason'].nextRejectedAt}";
445
- };
446
- }, {
447
- readonly op: {
448
- readonly type: {
449
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
450
- };
451
- readonly value: "replace";
452
- };
453
- readonly path: {
454
- readonly type: {
455
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
456
- };
457
- readonly value: "/deliveryStatus";
785
+ readonly value: "/chargeAttempts";
458
786
  };
459
787
  readonly val: {
460
788
  readonly type: {
461
789
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
462
790
  };
463
- readonly value: "${steps['Capture Rejection Reason'].nextDeliveryStatus}";
791
+ readonly value: "${steps['Decide Spend Authorization'].nextChargeAttempts}";
464
792
  };
465
793
  }, {
466
794
  readonly op: {
@@ -473,17 +801,17 @@ declare const _default: {
473
801
  readonly type: {
474
802
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
475
803
  };
476
- readonly value: "/deliveryError";
804
+ readonly value: "/amountReserved";
477
805
  };
478
806
  readonly val: {
479
807
  readonly type: {
480
808
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
481
809
  };
482
- readonly value: "${steps['Capture Rejection Reason'].nextDeliveryError}";
810
+ readonly value: "${steps['Decide Spend Authorization'].nextAmountReserved}";
483
811
  };
484
812
  }];
485
813
  };
486
- readonly name: "Apply Rejection Update";
814
+ readonly name: "Persist Authorization Decision";
487
815
  readonly type: {
488
816
  readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
489
817
  };
@@ -493,63 +821,35 @@ declare const _default: {
493
821
  readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
494
822
  };
495
823
  };
496
- readonly reportDeliveryError: {
497
- readonly channel: {
498
- readonly type: {
499
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
500
- };
501
- readonly value: "payNoteDeliverer";
502
- };
503
- readonly request: {
504
- readonly description: "Delivery error reason.";
505
- readonly type: {
506
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
507
- };
824
+ readonly granteeChannel: {
825
+ readonly description: "Grantee timeline channel (party allowed to use the mandate).";
826
+ readonly type: {
827
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
508
828
  };
829
+ };
830
+ readonly granterChannel: {
831
+ readonly description: "Granting party timeline channel.";
509
832
  readonly type: {
510
- readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
833
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
511
834
  };
512
835
  };
513
- readonly reportDeliveryErrorImpl: {
514
- readonly operation: {
515
- readonly type: {
516
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
517
- };
518
- readonly value: "reportDeliveryError";
836
+ readonly guarantorChannel: {
837
+ readonly description: "Bank/admin channel executing mandate checks and settlement updates.";
838
+ readonly type: {
839
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
519
840
  };
520
- readonly steps: {
521
- readonly items: readonly [{
522
- readonly code: {
523
- readonly type: {
524
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
525
- };
526
- 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";
527
- };
528
- readonly name: "Capture Delivery Failure Reason";
529
- readonly type: {
530
- readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
531
- };
532
- }, {
533
- readonly changeset: {
534
- readonly items: readonly [{
535
- readonly op: {
536
- readonly type: {
537
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
538
- };
539
- readonly value: "replace";
540
- };
541
- readonly path: {
542
- readonly type: {
543
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
544
- };
545
- readonly value: "/deliveryStatus";
546
- };
547
- readonly val: {
548
- readonly type: {
549
- readonly blueId: "Guus3kHbivXvy5G93yhiKs3Pc8sxCc4XVvSo7CqLsQEc";
550
- };
551
- };
552
- }, {
841
+ };
842
+ readonly initialize: {
843
+ readonly channel: {
844
+ readonly type: {
845
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
846
+ };
847
+ readonly value: "initLifecycleChannel";
848
+ };
849
+ readonly steps: {
850
+ readonly items: readonly [{
851
+ readonly changeset: {
852
+ readonly items: readonly [{
553
853
  readonly op: {
554
854
  readonly type: {
555
855
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
@@ -560,49 +860,54 @@ declare const _default: {
560
860
  readonly type: {
561
861
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
562
862
  };
563
- readonly value: "/deliveryError";
564
- };
565
- readonly val: {
566
- readonly type: {
567
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
568
- };
569
- readonly value: "${steps['Capture Delivery Failure Reason'].reason}";
863
+ readonly value: "/chargeAttempts";
570
864
  };
865
+ readonly val: {};
571
866
  }];
572
867
  };
573
- readonly name: "Apply Delivery Failure";
868
+ readonly name: "Initialize mandate runtime state";
574
869
  readonly type: {
575
870
  readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
576
871
  };
577
872
  }];
578
873
  };
579
874
  readonly type: {
580
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
875
+ readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
581
876
  };
582
877
  };
583
- readonly updateTransactionIdentificationStatus: {
878
+ readonly initLifecycleChannel: {
879
+ readonly event: {
880
+ readonly type: {
881
+ readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
882
+ };
883
+ };
884
+ readonly type: {
885
+ readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
886
+ };
887
+ };
888
+ readonly settleSpend: {
584
889
  readonly channel: {
585
890
  readonly type: {
586
891
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
587
892
  };
588
- readonly value: "payNoteDeliverer";
893
+ readonly value: "guarantorChannel";
589
894
  };
895
+ readonly description: "Apply final reserve/capture deltas for a previously authorized charge attempt.";
590
896
  readonly request: {
591
- readonly description: "True when the transaction is identified.";
592
897
  readonly type: {
593
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
898
+ readonly blueId: "6aPqmL9AQV31CCV576ZmEcUgysbdbQAfAig9J5VYeR6v";
594
899
  };
595
900
  };
596
901
  readonly type: {
597
902
  readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
598
903
  };
599
904
  };
600
- readonly updateTransactionIdentificationStatusImpl: {
905
+ readonly settleSpendImpl: {
601
906
  readonly operation: {
602
907
  readonly type: {
603
908
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
604
909
  };
605
- readonly value: "updateTransactionIdentificationStatus";
910
+ readonly value: "settleSpend";
606
911
  };
607
912
  readonly steps: {
608
913
  readonly items: readonly [{
@@ -610,9 +915,9 @@ declare const _default: {
610
915
  readonly type: {
611
916
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
612
917
  };
613
- 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";
918
+ readonly value: "const documentCanonical = document.canonical('/');\nconst requestCanonical = eventCanonical\n ? canon.at(eventCanonical, '/message/request')\n : undefined;\n\nconst settledAtNode = requestCanonical\n ? canon.at(requestCanonical, '/settledAt')\n : undefined;\nconst settledAtRaw = settledAtNode ? canon.unwrap(settledAtNode) : '';\nconst settledAt = typeof settledAtRaw === 'string' ? settledAtRaw : '';\nconst nowIso =\n settledAt || (typeof event.timestamp === 'string' ? event.timestamp : '');\n\nconst authorizationIdNode = requestCanonical\n ? canon.at(requestCanonical, '/authorizationId')\n : undefined;\nconst authorizationIdRaw = authorizationIdNode\n ? canon.unwrap(authorizationIdNode)\n : '';\nconst authorizationId =\n typeof authorizationIdRaw === 'string' ? authorizationIdRaw : '';\n\nconst settlementStatusNode = requestCanonical\n ? canon.at(requestCanonical, '/status')\n : undefined;\nconst settlementStatusRaw = settlementStatusNode\n ? canon.unwrap(settlementStatusNode)\n : '';\nconst settlementStatus =\n typeof settlementStatusRaw === 'string' ? settlementStatusRaw : '';\n\nconst reservedDeltaNode = requestCanonical\n ? canon.at(requestCanonical, '/reservedDeltaMinor')\n : undefined;\nconst reservedDeltaRaw = reservedDeltaNode ? canon.unwrap(reservedDeltaNode) : 0;\nconst reservedDeltaMinor =\n typeof reservedDeltaRaw === 'number' ? reservedDeltaRaw : 0;\n\nconst capturedDeltaNode = requestCanonical\n ? canon.at(requestCanonical, '/capturedDeltaMinor')\n : undefined;\nconst capturedDeltaRaw = capturedDeltaNode ? canon.unwrap(capturedDeltaNode) : 0;\nconst capturedDeltaMinor =\n typeof capturedDeltaRaw === 'number' ? capturedDeltaRaw : 0;\n\nconst amountLimitNode = canon.at(documentCanonical, '/amountLimit');\nconst amountLimitRaw = amountLimitNode ? canon.unwrap(amountLimitNode) : 0;\nconst amountLimit = typeof amountLimitRaw === 'number' ? amountLimitRaw : 0;\n\nconst amountReservedNode = canon.at(documentCanonical, '/amountReserved');\nconst amountReservedRaw = amountReservedNode\n ? canon.unwrap(amountReservedNode)\n : 0;\nconst amountReserved =\n typeof amountReservedRaw === 'number' ? amountReservedRaw : 0;\n\nconst amountCapturedNode = canon.at(documentCanonical, '/amountCaptured');\nconst amountCapturedRaw = amountCapturedNode\n ? canon.unwrap(amountCapturedNode)\n : 0;\nconst amountCaptured =\n typeof amountCapturedRaw === 'number' ? amountCapturedRaw : 0;\n\nconst chargeAttemptsNode = canon.at(documentCanonical, '/chargeAttempts');\nconst chargeAttemptsRaw = chargeAttemptsNode\n ? canon.unwrap(chargeAttemptsNode)\n : {};\nconst chargeAttempts =\n chargeAttemptsRaw &&\n typeof chargeAttemptsRaw === 'object' &&\n !Array.isArray(chargeAttemptsRaw)\n ? chargeAttemptsRaw\n : {};\nconst nextChargeAttempts = { ...chargeAttempts };\n\nconst existingAttemptRaw = authorizationId\n ? chargeAttempts[authorizationId]\n : undefined;\nconst existingAttempt =\n existingAttemptRaw &&\n typeof existingAttemptRaw === 'object' &&\n !Array.isArray(existingAttemptRaw)\n ? existingAttemptRaw\n : null;\n\nconst alreadySettled = !!existingAttempt && existingAttempt.settled === true;\nconst approved =\n !!existingAttempt &&\n typeof existingAttempt.authorizationStatus === 'string' &&\n existingAttempt.authorizationStatus === 'approved';\nconst authorizedAmount =\n existingAttempt && typeof existingAttempt.authorizedAmountMinor === 'number'\n ? existingAttempt.authorizedAmountMinor\n : 0;\n\nconst holdIdNode = requestCanonical\n ? canon.at(requestCanonical, '/holdId')\n : undefined;\nconst holdIdRaw = holdIdNode ? canon.unwrap(holdIdNode) : '';\nconst holdId = typeof holdIdRaw === 'string' ? holdIdRaw : '';\n\nconst transactionIdNode = requestCanonical\n ? canon.at(requestCanonical, '/transactionId')\n : undefined;\nconst transactionIdRaw = transactionIdNode\n ? canon.unwrap(transactionIdNode)\n : '';\nconst transactionId =\n typeof transactionIdRaw === 'string' ? transactionIdRaw : '';\n\nconst settlementIdNode = requestCanonical\n ? canon.at(requestCanonical, '/settlementId')\n : undefined;\nconst settlementIdRaw = settlementIdNode\n ? canon.unwrap(settlementIdNode)\n : '';\nconst settlementId =\n typeof settlementIdRaw === 'string' ? settlementIdRaw : '';\n\nconst requestReasonNode = requestCanonical\n ? canon.at(requestCanonical, '/reason')\n : undefined;\nconst requestReasonRaw = requestReasonNode\n ? canon.unwrap(requestReasonNode)\n : '';\nconst requestReason =\n typeof requestReasonRaw === 'string' ? requestReasonRaw : '';\n\nlet status = 'rejected';\nlet reason = '';\nlet nextAmountReserved = amountReserved;\nlet nextAmountCaptured = amountCaptured;\nlet nextAttempt = existingAttempt ? { ...existingAttempt } : null;\n\nif (!authorizationId) {\n reason = 'Missing authorizationId.';\n} else if (alreadySettled) {\n status = 'accepted';\n reason = 'Authorization already settled.';\n} else if (!approved) {\n reason = 'Authorization is not approved.';\n} else if (\n settlementStatus !== 'succeeded' &&\n settlementStatus !== 'failed'\n) {\n reason = 'Unsupported settlement status.';\n} else if (capturedDeltaMinor < 0) {\n reason = 'capturedDeltaMinor cannot be negative.';\n} else if (\n settlementStatus === 'failed' &&\n capturedDeltaMinor !== 0\n) {\n reason = 'capturedDeltaMinor must be 0 for failed settlement.';\n} else if (capturedDeltaMinor > authorizedAmount) {\n reason = 'capturedDeltaMinor exceeds authorized amount.';\n} else {\n const candidateAmountReserved = amountReserved + reservedDeltaMinor;\n const candidateAmountCaptured = amountCaptured + capturedDeltaMinor;\n const candidateUsed = candidateAmountReserved + candidateAmountCaptured;\n\n if (candidateAmountReserved < 0) {\n reason = 'Settlement would make amountReserved negative.';\n } else if (candidateAmountCaptured < 0) {\n reason = 'Settlement would make amountCaptured negative.';\n } else if (candidateUsed > amountLimit) {\n reason = 'Settlement would exceed amountLimit.';\n } else {\n status = 'accepted';\n nextAmountReserved = candidateAmountReserved;\n nextAmountCaptured = candidateAmountCaptured;\n nextAttempt = { ...existingAttempt };\n nextAttempt.settled = true;\n nextAttempt.lastSettlementRequestStatus = settlementStatus;\n nextAttempt.lastSettlementProcessingStatus = 'accepted';\n nextAttempt.settlementReason = requestReason;\n nextAttempt.settlementRespondedAt = nowIso;\n nextAttempt.reservedDeltaMinor = reservedDeltaMinor;\n nextAttempt.capturedDeltaMinor = capturedDeltaMinor;\n nextAttempt.holdId = holdId;\n nextAttempt.transactionId = transactionId;\n nextAttempt.lastSettlementId = settlementId;\n nextChargeAttempts[authorizationId] = nextAttempt;\n }\n}\n\nif (nextAttempt && status === 'rejected') {\n nextAttempt = { ...nextAttempt };\n nextAttempt.lastSettlementRequestStatus = settlementStatus;\n nextAttempt.lastSettlementProcessingStatus = 'rejected';\n nextAttempt.settlementReason = reason;\n nextAttempt.settlementRespondedAt = nowIso;\n nextAttempt.lastSettlementId = settlementId;\n nextChargeAttempts[authorizationId] = nextAttempt;\n}\n\nconst responseEvent = {\n type: 'PayNote/Payment Mandate Spend Settlement Responded',\n authorizationId,\n settlementId,\n status,\n amountReserved: nextAmountReserved,\n amountCaptured: nextAmountCaptured,\n respondedAt: nowIso\n};\n\nif (reason) {\n responseEvent.reason = reason;\n}\n\nreturn {\n nextChargeAttempts: nextChargeAttempts,\n nextAmountReserved: nextAmountReserved,\n nextAmountCaptured: nextAmountCaptured,\n events: [responseEvent]\n};\n";
614
919
  };
615
- readonly name: "Classify Identification Result";
920
+ readonly name: "Validate and Apply Settlement";
616
921
  readonly type: {
617
922
  readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
618
923
  };
@@ -629,301 +934,127 @@ declare const _default: {
629
934
  readonly type: {
630
935
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
631
936
  };
632
- readonly value: "/transactionIdentificationStatus";
633
- };
634
- readonly val: {
635
- readonly type: {
636
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
637
- };
638
- readonly value: "${steps['Classify Identification Result'].identificationStatus}";
639
- };
640
- }, {
641
- readonly op: {
642
- readonly type: {
643
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
644
- };
645
- readonly value: "replace";
646
- };
647
- readonly path: {
648
- readonly type: {
649
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
650
- };
651
- readonly value: "/deliveryStatus";
652
- };
653
- readonly val: {
654
- readonly type: {
655
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
656
- };
657
- readonly value: "${steps['Classify Identification Result'].deliveryStatus}";
658
- };
659
- }, {
660
- readonly op: {
661
- readonly type: {
662
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
663
- };
664
- readonly value: "replace";
665
- };
666
- readonly path: {
667
- readonly type: {
668
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
669
- };
670
- readonly value: "/deliveryError";
937
+ readonly value: "/chargeAttempts";
671
938
  };
672
939
  readonly val: {
673
940
  readonly type: {
674
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
675
- };
676
- readonly value: "${steps['Classify Identification Result'].deliveryError}";
677
- };
678
- }];
679
- };
680
- readonly name: "Apply Identification Update";
681
- readonly type: {
682
- readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
683
- };
684
- }];
685
- };
686
- readonly type: {
687
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
688
- };
689
- };
690
- };
691
- readonly deliveryError: {
692
- readonly description: "Error message when delivery fails.";
693
- readonly type: {
694
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
695
- };
696
- };
697
- readonly deliveryStatus: {
698
- readonly description: "High-level delivery status.";
699
- readonly type: {
700
- readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
701
- };
702
- };
703
- readonly description: "Tracks delivery of a PayNote through a deliverer (e.g., bank) to a receiver (payer - client).";
704
- readonly name: "PayNote Delivery";
705
- readonly paymentMandateBootstrapRequest: {
706
- readonly description: "Optional Payment Mandate bootstrap request details for Delivery flows that require mandate attachment before proposal exposure.";
707
- readonly document: {
708
- readonly type: {
709
- readonly blueId: "Cb8EjAE531e9RVa9RgFJzKmN9h6z8Xp3tAYaBFgqfHoP";
710
- };
711
- };
712
- readonly type: {
713
- readonly blueId: "7JqBn4KcmZbHBBiQf3CAfpHBNaTKS1qhtkATsF7f6Sxg";
714
- };
715
- };
716
- readonly payNoteBootstrapRequest: {
717
- readonly description: "PayNote bootstrap request details.";
718
- readonly document: {
719
- readonly type: {
720
- readonly blueId: "Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F";
721
- };
722
- };
723
- readonly type: {
724
- readonly blueId: "7JqBn4KcmZbHBBiQf3CAfpHBNaTKS1qhtkATsF7f6Sxg";
725
- };
726
- };
727
- readonly transactionIdentificationStatus: {
728
- readonly description: "Identification state (pending, identified, failed).";
729
- readonly type: {
730
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
731
- };
732
- };
733
- };
734
- readonly '2wqxtvdRHf7Z3qNNKnycnu3SBVqw4BenK8et9xeT7n86': {
735
- readonly cardTransactionDetails: {
736
- readonly type: {
737
- readonly blueId: "GZLRe2fEsvs1v7dVcg9kEnCrWEdM3cUZYhFH4XqN5jQT";
738
- };
739
- };
740
- readonly description: "PayNote tied to a specific card transaction via ISO scheme identifiers.";
741
- readonly name: "Card Transaction PayNote";
742
- readonly type: {
743
- readonly blueId: "Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F";
744
- };
745
- };
746
- readonly '3b3ePGPg5GzS6KYfqoDfgjWbjccXVnGzytbpFS53x4HM': {
747
- readonly description: "The Guarantor rejects the proposed settlement amount.";
748
- readonly name: "Settlement Amount Rejected";
749
- readonly reason: {
750
- readonly type: {
751
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
752
- };
753
- };
754
- readonly type: {
755
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
756
- };
757
- };
758
- readonly '3TW3tRAQdYoMTFeeqmnWLR9JFibTVaJuiRJfJ3ggeVTJ': {
759
- readonly capturedDeltaMinor: {
760
- readonly description: "Net change to amountCaptured in minor units. Positive for successful capture.\n";
761
- readonly type: {
762
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
763
- };
764
- };
765
- readonly chargeAttemptId: {
766
- readonly description: "Correlation key copied from Payment Mandate Spend Authorization Requested.";
767
- readonly type: {
768
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
769
- };
770
- };
771
- readonly description: "Settlement update sent by bank to Payment Mandate after charge execution, used to apply deterministic reserved/captured deltas in mandate state. For approved authorizations, mandate may already reserve capacity at authorize step. Deltas should express net post-execution adjustment from current mandate state.\n";
772
- readonly holdId: {
773
- readonly description: "Optional hold id produced by banking execution.";
774
- readonly type: {
775
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
776
- };
777
- };
778
- readonly name: "Payment Mandate Spend Settled";
779
- readonly reason: {
780
- readonly description: "Optional failure reason.";
781
- readonly type: {
782
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
783
- };
784
- };
785
- readonly reservedDeltaMinor: {
786
- readonly description: "Net change to amountReserved in minor units. Positive for new reserve, negative for release/capture settlement. For authorize-only success this is typically 0 when authorization already reserved capacity.\n";
787
- readonly type: {
788
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
789
- };
790
- };
791
- readonly settledAt: {
792
- readonly description: "Timestamp when settlement result was emitted.";
793
- readonly type: {
794
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
795
- };
796
- };
797
- readonly status: {
798
- readonly description: "Settlement status (\"succeeded\" | \"failed\").";
799
- readonly type: {
800
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
801
- };
802
- };
803
- readonly transactionId: {
804
- readonly description: "Optional transaction id produced by banking execution.";
805
- readonly type: {
806
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
807
- };
808
- };
809
- readonly type: {
810
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
811
- };
812
- };
813
- readonly '3XstDYFkqsUP5PdM6Z6mwspPzgdQMFtUpNyMsKPK2o6N': {
814
- readonly amount: {
815
- readonly type: {
816
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
817
- };
818
- };
819
- readonly description: "Equivalent of Reserve Funds Requested + Capture Funds Requested";
820
- readonly name: "Reserve Funds and Capture Immediately Requested";
821
- readonly type: {
822
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
823
- };
824
- };
825
- readonly '3Y3TYmSfZMmPYKmF5i3eR8YcVPNP5Sic2bZN8xRnvMWm': {
826
- readonly amount: {
827
- readonly type: {
828
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
829
- };
830
- };
831
- readonly description: "A participant requests the Guarantor to reserve (hold) a specific amount.";
832
- readonly name: "Reserve Funds Requested";
833
- readonly type: {
834
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
835
- };
836
- };
837
- readonly '49TYrHpnk2gepJiGduJP3afrnT2DJ6kDxqF4Y9M4C4t7': {
838
- readonly description: "Payment Mandate was successfully attached to the PayNote context.";
839
- readonly name: "Payment Mandate Attached";
840
- readonly paymentMandateDocumentId: {
841
- readonly description: "Document id of the attached Payment Mandate.";
842
- readonly type: {
843
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
941
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
942
+ };
943
+ readonly value: "${steps['Validate and Apply Settlement'].nextChargeAttempts}";
944
+ };
945
+ }, {
946
+ readonly op: {
947
+ readonly type: {
948
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
949
+ };
950
+ readonly value: "replace";
951
+ };
952
+ readonly path: {
953
+ readonly type: {
954
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
955
+ };
956
+ readonly value: "/amountReserved";
957
+ };
958
+ readonly val: {
959
+ readonly type: {
960
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
961
+ };
962
+ readonly value: "${steps['Validate and Apply Settlement'].nextAmountReserved}";
963
+ };
964
+ }, {
965
+ readonly op: {
966
+ readonly type: {
967
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
968
+ };
969
+ readonly value: "replace";
970
+ };
971
+ readonly path: {
972
+ readonly type: {
973
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
974
+ };
975
+ readonly value: "/amountCaptured";
976
+ };
977
+ readonly val: {
978
+ readonly type: {
979
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
980
+ };
981
+ readonly value: "${steps['Validate and Apply Settlement'].nextAmountCaptured}";
982
+ };
983
+ }];
984
+ };
985
+ readonly name: "Persist Settlement";
986
+ readonly type: {
987
+ readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
988
+ };
989
+ }];
990
+ };
991
+ readonly type: {
992
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
993
+ };
844
994
  };
845
995
  };
846
- readonly type: {
847
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
848
- };
849
- };
850
- readonly '4pVAdZo93FHRRkAkshqCZW4pUvvV1ccczJZ2Lu4jkD1D': {
851
- readonly description: "The Guarantor confirms the final settlement amount, which may differ from the initial total.";
852
- readonly finalAmount: {
996
+ readonly currency: {
997
+ readonly description: "Currency code used for amountLimit validation.";
853
998
  readonly type: {
854
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
999
+ readonly blueId: "CBnZ7aaNetj9KEqXpUWj5jvjKbmviLivP98T2EiyxiYc";
855
1000
  };
856
1001
  };
857
- readonly name: "Settlement Amount Specified";
858
- readonly type: {
859
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
860
- };
861
- };
862
- readonly '4STBHLJjxjCZVgeW2ScFfmsx8Vm16FenEbaNMyL8ZJUT': {
863
- readonly amountMinor: {
864
- readonly description: "Requested amount in minor currency units.";
1002
+ readonly description: "Payment mandate authorizing a grantee to execute payment requests on behalf of a granter, under explicit limits, with deterministic spend tracking and optional linked PayNote bootstrap rules.\n";
1003
+ readonly expiresAt: {
1004
+ readonly description: "Optional mandate expiry timestamp.";
865
1005
  readonly type: {
866
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1006
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
867
1007
  };
868
1008
  };
869
- readonly chargeAttemptId: {
870
- readonly description: "Correlation and idempotency key for a single charge attempt. Must be stable across retries of the same attempt.\n";
1009
+ readonly granteeId: {
1010
+ readonly description: "Identifier interpreted according to granteeType.";
871
1011
  readonly type: {
872
1012
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
873
1013
  };
874
1014
  };
875
- readonly chargeMode: {
876
- readonly description: "Requested charge execution mode (\"authorize_only\" | \"authorize_and_capture\").";
1015
+ readonly granteeType: {
1016
+ readonly description: "Party allowed to invoke this mandate:\n- documentId\n- merchantId\n- customerId\n";
877
1017
  readonly type: {
878
1018
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
879
1019
  };
880
1020
  };
881
- readonly counterpartyId: {
882
- readonly description: "Counterparty identifier interpreted according to counterpartyType.";
1021
+ readonly granterId: {
1022
+ readonly description: "Identifier of the granting party:\n- merchantId when granterType is merchant\n- customerId (bank user id) when granterType is customer\n";
883
1023
  readonly type: {
884
1024
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
885
1025
  };
886
1026
  };
887
- readonly counterpartyType: {
888
- readonly description: "Counterparty identifier type (\"merchantId\" | \"customerId\" | \"accountNumber\").";
1027
+ readonly granterType: {
1028
+ readonly description: "Party granting authority to use funds:\n- merchant\n- customer\n";
889
1029
  readonly type: {
890
1030
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
891
1031
  };
892
1032
  };
893
- readonly currency: {
894
- readonly description: "Currency used to validate amountMinor against mandate limits.";
895
- readonly type: {
896
- readonly blueId: "CBnZ7aaNetj9KEqXpUWj5jvjKbmviLivP98T2EiyxiYc";
897
- };
898
- };
899
- readonly description: "Bank asks a Payment Mandate document to authorize a single charge attempt before reserve/capture execution.\n";
900
- readonly name: "Payment Mandate Spend Authorization Requested";
901
- readonly requestedAt: {
902
- readonly description: "Timestamp when the authorization request was created.";
1033
+ readonly name: "Payment Mandate";
1034
+ readonly revokedAt: {
1035
+ readonly description: "Optional revocation timestamp. When set, mandate is inactive.";
903
1036
  readonly type: {
904
1037
  readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
905
1038
  };
906
1039
  };
907
- readonly requestingDocumentId: {
908
- readonly description: "Document id that requested the charge.";
1040
+ readonly sourceAccount: {
1041
+ readonly description: "Funds source to use when this mandate executes: - root (uses root account context; for merchant this maps to active credit line) - specific account number\n";
909
1042
  readonly type: {
910
1043
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
911
1044
  };
912
1045
  };
913
- readonly requestingSessionId: {
914
- readonly description: "Session id that requested the charge.";
1046
+ };
1047
+ readonly BQioEtRPYv2fWVryRsSYQc1Vnp9eyX3CYDrNY1hEy1Ye: {
1048
+ readonly description: "Decision response for starting a linked PayNote after successful charge.";
1049
+ readonly name: "Linked PayNote Start Responded";
1050
+ readonly reason: {
1051
+ readonly description: "Optional rejection reason.";
915
1052
  readonly type: {
916
1053
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
917
1054
  };
918
1055
  };
919
- readonly type: {
920
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
921
- };
922
- };
923
- readonly '4xS8bmZQBGPENmaPfsrtYguYfq4hTtaZAXrefdyFNkKq': {
924
- readonly description: "The Guarantor could not reserve the requested funds.";
925
- readonly name: "Reservation Declined";
926
- readonly reason: {
1056
+ readonly status: {
1057
+ readonly description: "Decision status (\"accepted\" | \"rejected\").";
927
1058
  readonly type: {
928
1059
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
929
1060
  };
@@ -932,32 +1063,20 @@ declare const _default: {
932
1063
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
933
1064
  };
934
1065
  };
935
- readonly '531sxtH5rD9ter3EzwBTcn9GMdA7RAYFwmSQRzxCru8z': {
936
- readonly cardTransactionDetails: {
1066
+ readonly BVLMcTzag3D2rvg8LoKQ3Htgoqsh77EAoiTLTxH5aVBE: {
1067
+ readonly description: "The Payer requests to assign or change the Payee.";
1068
+ readonly name: "Payee Assignment Requested";
1069
+ readonly payeeEmail: {
937
1070
  readonly type: {
938
- readonly blueId: "GZLRe2fEsvs1v7dVcg9kEnCrWEdM3cUZYhFH4XqN5jQT";
1071
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
939
1072
  };
940
1073
  };
941
- readonly description: "Request to the card issuer to process any following card transaction capture requests.";
942
- readonly name: "Card Transaction Capture Unlock Requested";
943
- readonly type: {
944
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
945
- };
946
- };
947
- readonly '53Dir2sGy1NHuCQXF6suGoDMxYacNhbcy23AKD89SghD': {
948
- readonly childPayNote: {
949
- readonly description: "Complete PayNote";
950
- };
951
- readonly description: "The Payer requests to issue a new PayNote.\nThe requested PayNote must have amount/total specified and in the same currency as this PayNote.\nIf approved by Guarator, amount/total of this PayNote will be deducted by this value.\nIf child PayNote is later cancelled, or captured value is smaller than the total, the funds will be added back to amount/total.\n";
952
- readonly name: "Issue Child PayNote Requested";
953
1074
  readonly type: {
954
1075
  readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
955
1076
  };
956
1077
  };
957
- readonly '649PKUqAakwi2JwDwHyypfWb4VmrrBAeEqzSU6FDWfgm': {
958
- readonly description: "Request to start monitoring card events for a target merchant.";
1078
+ readonly BYdTyyLphWQNKo1GBcnE1jQuaPyXexNnfzkXhMiRqmUr: {
959
1079
  readonly events: {
960
- readonly description: "Requested card event categories.\nFor now:\n- transaction\n";
961
1080
  readonly itemType: {
962
1081
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
963
1082
  };
@@ -965,76 +1084,43 @@ declare const _default: {
965
1084
  readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
966
1085
  };
967
1086
  };
968
- readonly name: "Start Card Transaction Monitoring Requested";
969
- readonly requestedAt: {
970
- readonly description: "Timestamp (microseconds since epoch).";
1087
+ readonly name: "Card Transaction Monitoring Stopped";
1088
+ readonly reason: {
971
1089
  readonly type: {
972
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1090
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
973
1091
  };
974
1092
  };
975
- readonly targetMerchantId: {
1093
+ readonly stoppedAt: {
976
1094
  readonly type: {
977
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1095
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
978
1096
  };
979
1097
  };
980
- readonly type: {
981
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
982
- };
983
- };
984
- readonly '653sCbbRH3RiKhGjmVxh6wFVs4rn54wJRKDXRMKBZtjA': {
985
- readonly description: "The Guarantor failed to release the reserved funds.";
986
- readonly name: "Reservation Release Declined";
987
- readonly reason: {
1098
+ readonly targetMerchantId: {
988
1099
  readonly type: {
989
1100
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
990
1101
  };
991
1102
  };
992
- readonly type: {
993
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
994
- };
995
- };
996
- readonly '6gQWKeJHZEbBo13Vvyf2nsdg7TA9kLSYdzMaJgySPG7V': {
997
- readonly description: "The deliverer identified the card transaction.";
998
- readonly name: "Transaction Identified";
999
1103
  readonly type: {
1000
1104
  readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1001
1105
  };
1002
1106
  };
1003
- readonly '6P1iVKFwG9jgWV7Ye3Co6pWByuu5QpR4tpqu9oVVvawY': {
1004
- readonly amountCaptured: {
1005
- readonly description: "Current mandate amountCaptured after applying (or rejecting) settlement.";
1006
- readonly type: {
1007
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1008
- };
1009
- };
1010
- readonly amountReserved: {
1011
- readonly description: "Current mandate amountReserved after applying (or rejecting) settlement.";
1012
- readonly type: {
1013
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1014
- };
1015
- };
1016
- readonly chargeAttemptId: {
1017
- readonly description: "Correlation key copied from Payment Mandate Spend Settled.";
1107
+ readonly CFoaaYn29o7Mg7VaN7bkM87KrfE8fvnVYWkGXd6YnQ7S: {
1108
+ readonly description: "Decision response for a card charge request.";
1109
+ readonly name: "Card Charge Responded";
1110
+ readonly paymentMandateDocumentId: {
1111
+ readonly description: "Payment Mandate document id used for this charge decision when available.";
1018
1112
  readonly type: {
1019
1113
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1020
1114
  };
1021
1115
  };
1022
- readonly description: "Validation result emitted by Payment Mandate after processing a settlement update.";
1023
- readonly name: "Payment Mandate Spend Settlement Responded";
1024
1116
  readonly reason: {
1025
- readonly description: "Optional rejection or informational reason.";
1117
+ readonly description: "Optional explanation for rejected or pending decisions.";
1026
1118
  readonly type: {
1027
1119
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1028
1120
  };
1029
1121
  };
1030
- readonly respondedAt: {
1031
- readonly description: "Timestamp when mandate emitted settlement processing result.";
1032
- readonly type: {
1033
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1034
- };
1035
- };
1036
1122
  readonly status: {
1037
- readonly description: "Settlement processing status (\"accepted\" | \"rejected\").";
1123
+ readonly description: "Request decision status (\"accepted\" | \"rejected\" | \"pending\").";
1038
1124
  readonly type: {
1039
1125
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1040
1126
  };
@@ -1043,80 +1129,59 @@ declare const _default: {
1043
1129
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1044
1130
  };
1045
1131
  };
1046
- readonly '6vnMMWuq6qJ1hxLqL1P2ckCqC9JtJF3QNW8s7rMTgZ4Q': {
1047
- readonly description: "Confirmation that linked PayNote startup was requested successfully.";
1048
- readonly name: "Linked PayNote Started";
1049
- readonly payNoteDocumentId: {
1050
- readonly description: "Document id of the bootstrapped linked PayNote when available.";
1051
- readonly type: {
1052
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1053
- };
1054
- };
1055
- readonly payNoteSessionId: {
1056
- readonly description: "Session id of the bootstrapped linked PayNote document.";
1132
+ readonly CFqiZigjKE5JatANkaAkWw2NbgvEmb2BVEVPf3ckUrWg: {
1133
+ readonly amountReleased: {
1057
1134
  readonly type: {
1058
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1135
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1059
1136
  };
1060
1137
  };
1138
+ readonly description: "The Guarantor confirms that previously reserved funds have been released.";
1139
+ readonly name: "Reservation Released";
1061
1140
  readonly type: {
1062
1141
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1063
1142
  };
1064
1143
  };
1065
- readonly '6VQC585V4SdpyA5hCeQQGM178bbeW3D2WcKt8ZCWK9s3': {
1066
- readonly acceptedAt: {
1067
- readonly description: "Timestamp when the client accepted.";
1068
- readonly type: {
1069
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1070
- };
1071
- };
1072
- readonly description: "The client accepted the PayNote.";
1073
- readonly name: "PayNote Accepted By Client";
1074
- readonly type: {
1075
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1076
- };
1077
- };
1078
- readonly '8dggwonfALwrTSRhg8g8ncXFXierke2mogtEZQXHab64': {
1079
- readonly description: "Linked PayNote startup failed after charge processing.";
1080
- readonly name: "Linked PayNote Start Failed";
1081
- readonly reason: {
1082
- readonly description: "Failure reason.";
1144
+ readonly CoGAMipt8rhmnkMgKsyZ5aendkHvFc4muC6pVgrUT1rJ: {
1145
+ readonly amountCaptured: {
1146
+ readonly description: "Current mandate amountCaptured after applying (or rejecting) settlement.";
1083
1147
  readonly type: {
1084
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1148
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1085
1149
  };
1086
1150
  };
1087
- readonly type: {
1088
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1089
- };
1090
- };
1091
- readonly '8qdhLemMQ5MFtu9Aebpd9gKfKuLuRBEnT6yTTzr9F78E': {
1092
- readonly chargeAttemptId: {
1093
- readonly description: "Correlation key copied from Payment Mandate Spend Authorization Requested.";
1151
+ readonly amountReserved: {
1152
+ readonly description: "Current mandate amountReserved after applying (or rejecting) settlement.";
1094
1153
  readonly type: {
1095
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1154
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1096
1155
  };
1097
1156
  };
1098
- readonly description: "Decision from Payment Mandate for a spend authorization request.";
1099
- readonly name: "Payment Mandate Spend Authorization Responded";
1100
- readonly reason: {
1101
- readonly description: "Optional rejection reason.";
1157
+ readonly authorizationId: {
1158
+ readonly description: "Correlation key copied from Payment Mandate Spend Settled.";
1102
1159
  readonly type: {
1103
1160
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1104
1161
  };
1105
1162
  };
1106
- readonly remainingAmountMinor: {
1107
- readonly description: "Optional remaining mandate capacity in minor currency units after decision.";
1163
+ readonly description: "Validation result emitted by Payment Mandate after processing a settlement update.";
1164
+ readonly name: "Payment Mandate Spend Settlement Responded";
1165
+ readonly reason: {
1166
+ readonly description: "Optional rejection or informational reason.";
1108
1167
  readonly type: {
1109
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1168
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1110
1169
  };
1111
1170
  };
1112
1171
  readonly respondedAt: {
1113
- readonly description: "Timestamp when the decision was emitted.";
1172
+ readonly description: "Timestamp when mandate emitted settlement processing result.";
1114
1173
  readonly type: {
1115
1174
  readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1116
1175
  };
1117
1176
  };
1177
+ readonly settlementId: {
1178
+ readonly description: "Optional settlement correlation id copied from settlement request.";
1179
+ readonly type: {
1180
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1181
+ };
1182
+ };
1118
1183
  readonly status: {
1119
- readonly description: "Decision status (\"approved\" | \"rejected\").";
1184
+ readonly description: "Settlement processing status (\"accepted\" | \"rejected\").";
1120
1185
  readonly type: {
1121
1186
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1122
1187
  };
@@ -1125,272 +1190,339 @@ declare const _default: {
1125
1190
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1126
1191
  };
1127
1192
  };
1128
- readonly '96buyUXwhkak8xKoCR5nAW9tMuwzkevJFdELVvwKxR6Y': {
1129
- readonly description: "The Guarantor confirms PayNote cancellation requested by Payer.";
1130
- readonly name: "PayNote Cancelled";
1131
- readonly type: {
1132
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1193
+ readonly Da7ZSyWgvMyTfwDVhAgCkGf3H8dwHhouHsHgNzg3DZ2j: {
1194
+ readonly decision: {
1195
+ readonly description: "Attempted decision (accepted or rejected).";
1196
+ readonly type: {
1197
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1198
+ };
1133
1199
  };
1134
- };
1135
- readonly '9dJ3W19EJ8MqtTJR8oidX8eRrkeB8xNQyqeTZeqBHZjo': {
1136
- readonly description: "Base PayNote where payer is merchant and payee is customer. Bank sets/validates payer channel bindings.";
1137
- readonly name: "Merchant To Customer PayNote";
1138
- readonly type: {
1139
- readonly blueId: "Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F";
1200
+ readonly decisionAt: {
1201
+ readonly description: "Timestamp provided with the decision, if any.";
1202
+ readonly type: {
1203
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1204
+ };
1140
1205
  };
1141
- };
1142
- readonly AdKfkwRfzRUxUKSzhRfYANsaUBNnz4u6JFWR66qhzyZe: {
1143
- readonly description: "The Guarantor denies the creation of the PayNote.";
1144
- readonly name: "PayNote Rejected";
1206
+ readonly description: "The client's decision was discarded because it could not be applied in the current delivery state.";
1207
+ readonly name: "PayNote Client Decision Discarded";
1145
1208
  readonly reason: {
1209
+ readonly description: "Validation reason for discarding the decision.";
1146
1210
  readonly type: {
1147
1211
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1148
1212
  };
1149
1213
  };
1150
1214
  readonly type: {
1151
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1215
+ readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1152
1216
  };
1153
1217
  };
1154
- readonly AopfdGqnwcxsw4mJzXbmjDMnASRtkce9BZB1n6QSRNXX: {
1155
- readonly amountReserved: {
1218
+ readonly DFKVw43E36kimqj64FyiiVxE9yNuB22SETFx5M4WAi9m: {
1219
+ readonly description: "The Guarantor declined the request to issue a Child PayNote.";
1220
+ readonly name: "Child PayNote Issuance Declined";
1221
+ readonly reason: {
1156
1222
  readonly type: {
1157
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1223
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1158
1224
  };
1159
1225
  };
1160
- readonly description: "The Guarantor confirms that funds have been successfully reserved (held).";
1161
- readonly name: "Funds Reserved";
1162
1226
  readonly type: {
1163
1227
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1164
1228
  };
1165
1229
  };
1166
- readonly Aq4dNFtLHLWYfCS7aqAgWwGi48MgbQmp2EZJtDBN7FSg: {
1230
+ readonly Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F: {
1167
1231
  readonly amount: {
1168
- readonly description: "Charge amount in minor currency units.";
1169
- readonly type: {
1170
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1232
+ readonly captured: {
1233
+ readonly description: "The amount that has been successfully captured.";
1234
+ readonly type: {
1235
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1236
+ };
1237
+ };
1238
+ readonly description: "The amounts associated with this PayNote.";
1239
+ readonly reserved: {
1240
+ readonly description: "The amount currently reserved by the Guarantor.";
1241
+ readonly type: {
1242
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1243
+ };
1244
+ };
1245
+ readonly total: {
1246
+ readonly description: "The maximum total value of this PayNote.";
1247
+ readonly type: {
1248
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1249
+ };
1171
1250
  };
1172
1251
  };
1173
- readonly description: "Request to create a new card charge linked to the root card transaction context.";
1174
- readonly name: "Linked Card Charge Requested";
1175
- readonly paymentMandateDocumentId: {
1176
- readonly description: "Optional Payment Mandate document id used to authorize charge execution.";
1252
+ readonly contracts: {
1253
+ readonly guarantorChannel: {
1254
+ readonly type: {
1255
+ readonly blueId: "EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH";
1256
+ };
1257
+ };
1258
+ readonly guarantorUpdate: {
1259
+ readonly channel: {
1260
+ readonly type: {
1261
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1262
+ };
1263
+ readonly value: "guarantorChannel";
1264
+ };
1265
+ readonly description: "Standard operation used by the guarantor (bank) to deliver events into the document.";
1266
+ readonly type: {
1267
+ readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
1268
+ };
1269
+ };
1270
+ readonly guarantorUpdateImpl: {
1271
+ readonly description: "Re-emits provided events (MyOS-admin style).";
1272
+ readonly operation: {
1273
+ readonly type: {
1274
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1275
+ };
1276
+ readonly value: "guarantorUpdate";
1277
+ };
1278
+ readonly steps: {
1279
+ readonly items: readonly [{
1280
+ readonly code: {
1281
+ readonly type: {
1282
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1283
+ };
1284
+ readonly value: "return { events: event.message.request };\n";
1285
+ };
1286
+ readonly name: "EmitGuarantorEvents";
1287
+ readonly type: {
1288
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1289
+ };
1290
+ }];
1291
+ };
1292
+ readonly type: {
1293
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
1294
+ };
1295
+ };
1296
+ readonly payeeChannel: {
1297
+ readonly type: {
1298
+ readonly blueId: "EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH";
1299
+ };
1300
+ };
1301
+ readonly payerChannel: {
1302
+ readonly type: {
1303
+ readonly blueId: "EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH";
1304
+ };
1305
+ };
1306
+ };
1307
+ readonly currency: {
1308
+ readonly description: "The ISO 4217 currency code for the transaction.";
1177
1309
  readonly type: {
1178
1310
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1179
1311
  };
1180
1312
  };
1181
- readonly paynote: {
1182
- readonly description: "Optional PayNote document to bootstrap for the created charge context.";
1183
- };
1184
- readonly type: {
1185
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1186
- };
1187
- };
1188
- readonly B2iherBskP5f4x7x31GahNmsJtyzian6ZN92b8kE1E5q: {
1189
- readonly description: "Notification that card transaction monitoring was rejected.";
1190
- readonly events: {
1191
- readonly itemType: {
1192
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1313
+ readonly description: "A verifiable instrument for managing a commitment of value between a Payer, Payee, and Guarantor.";
1314
+ readonly name: "PayNote";
1315
+ readonly payNoteInitialStateDescription: {
1316
+ readonly details: {
1317
+ readonly description: "Complete text description of the PayNote, with everything significant explained.\nMarkdown format suggested.\n";
1318
+ readonly type: {
1319
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1320
+ };
1193
1321
  };
1194
- readonly type: {
1195
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1322
+ readonly summary: {
1323
+ readonly description: "General information about the PayNote. It should capture the most important\ninformation, most critical or non-standard elements should be covered here.\nMarkdown format suggested.\n";
1324
+ readonly type: {
1325
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1326
+ };
1196
1327
  };
1197
1328
  };
1198
- readonly name: "Card Transaction Monitoring Request Rejected";
1199
- readonly reason: {
1200
- readonly description: "Reason monitoring was rejected.";
1329
+ readonly status: {
1330
+ readonly description: "The current state of the PayNote (e.g., Pending, Approved, Reserved, Captured, Released, Rejected).";
1201
1331
  readonly type: {
1202
1332
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1203
1333
  };
1204
1334
  };
1205
- readonly rejectedAt: {
1206
- readonly description: "Timestamp (microseconds since epoch) when monitoring was rejected.";
1335
+ readonly transactionStatus: {
1336
+ readonly description: "Optional status snapshot. If present in proposal, bank validates it; if missing bank sets it at bootstrap.";
1207
1337
  readonly type: {
1208
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1338
+ readonly blueId: "FutWoAEUEb3wkmEm4YP4JGFPtu3B3PQ3m71BmnRFFnsQ";
1209
1339
  };
1210
1340
  };
1211
- readonly targetMerchantId: {
1212
- readonly description: "External merchant identifier requested for monitoring.";
1341
+ };
1342
+ readonly DhxGBjA6Gow9E6ZKZ49SdziihHZ4PeXxFNatSqmesKZu: {
1343
+ readonly cardTransactionDetails: {
1213
1344
  readonly type: {
1214
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1345
+ readonly blueId: "GZLRe2fEsvs1v7dVcg9kEnCrWEdM3cUZYhFH4XqN5jQT";
1215
1346
  };
1216
1347
  };
1348
+ readonly description: "Request to the card issuer to deny any following card transaction capture requests.";
1349
+ readonly name: "Card Transaction Capture Lock Requested";
1350
+ readonly type: {
1351
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1352
+ };
1353
+ };
1354
+ readonly DiowRXdCBw83YCn5Pwcg2YABaVQZ1p4Wk1L9DJfajqp5: {
1355
+ readonly description: "Card transaction capture was unlocked. Any following card transaction capture requests will be processed.";
1356
+ readonly name: "Card Transaction Capture Unlocked";
1217
1357
  readonly type: {
1218
1358
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1219
1359
  };
1360
+ readonly unlockedAt: {
1361
+ readonly description: "Timestamp of when the card transaction capture was unlocked.";
1362
+ readonly type: {
1363
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1364
+ };
1365
+ };
1220
1366
  };
1221
- readonly BJvjorbC5ed5KTV7SxoV3CvrJXjrFPcFxY9QT4jHBbXi: {
1222
- readonly amountCaptured: {
1367
+ readonly DqiwzsNLbHCh6PaDF6wy6ZqBSF5JV5nAQSKFKTPRTbGB: {
1368
+ readonly childPayNote: {
1369
+ readonly description: "Complete PayNote";
1370
+ };
1371
+ readonly description: "The Payer requests to cancel PayNote that is Approved but not yet\nReserved or Captured.\n";
1372
+ readonly name: "PayNote Cancellation Requested";
1373
+ readonly type: {
1374
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1375
+ };
1376
+ };
1377
+ readonly DvxKVEFsDmgA1hcBDfh7t42NgTRLaxXjCrB48DufP3i3: {
1378
+ readonly amount: {
1223
1379
  readonly type: {
1224
1380
  readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1225
1381
  };
1226
1382
  };
1227
- readonly description: "The Guarantor confirms that funds have been successfully transferred to the Payee.";
1228
- readonly name: "Funds Captured";
1383
+ readonly description: "A participant (usually the Payee) requests the final transfer of funds.";
1384
+ readonly name: "Capture Funds Requested";
1229
1385
  readonly type: {
1230
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1386
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1231
1387
  };
1232
1388
  };
1233
- readonly BQioEtRPYv2fWVryRsSYQc1Vnp9eyX3CYDrNY1hEy1Ye: {
1234
- readonly description: "Decision response for starting a linked PayNote after successful charge.";
1235
- readonly name: "Linked PayNote Start Responded";
1389
+ readonly EGRRGwNnReqfQQhKnML28DWz9MvvC3B5JgbBrCUxrZ3G: {
1390
+ readonly description: "The client rejected the PayNote.";
1391
+ readonly name: "PayNote Rejected By Client";
1236
1392
  readonly reason: {
1237
1393
  readonly description: "Optional rejection reason.";
1238
1394
  readonly type: {
1239
1395
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1240
1396
  };
1241
1397
  };
1242
- readonly status: {
1243
- readonly description: "Decision status (\"accepted\" | \"rejected\").";
1244
- readonly type: {
1245
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1246
- };
1247
- };
1248
- readonly type: {
1249
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1250
- };
1251
- };
1252
- readonly BVLMcTzag3D2rvg8LoKQ3Htgoqsh77EAoiTLTxH5aVBE: {
1253
- readonly description: "The Payer requests to assign or change the Payee.";
1254
- readonly name: "Payee Assignment Requested";
1255
- readonly payeeEmail: {
1398
+ readonly rejectedAt: {
1399
+ readonly description: "Timestamp when the client rejected.";
1256
1400
  readonly type: {
1257
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1401
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1258
1402
  };
1259
1403
  };
1260
1404
  readonly type: {
1261
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1405
+ readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1262
1406
  };
1263
1407
  };
1264
- readonly BYdTyyLphWQNKo1GBcnE1jQuaPyXexNnfzkXhMiRqmUr: {
1265
- readonly events: {
1266
- readonly itemType: {
1267
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1268
- };
1408
+ readonly EXoQHkYEDQdhGd3AeXBryzxmCTXsvTjXTfZmjwuqqbHt: {
1409
+ readonly description: "Card transaction capture was locked. Any following card transaction capture requests will be rejected.";
1410
+ readonly lockedAt: {
1411
+ readonly description: "Timestamp of when the card transaction capture was locked.";
1269
1412
  readonly type: {
1270
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1413
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1271
1414
  };
1272
1415
  };
1273
- readonly name: "Card Transaction Monitoring Stopped";
1274
- readonly reason: {
1275
- readonly type: {
1276
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1277
- };
1416
+ readonly name: "Card Transaction Capture Locked";
1417
+ readonly type: {
1418
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1278
1419
  };
1279
- readonly stoppedAt: {
1420
+ };
1421
+ readonly F4gfZeY8P8dkfwNSbEfq7xQ8axiHdfqgzGQQr3HLDyzC: {
1422
+ readonly amount: {
1423
+ readonly description: "Charge amount in minor currency units.";
1280
1424
  readonly type: {
1281
1425
  readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1282
1426
  };
1283
1427
  };
1284
- readonly targetMerchantId: {
1428
+ readonly description: "Request to create a reverse-direction card charge and capture it immediately.";
1429
+ readonly name: "Reverse Card Charge and Capture Immediately Requested";
1430
+ readonly paymentMandateDocumentId: {
1431
+ readonly description: "Optional Payment Mandate document id used to authorize charge execution.";
1285
1432
  readonly type: {
1286
1433
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1287
1434
  };
1288
1435
  };
1436
+ readonly paynote: {
1437
+ readonly description: "Optional PayNote document to bootstrap for the created charge context.";
1438
+ };
1289
1439
  readonly type: {
1290
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1440
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1291
1441
  };
1292
1442
  };
1293
- readonly Cb8EjAE531e9RVa9RgFJzKmN9h6z8Xp3tAYaBFgqfHoP: {
1294
- readonly allowedPaymentCounterparties: {
1295
- readonly description: "Optional payment counterparty allowlist. Missing list means wildcard (any counterparty is allowed).\n";
1296
- readonly itemType: {
1297
- readonly counterpartyId: {
1298
- readonly description: "Counterparty identifier interpreted according to counterpartyType.";
1299
- readonly type: {
1300
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1301
- };
1302
- };
1303
- readonly counterpartyType: {
1304
- readonly description: "Allowed payment counterparty identifier type:\n- merchantId\n- customerId\n- accountNumber\n";
1305
- readonly type: {
1306
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1307
- };
1308
- };
1309
- };
1310
- readonly type: {
1311
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1312
- };
1443
+ readonly FAZCx2s5eq9zPV64LdHNFYbjjxD3ci1ZqyTcQk5WhXAs: {
1444
+ readonly childPayNote: {
1445
+ readonly description: "Content of the issued PayNote";
1313
1446
  };
1314
- readonly allowedPayNotes: {
1315
- readonly description: "Optional linked PayNote allowlist. Used only when allowLinkedPayNote is true. Missing list means wildcard (any linked PayNote is allowed). Each entry must set exactly one selector: typeBlueId or documentBlueId.\n";
1316
- readonly itemType: {
1317
- readonly documentBlueId: {
1318
- readonly description: "Optional blue-id of an allowed concrete PayNote document. Mutually exclusive with typeBlueId.\n";
1319
- readonly type: {
1320
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1321
- };
1322
- };
1323
- readonly typeBlueId: {
1324
- readonly description: "Optional blue-id of an allowed PayNote type. Mutually exclusive with documentBlueId.\n";
1325
- readonly type: {
1326
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1327
- };
1328
- };
1329
- };
1330
- readonly type: {
1331
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1332
- };
1447
+ readonly description: "The Guarantor confirms that a new Child PayNote has been issued against this parent.";
1448
+ readonly name: "Child PayNote Issued";
1449
+ readonly type: {
1450
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1333
1451
  };
1334
- readonly allowLinkedPayNote: {
1335
- readonly description: "Whether this mandate allows linked PayNote startup after charge execution.";
1452
+ };
1453
+ readonly Fg5CEPi8Dbr1vBwGjzf8PbQNfuWfPP7HcLFChYwpRJq5: {
1454
+ readonly amount: {
1455
+ readonly description: "Charge amount in minor currency units.";
1336
1456
  readonly type: {
1337
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
1457
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1338
1458
  };
1339
1459
  };
1340
- readonly amountCaptured: {
1341
- readonly description: "Running captured amount in minor currency units. Increased after successful capture.\n";
1460
+ readonly description: "Request to create a reverse-direction card charge (merchant to card owner) in root context.";
1461
+ readonly name: "Reverse Card Charge Requested";
1462
+ readonly paymentMandateDocumentId: {
1463
+ readonly description: "Optional Payment Mandate document id used to authorize charge execution.";
1342
1464
  readonly type: {
1343
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1465
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1344
1466
  };
1345
1467
  };
1346
- readonly amountLimit: {
1347
- readonly description: "Maximum amount in minor currency units allowed by this mandate.";
1468
+ readonly paynote: {
1469
+ readonly description: "Optional PayNote document to bootstrap for the created charge context.";
1470
+ };
1471
+ readonly type: {
1472
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1473
+ };
1474
+ };
1475
+ readonly FLTwmZbvgDuFodwUAqh16PBu3a8aU7Pu4cssCGqVCRh2: {
1476
+ readonly cardTransactionDetails: {
1477
+ readonly description: "Card network identifiers used to match processor and issuer records.";
1348
1478
  readonly type: {
1349
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1479
+ readonly blueId: "GZLRe2fEsvs1v7dVcg9kEnCrWEdM3cUZYhFH4XqN5jQT";
1350
1480
  };
1351
1481
  };
1352
- readonly amountReserved: {
1353
- readonly description: "Running reserved amount in minor currency units. Increased after successful reserve/authorize, decreased after release/capture.\n";
1482
+ readonly clientAcceptedAt: {
1483
+ readonly description: "Timestamp when the client accepted.";
1354
1484
  readonly type: {
1355
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1485
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1356
1486
  };
1357
1487
  };
1358
- readonly chargeAttempts: {
1359
- readonly description: "Stateful map of chargeAttemptId -> attempt state (authorization + settlement).";
1360
- readonly keyType: {
1488
+ readonly clientDecisionStatus: {
1489
+ readonly description: "Client decision (pending, accepted, rejected).";
1490
+ readonly type: {
1361
1491
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1362
1492
  };
1493
+ };
1494
+ readonly clientRejectedAt: {
1495
+ readonly description: "Timestamp when the client rejected.";
1363
1496
  readonly type: {
1364
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
1365
- };
1366
- readonly valueType: {
1367
- readonly blueId: "JADRqXZ7UWNDqPt9Zhnn6831Nz2X5yeSuyew4hu6ciVq";
1497
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1368
1498
  };
1369
1499
  };
1370
1500
  readonly contracts: {
1371
- readonly authorizeSpend: {
1501
+ readonly acceptPayNote: {
1372
1502
  readonly channel: {
1373
1503
  readonly type: {
1374
1504
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1375
1505
  };
1376
- readonly value: "guarantorChannel";
1506
+ readonly value: "payNoteDeliverer";
1377
1507
  };
1378
- readonly description: "Validate a charge attempt against mandate policy and reserve capacity.";
1379
1508
  readonly request: {
1380
- readonly type: {
1381
- readonly blueId: "4STBHLJjxjCZVgeW2ScFfmsx8Vm16FenEbaNMyL8ZJUT";
1509
+ readonly acceptedAt: {
1510
+ readonly description: "Timestamp when the client accepted.";
1511
+ readonly type: {
1512
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1513
+ };
1382
1514
  };
1383
1515
  };
1384
1516
  readonly type: {
1385
1517
  readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
1386
1518
  };
1387
1519
  };
1388
- readonly authorizeSpendImpl: {
1520
+ readonly acceptPayNoteImpl: {
1389
1521
  readonly operation: {
1390
1522
  readonly type: {
1391
1523
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1392
1524
  };
1393
- readonly value: "authorizeSpend";
1525
+ readonly value: "acceptPayNote";
1394
1526
  };
1395
1527
  readonly steps: {
1396
1528
  readonly items: readonly [{
@@ -1398,9 +1530,9 @@ declare const _default: {
1398
1530
  readonly type: {
1399
1531
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1400
1532
  };
1401
- readonly value: "const request =\n event && event.message && event.message.request\n ? event.message.request\n : {};\n\nconst unwrapNodeValue = function (value) {\n if (\n value &&\n typeof value === 'object' &&\n Object.prototype.hasOwnProperty.call(value, 'value')\n ) {\n return value.value;\n }\n return value;\n};\n\nconst toText = function (value) {\n const unwrapped = unwrapNodeValue(value);\n return typeof unwrapped === 'string' ? unwrapped : '';\n};\n\nconst toTimestampText = function (value) {\n const unwrapped = unwrapNodeValue(value);\n if (typeof unwrapped === 'string') {\n return unwrapped;\n }\n if (typeof unwrapped === 'number') {\n return String(unwrapped);\n }\n return '';\n};\n\nconst nowIso =\n toText(request.requestedAt) ||\n toTimestampText(event && event.timestamp ? event.timestamp : '');\n\nconst normalizeTimestamp = function (value) {\n if (typeof value !== 'string' || !value) {\n return '';\n }\n let digits = '';\n let index = 0;\n while (index < value.length) {\n const code = value.charCodeAt(index);\n if (code >= 48 && code <= 57) {\n digits += value.charAt(index);\n }\n index += 1;\n }\n if (digits.length < 14) {\n return '';\n }\n return digits.slice(0, 14);\n};\n\nconst toInteger = function (value, fallback) {\n const safeFallback =\n typeof fallback === 'number' && Number.isFinite(fallback)\n ? Math.trunc(fallback)\n : 0;\n const unwrapped = unwrapNodeValue(value);\n if (typeof unwrapped === 'number' && Number.isFinite(unwrapped)) {\n return Math.trunc(unwrapped);\n }\n if (typeof unwrapped !== 'string' || !unwrapped) {\n return safeFallback;\n }\n const parsed = Number(unwrapped);\n return Number.isFinite(parsed) ? Math.trunc(parsed) : safeFallback;\n};\n\nconst cloneObject = function (value) {\n const source = value && typeof value === 'object' ? value : {};\n const clone = {};\n Object.keys(source).forEach(function (key) {\n clone[key] = source[key];\n });\n return clone;\n};\n\nconst chargeAttemptId = toText(request.chargeAttemptId);\nconst amountMinor = toInteger(request.amountMinor, 0);\nconst counterpartyType = toText(request.counterpartyType);\nconst counterpartyId = toText(request.counterpartyId);\nconst requestedCurrency = toText(request.currency);\n\nconst chargeAttempts = document.canonical('/chargeAttempts') || {};\nconst nextChargeAttempts = cloneObject(chargeAttempts);\n\nconst existingAttempt =\n chargeAttemptId &&\n chargeAttempts[chargeAttemptId] &&\n typeof chargeAttempts[chargeAttemptId] === 'object'\n ? chargeAttempts[chargeAttemptId]\n : null;\nconst existingDecision =\n existingAttempt ? toText(existingAttempt.authorizationStatus) : '';\nconst existingReason =\n existingAttempt ? toText(existingAttempt.authorizationReason) : '';\n\nconst amountLimit = toInteger(document('/amountLimit'), 0);\nconst amountReserved = toInteger(document('/amountReserved'), 0);\nconst amountCaptured = toInteger(document('/amountCaptured'), 0);\nconst mandateCurrency = toText(document('/currency'));\nconst expiresAt = toText(document('/expiresAt'));\nconst revokedAt = toText(document('/revokedAt'));\nconst nowComparable = normalizeTimestamp(nowIso);\n\nconst allowedCounterparties = document.canonical('/allowedPaymentCounterparties');\nconst isCounterpartyAllowed =\n !Array.isArray(allowedCounterparties) ||\n allowedCounterparties.length === 0 ||\n allowedCounterparties.some(function (item) {\n return (\n item &&\n toText(item.counterpartyType) === counterpartyType &&\n toText(item.counterpartyId) === counterpartyId\n );\n });\n\nlet status = 'rejected';\nlet reason = '';\nlet nextAmountReserved = amountReserved;\n\nif (existingDecision === 'approved' || existingDecision === 'rejected') {\n status = existingDecision;\n reason = existingDecision === 'rejected' ? existingReason : '';\n} else if (!chargeAttemptId) {\n reason = 'Missing chargeAttemptId.';\n} else if (amountMinor <= 0) {\n reason = 'Amount must be greater than zero.';\n} else if (!requestedCurrency || requestedCurrency !== mandateCurrency) {\n reason = 'Currency does not match mandate currency.';\n} else if (revokedAt) {\n reason = 'Mandate is revoked.';\n} else if (\n expiresAt &&\n normalizeTimestamp(expiresAt) &&\n nowComparable &&\n normalizeTimestamp(expiresAt) < nowComparable\n) {\n reason = 'Mandate is expired.';\n} else if (!isCounterpartyAllowed) {\n reason = 'Counterparty is not allowed by mandate.';\n} else if (amountReserved + amountCaptured + amountMinor > amountLimit) {\n reason = 'Mandate amount limit exceeded.';\n} else {\n status = 'approved';\n nextAmountReserved = amountReserved + amountMinor;\n}\n\nif (chargeAttemptId && !existingDecision) {\n nextChargeAttempts[chargeAttemptId] = {\n amountMinor,\n currency: requestedCurrency,\n counterpartyType,\n counterpartyId,\n chargeMode:\n toText(request.chargeMode),\n authorizationStatus: status,\n authorizationReason: reason,\n authorizationRespondedAt: nowIso,\n authorizedAmountMinor: status === 'approved' ? amountMinor : 0,\n settled: false,\n lastSettlementRequestStatus: '',\n lastSettlementProcessingStatus: '',\n settlementReason: '',\n settlementRespondedAt: '',\n reservedDeltaMinor: 0,\n capturedDeltaMinor: 0,\n holdId: '',\n transactionId: ''\n };\n}\n\nconst remainingAmountMinor = Math.max(\n 0,\n amountLimit - (nextAmountReserved + amountCaptured)\n);\n\nconst responseEvent = {\n type: 'PayNote/Payment Mandate Spend Authorization Responded',\n chargeAttemptId,\n status,\n remainingAmountMinor,\n respondedAt: nowIso\n};\n\nif (reason) {\n responseEvent.reason = reason;\n}\n\nreturn {\n nextChargeAttempts: nextChargeAttempts,\n nextAmountReserved: nextAmountReserved,\n events: [responseEvent]\n};\n";
1533
+ 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');\nconst payNoteBootstrapRequest = document('/payNoteBootstrapRequest');\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 payNoteBootstrapRequest\n ]\n : [\n {\n type: \"PayNote/PayNote Client Decision Discarded\",\n decision: \"accepted\",\n reason: discardReason,\n decisionAt: acceptedAt\n }\n ]\n};\n";
1402
1534
  };
1403
- readonly name: "Decide Spend Authorization";
1535
+ readonly name: "Capture Acceptance Timestamp";
1404
1536
  readonly type: {
1405
1537
  readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1406
1538
  };
@@ -1417,13 +1549,13 @@ declare const _default: {
1417
1549
  readonly type: {
1418
1550
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1419
1551
  };
1420
- readonly value: "/chargeAttempts";
1552
+ readonly value: "/clientDecisionStatus";
1421
1553
  };
1422
1554
  readonly val: {
1423
1555
  readonly type: {
1424
1556
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1425
1557
  };
1426
- readonly value: "${steps['Decide Spend Authorization'].nextChargeAttempts}";
1558
+ readonly value: "${steps['Capture Acceptance Timestamp'].nextDecisionStatus}";
1427
1559
  };
1428
1560
  }, {
1429
1561
  readonly op: {
@@ -1436,17 +1568,55 @@ declare const _default: {
1436
1568
  readonly type: {
1437
1569
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1438
1570
  };
1439
- readonly value: "/amountReserved";
1571
+ readonly value: "/clientAcceptedAt";
1440
1572
  };
1441
1573
  readonly val: {
1442
1574
  readonly type: {
1443
1575
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1444
1576
  };
1445
- readonly value: "${steps['Decide Spend Authorization'].nextAmountReserved}";
1577
+ readonly value: "${steps['Capture Acceptance Timestamp'].nextAcceptedAt}";
1578
+ };
1579
+ }, {
1580
+ readonly op: {
1581
+ readonly type: {
1582
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1583
+ };
1584
+ readonly value: "replace";
1585
+ };
1586
+ readonly path: {
1587
+ readonly type: {
1588
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1589
+ };
1590
+ readonly value: "/deliveryStatus";
1591
+ };
1592
+ readonly val: {
1593
+ readonly type: {
1594
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1595
+ };
1596
+ readonly value: "${steps['Capture Acceptance Timestamp'].nextDeliveryStatus}";
1597
+ };
1598
+ }, {
1599
+ readonly op: {
1600
+ readonly type: {
1601
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1602
+ };
1603
+ readonly value: "replace";
1604
+ };
1605
+ readonly path: {
1606
+ readonly type: {
1607
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1608
+ };
1609
+ readonly value: "/deliveryError";
1610
+ };
1611
+ readonly val: {
1612
+ readonly type: {
1613
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1614
+ };
1615
+ readonly value: "${steps['Capture Acceptance Timestamp'].nextDeliveryError}";
1446
1616
  };
1447
1617
  }];
1448
1618
  };
1449
- readonly name: "Persist Authorization Decision";
1619
+ readonly name: "Apply Acceptance Update";
1450
1620
  readonly type: {
1451
1621
  readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
1452
1622
  };
@@ -1456,24 +1626,6 @@ declare const _default: {
1456
1626
  readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
1457
1627
  };
1458
1628
  };
1459
- readonly granteeChannel: {
1460
- readonly description: "Grantee timeline channel (party allowed to use the mandate).";
1461
- readonly type: {
1462
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1463
- };
1464
- };
1465
- readonly granterChannel: {
1466
- readonly description: "Granting party timeline channel.";
1467
- readonly type: {
1468
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1469
- };
1470
- };
1471
- readonly guarantorChannel: {
1472
- readonly description: "Bank/admin channel executing mandate checks and settlement updates.";
1473
- readonly type: {
1474
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1475
- };
1476
- };
1477
1629
  readonly initialize: {
1478
1630
  readonly channel: {
1479
1631
  readonly type: {
@@ -1495,12 +1647,73 @@ declare const _default: {
1495
1647
  readonly type: {
1496
1648
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1497
1649
  };
1498
- readonly value: "/chargeAttempts";
1650
+ readonly value: "/deliveryStatus";
1651
+ };
1652
+ readonly val: {
1653
+ readonly type: {
1654
+ readonly blueId: "ETAPjwZVyYEfPUWvXkCWAuybBhYUayg4hKC2V7mLXmsv";
1655
+ };
1656
+ };
1657
+ }, {
1658
+ readonly op: {
1659
+ readonly type: {
1660
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1661
+ };
1662
+ readonly value: "replace";
1663
+ };
1664
+ readonly path: {
1665
+ readonly type: {
1666
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1667
+ };
1668
+ readonly value: "/transactionIdentificationStatus";
1669
+ };
1670
+ readonly val: {
1671
+ readonly type: {
1672
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1673
+ };
1674
+ readonly value: "pending";
1675
+ };
1676
+ }, {
1677
+ readonly op: {
1678
+ readonly type: {
1679
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1680
+ };
1681
+ readonly value: "replace";
1682
+ };
1683
+ readonly path: {
1684
+ readonly type: {
1685
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1686
+ };
1687
+ readonly value: "/clientDecisionStatus";
1688
+ };
1689
+ readonly val: {
1690
+ readonly type: {
1691
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1692
+ };
1693
+ readonly value: "pending";
1694
+ };
1695
+ }, {
1696
+ readonly op: {
1697
+ readonly type: {
1698
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1699
+ };
1700
+ readonly value: "replace";
1701
+ };
1702
+ readonly path: {
1703
+ readonly type: {
1704
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1705
+ };
1706
+ readonly value: "/deliveryError";
1707
+ };
1708
+ readonly val: {
1709
+ readonly type: {
1710
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1711
+ };
1712
+ readonly value: "";
1499
1713
  };
1500
- readonly val: {};
1501
1714
  }];
1502
1715
  };
1503
- readonly name: "Initialize mandate runtime state";
1716
+ readonly name: "Initialize Delivery State";
1504
1717
  readonly type: {
1505
1718
  readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
1506
1719
  };
@@ -1520,29 +1733,49 @@ declare const _default: {
1520
1733
  readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
1521
1734
  };
1522
1735
  };
1523
- readonly settleSpend: {
1736
+ readonly payNoteDeliverer: {
1737
+ readonly description: "Participant delivering and reporting status (e.g., bank).";
1738
+ readonly type: {
1739
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1740
+ };
1741
+ };
1742
+ readonly payNoteSender: {
1743
+ readonly description: "Participant submitting the PayNote delivery (merchant or processor).";
1744
+ readonly type: {
1745
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1746
+ };
1747
+ };
1748
+ readonly rejectPayNote: {
1524
1749
  readonly channel: {
1525
1750
  readonly type: {
1526
1751
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1527
1752
  };
1528
- readonly value: "guarantorChannel";
1753
+ readonly value: "payNoteDeliverer";
1529
1754
  };
1530
- readonly description: "Apply final reserve/capture deltas for a previously authorized charge attempt.";
1531
1755
  readonly request: {
1532
- readonly type: {
1533
- readonly blueId: "3TW3tRAQdYoMTFeeqmnWLR9JFibTVaJuiRJfJ3ggeVTJ";
1756
+ readonly reason: {
1757
+ readonly description: "Optional rejection reason.";
1758
+ readonly type: {
1759
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1760
+ };
1761
+ };
1762
+ readonly rejectedAt: {
1763
+ readonly description: "Timestamp when the client rejected.";
1764
+ readonly type: {
1765
+ readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1766
+ };
1534
1767
  };
1535
1768
  };
1536
1769
  readonly type: {
1537
1770
  readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
1538
1771
  };
1539
1772
  };
1540
- readonly settleSpendImpl: {
1773
+ readonly rejectPayNoteImpl: {
1541
1774
  readonly operation: {
1542
1775
  readonly type: {
1543
1776
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1544
1777
  };
1545
- readonly value: "settleSpend";
1778
+ readonly value: "rejectPayNote";
1546
1779
  };
1547
1780
  readonly steps: {
1548
1781
  readonly items: readonly [{
@@ -1550,9 +1783,9 @@ declare const _default: {
1550
1783
  readonly type: {
1551
1784
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1552
1785
  };
1553
- readonly value: "const request =\n event && event.message && event.message.request\n ? event.message.request\n : {};\n\nconst unwrapNodeValue = function (value) {\n if (\n value &&\n typeof value === 'object' &&\n Object.prototype.hasOwnProperty.call(value, 'value')\n ) {\n return value.value;\n }\n return value;\n};\n\nconst toText = function (value) {\n const unwrapped = unwrapNodeValue(value);\n return typeof unwrapped === 'string' ? unwrapped : '';\n};\n\nconst toTimestampText = function (value) {\n const unwrapped = unwrapNodeValue(value);\n if (typeof unwrapped === 'string') {\n return unwrapped;\n }\n if (typeof unwrapped === 'number') {\n return String(unwrapped);\n }\n return '';\n};\n\nconst nowIso =\n toText(request.settledAt) ||\n toTimestampText(event && event.timestamp ? event.timestamp : '');\n\nconst toInteger = function (value, fallback) {\n const safeFallback =\n typeof fallback === 'number' && Number.isFinite(fallback)\n ? Math.trunc(fallback)\n : 0;\n const unwrapped = unwrapNodeValue(value);\n if (typeof unwrapped === 'number' && Number.isFinite(unwrapped)) {\n return Math.trunc(unwrapped);\n }\n if (typeof unwrapped !== 'string' || !unwrapped) {\n return safeFallback;\n }\n const parsed = Number(unwrapped);\n return Number.isFinite(parsed) ? Math.trunc(parsed) : safeFallback;\n};\n\nconst cloneObject = function (value) {\n const source = value && typeof value === 'object' ? value : {};\n const clone = {};\n Object.keys(source).forEach(function (key) {\n clone[key] = source[key];\n });\n return clone;\n};\n\nconst chargeAttemptId = toText(request.chargeAttemptId);\nconst settlementStatus = toText(request.status);\nconst reservedDeltaMinor = toInteger(request.reservedDeltaMinor, 0);\nconst capturedDeltaMinor = toInteger(request.capturedDeltaMinor, 0);\n\nconst amountLimit = toInteger(document('/amountLimit'), 0);\nconst amountReserved = toInteger(document('/amountReserved'), 0);\nconst amountCaptured = toInteger(document('/amountCaptured'), 0);\n\nconst chargeAttempts = document.canonical('/chargeAttempts') || {};\nconst nextChargeAttempts = cloneObject(chargeAttempts);\nconst existingAttempt =\n chargeAttemptId &&\n chargeAttempts[chargeAttemptId] &&\n typeof chargeAttempts[chargeAttemptId] === 'object'\n ? chargeAttempts[chargeAttemptId]\n : null;\n\nconst alreadySettled = !!existingAttempt && existingAttempt.settled === true;\nconst approved =\n !!existingAttempt && toText(existingAttempt.authorizationStatus) === 'approved';\nconst authorizedAmount = toInteger(\n existingAttempt ? existingAttempt.authorizedAmountMinor : 0,\n 0\n);\n\nconst holdId = toText(request.holdId);\nconst transactionId = toText(request.transactionId);\nconst requestReason = toText(request.reason);\n\nlet status = 'rejected';\nlet reason = '';\nlet nextAmountReserved = amountReserved;\nlet nextAmountCaptured = amountCaptured;\nlet nextAttempt = existingAttempt ? cloneObject(existingAttempt) : null;\n\nif (!chargeAttemptId) {\n reason = 'Missing chargeAttemptId.';\n} else if (alreadySettled) {\n status = 'accepted';\n reason = 'Charge attempt already settled.';\n} else if (!approved) {\n reason = 'Charge attempt is not approved.';\n} else if (\n settlementStatus !== 'succeeded' &&\n settlementStatus !== 'failed'\n) {\n reason = 'Unsupported settlement status.';\n} else if (capturedDeltaMinor < 0) {\n reason = 'capturedDeltaMinor cannot be negative.';\n} else if (\n settlementStatus === 'failed' &&\n capturedDeltaMinor !== 0\n) {\n reason = 'capturedDeltaMinor must be 0 for failed settlement.';\n} else if (capturedDeltaMinor > authorizedAmount) {\n reason = 'capturedDeltaMinor exceeds authorized amount.';\n} else {\n const candidateAmountReserved = amountReserved + reservedDeltaMinor;\n const candidateAmountCaptured = amountCaptured + capturedDeltaMinor;\n const candidateUsed = candidateAmountReserved + candidateAmountCaptured;\n\n if (candidateAmountReserved < 0) {\n reason = 'Settlement would make amountReserved negative.';\n } else if (candidateAmountCaptured < 0) {\n reason = 'Settlement would make amountCaptured negative.';\n } else if (candidateUsed > amountLimit) {\n reason = 'Settlement would exceed amountLimit.';\n } else {\n status = 'accepted';\n nextAmountReserved = candidateAmountReserved;\n nextAmountCaptured = candidateAmountCaptured;\n nextAttempt = cloneObject(existingAttempt);\n nextAttempt.settled = true;\n nextAttempt.lastSettlementRequestStatus = settlementStatus;\n nextAttempt.lastSettlementProcessingStatus = 'accepted';\n nextAttempt.settlementReason = requestReason;\n nextAttempt.settlementRespondedAt = nowIso;\n nextAttempt.reservedDeltaMinor = reservedDeltaMinor;\n nextAttempt.capturedDeltaMinor = capturedDeltaMinor;\n nextAttempt.holdId = holdId;\n nextAttempt.transactionId = transactionId;\n nextChargeAttempts[chargeAttemptId] = nextAttempt;\n }\n}\n\nif (nextAttempt && status === 'rejected') {\n nextAttempt = cloneObject(nextAttempt);\n nextAttempt.lastSettlementRequestStatus = settlementStatus;\n nextAttempt.lastSettlementProcessingStatus = 'rejected';\n nextAttempt.settlementReason = reason;\n nextAttempt.settlementRespondedAt = nowIso;\n nextChargeAttempts[chargeAttemptId] = nextAttempt;\n}\n\nconst responseEvent = {\n type: 'PayNote/Payment Mandate Spend Settlement Responded',\n chargeAttemptId,\n status,\n amountReserved: nextAmountReserved,\n amountCaptured: nextAmountCaptured,\n respondedAt: nowIso\n};\n\nif (reason) {\n responseEvent.reason = reason;\n}\n\nreturn {\n nextChargeAttempts: nextChargeAttempts,\n nextAmountReserved: nextAmountReserved,\n nextAmountCaptured: nextAmountCaptured,\n events: [responseEvent]\n};\n";
1786
+ 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";
1554
1787
  };
1555
- readonly name: "Validate and Apply Settlement";
1788
+ readonly name: "Capture Rejection Reason";
1556
1789
  readonly type: {
1557
1790
  readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1558
1791
  };
@@ -1569,13 +1802,13 @@ declare const _default: {
1569
1802
  readonly type: {
1570
1803
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1571
1804
  };
1572
- readonly value: "/chargeAttempts";
1805
+ readonly value: "/clientDecisionStatus";
1573
1806
  };
1574
1807
  readonly val: {
1575
1808
  readonly type: {
1576
1809
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1577
1810
  };
1578
- readonly value: "${steps['Validate and Apply Settlement'].nextChargeAttempts}";
1811
+ readonly value: "${steps['Capture Rejection Reason'].nextDecisionStatus}";
1579
1812
  };
1580
1813
  }, {
1581
1814
  readonly op: {
@@ -1588,13 +1821,13 @@ declare const _default: {
1588
1821
  readonly type: {
1589
1822
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1590
1823
  };
1591
- readonly value: "/amountReserved";
1824
+ readonly value: "/clientRejectedAt";
1592
1825
  };
1593
1826
  readonly val: {
1594
1827
  readonly type: {
1595
1828
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1596
1829
  };
1597
- readonly value: "${steps['Validate and Apply Settlement'].nextAmountReserved}";
1830
+ readonly value: "${steps['Capture Rejection Reason'].nextRejectedAt}";
1598
1831
  };
1599
1832
  }, {
1600
1833
  readonly op: {
@@ -1607,17 +1840,36 @@ declare const _default: {
1607
1840
  readonly type: {
1608
1841
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1609
1842
  };
1610
- readonly value: "/amountCaptured";
1843
+ readonly value: "/deliveryStatus";
1611
1844
  };
1612
1845
  readonly val: {
1613
1846
  readonly type: {
1614
1847
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1615
1848
  };
1616
- readonly value: "${steps['Validate and Apply Settlement'].nextAmountCaptured}";
1849
+ readonly value: "${steps['Capture Rejection Reason'].nextDeliveryStatus}";
1850
+ };
1851
+ }, {
1852
+ readonly op: {
1853
+ readonly type: {
1854
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1855
+ };
1856
+ readonly value: "replace";
1857
+ };
1858
+ readonly path: {
1859
+ readonly type: {
1860
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1861
+ };
1862
+ readonly value: "/deliveryError";
1863
+ };
1864
+ readonly val: {
1865
+ readonly type: {
1866
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1867
+ };
1868
+ readonly value: "${steps['Capture Rejection Reason'].nextDeliveryError}";
1617
1869
  };
1618
1870
  }];
1619
1871
  };
1620
- readonly name: "Persist Settlement";
1872
+ readonly name: "Apply Rejection Update";
1621
1873
  readonly type: {
1622
1874
  readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
1623
1875
  };
@@ -1627,179 +1879,116 @@ declare const _default: {
1627
1879
  readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
1628
1880
  };
1629
1881
  };
1630
- };
1631
- readonly currency: {
1632
- readonly description: "Currency code used for amountLimit validation.";
1633
- readonly type: {
1634
- readonly blueId: "CBnZ7aaNetj9KEqXpUWj5jvjKbmviLivP98T2EiyxiYc";
1635
- };
1636
- };
1637
- readonly description: "Payment mandate authorizing a grantee to execute payment requests on behalf of a granter, under explicit limits, with deterministic spend tracking and optional linked PayNote bootstrap rules.\n";
1638
- readonly expiresAt: {
1639
- readonly description: "Optional mandate expiry timestamp.";
1640
- readonly type: {
1641
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1642
- };
1643
- };
1644
- readonly granteeId: {
1645
- readonly description: "Identifier interpreted according to granteeType.";
1646
- readonly type: {
1647
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1648
- };
1649
- };
1650
- readonly granteeType: {
1651
- readonly description: "Party allowed to invoke this mandate:\n- documentId\n- merchantId\n- customerId\n";
1652
- readonly type: {
1653
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1654
- };
1655
- };
1656
- readonly granterId: {
1657
- readonly description: "Identifier of the granting party:\n- merchantId when granterType is merchant\n- customerId (bank user id) when granterType is customer\n";
1658
- readonly type: {
1659
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1660
- };
1661
- };
1662
- readonly granterType: {
1663
- readonly description: "Party granting authority to use funds:\n- merchant\n- customer\n";
1664
- readonly type: {
1665
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1666
- };
1667
- };
1668
- readonly name: "Payment Mandate";
1669
- readonly revokedAt: {
1670
- readonly description: "Optional revocation timestamp. When set, mandate is inactive.";
1671
- readonly type: {
1672
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1673
- };
1674
- };
1675
- readonly sourceAccount: {
1676
- readonly description: "Funds source to use when this mandate executes: - root (uses root account context; for merchant this maps to active credit line) - specific account number\n";
1677
- readonly type: {
1678
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1679
- };
1680
- };
1681
- };
1682
- readonly CFoaaYn29o7Mg7VaN7bkM87KrfE8fvnVYWkGXd6YnQ7S: {
1683
- readonly description: "Decision response for a card charge request.";
1684
- readonly name: "Card Charge Responded";
1685
- readonly paymentMandateDocumentId: {
1686
- readonly description: "Payment Mandate document id used for this charge decision when available.";
1687
- readonly type: {
1688
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1689
- };
1690
- };
1691
- readonly reason: {
1692
- readonly description: "Optional explanation for rejected or pending decisions.";
1693
- readonly type: {
1694
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1695
- };
1696
- };
1697
- readonly status: {
1698
- readonly description: "Request decision status (\"accepted\" | \"rejected\" | \"pending\").";
1699
- readonly type: {
1700
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1701
- };
1702
- };
1703
- readonly type: {
1704
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1705
- };
1706
- };
1707
- readonly CFqiZigjKE5JatANkaAkWw2NbgvEmb2BVEVPf3ckUrWg: {
1708
- readonly amountReleased: {
1709
- readonly type: {
1710
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1711
- };
1712
- };
1713
- readonly description: "The Guarantor confirms that previously reserved funds have been released.";
1714
- readonly name: "Reservation Released";
1715
- readonly type: {
1716
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1717
- };
1718
- };
1719
- readonly Da7ZSyWgvMyTfwDVhAgCkGf3H8dwHhouHsHgNzg3DZ2j: {
1720
- readonly decision: {
1721
- readonly description: "Attempted decision (accepted or rejected).";
1722
- readonly type: {
1723
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1724
- };
1725
- };
1726
- readonly decisionAt: {
1727
- readonly description: "Timestamp provided with the decision, if any.";
1728
- readonly type: {
1729
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1730
- };
1731
- };
1732
- readonly description: "The client's decision was discarded because it could not be applied in the current delivery state.";
1733
- readonly name: "PayNote Client Decision Discarded";
1734
- readonly reason: {
1735
- readonly description: "Validation reason for discarding the decision.";
1736
- readonly type: {
1737
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1738
- };
1739
- };
1740
- readonly type: {
1741
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1742
- };
1743
- };
1744
- readonly DFKVw43E36kimqj64FyiiVxE9yNuB22SETFx5M4WAi9m: {
1745
- readonly description: "The Guarantor declined the request to issue a Child PayNote.";
1746
- readonly name: "Child PayNote Issuance Declined";
1747
- readonly reason: {
1748
- readonly type: {
1749
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1750
- };
1751
- };
1752
- readonly type: {
1753
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1754
- };
1755
- };
1756
- readonly Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F: {
1757
- readonly amount: {
1758
- readonly captured: {
1759
- readonly description: "The amount that has been successfully captured.";
1760
- readonly type: {
1761
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1882
+ readonly reportDeliveryError: {
1883
+ readonly channel: {
1884
+ readonly type: {
1885
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1886
+ };
1887
+ readonly value: "payNoteDeliverer";
1888
+ };
1889
+ readonly request: {
1890
+ readonly description: "Delivery error reason.";
1891
+ readonly type: {
1892
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1893
+ };
1762
1894
  };
1763
- };
1764
- readonly description: "The amounts associated with this PayNote.";
1765
- readonly reserved: {
1766
- readonly description: "The amount currently reserved by the Guarantor.";
1767
1895
  readonly type: {
1768
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1896
+ readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
1769
1897
  };
1770
1898
  };
1771
- readonly total: {
1772
- readonly description: "The maximum total value of this PayNote.";
1773
- readonly type: {
1774
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1899
+ readonly reportDeliveryErrorImpl: {
1900
+ readonly operation: {
1901
+ readonly type: {
1902
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1903
+ };
1904
+ readonly value: "reportDeliveryError";
1905
+ };
1906
+ readonly steps: {
1907
+ readonly items: readonly [{
1908
+ readonly code: {
1909
+ readonly type: {
1910
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1911
+ };
1912
+ 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";
1913
+ };
1914
+ readonly name: "Capture Delivery Failure Reason";
1915
+ readonly type: {
1916
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1917
+ };
1918
+ }, {
1919
+ readonly changeset: {
1920
+ readonly items: readonly [{
1921
+ readonly op: {
1922
+ readonly type: {
1923
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1924
+ };
1925
+ readonly value: "replace";
1926
+ };
1927
+ readonly path: {
1928
+ readonly type: {
1929
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1930
+ };
1931
+ readonly value: "/deliveryStatus";
1932
+ };
1933
+ readonly val: {
1934
+ readonly type: {
1935
+ readonly blueId: "Guus3kHbivXvy5G93yhiKs3Pc8sxCc4XVvSo7CqLsQEc";
1936
+ };
1937
+ };
1938
+ }, {
1939
+ readonly op: {
1940
+ readonly type: {
1941
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1942
+ };
1943
+ readonly value: "replace";
1944
+ };
1945
+ readonly path: {
1946
+ readonly type: {
1947
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1948
+ };
1949
+ readonly value: "/deliveryError";
1950
+ };
1951
+ readonly val: {
1952
+ readonly type: {
1953
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1954
+ };
1955
+ readonly value: "${steps['Capture Delivery Failure Reason'].reason}";
1956
+ };
1957
+ }];
1958
+ };
1959
+ readonly name: "Apply Delivery Failure";
1960
+ readonly type: {
1961
+ readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
1962
+ };
1963
+ }];
1775
1964
  };
1776
- };
1777
- };
1778
- readonly contracts: {
1779
- readonly guarantorChannel: {
1780
1965
  readonly type: {
1781
- readonly blueId: "EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH";
1966
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
1782
1967
  };
1783
1968
  };
1784
- readonly guarantorUpdate: {
1969
+ readonly updateTransactionIdentificationStatus: {
1785
1970
  readonly channel: {
1786
1971
  readonly type: {
1787
1972
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1788
1973
  };
1789
- readonly value: "guarantorChannel";
1974
+ readonly value: "payNoteDeliverer";
1975
+ };
1976
+ readonly request: {
1977
+ readonly description: "True when the transaction is identified.";
1978
+ readonly type: {
1979
+ readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
1980
+ };
1790
1981
  };
1791
- readonly description: "Standard operation used by the guarantor (bank) to deliver events into the document.";
1792
1982
  readonly type: {
1793
1983
  readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
1794
1984
  };
1795
1985
  };
1796
- readonly guarantorUpdateImpl: {
1797
- readonly description: "Re-emits provided events (MyOS-admin style).";
1986
+ readonly updateTransactionIdentificationStatusImpl: {
1798
1987
  readonly operation: {
1799
1988
  readonly type: {
1800
1989
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1801
1990
  };
1802
- readonly value: "guarantorUpdate";
1991
+ readonly value: "updateTransactionIdentificationStatus";
1803
1992
  };
1804
1993
  readonly steps: {
1805
1994
  readonly items: readonly [{
@@ -1807,196 +1996,126 @@ declare const _default: {
1807
1996
  readonly type: {
1808
1997
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1809
1998
  };
1810
- readonly value: "return { events: event.message.request };\n";
1999
+ 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";
1811
2000
  };
1812
- readonly name: "EmitGuarantorEvents";
2001
+ readonly name: "Classify Identification Result";
1813
2002
  readonly type: {
1814
2003
  readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1815
2004
  };
2005
+ }, {
2006
+ readonly changeset: {
2007
+ readonly items: readonly [{
2008
+ readonly op: {
2009
+ readonly type: {
2010
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2011
+ };
2012
+ readonly value: "replace";
2013
+ };
2014
+ readonly path: {
2015
+ readonly type: {
2016
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2017
+ };
2018
+ readonly value: "/transactionIdentificationStatus";
2019
+ };
2020
+ readonly val: {
2021
+ readonly type: {
2022
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2023
+ };
2024
+ readonly value: "${steps['Classify Identification Result'].identificationStatus}";
2025
+ };
2026
+ }, {
2027
+ readonly op: {
2028
+ readonly type: {
2029
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2030
+ };
2031
+ readonly value: "replace";
2032
+ };
2033
+ readonly path: {
2034
+ readonly type: {
2035
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2036
+ };
2037
+ readonly value: "/deliveryStatus";
2038
+ };
2039
+ readonly val: {
2040
+ readonly type: {
2041
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2042
+ };
2043
+ readonly value: "${steps['Classify Identification Result'].deliveryStatus}";
2044
+ };
2045
+ }, {
2046
+ readonly op: {
2047
+ readonly type: {
2048
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2049
+ };
2050
+ readonly value: "replace";
2051
+ };
2052
+ readonly path: {
2053
+ readonly type: {
2054
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2055
+ };
2056
+ readonly value: "/deliveryError";
2057
+ };
2058
+ readonly val: {
2059
+ readonly type: {
2060
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2061
+ };
2062
+ readonly value: "${steps['Classify Identification Result'].deliveryError}";
2063
+ };
2064
+ }];
2065
+ };
2066
+ readonly name: "Apply Identification Update";
2067
+ readonly type: {
2068
+ readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
2069
+ };
1816
2070
  }];
1817
2071
  };
1818
2072
  readonly type: {
1819
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
1820
- };
1821
- };
1822
- readonly payeeChannel: {
1823
- readonly type: {
1824
- readonly blueId: "EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH";
1825
- };
1826
- };
1827
- readonly payerChannel: {
1828
- readonly type: {
1829
- readonly blueId: "EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH";
1830
- };
1831
- };
1832
- };
1833
- readonly currency: {
1834
- readonly description: "The ISO 4217 currency code for the transaction.";
1835
- readonly type: {
1836
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1837
- };
1838
- };
1839
- readonly description: "A verifiable instrument for managing a commitment of value between a Payer, Payee, and Guarantor.";
1840
- readonly name: "PayNote";
1841
- readonly payNoteInitialStateDescription: {
1842
- readonly details: {
1843
- readonly description: "Complete text description of the PayNote, with everything significant explained.\nMarkdown format suggested.\n";
1844
- readonly type: {
1845
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1846
- };
1847
- };
1848
- readonly summary: {
1849
- readonly description: "General information about the PayNote. It should capture the most important\ninformation, most critical or non-standard elements should be covered here.\nMarkdown format suggested.\n";
1850
- readonly type: {
1851
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1852
- };
1853
- };
1854
- };
1855
- readonly status: {
1856
- readonly description: "The current state of the PayNote (e.g., Pending, Approved, Reserved, Captured, Released, Rejected).";
1857
- readonly type: {
1858
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1859
- };
1860
- };
1861
- readonly transactionStatus: {
1862
- readonly description: "Optional status snapshot. If present in proposal, bank validates it; if missing bank sets it at bootstrap.";
1863
- readonly type: {
1864
- readonly blueId: "FutWoAEUEb3wkmEm4YP4JGFPtu3B3PQ3m71BmnRFFnsQ";
1865
- };
1866
- };
1867
- };
1868
- readonly DhxGBjA6Gow9E6ZKZ49SdziihHZ4PeXxFNatSqmesKZu: {
1869
- readonly cardTransactionDetails: {
1870
- readonly type: {
1871
- readonly blueId: "GZLRe2fEsvs1v7dVcg9kEnCrWEdM3cUZYhFH4XqN5jQT";
1872
- };
1873
- };
1874
- readonly description: "Request to the card issuer to deny any following card transaction capture requests.";
1875
- readonly name: "Card Transaction Capture Lock Requested";
1876
- readonly type: {
1877
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1878
- };
1879
- };
1880
- readonly DiowRXdCBw83YCn5Pwcg2YABaVQZ1p4Wk1L9DJfajqp5: {
1881
- readonly description: "Card transaction capture was unlocked. Any following card transaction capture requests will be processed.";
1882
- readonly name: "Card Transaction Capture Unlocked";
1883
- readonly type: {
1884
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1885
- };
1886
- readonly unlockedAt: {
1887
- readonly description: "Timestamp of when the card transaction capture was unlocked.";
1888
- readonly type: {
1889
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1890
- };
1891
- };
1892
- };
1893
- readonly DqiwzsNLbHCh6PaDF6wy6ZqBSF5JV5nAQSKFKTPRTbGB: {
1894
- readonly childPayNote: {
1895
- readonly description: "Complete PayNote";
1896
- };
1897
- readonly description: "The Payer requests to cancel PayNote that is Approved but not yet\nReserved or Captured.\n";
1898
- readonly name: "PayNote Cancellation Requested";
1899
- readonly type: {
1900
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1901
- };
1902
- };
1903
- readonly DvxKVEFsDmgA1hcBDfh7t42NgTRLaxXjCrB48DufP3i3: {
1904
- readonly amount: {
1905
- readonly type: {
1906
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1907
- };
1908
- };
1909
- readonly description: "A participant (usually the Payee) requests the final transfer of funds.";
1910
- readonly name: "Capture Funds Requested";
1911
- readonly type: {
1912
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1913
- };
1914
- };
1915
- readonly EGRRGwNnReqfQQhKnML28DWz9MvvC3B5JgbBrCUxrZ3G: {
1916
- readonly description: "The client rejected the PayNote.";
1917
- readonly name: "PayNote Rejected By Client";
1918
- readonly reason: {
1919
- readonly description: "Optional rejection reason.";
1920
- readonly type: {
1921
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1922
- };
1923
- };
1924
- readonly rejectedAt: {
1925
- readonly description: "Timestamp when the client rejected.";
1926
- readonly type: {
1927
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
1928
- };
1929
- };
1930
- readonly type: {
1931
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1932
- };
1933
- };
1934
- readonly EXoQHkYEDQdhGd3AeXBryzxmCTXsvTjXTfZmjwuqqbHt: {
1935
- readonly description: "Card transaction capture was locked. Any following card transaction capture requests will be rejected.";
1936
- readonly lockedAt: {
1937
- readonly description: "Timestamp of when the card transaction capture was locked.";
1938
- readonly type: {
1939
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
2073
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
2074
+ };
1940
2075
  };
1941
2076
  };
1942
- readonly name: "Card Transaction Capture Locked";
1943
- readonly type: {
1944
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1945
- };
1946
- };
1947
- readonly F4gfZeY8P8dkfwNSbEfq7xQ8axiHdfqgzGQQr3HLDyzC: {
1948
- readonly amount: {
1949
- readonly description: "Charge amount in minor currency units.";
2077
+ readonly deliveryError: {
2078
+ readonly description: "Error message when delivery fails.";
1950
2079
  readonly type: {
1951
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
2080
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1952
2081
  };
1953
2082
  };
1954
- readonly description: "Request to create a reverse-direction card charge and capture it immediately.";
1955
- readonly name: "Reverse Card Charge and Capture Immediately Requested";
1956
- readonly paymentMandateDocumentId: {
1957
- readonly description: "Optional Payment Mandate document id used to authorize charge execution.";
2083
+ readonly deliveryStatus: {
2084
+ readonly description: "High-level delivery status.";
1958
2085
  readonly type: {
1959
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2086
+ readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
1960
2087
  };
1961
2088
  };
1962
- readonly paynote: {
1963
- readonly description: "Optional PayNote document to bootstrap for the created charge context.";
1964
- };
1965
- readonly type: {
1966
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1967
- };
1968
- };
1969
- readonly FAZCx2s5eq9zPV64LdHNFYbjjxD3ci1ZqyTcQk5WhXAs: {
1970
- readonly childPayNote: {
1971
- readonly description: "Content of the issued PayNote";
1972
- };
1973
- readonly description: "The Guarantor confirms that a new Child PayNote has been issued against this parent.";
1974
- readonly name: "Child PayNote Issued";
1975
- readonly type: {
1976
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
2089
+ readonly description: "Tracks delivery of a PayNote through a deliverer (e.g., bank) to a receiver (payer - client).";
2090
+ readonly name: "PayNote Delivery";
2091
+ readonly paymentMandateBootstrapRequest: {
2092
+ readonly description: "Optional Payment Mandate bootstrap request details for Delivery flows that require mandate attachment before proposal exposure.";
2093
+ readonly document: {
2094
+ readonly type: {
2095
+ readonly blueId: "BKKgKnHFhLmmUxq4WRvhV7HYZNu6ngDEce1LvHjZimJr";
2096
+ };
2097
+ };
2098
+ readonly type: {
2099
+ readonly blueId: "7JqBn4KcmZbHBBiQf3CAfpHBNaTKS1qhtkATsF7f6Sxg";
2100
+ };
1977
2101
  };
1978
- };
1979
- readonly Fg5CEPi8Dbr1vBwGjzf8PbQNfuWfPP7HcLFChYwpRJq5: {
1980
- readonly amount: {
1981
- readonly description: "Charge amount in minor currency units.";
2102
+ readonly payNoteBootstrapRequest: {
2103
+ readonly description: "PayNote bootstrap request details.";
2104
+ readonly document: {
2105
+ readonly type: {
2106
+ readonly blueId: "Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F";
2107
+ };
2108
+ };
1982
2109
  readonly type: {
1983
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
2110
+ readonly blueId: "7JqBn4KcmZbHBBiQf3CAfpHBNaTKS1qhtkATsF7f6Sxg";
1984
2111
  };
1985
2112
  };
1986
- readonly description: "Request to create a reverse-direction card charge (merchant to card owner) in root context.";
1987
- readonly name: "Reverse Card Charge Requested";
1988
- readonly paymentMandateDocumentId: {
1989
- readonly description: "Optional Payment Mandate document id used to authorize charge execution.";
2113
+ readonly transactionIdentificationStatus: {
2114
+ readonly description: "Identification state (pending, identified, failed).";
1990
2115
  readonly type: {
1991
2116
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1992
2117
  };
1993
2118
  };
1994
- readonly paynote: {
1995
- readonly description: "Optional PayNote document to bootstrap for the created charge context.";
1996
- };
1997
- readonly type: {
1998
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1999
- };
2000
2119
  };
2001
2120
  readonly FUh3TARSh4TjnWKAkM5ydjFWLWEmrFByKMBQzcgQfqRW: {
2002
2121
  readonly description: "The Guarantor attempted the transfer, but it failed for a technical reason.";
@@ -2213,118 +2332,6 @@ declare const _default: {
2213
2332
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
2214
2333
  };
2215
2334
  };
2216
- readonly JADRqXZ7UWNDqPt9Zhnn6831Nz2X5yeSuyew4hu6ciVq: {
2217
- readonly amountMinor: {
2218
- readonly description: "Requested amount in minor currency units.";
2219
- readonly type: {
2220
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
2221
- };
2222
- };
2223
- readonly authorizationReason: {
2224
- readonly description: "Optional authorization rejection reason.";
2225
- readonly type: {
2226
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2227
- };
2228
- };
2229
- readonly authorizationRespondedAt: {
2230
- readonly description: "Timestamp of authorization decision response.";
2231
- readonly type: {
2232
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
2233
- };
2234
- };
2235
- readonly authorizationStatus: {
2236
- readonly description: "Authorization decision status (\"approved\" | \"rejected\").";
2237
- readonly type: {
2238
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2239
- };
2240
- };
2241
- readonly authorizedAmountMinor: {
2242
- readonly description: "Authorized amount reserved against mandate capacity for this attempt.";
2243
- readonly type: {
2244
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
2245
- };
2246
- };
2247
- readonly capturedDeltaMinor: {
2248
- readonly description: "Captured delta applied for accepted settlement.";
2249
- readonly type: {
2250
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
2251
- };
2252
- };
2253
- readonly chargeMode: {
2254
- readonly description: "Requested charge mode (\"authorize_only\" | \"authorize_and_capture\").";
2255
- readonly type: {
2256
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2257
- };
2258
- };
2259
- readonly counterpartyId: {
2260
- readonly description: "Counterparty identifier interpreted according to counterpartyType.";
2261
- readonly type: {
2262
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2263
- };
2264
- };
2265
- readonly counterpartyType: {
2266
- readonly description: "Counterparty identifier type (\"merchantId\" | \"customerId\" | \"accountNumber\").";
2267
- readonly type: {
2268
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2269
- };
2270
- };
2271
- readonly currency: {
2272
- readonly description: "Requested currency.";
2273
- readonly type: {
2274
- readonly blueId: "CBnZ7aaNetj9KEqXpUWj5jvjKbmviLivP98T2EiyxiYc";
2275
- };
2276
- };
2277
- readonly description: "Stateful record for a single charge attempt tracked by Payment Mandate.";
2278
- readonly holdId: {
2279
- readonly description: "Optional hold id associated with settlement.";
2280
- readonly type: {
2281
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2282
- };
2283
- };
2284
- readonly lastSettlementProcessingStatus: {
2285
- readonly description: "Mandate processing status for last settlement (\"accepted\" | \"rejected\").";
2286
- readonly type: {
2287
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2288
- };
2289
- };
2290
- readonly lastSettlementRequestStatus: {
2291
- readonly description: "Last settlement request status received from bank (\"succeeded\" | \"failed\").";
2292
- readonly type: {
2293
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2294
- };
2295
- };
2296
- readonly name: "Payment Mandate Charge Attempt State";
2297
- readonly reservedDeltaMinor: {
2298
- readonly description: "Reserved delta applied for accepted settlement.";
2299
- readonly type: {
2300
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
2301
- };
2302
- };
2303
- readonly settled: {
2304
- readonly description: "Whether mandate accepted settlement for this attempt.";
2305
- readonly type: {
2306
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
2307
- };
2308
- };
2309
- readonly settlementReason: {
2310
- readonly description: "Optional settlement rejection/info reason.";
2311
- readonly type: {
2312
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2313
- };
2314
- };
2315
- readonly settlementRespondedAt: {
2316
- readonly description: "Timestamp of last settlement processing response.";
2317
- readonly type: {
2318
- readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
2319
- };
2320
- };
2321
- readonly transactionId: {
2322
- readonly description: "Optional transaction id associated with settlement.";
2323
- readonly type: {
2324
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2325
- };
2326
- };
2327
- };
2328
2335
  };
2329
2336
  readonly schemas: {
2330
2337
  readonly FzJqLm7Ek58LsVstJV2c37JfiMhRiWtjZNsiMz2ZfCYG: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
@@ -4006,7 +4013,7 @@ declare const _default: {
4006
4013
  requestId?: string | undefined;
4007
4014
  payeeEmail?: string | undefined;
4008
4015
  }>;
4009
- readonly Cb8EjAE531e9RVa9RgFJzKmN9h6z8Xp3tAYaBFgqfHoP: import("zod").ZodObject<{
4016
+ readonly BKKgKnHFhLmmUxq4WRvhV7HYZNu6ngDEce1LvHjZimJr: import("zod").ZodObject<{
4010
4017
  allowedPaymentCounterparties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
4011
4018
  counterpartyId: import("zod").ZodOptional<import("zod").ZodString>;
4012
4019
  counterpartyType: import("zod").ZodOptional<import("zod").ZodString>;
@@ -4050,11 +4057,10 @@ declare const _default: {
4050
4057
  }, {
4051
4058
  [x: string]: any;
4052
4059
  }>>;
4053
- description: import("zod").ZodOptional<import("zod").ZodString>;
4054
4060
  holdId: import("zod").ZodOptional<import("zod").ZodString>;
4061
+ lastSettlementId: import("zod").ZodOptional<import("zod").ZodString>;
4055
4062
  lastSettlementProcessingStatus: import("zod").ZodOptional<import("zod").ZodString>;
4056
4063
  lastSettlementRequestStatus: import("zod").ZodOptional<import("zod").ZodString>;
4057
- name: import("zod").ZodOptional<import("zod").ZodString>;
4058
4064
  reservedDeltaMinor: import("zod").ZodOptional<import("zod").ZodNumber>;
4059
4065
  settled: import("zod").ZodOptional<import("zod").ZodBoolean>;
4060
4066
  settlementReason: import("zod").ZodOptional<import("zod").ZodString>;
@@ -4065,8 +4071,6 @@ declare const _default: {
4065
4071
  }>>;
4066
4072
  transactionId: import("zod").ZodOptional<import("zod").ZodString>;
4067
4073
  }, "strip", import("zod").ZodTypeAny, {
4068
- description?: string | undefined;
4069
- name?: string | undefined;
4070
4074
  holdId?: string | undefined;
4071
4075
  transactionId?: string | undefined;
4072
4076
  authorizedAmountMinor?: number | undefined;
@@ -4074,6 +4078,8 @@ declare const _default: {
4074
4078
  [x: string]: any;
4075
4079
  } | undefined;
4076
4080
  amountMinor?: number | undefined;
4081
+ counterpartyId?: string | undefined;
4082
+ counterpartyType?: string | undefined;
4077
4083
  authorizationReason?: string | undefined;
4078
4084
  authorizationRespondedAt?: {
4079
4085
  [x: string]: any;
@@ -4081,8 +4087,7 @@ declare const _default: {
4081
4087
  authorizationStatus?: string | undefined;
4082
4088
  capturedDeltaMinor?: number | undefined;
4083
4089
  chargeMode?: string | undefined;
4084
- counterpartyId?: string | undefined;
4085
- counterpartyType?: string | undefined;
4090
+ lastSettlementId?: string | undefined;
4086
4091
  lastSettlementProcessingStatus?: string | undefined;
4087
4092
  lastSettlementRequestStatus?: string | undefined;
4088
4093
  reservedDeltaMinor?: number | undefined;
@@ -4092,8 +4097,6 @@ declare const _default: {
4092
4097
  [x: string]: any;
4093
4098
  } | undefined;
4094
4099
  }, {
4095
- description?: string | undefined;
4096
- name?: string | undefined;
4097
4100
  holdId?: string | undefined;
4098
4101
  transactionId?: string | undefined;
4099
4102
  authorizedAmountMinor?: number | undefined;
@@ -4101,6 +4104,8 @@ declare const _default: {
4101
4104
  [x: string]: any;
4102
4105
  } | undefined;
4103
4106
  amountMinor?: number | undefined;
4107
+ counterpartyId?: string | undefined;
4108
+ counterpartyType?: string | undefined;
4104
4109
  authorizationReason?: string | undefined;
4105
4110
  authorizationRespondedAt?: {
4106
4111
  [x: string]: any;
@@ -4108,8 +4113,7 @@ declare const _default: {
4108
4113
  authorizationStatus?: string | undefined;
4109
4114
  capturedDeltaMinor?: number | undefined;
4110
4115
  chargeMode?: string | undefined;
4111
- counterpartyId?: string | undefined;
4112
- counterpartyType?: string | undefined;
4116
+ lastSettlementId?: string | undefined;
4113
4117
  lastSettlementProcessingStatus?: string | undefined;
4114
4118
  lastSettlementRequestStatus?: string | undefined;
4115
4119
  reservedDeltaMinor?: number | undefined;
@@ -4730,8 +4734,6 @@ declare const _default: {
4730
4734
  allowLinkedPayNote?: boolean | undefined;
4731
4735
  amountLimit?: number | undefined;
4732
4736
  chargeAttempts?: Record<string, {
4733
- description?: string | undefined;
4734
- name?: string | undefined;
4735
4737
  holdId?: string | undefined;
4736
4738
  transactionId?: string | undefined;
4737
4739
  authorizedAmountMinor?: number | undefined;
@@ -4739,6 +4741,8 @@ declare const _default: {
4739
4741
  [x: string]: any;
4740
4742
  } | undefined;
4741
4743
  amountMinor?: number | undefined;
4744
+ counterpartyId?: string | undefined;
4745
+ counterpartyType?: string | undefined;
4742
4746
  authorizationReason?: string | undefined;
4743
4747
  authorizationRespondedAt?: {
4744
4748
  [x: string]: any;
@@ -4746,8 +4750,7 @@ declare const _default: {
4746
4750
  authorizationStatus?: string | undefined;
4747
4751
  capturedDeltaMinor?: number | undefined;
4748
4752
  chargeMode?: string | undefined;
4749
- counterpartyId?: string | undefined;
4750
- counterpartyType?: string | undefined;
4753
+ lastSettlementId?: string | undefined;
4751
4754
  lastSettlementProcessingStatus?: string | undefined;
4752
4755
  lastSettlementRequestStatus?: string | undefined;
4753
4756
  reservedDeltaMinor?: number | undefined;
@@ -4871,8 +4874,6 @@ declare const _default: {
4871
4874
  allowLinkedPayNote?: boolean | undefined;
4872
4875
  amountLimit?: number | undefined;
4873
4876
  chargeAttempts?: Record<string, {
4874
- description?: string | undefined;
4875
- name?: string | undefined;
4876
4877
  holdId?: string | undefined;
4877
4878
  transactionId?: string | undefined;
4878
4879
  authorizedAmountMinor?: number | undefined;
@@ -4880,6 +4881,8 @@ declare const _default: {
4880
4881
  [x: string]: any;
4881
4882
  } | undefined;
4882
4883
  amountMinor?: number | undefined;
4884
+ counterpartyId?: string | undefined;
4885
+ counterpartyType?: string | undefined;
4883
4886
  authorizationReason?: string | undefined;
4884
4887
  authorizationRespondedAt?: {
4885
4888
  [x: string]: any;
@@ -4887,8 +4890,7 @@ declare const _default: {
4887
4890
  authorizationStatus?: string | undefined;
4888
4891
  capturedDeltaMinor?: number | undefined;
4889
4892
  chargeMode?: string | undefined;
4890
- counterpartyId?: string | undefined;
4891
- counterpartyType?: string | undefined;
4893
+ lastSettlementId?: string | undefined;
4892
4894
  lastSettlementProcessingStatus?: string | undefined;
4893
4895
  lastSettlementRequestStatus?: string | undefined;
4894
4896
  reservedDeltaMinor?: number | undefined;
@@ -4939,95 +4941,7 @@ declare const _default: {
4939
4941
  name?: string | undefined;
4940
4942
  reason?: string | undefined;
4941
4943
  }>;
4942
- readonly JADRqXZ7UWNDqPt9Zhnn6831Nz2X5yeSuyew4hu6ciVq: import("zod").ZodObject<{
4943
- amountMinor: import("zod").ZodOptional<import("zod").ZodNumber>;
4944
- authorizationReason: import("zod").ZodOptional<import("zod").ZodString>;
4945
- authorizationRespondedAt: import("zod").ZodOptional<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
4946
- [x: string]: any;
4947
- }, {
4948
- [x: string]: any;
4949
- }>>;
4950
- authorizationStatus: import("zod").ZodOptional<import("zod").ZodString>;
4951
- authorizedAmountMinor: import("zod").ZodOptional<import("zod").ZodNumber>;
4952
- capturedDeltaMinor: import("zod").ZodOptional<import("zod").ZodNumber>;
4953
- chargeMode: import("zod").ZodOptional<import("zod").ZodString>;
4954
- counterpartyId: import("zod").ZodOptional<import("zod").ZodString>;
4955
- counterpartyType: import("zod").ZodOptional<import("zod").ZodString>;
4956
- currency: import("zod").ZodOptional<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
4957
- [x: string]: any;
4958
- }, {
4959
- [x: string]: any;
4960
- }>>;
4961
- description: import("zod").ZodOptional<import("zod").ZodString>;
4962
- holdId: import("zod").ZodOptional<import("zod").ZodString>;
4963
- lastSettlementProcessingStatus: import("zod").ZodOptional<import("zod").ZodString>;
4964
- lastSettlementRequestStatus: import("zod").ZodOptional<import("zod").ZodString>;
4965
- name: import("zod").ZodOptional<import("zod").ZodString>;
4966
- reservedDeltaMinor: import("zod").ZodOptional<import("zod").ZodNumber>;
4967
- settled: import("zod").ZodOptional<import("zod").ZodBoolean>;
4968
- settlementReason: import("zod").ZodOptional<import("zod").ZodString>;
4969
- settlementRespondedAt: import("zod").ZodOptional<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
4970
- [x: string]: any;
4971
- }, {
4972
- [x: string]: any;
4973
- }>>;
4974
- transactionId: import("zod").ZodOptional<import("zod").ZodString>;
4975
- }, "strip", import("zod").ZodTypeAny, {
4976
- description?: string | undefined;
4977
- name?: string | undefined;
4978
- holdId?: string | undefined;
4979
- transactionId?: string | undefined;
4980
- authorizedAmountMinor?: number | undefined;
4981
- currency?: {
4982
- [x: string]: any;
4983
- } | undefined;
4984
- amountMinor?: number | undefined;
4985
- authorizationReason?: string | undefined;
4986
- authorizationRespondedAt?: {
4987
- [x: string]: any;
4988
- } | undefined;
4989
- authorizationStatus?: string | undefined;
4990
- capturedDeltaMinor?: number | undefined;
4991
- chargeMode?: string | undefined;
4992
- counterpartyId?: string | undefined;
4993
- counterpartyType?: string | undefined;
4994
- lastSettlementProcessingStatus?: string | undefined;
4995
- lastSettlementRequestStatus?: string | undefined;
4996
- reservedDeltaMinor?: number | undefined;
4997
- settled?: boolean | undefined;
4998
- settlementReason?: string | undefined;
4999
- settlementRespondedAt?: {
5000
- [x: string]: any;
5001
- } | undefined;
5002
- }, {
5003
- description?: string | undefined;
5004
- name?: string | undefined;
5005
- holdId?: string | undefined;
5006
- transactionId?: string | undefined;
5007
- authorizedAmountMinor?: number | undefined;
5008
- currency?: {
5009
- [x: string]: any;
5010
- } | undefined;
5011
- amountMinor?: number | undefined;
5012
- authorizationReason?: string | undefined;
5013
- authorizationRespondedAt?: {
5014
- [x: string]: any;
5015
- } | undefined;
5016
- authorizationStatus?: string | undefined;
5017
- capturedDeltaMinor?: number | undefined;
5018
- chargeMode?: string | undefined;
5019
- counterpartyId?: string | undefined;
5020
- counterpartyType?: string | undefined;
5021
- lastSettlementProcessingStatus?: string | undefined;
5022
- lastSettlementRequestStatus?: string | undefined;
5023
- reservedDeltaMinor?: number | undefined;
5024
- settled?: boolean | undefined;
5025
- settlementReason?: string | undefined;
5026
- settlementRespondedAt?: {
5027
- [x: string]: any;
5028
- } | undefined;
5029
- }>;
5030
- readonly '4STBHLJjxjCZVgeW2ScFfmsx8Vm16FenEbaNMyL8ZJUT': import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
4944
+ readonly '7EKvVzbT63C2taKWfLf9J2BiVL7BCL6Ld86tH8b9kmxF': import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
5031
4945
  description: import("zod").ZodOptional<import("zod").ZodString>;
5032
4946
  name: import("zod").ZodOptional<import("zod").ZodString>;
5033
4947
  }, {
@@ -5036,8 +4950,7 @@ declare const _default: {
5036
4950
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
5037
4951
  }>, {
5038
4952
  amountMinor: import("zod").ZodOptional<import("zod").ZodNumber>;
5039
- chargeAttemptId: import("zod").ZodOptional<import("zod").ZodString>;
5040
- chargeMode: import("zod").ZodOptional<import("zod").ZodString>;
4953
+ authorizationId: import("zod").ZodOptional<import("zod").ZodString>;
5041
4954
  counterpartyId: import("zod").ZodOptional<import("zod").ZodString>;
5042
4955
  counterpartyType: import("zod").ZodOptional<import("zod").ZodString>;
5043
4956
  currency: import("zod").ZodOptional<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
@@ -5062,10 +4975,9 @@ declare const _default: {
5062
4975
  [x: string]: any;
5063
4976
  } | undefined;
5064
4977
  amountMinor?: number | undefined;
5065
- chargeMode?: string | undefined;
5066
4978
  counterpartyId?: string | undefined;
5067
4979
  counterpartyType?: string | undefined;
5068
- chargeAttemptId?: string | undefined;
4980
+ authorizationId?: string | undefined;
5069
4981
  requestedAt?: {
5070
4982
  [x: string]: any;
5071
4983
  } | undefined;
@@ -5079,17 +4991,16 @@ declare const _default: {
5079
4991
  [x: string]: any;
5080
4992
  } | undefined;
5081
4993
  amountMinor?: number | undefined;
5082
- chargeMode?: string | undefined;
5083
4994
  counterpartyId?: string | undefined;
5084
4995
  counterpartyType?: string | undefined;
5085
- chargeAttemptId?: string | undefined;
4996
+ authorizationId?: string | undefined;
5086
4997
  requestedAt?: {
5087
4998
  [x: string]: any;
5088
4999
  } | undefined;
5089
5000
  requestingDocumentId?: string | undefined;
5090
5001
  requestingSessionId?: string | undefined;
5091
5002
  }>;
5092
- readonly '8qdhLemMQ5MFtu9Aebpd9gKfKuLuRBEnT6yTTzr9F78E': import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
5003
+ readonly '6UFd89oNox3PCpeVFaaCXwbGDp3k3Qc56e4DktnK3F8P': import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
5093
5004
  description: import("zod").ZodOptional<import("zod").ZodString>;
5094
5005
  name: import("zod").ZodOptional<import("zod").ZodString>;
5095
5006
  }, {
@@ -5097,7 +5008,7 @@ declare const _default: {
5097
5008
  inResponseTo: import("zod").ZodOptional<import("zod").ZodType<import("@blue-labs/language").BlueNode, import("zod").ZodTypeDef, import("@blue-labs/language").BlueNode>>;
5098
5009
  name: import("zod").ZodOptional<import("zod").ZodString>;
5099
5010
  }>, {
5100
- chargeAttemptId: import("zod").ZodOptional<import("zod").ZodString>;
5011
+ authorizationId: import("zod").ZodOptional<import("zod").ZodString>;
5101
5012
  description: import("zod").ZodOptional<import("zod").ZodString>;
5102
5013
  name: import("zod").ZodOptional<import("zod").ZodString>;
5103
5014
  reason: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5117,7 +5028,7 @@ declare const _default: {
5117
5028
  [x: string]: any;
5118
5029
  } | undefined;
5119
5030
  reason?: string | undefined;
5120
- chargeAttemptId?: string | undefined;
5031
+ authorizationId?: string | undefined;
5121
5032
  remainingAmountMinor?: number | undefined;
5122
5033
  }, {
5123
5034
  status?: string | undefined;
@@ -5128,10 +5039,10 @@ declare const _default: {
5128
5039
  [x: string]: any;
5129
5040
  } | undefined;
5130
5041
  reason?: string | undefined;
5131
- chargeAttemptId?: string | undefined;
5042
+ authorizationId?: string | undefined;
5132
5043
  remainingAmountMinor?: number | undefined;
5133
5044
  }>;
5134
- readonly '3TW3tRAQdYoMTFeeqmnWLR9JFibTVaJuiRJfJ3ggeVTJ': import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
5045
+ readonly '6aPqmL9AQV31CCV576ZmEcUgysbdbQAfAig9J5VYeR6v': import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
5135
5046
  description: import("zod").ZodOptional<import("zod").ZodString>;
5136
5047
  name: import("zod").ZodOptional<import("zod").ZodString>;
5137
5048
  }, {
@@ -5139,8 +5050,8 @@ declare const _default: {
5139
5050
  inResponseTo: import("zod").ZodOptional<import("zod").ZodType<import("@blue-labs/language").BlueNode, import("zod").ZodTypeDef, import("@blue-labs/language").BlueNode>>;
5140
5051
  name: import("zod").ZodOptional<import("zod").ZodString>;
5141
5052
  }>, {
5053
+ authorizationId: import("zod").ZodOptional<import("zod").ZodString>;
5142
5054
  capturedDeltaMinor: import("zod").ZodOptional<import("zod").ZodNumber>;
5143
- chargeAttemptId: import("zod").ZodOptional<import("zod").ZodString>;
5144
5055
  description: import("zod").ZodOptional<import("zod").ZodString>;
5145
5056
  holdId: import("zod").ZodOptional<import("zod").ZodString>;
5146
5057
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5151,6 +5062,7 @@ declare const _default: {
5151
5062
  }, {
5152
5063
  [x: string]: any;
5153
5064
  }>>;
5065
+ settlementId: import("zod").ZodOptional<import("zod").ZodString>;
5154
5066
  status: import("zod").ZodOptional<import("zod").ZodString>;
5155
5067
  transactionId: import("zod").ZodOptional<import("zod").ZodString>;
5156
5068
  }>, "strip", import("zod").ZodTypeAny, {
@@ -5163,10 +5075,11 @@ declare const _default: {
5163
5075
  transactionId?: string | undefined;
5164
5076
  capturedDeltaMinor?: number | undefined;
5165
5077
  reservedDeltaMinor?: number | undefined;
5166
- chargeAttemptId?: string | undefined;
5078
+ authorizationId?: string | undefined;
5167
5079
  settledAt?: {
5168
5080
  [x: string]: any;
5169
5081
  } | undefined;
5082
+ settlementId?: string | undefined;
5170
5083
  }, {
5171
5084
  status?: string | undefined;
5172
5085
  description?: string | undefined;
@@ -5177,12 +5090,13 @@ declare const _default: {
5177
5090
  transactionId?: string | undefined;
5178
5091
  capturedDeltaMinor?: number | undefined;
5179
5092
  reservedDeltaMinor?: number | undefined;
5180
- chargeAttemptId?: string | undefined;
5093
+ authorizationId?: string | undefined;
5181
5094
  settledAt?: {
5182
5095
  [x: string]: any;
5183
5096
  } | undefined;
5097
+ settlementId?: string | undefined;
5184
5098
  }>;
5185
- readonly '6P1iVKFwG9jgWV7Ye3Co6pWByuu5QpR4tpqu9oVVvawY': import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
5099
+ readonly CoGAMipt8rhmnkMgKsyZ5aendkHvFc4muC6pVgrUT1rJ: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
5186
5100
  description: import("zod").ZodOptional<import("zod").ZodString>;
5187
5101
  name: import("zod").ZodOptional<import("zod").ZodString>;
5188
5102
  }, {
@@ -5192,7 +5106,7 @@ declare const _default: {
5192
5106
  }>, {
5193
5107
  amountCaptured: import("zod").ZodOptional<import("zod").ZodNumber>;
5194
5108
  amountReserved: import("zod").ZodOptional<import("zod").ZodNumber>;
5195
- chargeAttemptId: import("zod").ZodOptional<import("zod").ZodString>;
5109
+ authorizationId: import("zod").ZodOptional<import("zod").ZodString>;
5196
5110
  description: import("zod").ZodOptional<import("zod").ZodString>;
5197
5111
  name: import("zod").ZodOptional<import("zod").ZodString>;
5198
5112
  reason: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5201,6 +5115,7 @@ declare const _default: {
5201
5115
  }, {
5202
5116
  [x: string]: any;
5203
5117
  }>>;
5118
+ settlementId: import("zod").ZodOptional<import("zod").ZodString>;
5204
5119
  status: import("zod").ZodOptional<import("zod").ZodString>;
5205
5120
  }>, "strip", import("zod").ZodTypeAny, {
5206
5121
  status?: string | undefined;
@@ -5213,7 +5128,8 @@ declare const _default: {
5213
5128
  reason?: string | undefined;
5214
5129
  amountCaptured?: number | undefined;
5215
5130
  amountReserved?: number | undefined;
5216
- chargeAttemptId?: string | undefined;
5131
+ authorizationId?: string | undefined;
5132
+ settlementId?: string | undefined;
5217
5133
  }, {
5218
5134
  status?: string | undefined;
5219
5135
  description?: string | undefined;
@@ -5225,7 +5141,8 @@ declare const _default: {
5225
5141
  reason?: string | undefined;
5226
5142
  amountCaptured?: number | undefined;
5227
5143
  amountReserved?: number | undefined;
5228
- chargeAttemptId?: string | undefined;
5144
+ authorizationId?: string | undefined;
5145
+ settlementId?: string | undefined;
5229
5146
  }>;
5230
5147
  readonly Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F: import("zod").ZodObject<{
5231
5148
  amount: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -5792,7 +5709,7 @@ declare const _default: {
5792
5709
  [x: string]: any;
5793
5710
  } | undefined;
5794
5711
  }>;
5795
- readonly '2QkcYqeXBPfAzjYtasCrt91CKjQjcfdjfnHpZ3EX132g': import("zod").ZodObject<{
5712
+ readonly FLTwmZbvgDuFodwUAqh16PBu3a8aU7Pu4cssCGqVCRh2: import("zod").ZodObject<{
5796
5713
  cardTransactionDetails: import("zod").ZodOptional<import("zod").ZodObject<{
5797
5714
  authorizationCode: import("zod").ZodOptional<import("zod").ZodString>;
5798
5715
  description: import("zod").ZodOptional<import("zod").ZodString>;
@@ -7419,14 +7336,13 @@ declare const _default: {
7419
7336
  readonly 'PayNote/Linked PayNote Started': "6vnMMWuq6qJ1hxLqL1P2ckCqC9JtJF3QNW8s7rMTgZ4Q";
7420
7337
  readonly 'PayNote/Merchant To Customer PayNote': "9dJ3W19EJ8MqtTJR8oidX8eRrkeB8xNQyqeTZeqBHZjo";
7421
7338
  readonly 'PayNote/Payee Assignment Requested': "BVLMcTzag3D2rvg8LoKQ3Htgoqsh77EAoiTLTxH5aVBE";
7422
- readonly 'PayNote/Payment Mandate': "Cb8EjAE531e9RVa9RgFJzKmN9h6z8Xp3tAYaBFgqfHoP";
7339
+ readonly 'PayNote/Payment Mandate': "BKKgKnHFhLmmUxq4WRvhV7HYZNu6ngDEce1LvHjZimJr";
7423
7340
  readonly 'PayNote/Payment Mandate Attached': "49TYrHpnk2gepJiGduJP3afrnT2DJ6kDxqF4Y9M4C4t7";
7424
7341
  readonly 'PayNote/Payment Mandate Attachment Failed': "GTwsVrbVb31sMub1vvU2KyY2nA8ekKWYDoqNAB1m4Vh2";
7425
- readonly 'PayNote/Payment Mandate Charge Attempt State': "JADRqXZ7UWNDqPt9Zhnn6831Nz2X5yeSuyew4hu6ciVq";
7426
- readonly 'PayNote/Payment Mandate Spend Authorization Requested': "4STBHLJjxjCZVgeW2ScFfmsx8Vm16FenEbaNMyL8ZJUT";
7427
- readonly 'PayNote/Payment Mandate Spend Authorization Responded': "8qdhLemMQ5MFtu9Aebpd9gKfKuLuRBEnT6yTTzr9F78E";
7428
- readonly 'PayNote/Payment Mandate Spend Settled': "3TW3tRAQdYoMTFeeqmnWLR9JFibTVaJuiRJfJ3ggeVTJ";
7429
- readonly 'PayNote/Payment Mandate Spend Settlement Responded': "6P1iVKFwG9jgWV7Ye3Co6pWByuu5QpR4tpqu9oVVvawY";
7342
+ readonly 'PayNote/Payment Mandate Spend Authorization Requested': "7EKvVzbT63C2taKWfLf9J2BiVL7BCL6Ld86tH8b9kmxF";
7343
+ readonly 'PayNote/Payment Mandate Spend Authorization Responded': "6UFd89oNox3PCpeVFaaCXwbGDp3k3Qc56e4DktnK3F8P";
7344
+ readonly 'PayNote/Payment Mandate Spend Settled': "6aPqmL9AQV31CCV576ZmEcUgysbdbQAfAig9J5VYeR6v";
7345
+ readonly 'PayNote/Payment Mandate Spend Settlement Responded': "CoGAMipt8rhmnkMgKsyZ5aendkHvFc4muC6pVgrUT1rJ";
7430
7346
  readonly 'PayNote/PayNote': "Dh2LtUN8Umc478kif8VWsNM1FrL5usVEeevv2GKnKP4F";
7431
7347
  readonly 'PayNote/PayNote Accepted By Client': "6VQC585V4SdpyA5hCeQQGM178bbeW3D2WcKt8ZCWK9s3";
7432
7348
  readonly 'PayNote/PayNote Approved': "HQTUxErobqhSuhWo9DAC1WwaG9oYdjfmdKprGtV4TeEK";
@@ -7434,7 +7350,7 @@ declare const _default: {
7434
7350
  readonly 'PayNote/PayNote Cancellation Requested': "DqiwzsNLbHCh6PaDF6wy6ZqBSF5JV5nAQSKFKTPRTbGB";
7435
7351
  readonly 'PayNote/PayNote Cancelled': "96buyUXwhkak8xKoCR5nAW9tMuwzkevJFdELVvwKxR6Y";
7436
7352
  readonly 'PayNote/PayNote Client Decision Discarded': "Da7ZSyWgvMyTfwDVhAgCkGf3H8dwHhouHsHgNzg3DZ2j";
7437
- readonly 'PayNote/PayNote Delivery': "2QkcYqeXBPfAzjYtasCrt91CKjQjcfdjfnHpZ3EX132g";
7353
+ readonly 'PayNote/PayNote Delivery': "FLTwmZbvgDuFodwUAqh16PBu3a8aU7Pu4cssCGqVCRh2";
7438
7354
  readonly 'PayNote/PayNote Delivery Failed': "GtFG4Nt2fAamUZi9fSZNotab3BEUuv236LuPAcErVj5y";
7439
7355
  readonly 'PayNote/PayNote Rejected': "AdKfkwRfzRUxUKSzhRfYANsaUBNnz4u6JFWR66qhzyZe";
7440
7356
  readonly 'PayNote/PayNote Rejected By Client': "EGRRGwNnReqfQQhKnML28DWz9MvvC3B5JgbBrCUxrZ3G";
@@ -7707,12 +7623,12 @@ declare const _default: {
7707
7623
  readonly attributesAdded: readonly [];
7708
7624
  }];
7709
7625
  };
7710
- readonly Cb8EjAE531e9RVa9RgFJzKmN9h6z8Xp3tAYaBFgqfHoP: {
7626
+ readonly BKKgKnHFhLmmUxq4WRvhV7HYZNu6ngDEce1LvHjZimJr: {
7711
7627
  readonly status: "dev";
7712
7628
  readonly name: "Payment Mandate";
7713
7629
  readonly versions: readonly [{
7714
- readonly repositoryVersionIndex: 5;
7715
- readonly typeBlueId: "Cb8EjAE531e9RVa9RgFJzKmN9h6z8Xp3tAYaBFgqfHoP";
7630
+ readonly repositoryVersionIndex: 8;
7631
+ readonly typeBlueId: "BKKgKnHFhLmmUxq4WRvhV7HYZNu6ngDEce1LvHjZimJr";
7716
7632
  readonly attributesAdded: readonly [];
7717
7633
  }];
7718
7634
  };
@@ -7734,48 +7650,39 @@ declare const _default: {
7734
7650
  readonly attributesAdded: readonly [];
7735
7651
  }];
7736
7652
  };
7737
- readonly JADRqXZ7UWNDqPt9Zhnn6831Nz2X5yeSuyew4hu6ciVq: {
7738
- readonly status: "dev";
7739
- readonly name: "Payment Mandate Charge Attempt State";
7740
- readonly versions: readonly [{
7741
- readonly repositoryVersionIndex: 5;
7742
- readonly typeBlueId: "JADRqXZ7UWNDqPt9Zhnn6831Nz2X5yeSuyew4hu6ciVq";
7743
- readonly attributesAdded: readonly [];
7744
- }];
7745
- };
7746
- readonly '4STBHLJjxjCZVgeW2ScFfmsx8Vm16FenEbaNMyL8ZJUT': {
7653
+ readonly '7EKvVzbT63C2taKWfLf9J2BiVL7BCL6Ld86tH8b9kmxF': {
7747
7654
  readonly status: "dev";
7748
7655
  readonly name: "Payment Mandate Spend Authorization Requested";
7749
7656
  readonly versions: readonly [{
7750
- readonly repositoryVersionIndex: 5;
7751
- readonly typeBlueId: "4STBHLJjxjCZVgeW2ScFfmsx8Vm16FenEbaNMyL8ZJUT";
7657
+ readonly repositoryVersionIndex: 8;
7658
+ readonly typeBlueId: "7EKvVzbT63C2taKWfLf9J2BiVL7BCL6Ld86tH8b9kmxF";
7752
7659
  readonly attributesAdded: readonly [];
7753
7660
  }];
7754
7661
  };
7755
- readonly '8qdhLemMQ5MFtu9Aebpd9gKfKuLuRBEnT6yTTzr9F78E': {
7662
+ readonly '6UFd89oNox3PCpeVFaaCXwbGDp3k3Qc56e4DktnK3F8P': {
7756
7663
  readonly status: "dev";
7757
7664
  readonly name: "Payment Mandate Spend Authorization Responded";
7758
7665
  readonly versions: readonly [{
7759
- readonly repositoryVersionIndex: 5;
7760
- readonly typeBlueId: "8qdhLemMQ5MFtu9Aebpd9gKfKuLuRBEnT6yTTzr9F78E";
7666
+ readonly repositoryVersionIndex: 8;
7667
+ readonly typeBlueId: "6UFd89oNox3PCpeVFaaCXwbGDp3k3Qc56e4DktnK3F8P";
7761
7668
  readonly attributesAdded: readonly [];
7762
7669
  }];
7763
7670
  };
7764
- readonly '3TW3tRAQdYoMTFeeqmnWLR9JFibTVaJuiRJfJ3ggeVTJ': {
7671
+ readonly '6aPqmL9AQV31CCV576ZmEcUgysbdbQAfAig9J5VYeR6v': {
7765
7672
  readonly status: "dev";
7766
7673
  readonly name: "Payment Mandate Spend Settled";
7767
7674
  readonly versions: readonly [{
7768
- readonly repositoryVersionIndex: 5;
7769
- readonly typeBlueId: "3TW3tRAQdYoMTFeeqmnWLR9JFibTVaJuiRJfJ3ggeVTJ";
7675
+ readonly repositoryVersionIndex: 8;
7676
+ readonly typeBlueId: "6aPqmL9AQV31CCV576ZmEcUgysbdbQAfAig9J5VYeR6v";
7770
7677
  readonly attributesAdded: readonly [];
7771
7678
  }];
7772
7679
  };
7773
- readonly '6P1iVKFwG9jgWV7Ye3Co6pWByuu5QpR4tpqu9oVVvawY': {
7680
+ readonly CoGAMipt8rhmnkMgKsyZ5aendkHvFc4muC6pVgrUT1rJ: {
7774
7681
  readonly status: "dev";
7775
7682
  readonly name: "Payment Mandate Spend Settlement Responded";
7776
7683
  readonly versions: readonly [{
7777
- readonly repositoryVersionIndex: 5;
7778
- readonly typeBlueId: "6P1iVKFwG9jgWV7Ye3Co6pWByuu5QpR4tpqu9oVVvawY";
7684
+ readonly repositoryVersionIndex: 8;
7685
+ readonly typeBlueId: "CoGAMipt8rhmnkMgKsyZ5aendkHvFc4muC6pVgrUT1rJ";
7779
7686
  readonly attributesAdded: readonly [];
7780
7687
  }];
7781
7688
  };
@@ -7842,12 +7749,12 @@ declare const _default: {
7842
7749
  readonly attributesAdded: readonly [];
7843
7750
  }];
7844
7751
  };
7845
- readonly '2QkcYqeXBPfAzjYtasCrt91CKjQjcfdjfnHpZ3EX132g': {
7752
+ readonly FLTwmZbvgDuFodwUAqh16PBu3a8aU7Pu4cssCGqVCRh2: {
7846
7753
  readonly status: "dev";
7847
7754
  readonly name: "PayNote Delivery";
7848
7755
  readonly versions: readonly [{
7849
- readonly repositoryVersionIndex: 5;
7850
- readonly typeBlueId: "2QkcYqeXBPfAzjYtasCrt91CKjQjcfdjfnHpZ3EX132g";
7756
+ readonly repositoryVersionIndex: 8;
7757
+ readonly typeBlueId: "FLTwmZbvgDuFodwUAqh16PBu3a8aU7Pu4cssCGqVCRh2";
7851
7758
  readonly attributesAdded: readonly [];
7852
7759
  }];
7853
7760
  };