@hyperscale0/udl 2.6.1 → 3.0.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/CHANGELOG.md +2 -330
- package/LICENSING.md +1 -2
- package/README.md +3 -114
- package/TRADEMARKS.md +2 -2
- package/dist/diagnostics.d.ts +21 -201
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/diagnostics.js +29 -193
- package/dist/diagnostics.js.map +1 -1
- package/dist/evolution.d.ts +3 -132
- package/dist/evolution.d.ts.map +1 -1
- package/dist/evolution.js +29 -633
- package/dist/evolution.js.map +1 -1
- package/dist/finance.d.ts +5 -72
- package/dist/finance.d.ts.map +1 -1
- package/dist/finance.js +233 -737
- package/dist/finance.js.map +1 -1
- package/dist/index.d.ts +7 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -12
- package/dist/index.js.map +1 -1
- package/dist/instrument-references.d.ts.map +1 -1
- package/dist/instrument-references.js +3 -2
- package/dist/instrument-references.js.map +1 -1
- package/dist/schema.d.ts +2079 -4564
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +270 -1609
- package/dist/schema.js.map +1 -1
- package/dist/validation.d.ts +8 -104
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +653 -3271
- package/dist/validation.js.map +1 -1
- package/docs/README.md +147 -14
- package/package.json +7 -11
- package/spec/README.md +151 -164
- package/spec/darb.udl.json +249 -0
- package/spec/udl.schema.json +4104 -3202
- package/src/diagnostics.ts +51 -246
- package/src/evolution.ts +39 -1045
- package/src/finance.ts +287 -1127
- package/src/index.ts +18 -142
- package/src/instrument-references.ts +3 -2
- package/src/schema.ts +285 -1843
- package/src/validation.ts +870 -5611
- package/conformance/README.md +0 -82
- package/conformance/evolution/action-contract.expected.json +0 -10
- package/conformance/evolution/action-contract.live.udl +0 -44
- package/conformance/evolution/action-contract.next.udl +0 -45
- package/conformance/evolution/product-identity.expected.json +0 -10
- package/conformance/evolution/product-identity.live.udl +0 -55
- package/conformance/evolution/product-identity.next.udl +0 -55
- package/conformance/evolution/version-required.expected.json +0 -10
- package/conformance/evolution/version-required.live.udl +0 -55
- package/conformance/evolution/version-required.next.udl +0 -58
- package/conformance/invalid/action-without-transition.expected.json +0 -10
- package/conformance/invalid/action-without-transition.udl +0 -60
- package/conformance/invalid/agent-description-too-long.expected.json +0 -10
- package/conformance/invalid/agent-description-too-long.udl +0 -57
- package/conformance/invalid/blank-title.expected.json +0 -10
- package/conformance/invalid/blank-title.udl +0 -54
- package/conformance/invalid/call-binds-results.expected.json +0 -10
- package/conformance/invalid/call-binds-results.udl +0 -314
- package/conformance/invalid/call-unknown-action.expected.json +0 -10
- package/conformance/invalid/call-unknown-action.udl +0 -314
- package/conformance/invalid/composition-dial-duplicate-key.expected.json +0 -10
- package/conformance/invalid/composition-dial-duplicate-key.udl +0 -73
- package/conformance/invalid/depth-budget.expected.json +0 -10
- package/conformance/invalid/depth-budget.udl +0 -49
- package/conformance/invalid/duplicate-subject.expected.json +0 -10
- package/conformance/invalid/duplicate-subject.udl +0 -230
- package/conformance/invalid/forged-effects.expected.json +0 -10
- package/conformance/invalid/forged-effects.udl +0 -76
- package/conformance/invalid/format-version.expected.json +0 -10
- package/conformance/invalid/format-version.udl +0 -54
- package/conformance/invalid/instrument-id-not-snake-case.expected.json +0 -10
- package/conformance/invalid/instrument-id-not-snake-case.udl +0 -54
- package/conformance/invalid/invalid-aggregate-gate-shape.expected.json +0 -10
- package/conformance/invalid/invalid-aggregate-gate-shape.udl +0 -1819
- package/conformance/invalid/invalid-check-duration.expected.json +0 -10
- package/conformance/invalid/invalid-check-duration.udl +0 -219
- package/conformance/invalid/invalid-dial-anchor.expected.json +0 -10
- package/conformance/invalid/invalid-dial-anchor.udl +0 -219
- package/conformance/invalid/invalid-exception-parent-ref.expected.json +0 -10
- package/conformance/invalid/invalid-exception-parent-ref.udl +0 -2487
- package/conformance/invalid/invalid-exposure-shape.expected.json +0 -10
- package/conformance/invalid/invalid-exposure-shape.udl +0 -1819
- package/conformance/invalid/invalid-journeys.expected.json +0 -10
- package/conformance/invalid/invalid-journeys.udl +0 -77
- package/conformance/invalid/invalid-remainder.expected.json +0 -10
- package/conformance/invalid/invalid-remainder.udl +0 -220
- package/conformance/invalid/invalid-schema-keyword.expected.json +0 -10
- package/conformance/invalid/invalid-schema-keyword.udl +0 -220
- package/conformance/invalid/invalid-utf8.expected.json +0 -10
- package/conformance/invalid/invalid-utf8.udl +0 -1
- package/conformance/invalid/leaf-effect-mismatch.expected.json +0 -10
- package/conformance/invalid/leaf-effect-mismatch.udl +0 -314
- package/conformance/invalid/malformed-json.expected.json +0 -10
- package/conformance/invalid/malformed-json.udl +0 -1
- package/conformance/invalid/missing-create-action.expected.json +0 -10
- package/conformance/invalid/missing-create-action.udl +0 -48
- package/conformance/invalid/missing-exception-amount-field.expected.json +0 -10
- package/conformance/invalid/missing-exception-amount-field.udl +0 -2487
- package/conformance/invalid/missing-exception-contract.expected.json +0 -14
- package/conformance/invalid/missing-exception-contract.udl +0 -2523
- package/conformance/invalid/missing-exception-reason-field.expected.json +0 -10
- package/conformance/invalid/missing-exception-reason-field.udl +0 -2487
- package/conformance/invalid/not-an-object.expected.json +0 -10
- package/conformance/invalid/not-an-object.udl +0 -1
- package/conformance/invalid/payout-reconcile-not-a-bank-debit.expected.json +0 -10
- package/conformance/invalid/payout-reconcile-not-a-bank-debit.udl +0 -259
- package/conformance/invalid/piece-plan-without-partition.expected.json +0 -10
- package/conformance/invalid/piece-plan-without-partition.udl +0 -305
- package/conformance/invalid/private-action-independent-approval.expected.json +0 -10
- package/conformance/invalid/private-action-independent-approval.udl +0 -314
- package/conformance/invalid/quote-freeze-set-incomplete.expected.json +0 -10
- package/conformance/invalid/quote-freeze-set-incomplete.udl +0 -261
- package/conformance/invalid/quote-named-reference-gate.expected.json +0 -10
- package/conformance/invalid/quote-named-reference-gate.udl +0 -50
- package/conformance/invalid/reconcile-named-reference-gate.expected.json +0 -10
- package/conformance/invalid/reconcile-named-reference-gate.udl +0 -50
- package/conformance/invalid/unfund-order-not-reversed.expected.json +0 -10
- package/conformance/invalid/unfund-order-not-reversed.udl +0 -314
- package/conformance/invalid/unknown-key.expected.json +0 -10
- package/conformance/invalid/unknown-key.udl +0 -55
- package/conformance/invalid/unknown-reference-gate-field.expected.json +0 -10
- package/conformance/invalid/unknown-reference-gate-field.udl +0 -1819
- package/conformance/invalid/unknown-required-field.expected.json +0 -10
- package/conformance/invalid/unknown-required-field.udl +0 -220
- package/conformance/invalid/unreachable-state.expected.json +0 -10
- package/conformance/invalid/unreachable-state.udl +0 -55
- package/conformance/invalid/wrong-exception-amount-field.expected.json +0 -10
- package/conformance/invalid/wrong-exception-amount-field.udl +0 -2487
- package/conformance/invalid/wrong-exception-reason-field.expected.json +0 -10
- package/conformance/invalid/wrong-exception-reason-field.udl +0 -2487
- package/conformance/valid/agent-description.expected.json +0 -6
- package/conformance/valid/agent-description.udl +0 -66
- package/conformance/valid/attested.expected.json +0 -6
- package/conformance/valid/attested.udl +0 -251
- package/conformance/valid/cards.expected.json +0 -6
- package/conformance/valid/cards.udl +0 -1579
- package/conformance/valid/commerce-escrow.expected.json +0 -6
- package/conformance/valid/commerce-escrow.udl +0 -1512
- package/conformance/valid/compiled-crowdfunding.expected.json +0 -6
- package/conformance/valid/compiled-crowdfunding.udl +0 -1843
- package/conformance/valid/compiled-watch-club.expected.json +0 -6
- package/conformance/valid/compiled-watch-club.udl +0 -2486
- package/conformance/valid/complete-contract.expected.json +0 -6
- package/conformance/valid/complete-contract.udl +0 -218
- package/conformance/valid/effect-signatures.expected.json +0 -6
- package/conformance/valid/effect-signatures.udl +0 -75
- package/conformance/valid/hand-edited.expected.json +0 -6
- package/conformance/valid/hand-edited.udl +0 -1
- package/conformance/valid/insured-car-marketplace.expected.json +0 -6
- package/conformance/valid/insured-car-marketplace.udl +0 -1050
- package/conformance/valid/insured-travel.expected.json +0 -6
- package/conformance/valid/insured-travel.udl +0 -3469
- package/conformance/valid/minimal.expected.json +0 -6
- package/conformance/valid/minimal.udl +0 -62
- package/conformance/valid/piece-plan-calls.expected.json +0 -6
- package/conformance/valid/piece-plan-calls.udl +0 -314
- package/conformance/valid/protection.expected.json +0 -6
- package/conformance/valid/protection.udl +0 -1551
- package/conformance/valid/string-escaping.expected.json +0 -6
- package/conformance/valid/string-escaping.udl +0 -54
- package/conformance/valid/vocabulary.expected.json +0 -6
- package/conformance/valid/vocabulary.udl +0 -2012
- package/dist/allocation.d.ts +0 -60
- package/dist/allocation.d.ts.map +0 -1
- package/dist/allocation.js +0 -177
- package/dist/allocation.js.map +0 -1
- package/dist/check-profiles.d.ts +0 -57
- package/dist/check-profiles.d.ts.map +0 -1
- package/dist/check-profiles.js +0 -62
- package/dist/check-profiles.js.map +0 -1
- package/dist/distribution.d.ts +0 -15
- package/dist/distribution.d.ts.map +0 -1
- package/dist/distribution.js +0 -49
- package/dist/distribution.js.map +0 -1
- package/dist/effects.d.ts +0 -58
- package/dist/effects.d.ts.map +0 -1
- package/dist/effects.js +0 -1126
- package/dist/effects.js.map +0 -1
- package/dist/reference.d.ts +0 -3
- package/dist/reference.d.ts.map +0 -1
- package/dist/reference.js +0 -28
- package/dist/reference.js.map +0 -1
- package/dist/vocabulary.d.ts +0 -23
- package/dist/vocabulary.d.ts.map +0 -1
- package/dist/vocabulary.js +0 -1052
- package/dist/vocabulary.js.map +0 -1
- package/docs/funding-custody.md +0 -165
- package/docs/guide/01-a-document.md +0 -37
- package/docs/guide/02-money-steps.md +0 -23
- package/docs/guide/03-laws.md +0 -18
- package/docs/guide/04-fees-and-remainder.md +0 -36
- package/docs/guide/05-checks-updates-dials.md +0 -7
- package/docs/guide/06-effects.md +0 -11
- package/docs/guide/07-evolution.md +0 -11
- package/docs/guide/08-implementing.md +0 -13
- package/docs/guide/09-schedules-and-allocation.md +0 -132
- package/docs/llms-full.txt +0 -2008
- package/docs/llms.txt +0 -14
- package/docs/piece-plans.md +0 -148
- package/docs/reference/canonical.md +0 -16
- package/docs/reference/clauses.md +0 -1585
- package/docs/reference/cli.md +0 -24
- package/docs/reference/diagnostics.md +0 -38
- package/skills/udl/SKILL.md +0 -28
- package/src/allocation.ts +0 -259
- package/src/check-profiles.ts +0 -80
- package/src/distribution.ts +0 -61
- package/src/effects.ts +0 -1920
- package/src/reference.ts +0 -31
- package/src/vocabulary.ts +0 -1635
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"instruments": [
|
|
3
|
-
{
|
|
4
|
-
"actionOrder": [
|
|
5
|
-
"create",
|
|
6
|
-
"revise",
|
|
7
|
-
"settle"
|
|
8
|
-
],
|
|
9
|
-
"actions": {
|
|
10
|
-
"create": {
|
|
11
|
-
"moves": [],
|
|
12
|
-
"steps": [],
|
|
13
|
-
"summary": "Open the agreement"
|
|
14
|
-
},
|
|
15
|
-
"revise": {
|
|
16
|
-
"examples": [
|
|
17
|
-
{
|
|
18
|
-
"input": {
|
|
19
|
-
"agreementId": "agr_sandbox_agreement01",
|
|
20
|
-
"note": "Updated terms",
|
|
21
|
-
"tenantId": "ten_sandbox_example001"
|
|
22
|
-
},
|
|
23
|
-
"name": "revise_terms"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"input": {
|
|
27
|
-
"additionalProperties": false,
|
|
28
|
-
"properties": {
|
|
29
|
-
"note": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"required": [
|
|
34
|
-
"note"
|
|
35
|
-
],
|
|
36
|
-
"type": "object"
|
|
37
|
-
},
|
|
38
|
-
"moves": [],
|
|
39
|
-
"principal": "user_session",
|
|
40
|
-
"steps": [],
|
|
41
|
-
"summary": "Revise the note",
|
|
42
|
-
"updates": [
|
|
43
|
-
"note"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"settle": {
|
|
47
|
-
"deadline": {
|
|
48
|
-
"field": "closesAt"
|
|
49
|
-
},
|
|
50
|
-
"moves": [
|
|
51
|
-
{
|
|
52
|
-
"bind": {
|
|
53
|
-
"amount": {
|
|
54
|
-
"from": "instance",
|
|
55
|
-
"path": "refs.remainingAmount"
|
|
56
|
-
},
|
|
57
|
-
"currency": {
|
|
58
|
-
"from": "instance",
|
|
59
|
-
"path": "fields.currency"
|
|
60
|
-
},
|
|
61
|
-
"destinationAccountId": {
|
|
62
|
-
"from": "instance",
|
|
63
|
-
"path": "fields.destinationAccountId"
|
|
64
|
-
},
|
|
65
|
-
"sourceAccountId": {
|
|
66
|
-
"from": "instance",
|
|
67
|
-
"path": "fields.sourceAccountId"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"key": "settlement",
|
|
71
|
-
"operation": "internal_transfer.create"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"remainder": {
|
|
75
|
-
"amountRef": "remainingAmount",
|
|
76
|
-
"onZero": "refuse",
|
|
77
|
-
"totalPath": "fields.amount"
|
|
78
|
-
},
|
|
79
|
-
"requiresChecks": [
|
|
80
|
-
{
|
|
81
|
-
"checkKind": "identity_verification",
|
|
82
|
-
"family": "national_identity",
|
|
83
|
-
"maxAge": "P1M",
|
|
84
|
-
"statuses": [
|
|
85
|
-
"completed"
|
|
86
|
-
],
|
|
87
|
-
"subjectField": "subjectId"
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"sandboxFailurePoint": "release",
|
|
91
|
-
"steps": [],
|
|
92
|
-
"summary": "Settle the agreement"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"callerParkedStates": {
|
|
96
|
-
"open": "The owner may revise or settle the agreement."
|
|
97
|
-
},
|
|
98
|
-
"dials": [
|
|
99
|
-
{
|
|
100
|
-
"field": "closesAt",
|
|
101
|
-
"key": "settlement_window",
|
|
102
|
-
"kind": "window",
|
|
103
|
-
"maxOffset": "P30D",
|
|
104
|
-
"minOffset": "PT0S",
|
|
105
|
-
"summary": "The settlement deadline offset.",
|
|
106
|
-
"title": "Settlement window"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"fields": {
|
|
110
|
-
"amount": {
|
|
111
|
-
"pattern": "^[1-9][0-9]{0,17}$",
|
|
112
|
-
"type": "string"
|
|
113
|
-
},
|
|
114
|
-
"closesAt": {
|
|
115
|
-
"format": "hyperscale-date-time",
|
|
116
|
-
"type": "string"
|
|
117
|
-
},
|
|
118
|
-
"currency": {
|
|
119
|
-
"pattern": "^[A-Z]{3}$",
|
|
120
|
-
"type": "string"
|
|
121
|
-
},
|
|
122
|
-
"destinationAccountId": {
|
|
123
|
-
"pattern": "^acct_(sandbox|live)_[a-z0-9]{8,64}$",
|
|
124
|
-
"type": "string"
|
|
125
|
-
},
|
|
126
|
-
"note": {
|
|
127
|
-
"type": "string"
|
|
128
|
-
},
|
|
129
|
-
"sourceAccountId": {
|
|
130
|
-
"pattern": "^acct_(sandbox|live)_[a-z0-9]{8,64}$",
|
|
131
|
-
"type": "string"
|
|
132
|
-
},
|
|
133
|
-
"subjectId": {
|
|
134
|
-
"type": "string"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"id": "agreement",
|
|
138
|
-
"idPrefix": "agr",
|
|
139
|
-
"lifecycle": {
|
|
140
|
-
"initial": "open",
|
|
141
|
-
"states": [
|
|
142
|
-
"open",
|
|
143
|
-
"closed"
|
|
144
|
-
],
|
|
145
|
-
"transitions": {
|
|
146
|
-
"revise": {
|
|
147
|
-
"from": [
|
|
148
|
-
"open"
|
|
149
|
-
],
|
|
150
|
-
"to": "open"
|
|
151
|
-
},
|
|
152
|
-
"settle": {
|
|
153
|
-
"from": [
|
|
154
|
-
"open"
|
|
155
|
-
],
|
|
156
|
-
"to": "closed"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"nav": [
|
|
161
|
-
"Agreements"
|
|
162
|
-
],
|
|
163
|
-
"required": [
|
|
164
|
-
"amount",
|
|
165
|
-
"closesAt",
|
|
166
|
-
"currency",
|
|
167
|
-
"destinationAccountId",
|
|
168
|
-
"sourceAccountId",
|
|
169
|
-
"subjectId"
|
|
170
|
-
],
|
|
171
|
-
"subject": {
|
|
172
|
-
"extensible": false,
|
|
173
|
-
"kinds": [
|
|
174
|
-
"asset"
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"summary": "One agreement with a computed final settlement.",
|
|
178
|
-
"surfaceVisibility": "public",
|
|
179
|
-
"templateId": "agreement",
|
|
180
|
-
"title": "Agreement",
|
|
181
|
-
"update": {
|
|
182
|
-
"examples": [
|
|
183
|
-
{
|
|
184
|
-
"input": {
|
|
185
|
-
"agreementId": "agr_sandbox_agreement01",
|
|
186
|
-
"note": "Updated terms",
|
|
187
|
-
"tenantId": "ten_sandbox_example001"
|
|
188
|
-
},
|
|
189
|
-
"name": "revise_terms"
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
"fields": [
|
|
193
|
-
"note"
|
|
194
|
-
],
|
|
195
|
-
"states": [
|
|
196
|
-
"open"
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"product": "complete_contract",
|
|
202
|
-
"subjects": [
|
|
203
|
-
{
|
|
204
|
-
"declaredValue": "none",
|
|
205
|
-
"kind": "asset",
|
|
206
|
-
"schema": {
|
|
207
|
-
"additionalProperties": false,
|
|
208
|
-
"properties": {},
|
|
209
|
-
"type": "object"
|
|
210
|
-
},
|
|
211
|
-
"title": "Asset",
|
|
212
|
-
"version": 1
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
"title": "Complete contract",
|
|
216
|
-
"udl": 1,
|
|
217
|
-
"version": 1
|
|
218
|
-
}
|
|
219
|
-
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"instruments": [
|
|
3
|
-
{
|
|
4
|
-
"actionOrder": [
|
|
5
|
-
"create",
|
|
6
|
-
"revise",
|
|
7
|
-
"settle"
|
|
8
|
-
],
|
|
9
|
-
"actions": {
|
|
10
|
-
"create": {
|
|
11
|
-
"moves": [],
|
|
12
|
-
"steps": [],
|
|
13
|
-
"summary": "Open the agreement"
|
|
14
|
-
},
|
|
15
|
-
"revise": {
|
|
16
|
-
"examples": [
|
|
17
|
-
{
|
|
18
|
-
"input": {
|
|
19
|
-
"agreementId": "agr_sandbox_agreement01",
|
|
20
|
-
"note": "Updated terms",
|
|
21
|
-
"tenantId": "ten_sandbox_example001"
|
|
22
|
-
},
|
|
23
|
-
"name": "revise_terms"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"input": {
|
|
27
|
-
"additionalProperties": false,
|
|
28
|
-
"properties": {
|
|
29
|
-
"note": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"required": [
|
|
34
|
-
"note"
|
|
35
|
-
],
|
|
36
|
-
"type": "object"
|
|
37
|
-
},
|
|
38
|
-
"moves": [],
|
|
39
|
-
"principal": "user_session",
|
|
40
|
-
"steps": [],
|
|
41
|
-
"summary": "Revise the note",
|
|
42
|
-
"updates": [
|
|
43
|
-
"note"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"settle": {
|
|
47
|
-
"deadline": {
|
|
48
|
-
"field": "closesAt"
|
|
49
|
-
},
|
|
50
|
-
"moves": [
|
|
51
|
-
{
|
|
52
|
-
"bind": {
|
|
53
|
-
"amount": {
|
|
54
|
-
"from": "instance",
|
|
55
|
-
"path": "refs.remainingAmount"
|
|
56
|
-
},
|
|
57
|
-
"currency": {
|
|
58
|
-
"from": "instance",
|
|
59
|
-
"path": "fields.currency"
|
|
60
|
-
},
|
|
61
|
-
"destinationAccountId": {
|
|
62
|
-
"from": "instance",
|
|
63
|
-
"path": "fields.destinationAccountId"
|
|
64
|
-
},
|
|
65
|
-
"sourceAccountId": {
|
|
66
|
-
"from": "instance",
|
|
67
|
-
"path": "fields.sourceAccountId"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"key": "settlement",
|
|
71
|
-
"operation": "internal_transfer.create"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"remainder": {
|
|
75
|
-
"amountRef": "remainingAmount",
|
|
76
|
-
"onZero": "refuse",
|
|
77
|
-
"totalPath": "fields.amount"
|
|
78
|
-
},
|
|
79
|
-
"requiresChecks": [
|
|
80
|
-
{
|
|
81
|
-
"checkKind": "identity_verification",
|
|
82
|
-
"family": "national_identity",
|
|
83
|
-
"maxAge": "P30D",
|
|
84
|
-
"statuses": [
|
|
85
|
-
"completed"
|
|
86
|
-
],
|
|
87
|
-
"subjectField": "subjectId"
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"sandboxFailurePoint": "release",
|
|
91
|
-
"steps": [],
|
|
92
|
-
"summary": "Settle the agreement"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"callerParkedStates": {
|
|
96
|
-
"open": "The owner may revise or settle the agreement."
|
|
97
|
-
},
|
|
98
|
-
"dials": [
|
|
99
|
-
{
|
|
100
|
-
"field": "missing",
|
|
101
|
-
"key": "settlement_window",
|
|
102
|
-
"kind": "window",
|
|
103
|
-
"maxOffset": "P30D",
|
|
104
|
-
"minOffset": "PT0S",
|
|
105
|
-
"summary": "The settlement deadline offset.",
|
|
106
|
-
"title": "Settlement window"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"fields": {
|
|
110
|
-
"amount": {
|
|
111
|
-
"pattern": "^[1-9][0-9]{0,17}$",
|
|
112
|
-
"type": "string"
|
|
113
|
-
},
|
|
114
|
-
"closesAt": {
|
|
115
|
-
"format": "hyperscale-date-time",
|
|
116
|
-
"type": "string"
|
|
117
|
-
},
|
|
118
|
-
"currency": {
|
|
119
|
-
"pattern": "^[A-Z]{3}$",
|
|
120
|
-
"type": "string"
|
|
121
|
-
},
|
|
122
|
-
"destinationAccountId": {
|
|
123
|
-
"pattern": "^acct_(sandbox|live)_[a-z0-9]{8,64}$",
|
|
124
|
-
"type": "string"
|
|
125
|
-
},
|
|
126
|
-
"note": {
|
|
127
|
-
"type": "string"
|
|
128
|
-
},
|
|
129
|
-
"sourceAccountId": {
|
|
130
|
-
"pattern": "^acct_(sandbox|live)_[a-z0-9]{8,64}$",
|
|
131
|
-
"type": "string"
|
|
132
|
-
},
|
|
133
|
-
"subjectId": {
|
|
134
|
-
"type": "string"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"id": "agreement",
|
|
138
|
-
"idPrefix": "agr",
|
|
139
|
-
"lifecycle": {
|
|
140
|
-
"initial": "open",
|
|
141
|
-
"states": [
|
|
142
|
-
"open",
|
|
143
|
-
"closed"
|
|
144
|
-
],
|
|
145
|
-
"transitions": {
|
|
146
|
-
"revise": {
|
|
147
|
-
"from": [
|
|
148
|
-
"open"
|
|
149
|
-
],
|
|
150
|
-
"to": "open"
|
|
151
|
-
},
|
|
152
|
-
"settle": {
|
|
153
|
-
"from": [
|
|
154
|
-
"open"
|
|
155
|
-
],
|
|
156
|
-
"to": "closed"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"nav": [
|
|
161
|
-
"Agreements"
|
|
162
|
-
],
|
|
163
|
-
"required": [
|
|
164
|
-
"amount",
|
|
165
|
-
"closesAt",
|
|
166
|
-
"currency",
|
|
167
|
-
"destinationAccountId",
|
|
168
|
-
"sourceAccountId",
|
|
169
|
-
"subjectId"
|
|
170
|
-
],
|
|
171
|
-
"subject": {
|
|
172
|
-
"extensible": false,
|
|
173
|
-
"kinds": [
|
|
174
|
-
"asset"
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"summary": "One agreement with a computed final settlement.",
|
|
178
|
-
"surfaceVisibility": "public",
|
|
179
|
-
"templateId": "agreement",
|
|
180
|
-
"title": "Agreement",
|
|
181
|
-
"update": {
|
|
182
|
-
"examples": [
|
|
183
|
-
{
|
|
184
|
-
"input": {
|
|
185
|
-
"agreementId": "agr_sandbox_agreement01",
|
|
186
|
-
"note": "Updated terms",
|
|
187
|
-
"tenantId": "ten_sandbox_example001"
|
|
188
|
-
},
|
|
189
|
-
"name": "revise_terms"
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
"fields": [
|
|
193
|
-
"note"
|
|
194
|
-
],
|
|
195
|
-
"states": [
|
|
196
|
-
"open"
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"product": "complete_contract",
|
|
202
|
-
"subjects": [
|
|
203
|
-
{
|
|
204
|
-
"declaredValue": "none",
|
|
205
|
-
"kind": "asset",
|
|
206
|
-
"schema": {
|
|
207
|
-
"additionalProperties": false,
|
|
208
|
-
"properties": {},
|
|
209
|
-
"type": "object"
|
|
210
|
-
},
|
|
211
|
-
"title": "Asset",
|
|
212
|
-
"version": 1
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
"title": "Complete contract",
|
|
216
|
-
"udl": 1,
|
|
217
|
-
"version": 1
|
|
218
|
-
}
|
|
219
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"issues": [
|
|
3
|
-
{
|
|
4
|
-
"code": "UDL5007",
|
|
5
|
-
"path": "$.instruments[4].actions.reconcile.reconcile[0].exception.refField"
|
|
6
|
-
}
|
|
7
|
-
],
|
|
8
|
-
"summary": "Refuses seller_payout_debit_adjustment.amount must reference seller_payout to carry its breaks.",
|
|
9
|
-
"verdict": "invalid"
|
|
10
|
-
}
|