@blue-repository/types 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/meta.d.ts +2 -2
- package/dist/meta.d.ts.map +1 -1
- package/dist/meta.js +2 -0
- package/dist/meta.js.map +1 -1
- package/dist/packages/conversation/blue-ids.d.ts +3 -2
- package/dist/packages/conversation/blue-ids.d.ts.map +1 -1
- package/dist/packages/conversation/blue-ids.js +3 -2
- package/dist/packages/conversation/blue-ids.js.map +1 -1
- package/dist/packages/conversation/contents/CustomerActionRequested.d.ts +11 -17
- package/dist/packages/conversation/contents/CustomerActionRequested.d.ts.map +1 -1
- package/dist/packages/conversation/contents/CustomerActionRequested.js +11 -17
- package/dist/packages/conversation/contents/CustomerActionRequested.js.map +1 -1
- package/dist/packages/conversation/contents/CustomerActionResponded.d.ts +23 -0
- package/dist/packages/conversation/contents/CustomerActionResponded.d.ts.map +1 -0
- package/dist/packages/conversation/contents/CustomerActionResponded.js +23 -0
- package/dist/packages/conversation/contents/CustomerActionResponded.js.map +1 -0
- package/dist/packages/conversation/contents/CustomerConsent.d.ts +0 -1
- package/dist/packages/conversation/contents/CustomerConsent.d.ts.map +1 -1
- package/dist/packages/conversation/contents/CustomerConsent.js +0 -1
- package/dist/packages/conversation/contents/CustomerConsent.js.map +1 -1
- package/dist/packages/conversation/contents/index.d.ts +87 -71
- package/dist/packages/conversation/contents/index.d.ts.map +1 -1
- package/dist/packages/conversation/contents/index.js +9 -6
- package/dist/packages/conversation/contents/index.js.map +1 -1
- package/dist/packages/conversation/index.d.ts +153 -95
- package/dist/packages/conversation/index.d.ts.map +1 -1
- package/dist/packages/conversation/meta.d.ts +18 -8
- package/dist/packages/conversation/meta.d.ts.map +1 -1
- package/dist/packages/conversation/meta.js +17 -6
- package/dist/packages/conversation/meta.js.map +1 -1
- package/dist/packages/conversation/schemas/CustomerActionRequested.d.ts +9 -12
- package/dist/packages/conversation/schemas/CustomerActionRequested.d.ts.map +1 -1
- package/dist/packages/conversation/schemas/CustomerActionRequested.js +4 -5
- package/dist/packages/conversation/schemas/CustomerActionRequested.js.map +1 -1
- package/dist/packages/conversation/schemas/CustomerActionResponded.d.ts +39 -0
- package/dist/packages/conversation/schemas/CustomerActionResponded.d.ts.map +1 -0
- package/dist/packages/conversation/schemas/CustomerActionResponded.js +13 -0
- package/dist/packages/conversation/schemas/CustomerActionResponded.js.map +1 -0
- package/dist/packages/conversation/schemas/DocumentBootstrapFailed.d.ts +2 -2
- package/dist/packages/conversation/schemas/DocumentBootstrapResponded.d.ts +2 -2
- package/dist/packages/conversation/schemas/index.d.ts +52 -18
- package/dist/packages/conversation/schemas/index.d.ts.map +1 -1
- package/dist/packages/conversation/schemas/index.js +5 -2
- package/dist/packages/conversation/schemas/index.js.map +1 -1
- package/dist/packages/myos/index.d.ts +18 -18
- package/dist/packages/myos/schemas/CallOperationFailed.d.ts +2 -2
- package/dist/packages/myos/schemas/LinkedDocumentsPermissionRejected.d.ts +2 -2
- package/dist/packages/myos/schemas/LinkedDocumentsPermissionRevoked.d.ts +2 -2
- package/dist/packages/myos/schemas/LinkedDocumentsPermissionRevokingInProgress.d.ts +2 -2
- package/dist/packages/myos/schemas/SingleDocumentPermissionGrantResponded.d.ts +2 -2
- package/dist/packages/myos/schemas/SingleDocumentPermissionRejected.d.ts +2 -2
- package/dist/packages/myos/schemas/SubscriptionToSessionFailed.d.ts +2 -2
- package/dist/packages/myos/schemas/SubscriptionToSessionRevoked.d.ts +2 -2
- package/dist/packages/myos/schemas/WorkerAgencyPermissionRejected.d.ts +2 -2
- package/dist/packages/myos/schemas/index.d.ts +18 -18
- package/dist/packages/paynote/blue-ids.d.ts +22 -5
- package/dist/packages/paynote/blue-ids.d.ts.map +1 -1
- package/dist/packages/paynote/blue-ids.js +22 -5
- package/dist/packages/paynote/blue-ids.js.map +1 -1
- package/dist/packages/paynote/contents/CardChargeCompleted.d.ts +32 -0
- package/dist/packages/paynote/contents/CardChargeCompleted.d.ts.map +1 -0
- package/dist/packages/paynote/contents/CardChargeCompleted.js +32 -0
- package/dist/packages/paynote/contents/CardChargeCompleted.js.map +1 -0
- package/dist/packages/paynote/contents/CardChargeResponded.d.ts +26 -0
- package/dist/packages/paynote/contents/CardChargeResponded.d.ts.map +1 -0
- package/dist/packages/paynote/contents/CardChargeResponded.js +26 -0
- package/dist/packages/paynote/contents/CardChargeResponded.js.map +1 -0
- package/dist/packages/paynote/contents/CardTransactionPayNote.d.ts +1 -1
- package/dist/packages/paynote/contents/CardTransactionPayNote.js +1 -1
- package/dist/packages/paynote/contents/CardTransactionReport.d.ts +6 -0
- package/dist/packages/paynote/contents/CardTransactionReport.d.ts.map +1 -1
- package/dist/packages/paynote/contents/CardTransactionReport.js +6 -0
- package/dist/packages/paynote/contents/CardTransactionReport.js.map +1 -1
- package/dist/packages/paynote/contents/LinkedCardChargeAndCaptureImmediatelyRequested.d.ts +23 -0
- package/dist/packages/paynote/contents/LinkedCardChargeAndCaptureImmediatelyRequested.d.ts.map +1 -0
- package/dist/packages/paynote/contents/LinkedCardChargeAndCaptureImmediatelyRequested.js +23 -0
- package/dist/packages/paynote/contents/LinkedCardChargeAndCaptureImmediatelyRequested.js.map +1 -0
- package/dist/packages/paynote/contents/LinkedCardChargeRequested.d.ts +23 -0
- package/dist/packages/paynote/contents/LinkedCardChargeRequested.d.ts.map +1 -0
- package/dist/packages/paynote/contents/LinkedCardChargeRequested.js +23 -0
- package/dist/packages/paynote/contents/LinkedCardChargeRequested.js.map +1 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStartFailed.d.ts +14 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStartFailed.d.ts.map +1 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStartFailed.js +14 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStartFailed.js.map +1 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStartResponded.d.ts +20 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStartResponded.d.ts.map +1 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStartResponded.js +20 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStartResponded.js.map +1 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStarted.d.ts +20 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStarted.d.ts.map +1 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStarted.js +20 -0
- package/dist/packages/paynote/contents/LinkedPayNoteStarted.js.map +1 -0
- package/dist/packages/paynote/contents/MerchantToCustomerPayNote.d.ts +1 -1
- package/dist/packages/paynote/contents/MerchantToCustomerPayNote.js +1 -1
- package/dist/packages/paynote/contents/PayNote.d.ts +0 -3
- package/dist/packages/paynote/contents/PayNote.d.ts.map +1 -1
- package/dist/packages/paynote/contents/PayNote.js +0 -3
- package/dist/packages/paynote/contents/PayNote.js.map +1 -1
- package/dist/packages/paynote/contents/PayNoteDelivery.d.ts +12 -1
- package/dist/packages/paynote/contents/PayNoteDelivery.d.ts.map +1 -1
- package/dist/packages/paynote/contents/PayNoteDelivery.js +12 -1
- package/dist/packages/paynote/contents/PayNoteDelivery.js.map +1 -1
- package/dist/packages/paynote/contents/PaymentMandate.d.ts +390 -0
- package/dist/packages/paynote/contents/PaymentMandate.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandate.js +407 -0
- package/dist/packages/paynote/contents/PaymentMandate.js.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateAttached.d.ts +14 -0
- package/dist/packages/paynote/contents/PaymentMandateAttached.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateAttached.js +14 -0
- package/dist/packages/paynote/contents/PaymentMandateAttached.js.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateAttachmentFailed.d.ts +14 -0
- package/dist/packages/paynote/contents/PaymentMandateAttachmentFailed.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateAttachmentFailed.js +14 -0
- package/dist/packages/paynote/contents/PaymentMandateAttachmentFailed.js.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateChargeAttemptState.d.ts +113 -0
- package/dist/packages/paynote/contents/PaymentMandateChargeAttemptState.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateChargeAttemptState.js +113 -0
- package/dist/packages/paynote/contents/PaymentMandateChargeAttemptState.js.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationRequested.d.ts +62 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationRequested.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationRequested.js +62 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationRequested.js.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationResponded.d.ts +38 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationResponded.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationResponded.js +38 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendAuthorizationResponded.js.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendSettled.d.ts +56 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendSettled.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendSettled.js +56 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendSettled.js.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendSettlementResponded.d.ts +44 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendSettlementResponded.d.ts.map +1 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendSettlementResponded.js +44 -0
- package/dist/packages/paynote/contents/PaymentMandateSpendSettlementResponded.js.map +1 -0
- package/dist/packages/paynote/contents/ReverseCardChargeAndCaptureImmediatelyRequested.d.ts +23 -0
- package/dist/packages/paynote/contents/ReverseCardChargeAndCaptureImmediatelyRequested.d.ts.map +1 -0
- package/dist/packages/paynote/contents/ReverseCardChargeAndCaptureImmediatelyRequested.js +23 -0
- package/dist/packages/paynote/contents/ReverseCardChargeAndCaptureImmediatelyRequested.js.map +1 -0
- package/dist/packages/paynote/contents/ReverseCardChargeRequested.d.ts +23 -0
- package/dist/packages/paynote/contents/ReverseCardChargeRequested.d.ts.map +1 -0
- package/dist/packages/paynote/contents/ReverseCardChargeRequested.js +23 -0
- package/dist/packages/paynote/contents/ReverseCardChargeRequested.js.map +1 -0
- package/dist/packages/paynote/contents/index.d.ts +1412 -463
- package/dist/packages/paynote/contents/index.d.ts.map +1 -1
- package/dist/packages/paynote/contents/index.js +64 -13
- package/dist/packages/paynote/contents/index.js.map +1 -1
- package/dist/packages/paynote/index.d.ts +3882 -1198
- package/dist/packages/paynote/index.d.ts.map +1 -1
- package/dist/packages/paynote/meta.d.ts +190 -20
- package/dist/packages/paynote/meta.d.ts.map +1 -1
- package/dist/packages/paynote/meta.js +202 -15
- package/dist/packages/paynote/meta.js.map +1 -1
- package/dist/packages/paynote/schemas/CaptureDeclined.d.ts +2 -2
- package/dist/packages/paynote/schemas/CaptureFailed.d.ts +2 -2
- package/dist/packages/paynote/schemas/CardChargeCompleted.d.ts +34 -0
- package/dist/packages/paynote/schemas/CardChargeCompleted.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/CardChargeCompleted.js +13 -0
- package/dist/packages/paynote/schemas/CardChargeCompleted.js.map +1 -0
- package/dist/packages/paynote/schemas/CardChargeResponded.d.ts +31 -0
- package/dist/packages/paynote/schemas/CardChargeResponded.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/CardChargeResponded.js +12 -0
- package/dist/packages/paynote/schemas/CardChargeResponded.js.map +1 -0
- package/dist/packages/paynote/schemas/CardTransactionCaptureLockChangeFailed.d.ts +2 -2
- package/dist/packages/paynote/schemas/CardTransactionMonitoringRequestRejected.d.ts +2 -2
- package/dist/packages/paynote/schemas/CardTransactionReport.d.ts +5 -2
- package/dist/packages/paynote/schemas/CardTransactionReport.d.ts.map +1 -1
- package/dist/packages/paynote/schemas/CardTransactionReport.js +1 -0
- package/dist/packages/paynote/schemas/CardTransactionReport.js.map +1 -1
- package/dist/packages/paynote/schemas/ChildPayNoteIssuanceDeclined.d.ts +2 -2
- package/dist/packages/paynote/schemas/LinkedCardChargeAndCaptureImmediatelyRequested.d.ts +31 -0
- package/dist/packages/paynote/schemas/LinkedCardChargeAndCaptureImmediatelyRequested.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/LinkedCardChargeAndCaptureImmediatelyRequested.js +12 -0
- package/dist/packages/paynote/schemas/LinkedCardChargeAndCaptureImmediatelyRequested.js.map +1 -0
- package/dist/packages/paynote/schemas/LinkedCardChargeRequested.d.ts +31 -0
- package/dist/packages/paynote/schemas/LinkedCardChargeRequested.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/LinkedCardChargeRequested.js +12 -0
- package/dist/packages/paynote/schemas/LinkedCardChargeRequested.js.map +1 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStartFailed.d.ts +25 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStartFailed.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStartFailed.js +10 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStartFailed.js.map +1 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStartResponded.d.ts +28 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStartResponded.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStartResponded.js +11 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStartResponded.js.map +1 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStarted.d.ts +28 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStarted.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStarted.js +11 -0
- package/dist/packages/paynote/schemas/LinkedPayNoteStarted.js.map +1 -0
- package/dist/packages/paynote/schemas/PayNoteCancellationRejected.d.ts +2 -2
- package/dist/packages/paynote/schemas/PayNoteDelivery.d.ts +115 -0
- package/dist/packages/paynote/schemas/PayNoteDelivery.d.ts.map +1 -1
- package/dist/packages/paynote/schemas/PayNoteDelivery.js +1 -0
- package/dist/packages/paynote/schemas/PayNoteDelivery.js.map +1 -1
- package/dist/packages/paynote/schemas/PayNoteRejected.d.ts +2 -2
- package/dist/packages/paynote/schemas/PaymentMandate.d.ts +904 -0
- package/dist/packages/paynote/schemas/PaymentMandate.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandate.js +56 -0
- package/dist/packages/paynote/schemas/PaymentMandate.js.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateAttached.d.ts +19 -0
- package/dist/packages/paynote/schemas/PaymentMandateAttached.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateAttached.js +10 -0
- package/dist/packages/paynote/schemas/PaymentMandateAttached.js.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateAttachmentFailed.d.ts +19 -0
- package/dist/packages/paynote/schemas/PaymentMandateAttachmentFailed.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateAttachmentFailed.js +10 -0
- package/dist/packages/paynote/schemas/PaymentMandateAttachmentFailed.js.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateChargeAttemptState.d.ts +91 -0
- package/dist/packages/paynote/schemas/PaymentMandateChargeAttemptState.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateChargeAttemptState.js +28 -0
- package/dist/packages/paynote/schemas/PaymentMandateChargeAttemptState.js.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationRequested.d.ts +65 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationRequested.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationRequested.js +20 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationRequested.js.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationResponded.d.ts +45 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationResponded.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationResponded.js +15 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendAuthorizationResponded.js.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendSettled.d.ts +54 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendSettled.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendSettled.js +18 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendSettled.js.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendSettlementResponded.d.ts +48 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendSettlementResponded.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendSettlementResponded.js +16 -0
- package/dist/packages/paynote/schemas/PaymentMandateSpendSettlementResponded.js.map +1 -0
- package/dist/packages/paynote/schemas/ReservationDeclined.d.ts +2 -2
- package/dist/packages/paynote/schemas/ReservationReleaseDeclined.d.ts +2 -2
- package/dist/packages/paynote/schemas/ReverseCardChargeAndCaptureImmediatelyRequested.d.ts +31 -0
- package/dist/packages/paynote/schemas/ReverseCardChargeAndCaptureImmediatelyRequested.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/ReverseCardChargeAndCaptureImmediatelyRequested.js +12 -0
- package/dist/packages/paynote/schemas/ReverseCardChargeAndCaptureImmediatelyRequested.js.map +1 -0
- package/dist/packages/paynote/schemas/ReverseCardChargeRequested.d.ts +31 -0
- package/dist/packages/paynote/schemas/ReverseCardChargeRequested.d.ts.map +1 -0
- package/dist/packages/paynote/schemas/ReverseCardChargeRequested.js +12 -0
- package/dist/packages/paynote/schemas/ReverseCardChargeRequested.js.map +1 -0
- package/dist/packages/paynote/schemas/SettlementAmountRejected.d.ts +2 -2
- package/dist/packages/paynote/schemas/index.d.ts +1645 -46
- package/dist/packages/paynote/schemas/index.d.ts.map +1 -1
- package/dist/packages/paynote/schemas/index.js +56 -5
- package/dist/packages/paynote/schemas/index.js.map +1 -1
- package/dist/repository.d.ts +4021 -1279
- package/dist/repository.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
export const PaymentMandate = {
|
|
2
|
+
allowedPaymentCounterparties: {
|
|
3
|
+
description: 'Optional payment counterparty allowlist. Missing list means wildcard (any counterparty is allowed).\n',
|
|
4
|
+
itemType: {
|
|
5
|
+
counterpartyId: {
|
|
6
|
+
description: 'Counterparty identifier interpreted according to counterpartyType.',
|
|
7
|
+
type: {
|
|
8
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
counterpartyType: {
|
|
12
|
+
description: 'Allowed payment counterparty identifier type:\n- merchantId\n- customerId\n- accountNumber\n',
|
|
13
|
+
type: {
|
|
14
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
blueId: '6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
allowedPayNotes: {
|
|
23
|
+
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',
|
|
24
|
+
itemType: {
|
|
25
|
+
documentBlueId: {
|
|
26
|
+
description: 'Optional blue-id of an allowed concrete PayNote document. Mutually exclusive with typeBlueId.\n',
|
|
27
|
+
type: {
|
|
28
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
typeBlueId: {
|
|
32
|
+
description: 'Optional blue-id of an allowed PayNote type. Mutually exclusive with documentBlueId.\n',
|
|
33
|
+
type: {
|
|
34
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
type: {
|
|
39
|
+
blueId: '6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
allowLinkedPayNote: {
|
|
43
|
+
description: 'Whether this mandate allows linked PayNote startup after charge execution.',
|
|
44
|
+
type: {
|
|
45
|
+
blueId: '4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
amountCaptured: {
|
|
49
|
+
description: 'Running captured amount in minor currency units. Increased after successful capture.\n',
|
|
50
|
+
type: {
|
|
51
|
+
blueId: '5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
amountLimit: {
|
|
55
|
+
description: 'Maximum amount in minor currency units allowed by this mandate.',
|
|
56
|
+
type: {
|
|
57
|
+
blueId: '5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
amountReserved: {
|
|
61
|
+
description: 'Running reserved amount in minor currency units. Increased after successful reserve/authorize, decreased after release/capture.\n',
|
|
62
|
+
type: {
|
|
63
|
+
blueId: '5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
chargeAttempts: {
|
|
67
|
+
description: 'Stateful map of chargeAttemptId -> attempt state (authorization + settlement).',
|
|
68
|
+
keyType: {
|
|
69
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
70
|
+
},
|
|
71
|
+
type: {
|
|
72
|
+
blueId: 'G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj',
|
|
73
|
+
},
|
|
74
|
+
valueType: {
|
|
75
|
+
blueId: 'JADRqXZ7UWNDqPt9Zhnn6831Nz2X5yeSuyew4hu6ciVq',
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
contracts: {
|
|
79
|
+
authorizeSpend: {
|
|
80
|
+
channel: {
|
|
81
|
+
type: {
|
|
82
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
83
|
+
},
|
|
84
|
+
value: 'guarantorChannel',
|
|
85
|
+
},
|
|
86
|
+
description: 'Validate a charge attempt against mandate policy and reserve capacity.',
|
|
87
|
+
request: {
|
|
88
|
+
type: {
|
|
89
|
+
blueId: '4STBHLJjxjCZVgeW2ScFfmsx8Vm16FenEbaNMyL8ZJUT',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
type: {
|
|
93
|
+
blueId: 'BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
authorizeSpendImpl: {
|
|
97
|
+
operation: {
|
|
98
|
+
type: {
|
|
99
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
100
|
+
},
|
|
101
|
+
value: 'authorizeSpend',
|
|
102
|
+
},
|
|
103
|
+
steps: {
|
|
104
|
+
items: [
|
|
105
|
+
{
|
|
106
|
+
code: {
|
|
107
|
+
type: {
|
|
108
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
109
|
+
},
|
|
110
|
+
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",
|
|
111
|
+
},
|
|
112
|
+
name: 'Decide Spend Authorization',
|
|
113
|
+
type: {
|
|
114
|
+
blueId: 'ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS',
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
changeset: {
|
|
119
|
+
items: [
|
|
120
|
+
{
|
|
121
|
+
op: {
|
|
122
|
+
type: {
|
|
123
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
124
|
+
},
|
|
125
|
+
value: 'replace',
|
|
126
|
+
},
|
|
127
|
+
path: {
|
|
128
|
+
type: {
|
|
129
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
130
|
+
},
|
|
131
|
+
value: '/chargeAttempts',
|
|
132
|
+
},
|
|
133
|
+
val: {
|
|
134
|
+
type: {
|
|
135
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
136
|
+
},
|
|
137
|
+
value: "${steps['Decide Spend Authorization'].nextChargeAttempts}",
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
op: {
|
|
142
|
+
type: {
|
|
143
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
144
|
+
},
|
|
145
|
+
value: 'replace',
|
|
146
|
+
},
|
|
147
|
+
path: {
|
|
148
|
+
type: {
|
|
149
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
150
|
+
},
|
|
151
|
+
value: '/amountReserved',
|
|
152
|
+
},
|
|
153
|
+
val: {
|
|
154
|
+
type: {
|
|
155
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
156
|
+
},
|
|
157
|
+
value: "${steps['Decide Spend Authorization'].nextAmountReserved}",
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
name: 'Persist Authorization Decision',
|
|
163
|
+
type: {
|
|
164
|
+
blueId: 'FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa',
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
type: {
|
|
170
|
+
blueId: 'CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv',
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
granteeChannel: {
|
|
174
|
+
description: 'Grantee timeline channel (party allowed to use the mandate).',
|
|
175
|
+
type: {
|
|
176
|
+
blueId: 'HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs',
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
granterChannel: {
|
|
180
|
+
description: 'Granting party timeline channel.',
|
|
181
|
+
type: {
|
|
182
|
+
blueId: 'HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
guarantorChannel: {
|
|
186
|
+
description: 'Bank/admin channel executing mandate checks and settlement updates.',
|
|
187
|
+
type: {
|
|
188
|
+
blueId: 'HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs',
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
initialize: {
|
|
192
|
+
channel: {
|
|
193
|
+
type: {
|
|
194
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
195
|
+
},
|
|
196
|
+
value: 'initLifecycleChannel',
|
|
197
|
+
},
|
|
198
|
+
steps: {
|
|
199
|
+
items: [
|
|
200
|
+
{
|
|
201
|
+
changeset: {
|
|
202
|
+
items: [
|
|
203
|
+
{
|
|
204
|
+
op: {
|
|
205
|
+
type: {
|
|
206
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
207
|
+
},
|
|
208
|
+
value: 'replace',
|
|
209
|
+
},
|
|
210
|
+
path: {
|
|
211
|
+
type: {
|
|
212
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
213
|
+
},
|
|
214
|
+
value: '/chargeAttempts',
|
|
215
|
+
},
|
|
216
|
+
val: {},
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
name: 'Initialize mandate runtime state',
|
|
221
|
+
type: {
|
|
222
|
+
blueId: 'FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa',
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
type: {
|
|
228
|
+
blueId: '7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe',
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
initLifecycleChannel: {
|
|
232
|
+
event: {
|
|
233
|
+
type: {
|
|
234
|
+
blueId: 'BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2',
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
type: {
|
|
238
|
+
blueId: 'H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr',
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
settleSpend: {
|
|
242
|
+
channel: {
|
|
243
|
+
type: {
|
|
244
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
245
|
+
},
|
|
246
|
+
value: 'guarantorChannel',
|
|
247
|
+
},
|
|
248
|
+
description: 'Apply final reserve/capture deltas for a previously authorized charge attempt.',
|
|
249
|
+
request: {
|
|
250
|
+
type: {
|
|
251
|
+
blueId: '3TW3tRAQdYoMTFeeqmnWLR9JFibTVaJuiRJfJ3ggeVTJ',
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
type: {
|
|
255
|
+
blueId: 'BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC',
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
settleSpendImpl: {
|
|
259
|
+
operation: {
|
|
260
|
+
type: {
|
|
261
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
262
|
+
},
|
|
263
|
+
value: 'settleSpend',
|
|
264
|
+
},
|
|
265
|
+
steps: {
|
|
266
|
+
items: [
|
|
267
|
+
{
|
|
268
|
+
code: {
|
|
269
|
+
type: {
|
|
270
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
271
|
+
},
|
|
272
|
+
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",
|
|
273
|
+
},
|
|
274
|
+
name: 'Validate and Apply Settlement',
|
|
275
|
+
type: {
|
|
276
|
+
blueId: 'ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS',
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
changeset: {
|
|
281
|
+
items: [
|
|
282
|
+
{
|
|
283
|
+
op: {
|
|
284
|
+
type: {
|
|
285
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
286
|
+
},
|
|
287
|
+
value: 'replace',
|
|
288
|
+
},
|
|
289
|
+
path: {
|
|
290
|
+
type: {
|
|
291
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
292
|
+
},
|
|
293
|
+
value: '/chargeAttempts',
|
|
294
|
+
},
|
|
295
|
+
val: {
|
|
296
|
+
type: {
|
|
297
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
298
|
+
},
|
|
299
|
+
value: "${steps['Validate and Apply Settlement'].nextChargeAttempts}",
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
op: {
|
|
304
|
+
type: {
|
|
305
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
306
|
+
},
|
|
307
|
+
value: 'replace',
|
|
308
|
+
},
|
|
309
|
+
path: {
|
|
310
|
+
type: {
|
|
311
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
312
|
+
},
|
|
313
|
+
value: '/amountReserved',
|
|
314
|
+
},
|
|
315
|
+
val: {
|
|
316
|
+
type: {
|
|
317
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
318
|
+
},
|
|
319
|
+
value: "${steps['Validate and Apply Settlement'].nextAmountReserved}",
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
op: {
|
|
324
|
+
type: {
|
|
325
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
326
|
+
},
|
|
327
|
+
value: 'replace',
|
|
328
|
+
},
|
|
329
|
+
path: {
|
|
330
|
+
type: {
|
|
331
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
332
|
+
},
|
|
333
|
+
value: '/amountCaptured',
|
|
334
|
+
},
|
|
335
|
+
val: {
|
|
336
|
+
type: {
|
|
337
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
338
|
+
},
|
|
339
|
+
value: "${steps['Validate and Apply Settlement'].nextAmountCaptured}",
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
],
|
|
343
|
+
},
|
|
344
|
+
name: 'Persist Settlement',
|
|
345
|
+
type: {
|
|
346
|
+
blueId: 'FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa',
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
},
|
|
351
|
+
type: {
|
|
352
|
+
blueId: 'CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv',
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
currency: {
|
|
357
|
+
description: 'Currency code used for amountLimit validation.',
|
|
358
|
+
type: {
|
|
359
|
+
blueId: 'CBnZ7aaNetj9KEqXpUWj5jvjKbmviLivP98T2EiyxiYc',
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
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',
|
|
363
|
+
expiresAt: {
|
|
364
|
+
description: 'Optional mandate expiry timestamp.',
|
|
365
|
+
type: {
|
|
366
|
+
blueId: 'GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs',
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
granteeId: {
|
|
370
|
+
description: 'Identifier interpreted according to granteeType.',
|
|
371
|
+
type: {
|
|
372
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
granteeType: {
|
|
376
|
+
description: 'Party allowed to invoke this mandate:\n- documentId\n- merchantId\n- customerId\n',
|
|
377
|
+
type: {
|
|
378
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
granterId: {
|
|
382
|
+
description: 'Identifier of the granting party:\n- merchantId when granterType is merchant\n- customerId (bank user id) when granterType is customer\n',
|
|
383
|
+
type: {
|
|
384
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
granterType: {
|
|
388
|
+
description: 'Party granting authority to use funds:\n- merchant\n- customer\n',
|
|
389
|
+
type: {
|
|
390
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
name: 'Payment Mandate',
|
|
394
|
+
revokedAt: {
|
|
395
|
+
description: 'Optional revocation timestamp. When set, mandate is inactive.',
|
|
396
|
+
type: {
|
|
397
|
+
blueId: 'GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs',
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
sourceAccount: {
|
|
401
|
+
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',
|
|
402
|
+
type: {
|
|
403
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
};
|
|
407
|
+
//# sourceMappingURL=PaymentMandate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMandate.js","sourceRoot":"","sources":["../../../../src/packages/paynote/contents/PaymentMandate.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,4BAA4B,EAAE;QAC5B,WAAW,EACT,uGAAuG;QACzG,QAAQ,EAAE;YACR,cAAc,EAAE;gBACd,WAAW,EACT,oEAAoE;gBACtE,IAAI,EAAE;oBACJ,MAAM,EAAE,8CAA8C;iBACvD;aACF;YACD,gBAAgB,EAAE;gBAChB,WAAW,EACT,8FAA8F;gBAChG,IAAI,EAAE;oBACJ,MAAM,EAAE,8CAA8C;iBACvD;aACF;SACF;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,eAAe,EAAE;QACf,WAAW,EACT,sNAAsN;QACxN,QAAQ,EAAE;YACR,cAAc,EAAE;gBACd,WA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AE;wCACH,IAAI,EAAE;4CACJ,MAAM,EAAE,8CAA8C;yCACvD;wCACD,KAAK,EACH,8DAA8D;qCACjE;iCACF;6BACF;yBACF;wBACD,IAAI,EAAE,oBAAoB;wBAC1B,IAAI,EAAE;4BACJ,MAAM,EAAE,8CAA8C;yBACvD;qBACF;iBACF;aACF;YACD,IAAI,EAAE;gBACJ,MAAM,EAAE,8CAA8C;aACvD;SACF;KACF;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,gDAAgD;QAC7D,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,WAAW,EACT,mMAAmM;IACrM,SAAS,EAAE;QACT,WAAW,EAAE,oCAAoC;QACjD,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,SAAS,EAAE;QACT,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,WAAW,EAAE;QACX,WAAW,EACT,mFAAmF;QACrF,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,SAAS,EAAE;QACT,WAAW,EACT,0IAA0I;QAC5I,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,WAAW,EAAE;QACX,WAAW,EACT,kEAAkE;QACpE,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,IAAI,EAAE,iBAAiB;IACvB,SAAS,EAAE;QACT,WAAW,EACT,+DAA+D;QACjE,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,aAAa,EAAE;QACb,WAAW,EACT,8JAA8J;QAChK,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const PaymentMandateAttached: {
|
|
2
|
+
readonly description: "Payment Mandate was successfully attached to the PayNote context.";
|
|
3
|
+
readonly name: "Payment Mandate Attached";
|
|
4
|
+
readonly paymentMandateDocumentId: {
|
|
5
|
+
readonly description: "Document id of the attached Payment Mandate.";
|
|
6
|
+
readonly type: {
|
|
7
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
readonly type: {
|
|
11
|
+
readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=PaymentMandateAttached.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMandateAttached.d.ts","sourceRoot":"","sources":["../../../../src/packages/paynote/contents/PaymentMandateAttached.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;CAazB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const PaymentMandateAttached = {
|
|
2
|
+
description: 'Payment Mandate was successfully attached to the PayNote context.',
|
|
3
|
+
name: 'Payment Mandate Attached',
|
|
4
|
+
paymentMandateDocumentId: {
|
|
5
|
+
description: 'Document id of the attached Payment Mandate.',
|
|
6
|
+
type: {
|
|
7
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
type: {
|
|
11
|
+
blueId: '5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we',
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=PaymentMandateAttached.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMandateAttached.js","sourceRoot":"","sources":["../../../../src/packages/paynote/contents/PaymentMandateAttached.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,WAAW,EACT,mEAAmE;IACrE,IAAI,EAAE,0BAA0B;IAChC,wBAAwB,EAAE;QACxB,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,8CAA8C;KACvD;CACO,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const PaymentMandateAttachmentFailed: {
|
|
2
|
+
readonly description: "Payment Mandate attachment to PayNote failed.";
|
|
3
|
+
readonly name: "Payment Mandate Attachment Failed";
|
|
4
|
+
readonly reason: {
|
|
5
|
+
readonly description: "Failure reason explaining why attachment failed.";
|
|
6
|
+
readonly type: {
|
|
7
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
readonly type: {
|
|
11
|
+
readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=PaymentMandateAttachmentFailed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMandateAttachmentFailed.d.ts","sourceRoot":"","sources":["../../../../src/packages/paynote/contents/PaymentMandateAttachmentFailed.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;CAYjC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const PaymentMandateAttachmentFailed = {
|
|
2
|
+
description: 'Payment Mandate attachment to PayNote failed.',
|
|
3
|
+
name: 'Payment Mandate Attachment Failed',
|
|
4
|
+
reason: {
|
|
5
|
+
description: 'Failure reason explaining why attachment failed.',
|
|
6
|
+
type: {
|
|
7
|
+
blueId: 'DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K',
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
type: {
|
|
11
|
+
blueId: '5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we',
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=PaymentMandateAttachmentFailed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMandateAttachmentFailed.js","sourceRoot":"","sources":["../../../../src/packages/paynote/contents/PaymentMandateAttachmentFailed.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,WAAW,EAAE,+CAA+C;IAC5D,IAAI,EAAE,mCAAmC;IACzC,MAAM,EAAE;QACN,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE;YACJ,MAAM,EAAE,8CAA8C;SACvD;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,8CAA8C;KACvD;CACO,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export declare const PaymentMandateChargeAttemptState: {
|
|
2
|
+
readonly amountMinor: {
|
|
3
|
+
readonly description: "Requested amount in minor currency units.";
|
|
4
|
+
readonly type: {
|
|
5
|
+
readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
readonly authorizationReason: {
|
|
9
|
+
readonly description: "Optional authorization rejection reason.";
|
|
10
|
+
readonly type: {
|
|
11
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
readonly authorizationRespondedAt: {
|
|
15
|
+
readonly description: "Timestamp of authorization decision response.";
|
|
16
|
+
readonly type: {
|
|
17
|
+
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly authorizationStatus: {
|
|
21
|
+
readonly description: "Authorization decision status (\"approved\" | \"rejected\").";
|
|
22
|
+
readonly type: {
|
|
23
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly authorizedAmountMinor: {
|
|
27
|
+
readonly description: "Authorized amount reserved against mandate capacity for this attempt.";
|
|
28
|
+
readonly type: {
|
|
29
|
+
readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly capturedDeltaMinor: {
|
|
33
|
+
readonly description: "Captured delta applied for accepted settlement.";
|
|
34
|
+
readonly type: {
|
|
35
|
+
readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly chargeMode: {
|
|
39
|
+
readonly description: "Requested charge mode (\"authorize_only\" | \"authorize_and_capture\").";
|
|
40
|
+
readonly type: {
|
|
41
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
readonly counterpartyId: {
|
|
45
|
+
readonly description: "Counterparty identifier interpreted according to counterpartyType.";
|
|
46
|
+
readonly type: {
|
|
47
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly counterpartyType: {
|
|
51
|
+
readonly description: "Counterparty identifier type (\"merchantId\" | \"customerId\" | \"accountNumber\").";
|
|
52
|
+
readonly type: {
|
|
53
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly currency: {
|
|
57
|
+
readonly description: "Requested currency.";
|
|
58
|
+
readonly type: {
|
|
59
|
+
readonly blueId: "CBnZ7aaNetj9KEqXpUWj5jvjKbmviLivP98T2EiyxiYc";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
readonly description: "Stateful record for a single charge attempt tracked by Payment Mandate.";
|
|
63
|
+
readonly holdId: {
|
|
64
|
+
readonly description: "Optional hold id associated with settlement.";
|
|
65
|
+
readonly type: {
|
|
66
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly lastSettlementProcessingStatus: {
|
|
70
|
+
readonly description: "Mandate processing status for last settlement (\"accepted\" | \"rejected\").";
|
|
71
|
+
readonly type: {
|
|
72
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly lastSettlementRequestStatus: {
|
|
76
|
+
readonly description: "Last settlement request status received from bank (\"succeeded\" | \"failed\").";
|
|
77
|
+
readonly type: {
|
|
78
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly name: "Payment Mandate Charge Attempt State";
|
|
82
|
+
readonly reservedDeltaMinor: {
|
|
83
|
+
readonly description: "Reserved delta applied for accepted settlement.";
|
|
84
|
+
readonly type: {
|
|
85
|
+
readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly settled: {
|
|
89
|
+
readonly description: "Whether mandate accepted settlement for this attempt.";
|
|
90
|
+
readonly type: {
|
|
91
|
+
readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly settlementReason: {
|
|
95
|
+
readonly description: "Optional settlement rejection/info reason.";
|
|
96
|
+
readonly type: {
|
|
97
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly settlementRespondedAt: {
|
|
101
|
+
readonly description: "Timestamp of last settlement processing response.";
|
|
102
|
+
readonly type: {
|
|
103
|
+
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly transactionId: {
|
|
107
|
+
readonly description: "Optional transaction id associated with settlement.";
|
|
108
|
+
readonly type: {
|
|
109
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=PaymentMandateChargeAttemptState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMandateChargeAttemptState.d.ts","sourceRoot":"","sources":["../../../../src/packages/paynote/contents/PaymentMandateChargeAttemptState.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsHnC,CAAC"}
|