@hyperscale0/hsx 2.1.0 → 2.2.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 +36 -7
- package/dist/src/cli.d.ts +1 -1
- package/dist/src/cli.d.ts.map +1 -1
- package/dist/src/cli.js +39 -5
- package/dist/src/cli.js.map +1 -1
- package/dist/src/compile.d.ts +0 -1
- package/dist/src/compile.d.ts.map +1 -1
- package/dist/src/compile.js +15 -1
- package/dist/src/compile.js.map +1 -1
- package/dist/src/cost.d.ts +3 -3
- package/dist/src/cost.d.ts.map +1 -1
- package/dist/src/cost.js +22 -12
- package/dist/src/cost.js.map +1 -1
- package/dist/src/parse.d.ts.map +1 -1
- package/dist/src/parse.js +10 -14
- package/dist/src/parse.js.map +1 -1
- package/dist/src/std-bundle.d.ts.map +1 -1
- package/dist/src/std-bundle.js +20 -84
- package/dist/src/std-bundle.js.map +1 -1
- package/dist/src/typecheck.d.ts.map +1 -1
- package/dist/src/typecheck.js +171 -39
- package/dist/src/typecheck.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/docs/README.md +8 -2
- package/docs/guide/01-first-program.md +1 -1
- package/docs/guide/06-schedules.md +5 -1
- package/docs/guide/08-writing-a-module.md +48 -0
- package/docs/llms-full.txt +1928 -421
- package/docs/llms.txt +2 -3
- package/docs/piece-plans.md +120 -0
- package/docs/reference/cli.md +6 -5
- package/docs/reference/diagnostics.md +9 -9
- package/docs/reference/grammar.md +2 -3
- package/docs/reference/std/advance.md +94 -17
- package/docs/reference/std/cancellable_booking.md +138 -17
- package/docs/reference/std/captured_payment.md +96 -24
- package/docs/reference/std/conditional_disbursement.md +82 -14
- package/docs/reference/std/credit_facility.md +89 -16
- package/docs/reference/std/held_payment.md +155 -55
- package/docs/reference/std/instant_transfer.md +79 -12
- package/docs/reference/std/metered.md +71 -9
- package/docs/reference/std/pooled_split.md +76 -7
- package/docs/reference/std/premium_forward.md +100 -20
- package/docs/reference/std/reconciled_payout.md +84 -14
- package/docs/reference/std/rotating_pool.md +112 -24
- package/docs/reference/std/scheduled.md +117 -32
- package/docs/reference/std/security_deposit.md +119 -27
- package/docs/reference/std/settlement_batch.md +105 -24
- package/docs/reference/std/swap.md +113 -26
- package/docs/reference/std/threshold_pool.md +120 -29
- package/docs/reference/std/weighted_distribution.md +117 -21
- package/docs/reference/types.md +15 -15
- package/docs/reference/udl-output.md +6 -6
- package/examples/01-first-program/README.md +1 -1
- package/examples/{02-imports-and-archetypes → 02-imports-and-modules}/README.md +1 -1
- package/examples/{02-imports-and-archetypes → 02-imports-and-modules}/photo-booth.hsx +1 -1
- package/examples/04-complete-product/README.md +1 -1
- package/examples/05-authored-instrument/README.md +5 -0
- package/examples/05-authored-instrument/payment.hsx +37 -0
- package/examples/05-watch-club/watch-club.hsx +0 -1
- package/examples/README.md +1 -2
- package/examples/advance/advance.udl +29 -6
- package/examples/cancellable_booking/cancellable_booking.udl +19 -0
- package/examples/captured_payment/captured_payment.hsx +0 -4
- package/examples/captured_payment/captured_payment.udl +6 -0
- package/examples/conditional_disbursement/conditional_disbursement.hsx +0 -2
- package/examples/conditional_disbursement/conditional_disbursement.udl +4 -0
- package/examples/cost-table.json +136 -8
- package/examples/credit_facility/credit_facility.hsx +0 -3
- package/examples/credit_facility/credit_facility.udl +17 -1
- package/examples/held_payment/held_payment.udl +16 -0
- package/examples/instant_transfer/instant_transfer.udl +6 -0
- package/examples/metered/metered.udl +5 -1
- package/examples/pooled_split/pooled_split.udl +4 -0
- package/examples/premium_forward/premium_forward.udl +4 -0
- package/examples/reconciled_payout/reconciled_payout.udl +7 -0
- package/examples/rotating_pool/rotating_pool.udl +8 -0
- package/examples/scheduled/scheduled.udl +18 -3
- package/examples/security_deposit/security_deposit.udl +13 -0
- package/examples/settlement_batch/settlement_batch.udl +4 -0
- package/examples/swap/swap.udl +10 -0
- package/examples/threshold_pool/threshold_pool.udl +11 -0
- package/examples/weighted_distribution/weighted_distribution.udl +9 -0
- package/package.json +10 -10
- package/skills/hsx/SKILL.md +2 -36
- package/src/cli.ts +41 -5
- package/src/compile.ts +14 -6
- package/src/cost.ts +13 -16
- package/src/parse.ts +15 -10
- package/src/std-bundle.ts +21 -88
- package/src/typecheck.ts +207 -34
- package/src/version.ts +1 -1
- package/std/SEMANTICS.md +33 -128
- package/std/money_flows/advance.hsx +39 -26
- package/std/money_flows/cancellable_booking.hsx +275 -8
- package/std/money_flows/captured_payment.hsx +1 -9
- package/std/money_flows/conditional_disbursement.hsx +0 -6
- package/std/money_flows/credit_facility.hsx +0 -9
- package/std/money_flows/held_payment.hsx +39 -1
- package/std/money_flows/index.hsx +2 -1
- package/std/money_flows/metered.hsx +1 -5
- package/std/money_flows/scheduled.hsx +29 -119
- package/std/money_flows/threshold_pool.hsx +40 -5
- package/std/money_flows/weighted_distribution.hsx +47 -5
- package/docs/reference/std/recurring_collection.md +0 -25
- package/examples/recurring_collection/README.md +0 -3
- package/examples/recurring_collection/recurring_collection.hsx +0 -21
- package/examples/recurring_collection/recurring_collection.udl +0 -1135
- package/std/money_flows/recurring_collection.hsx +0 -72
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
],
|
|
10
10
|
"actions": {
|
|
11
11
|
"collect_repayment_1": {
|
|
12
|
+
"agentDescription": "Collect repayment 1 once on its stored due anchor, returning principal to the funder and any separately routed profit to its recipient.",
|
|
12
13
|
"due": {
|
|
13
|
-
"field": "firstDueAt"
|
|
14
|
+
"field": "firstDueAt",
|
|
15
|
+
"offset": "P0D"
|
|
14
16
|
},
|
|
15
17
|
"effects": {
|
|
16
18
|
"moves": [
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
"summary": "Collect repayment 1 of 2"
|
|
74
76
|
},
|
|
75
77
|
"collect_repayment_2": {
|
|
78
|
+
"agentDescription": "Collect repayment 2 once on its stored due anchor, returning principal to the funder and any separately routed profit to its recipient.",
|
|
76
79
|
"due": {
|
|
77
80
|
"field": "firstDueAt",
|
|
78
81
|
"offset": "P30D"
|
|
@@ -138,7 +141,7 @@
|
|
|
138
141
|
"summary": "Collect repayment 2 of 2"
|
|
139
142
|
},
|
|
140
143
|
"create": {
|
|
141
|
-
"agentDescription": "Open the advance row before any money moves. The caller supplies the principal, the
|
|
144
|
+
"agentDescription": "Open the advance row before any money moves. The caller supplies the principal, the repayable total, and repayment dates. A declared fee derives the fee amount from principal. The repayment fields must partition the repayable total exactly. Nothing is disbursed here.",
|
|
142
145
|
"moves": [],
|
|
143
146
|
"publicAction": "createAdvancePayment",
|
|
144
147
|
"steps": [],
|
|
@@ -203,6 +206,17 @@
|
|
|
203
206
|
}
|
|
204
207
|
},
|
|
205
208
|
"agentDescription": "Reach for advance when the funder pays the recipient up front and is repaid afterwards, either out of a carved hold release or over scheduled repayments. Pick deposit for a refundable reservation and instant transfer when nobody repays the payer.",
|
|
209
|
+
"derivedAmounts": [
|
|
210
|
+
{
|
|
211
|
+
"field": "feeAmount",
|
|
212
|
+
"rounding": "floor",
|
|
213
|
+
"rule": {
|
|
214
|
+
"bps": 250,
|
|
215
|
+
"kind": "percentage_of"
|
|
216
|
+
},
|
|
217
|
+
"sourceField": "principal"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
206
220
|
"description": "Advance: the funder disburses principal to the recipient, repaid over 2 scheduled repayments plus the funder's discount",
|
|
207
221
|
"fields": {
|
|
208
222
|
"currency": {
|
|
@@ -214,7 +228,7 @@
|
|
|
214
228
|
},
|
|
215
229
|
"feeAmount": {
|
|
216
230
|
"description": "2.5% of principal, the funder's discount repaid on top of the advance",
|
|
217
|
-
"pattern": "^[1-9][0-9]{0,17}$",
|
|
231
|
+
"pattern": "^(0|[1-9][0-9]{0,17})$",
|
|
218
232
|
"type": "string",
|
|
219
233
|
"x-hyperscale-currency": "SAR"
|
|
220
234
|
},
|
|
@@ -258,13 +272,13 @@
|
|
|
258
272
|
"x-hyperscale-currency": "SAR"
|
|
259
273
|
},
|
|
260
274
|
"repayment1Amount": {
|
|
261
|
-
"description": "
|
|
275
|
+
"description": "Stored total for repayment 1",
|
|
262
276
|
"pattern": "^[1-9][0-9]{0,17}$",
|
|
263
277
|
"type": "string",
|
|
264
278
|
"x-hyperscale-currency": "SAR"
|
|
265
279
|
},
|
|
266
280
|
"repayment2Amount": {
|
|
267
|
-
"description": "
|
|
281
|
+
"description": "Stored total for repayment 2",
|
|
268
282
|
"pattern": "^[1-9][0-9]{0,17}$",
|
|
269
283
|
"type": "string",
|
|
270
284
|
"x-hyperscale-currency": "SAR"
|
|
@@ -325,7 +339,6 @@
|
|
|
325
339
|
"funderAccountId",
|
|
326
340
|
"recipientAccountId",
|
|
327
341
|
"principal",
|
|
328
|
-
"feeAmount",
|
|
329
342
|
"repayableAmount",
|
|
330
343
|
"firstDueAt",
|
|
331
344
|
"repayment1Amount",
|
|
@@ -333,6 +346,16 @@
|
|
|
333
346
|
"currency"
|
|
334
347
|
],
|
|
335
348
|
"summary": "Advance to recipient repaid over 2 anchors",
|
|
349
|
+
"templateBinding": {
|
|
350
|
+
"id": "advance",
|
|
351
|
+
"parameters": {
|
|
352
|
+
"against": false,
|
|
353
|
+
"count": 2,
|
|
354
|
+
"dated": false,
|
|
355
|
+
"profitTo": false,
|
|
356
|
+
"repaymentSource": false
|
|
357
|
+
}
|
|
358
|
+
},
|
|
336
359
|
"title": "Advance payment"
|
|
337
360
|
}
|
|
338
361
|
],
|
|
@@ -382,6 +382,25 @@
|
|
|
382
382
|
"startsAt"
|
|
383
383
|
],
|
|
384
384
|
"summary": "Booking the guest can cancel at a price they see before they agree to it",
|
|
385
|
+
"templateBinding": {
|
|
386
|
+
"id": "cancellable_booking",
|
|
387
|
+
"parameters": {
|
|
388
|
+
"acceptance": false,
|
|
389
|
+
"authorityType": false,
|
|
390
|
+
"balanceBefore": false,
|
|
391
|
+
"cancelBands": false,
|
|
392
|
+
"confirmationWindow": false,
|
|
393
|
+
"departure": false,
|
|
394
|
+
"depositBps": false,
|
|
395
|
+
"earlyPenaltyBps": 1000,
|
|
396
|
+
"latePenaltyBps": 5000,
|
|
397
|
+
"priceValue": false,
|
|
398
|
+
"supplierCost": false,
|
|
399
|
+
"supplierRole": false,
|
|
400
|
+
"taxBps": false,
|
|
401
|
+
"unpaidBand": false
|
|
402
|
+
}
|
|
403
|
+
},
|
|
385
404
|
"title": "Studio session"
|
|
386
405
|
}
|
|
387
406
|
],
|
|
@@ -9,10 +9,6 @@ settlement card_payment = captured_payment {
|
|
|
9
9
|
reserve_until: reserveUntil
|
|
10
10
|
correction: port correct_capture
|
|
11
11
|
external_reversal: port reverse_capture within P14D
|
|
12
|
-
capture_mode: partial_then_full
|
|
13
|
-
correction_mode: full_only
|
|
14
|
-
negative_position: reject
|
|
15
|
-
timeout: reject
|
|
16
12
|
}
|
|
17
13
|
port correct_capture { allowed: [payee] }
|
|
18
14
|
port reverse_capture {
|
|
@@ -8,8 +8,6 @@ settlement claim_payment = conditional_disbursement {
|
|
|
8
8
|
cap: policyLimit: money(SAR)
|
|
9
9
|
amount: approvedAmount: money(SAR)
|
|
10
10
|
decision: port approve_claim
|
|
11
|
-
reopen_policy: refuse
|
|
12
|
-
recovery_policy: separate_transfer
|
|
13
11
|
}
|
|
14
12
|
port approve_claim {
|
|
15
13
|
allowed: [source]
|
package/examples/cost-table.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"verification.kyc.investment.count",
|
|
22
22
|
"verification.kyc.standard.count"
|
|
23
23
|
],
|
|
24
|
-
"effectiveTableDigest": "
|
|
24
|
+
"effectiveTableDigest": "4273afec16c56ae97282eda8a0a349b006b0e7f41a49d4dbebda3172e449cb58",
|
|
25
25
|
"fixed": {
|
|
26
26
|
"activationBaseMinor": "500000",
|
|
27
27
|
"activationPerPointMinor": "100000",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"monthlyPerPointMinor": "20000",
|
|
30
30
|
"weights": {
|
|
31
31
|
"aggregate_invariant": 2,
|
|
32
|
-
"blueprint": 5,
|
|
33
32
|
"flow": 1,
|
|
34
33
|
"gate": 1,
|
|
35
34
|
"instrument": 3,
|
|
@@ -57,6 +56,14 @@
|
|
|
57
56
|
"settlement": "invoice",
|
|
58
57
|
"signature": "decides.air_carrier"
|
|
59
58
|
},
|
|
59
|
+
{
|
|
60
|
+
"bps": 0,
|
|
61
|
+
"meter": "instrument.event.count",
|
|
62
|
+
"payer": "product",
|
|
63
|
+
"perEventMinor": "0",
|
|
64
|
+
"settlement": "invoice",
|
|
65
|
+
"signature": "decides.allocation"
|
|
66
|
+
},
|
|
60
67
|
{
|
|
61
68
|
"bps": 0,
|
|
62
69
|
"meter": "instrument.event.count",
|
|
@@ -185,6 +192,14 @@
|
|
|
185
192
|
"settlement": "invoice",
|
|
186
193
|
"signature": "decides.payouts"
|
|
187
194
|
},
|
|
195
|
+
{
|
|
196
|
+
"bps": 0,
|
|
197
|
+
"meter": "instrument.event.count",
|
|
198
|
+
"payer": "product",
|
|
199
|
+
"perEventMinor": "0",
|
|
200
|
+
"settlement": "invoice",
|
|
201
|
+
"signature": "decides.referenced_transition"
|
|
202
|
+
},
|
|
188
203
|
{
|
|
189
204
|
"bps": 0,
|
|
190
205
|
"meter": "instrument.event.count",
|
|
@@ -201,6 +216,14 @@
|
|
|
201
216
|
"settlement": "invoice",
|
|
202
217
|
"signature": "decides.settlement_ingestion"
|
|
203
218
|
},
|
|
219
|
+
{
|
|
220
|
+
"bps": 0,
|
|
221
|
+
"meter": "instrument.event.count",
|
|
222
|
+
"payer": "product",
|
|
223
|
+
"perEventMinor": "0",
|
|
224
|
+
"settlement": "invoice",
|
|
225
|
+
"signature": "decides.subject_unique"
|
|
226
|
+
},
|
|
204
227
|
{
|
|
205
228
|
"bps": 0,
|
|
206
229
|
"meter": "instrument.event.count",
|
|
@@ -282,6 +305,15 @@
|
|
|
282
305
|
"settlement": "invoice",
|
|
283
306
|
"signature": "meters.kyb.application.review"
|
|
284
307
|
},
|
|
308
|
+
{
|
|
309
|
+
"bps": 6,
|
|
310
|
+
"meter": "transfer.internal.count",
|
|
311
|
+
"payer": "end_customer",
|
|
312
|
+
"perEventMinor": "75",
|
|
313
|
+
"settlement": "per_event",
|
|
314
|
+
"signature": "moves.allocation",
|
|
315
|
+
"volumeMeter": "transfer.internal.volume_sar"
|
|
316
|
+
},
|
|
285
317
|
{
|
|
286
318
|
"bps": 8,
|
|
287
319
|
"meter": "collection.pay_in.count",
|
|
@@ -407,7 +439,7 @@
|
|
|
407
439
|
"verification.kyc.investment.count",
|
|
408
440
|
"verification.kyc.standard.count"
|
|
409
441
|
],
|
|
410
|
-
"effectiveTableDigest": "
|
|
442
|
+
"effectiveTableDigest": "88c0a5ae2f12de977d156a04a32cdecbad107076bc74a1b8398239c590f3eb0a",
|
|
411
443
|
"fixed": {
|
|
412
444
|
"activationBaseMinor": "133300",
|
|
413
445
|
"activationPerPointMinor": "26700",
|
|
@@ -415,7 +447,6 @@
|
|
|
415
447
|
"monthlyPerPointMinor": "5300",
|
|
416
448
|
"weights": {
|
|
417
449
|
"aggregate_invariant": 2,
|
|
418
|
-
"blueprint": 5,
|
|
419
450
|
"flow": 1,
|
|
420
451
|
"gate": 1,
|
|
421
452
|
"instrument": 3,
|
|
@@ -443,6 +474,14 @@
|
|
|
443
474
|
"settlement": "invoice",
|
|
444
475
|
"signature": "decides.air_carrier"
|
|
445
476
|
},
|
|
477
|
+
{
|
|
478
|
+
"bps": 0,
|
|
479
|
+
"meter": "instrument.event.count",
|
|
480
|
+
"payer": "product",
|
|
481
|
+
"perEventMinor": "0",
|
|
482
|
+
"settlement": "invoice",
|
|
483
|
+
"signature": "decides.allocation"
|
|
484
|
+
},
|
|
446
485
|
{
|
|
447
486
|
"bps": 0,
|
|
448
487
|
"meter": "instrument.event.count",
|
|
@@ -571,6 +610,14 @@
|
|
|
571
610
|
"settlement": "invoice",
|
|
572
611
|
"signature": "decides.payouts"
|
|
573
612
|
},
|
|
613
|
+
{
|
|
614
|
+
"bps": 0,
|
|
615
|
+
"meter": "instrument.event.count",
|
|
616
|
+
"payer": "product",
|
|
617
|
+
"perEventMinor": "0",
|
|
618
|
+
"settlement": "invoice",
|
|
619
|
+
"signature": "decides.referenced_transition"
|
|
620
|
+
},
|
|
574
621
|
{
|
|
575
622
|
"bps": 0,
|
|
576
623
|
"meter": "instrument.event.count",
|
|
@@ -587,6 +634,14 @@
|
|
|
587
634
|
"settlement": "invoice",
|
|
588
635
|
"signature": "decides.settlement_ingestion"
|
|
589
636
|
},
|
|
637
|
+
{
|
|
638
|
+
"bps": 0,
|
|
639
|
+
"meter": "instrument.event.count",
|
|
640
|
+
"payer": "product",
|
|
641
|
+
"perEventMinor": "0",
|
|
642
|
+
"settlement": "invoice",
|
|
643
|
+
"signature": "decides.subject_unique"
|
|
644
|
+
},
|
|
590
645
|
{
|
|
591
646
|
"bps": 0,
|
|
592
647
|
"meter": "instrument.event.count",
|
|
@@ -668,6 +723,15 @@
|
|
|
668
723
|
"settlement": "invoice",
|
|
669
724
|
"signature": "meters.kyb.application.review"
|
|
670
725
|
},
|
|
726
|
+
{
|
|
727
|
+
"bps": 6,
|
|
728
|
+
"meter": "transfer.internal.count",
|
|
729
|
+
"payer": "end_customer",
|
|
730
|
+
"perEventMinor": "20",
|
|
731
|
+
"settlement": "per_event",
|
|
732
|
+
"signature": "moves.allocation",
|
|
733
|
+
"volumeMeter": "transfer.internal.volume_usd"
|
|
734
|
+
},
|
|
671
735
|
{
|
|
672
736
|
"bps": 8,
|
|
673
737
|
"meter": "collection.pay_in.count",
|
|
@@ -793,7 +857,7 @@
|
|
|
793
857
|
"verification.kyc.investment.count",
|
|
794
858
|
"verification.kyc.standard.count"
|
|
795
859
|
],
|
|
796
|
-
"effectiveTableDigest": "
|
|
860
|
+
"effectiveTableDigest": "004d1a8156aac9cd7cb789f36f6abef508ea304327703ba12844b65b66f03ab2",
|
|
797
861
|
"fixed": {
|
|
798
862
|
"activationBaseMinor": "125000",
|
|
799
863
|
"activationPerPointMinor": "25000",
|
|
@@ -801,7 +865,6 @@
|
|
|
801
865
|
"monthlyPerPointMinor": "5000",
|
|
802
866
|
"weights": {
|
|
803
867
|
"aggregate_invariant": 2,
|
|
804
|
-
"blueprint": 5,
|
|
805
868
|
"flow": 1,
|
|
806
869
|
"gate": 1,
|
|
807
870
|
"instrument": 3,
|
|
@@ -829,6 +892,14 @@
|
|
|
829
892
|
"settlement": "invoice",
|
|
830
893
|
"signature": "decides.air_carrier"
|
|
831
894
|
},
|
|
895
|
+
{
|
|
896
|
+
"bps": 0,
|
|
897
|
+
"meter": "instrument.event.count",
|
|
898
|
+
"payer": "product",
|
|
899
|
+
"perEventMinor": "0",
|
|
900
|
+
"settlement": "invoice",
|
|
901
|
+
"signature": "decides.allocation"
|
|
902
|
+
},
|
|
832
903
|
{
|
|
833
904
|
"bps": 0,
|
|
834
905
|
"meter": "instrument.event.count",
|
|
@@ -957,6 +1028,14 @@
|
|
|
957
1028
|
"settlement": "invoice",
|
|
958
1029
|
"signature": "decides.payouts"
|
|
959
1030
|
},
|
|
1031
|
+
{
|
|
1032
|
+
"bps": 0,
|
|
1033
|
+
"meter": "instrument.event.count",
|
|
1034
|
+
"payer": "product",
|
|
1035
|
+
"perEventMinor": "0",
|
|
1036
|
+
"settlement": "invoice",
|
|
1037
|
+
"signature": "decides.referenced_transition"
|
|
1038
|
+
},
|
|
960
1039
|
{
|
|
961
1040
|
"bps": 0,
|
|
962
1041
|
"meter": "instrument.event.count",
|
|
@@ -973,6 +1052,14 @@
|
|
|
973
1052
|
"settlement": "invoice",
|
|
974
1053
|
"signature": "decides.settlement_ingestion"
|
|
975
1054
|
},
|
|
1055
|
+
{
|
|
1056
|
+
"bps": 0,
|
|
1057
|
+
"meter": "instrument.event.count",
|
|
1058
|
+
"payer": "product",
|
|
1059
|
+
"perEventMinor": "0",
|
|
1060
|
+
"settlement": "invoice",
|
|
1061
|
+
"signature": "decides.subject_unique"
|
|
1062
|
+
},
|
|
976
1063
|
{
|
|
977
1064
|
"bps": 0,
|
|
978
1065
|
"meter": "instrument.event.count",
|
|
@@ -1054,6 +1141,15 @@
|
|
|
1054
1141
|
"settlement": "invoice",
|
|
1055
1142
|
"signature": "meters.kyb.application.review"
|
|
1056
1143
|
},
|
|
1144
|
+
{
|
|
1145
|
+
"bps": 6,
|
|
1146
|
+
"meter": "transfer.internal.count",
|
|
1147
|
+
"payer": "end_customer",
|
|
1148
|
+
"perEventMinor": "19",
|
|
1149
|
+
"settlement": "per_event",
|
|
1150
|
+
"signature": "moves.allocation",
|
|
1151
|
+
"volumeMeter": "transfer.internal.volume_eur"
|
|
1152
|
+
},
|
|
1057
1153
|
{
|
|
1058
1154
|
"bps": 8,
|
|
1059
1155
|
"meter": "collection.pay_in.count",
|
|
@@ -1179,7 +1275,7 @@
|
|
|
1179
1275
|
"verification.kyc.investment.count",
|
|
1180
1276
|
"verification.kyc.standard.count"
|
|
1181
1277
|
],
|
|
1182
|
-
"effectiveTableDigest": "
|
|
1278
|
+
"effectiveTableDigest": "72155c0ce9eb3157f87b7f613bb3f05b3ab50a91248c9260e1b2ceae6b199286",
|
|
1183
1279
|
"fixed": {
|
|
1184
1280
|
"activationBaseMinor": "104200",
|
|
1185
1281
|
"activationPerPointMinor": "20800",
|
|
@@ -1187,7 +1283,6 @@
|
|
|
1187
1283
|
"monthlyPerPointMinor": "4200",
|
|
1188
1284
|
"weights": {
|
|
1189
1285
|
"aggregate_invariant": 2,
|
|
1190
|
-
"blueprint": 5,
|
|
1191
1286
|
"flow": 1,
|
|
1192
1287
|
"gate": 1,
|
|
1193
1288
|
"instrument": 3,
|
|
@@ -1215,6 +1310,14 @@
|
|
|
1215
1310
|
"settlement": "invoice",
|
|
1216
1311
|
"signature": "decides.air_carrier"
|
|
1217
1312
|
},
|
|
1313
|
+
{
|
|
1314
|
+
"bps": 0,
|
|
1315
|
+
"meter": "instrument.event.count",
|
|
1316
|
+
"payer": "product",
|
|
1317
|
+
"perEventMinor": "0",
|
|
1318
|
+
"settlement": "invoice",
|
|
1319
|
+
"signature": "decides.allocation"
|
|
1320
|
+
},
|
|
1218
1321
|
{
|
|
1219
1322
|
"bps": 0,
|
|
1220
1323
|
"meter": "instrument.event.count",
|
|
@@ -1343,6 +1446,14 @@
|
|
|
1343
1446
|
"settlement": "invoice",
|
|
1344
1447
|
"signature": "decides.payouts"
|
|
1345
1448
|
},
|
|
1449
|
+
{
|
|
1450
|
+
"bps": 0,
|
|
1451
|
+
"meter": "instrument.event.count",
|
|
1452
|
+
"payer": "product",
|
|
1453
|
+
"perEventMinor": "0",
|
|
1454
|
+
"settlement": "invoice",
|
|
1455
|
+
"signature": "decides.referenced_transition"
|
|
1456
|
+
},
|
|
1346
1457
|
{
|
|
1347
1458
|
"bps": 0,
|
|
1348
1459
|
"meter": "instrument.event.count",
|
|
@@ -1359,6 +1470,14 @@
|
|
|
1359
1470
|
"settlement": "invoice",
|
|
1360
1471
|
"signature": "decides.settlement_ingestion"
|
|
1361
1472
|
},
|
|
1473
|
+
{
|
|
1474
|
+
"bps": 0,
|
|
1475
|
+
"meter": "instrument.event.count",
|
|
1476
|
+
"payer": "product",
|
|
1477
|
+
"perEventMinor": "0",
|
|
1478
|
+
"settlement": "invoice",
|
|
1479
|
+
"signature": "decides.subject_unique"
|
|
1480
|
+
},
|
|
1362
1481
|
{
|
|
1363
1482
|
"bps": 0,
|
|
1364
1483
|
"meter": "instrument.event.count",
|
|
@@ -1440,6 +1559,15 @@
|
|
|
1440
1559
|
"settlement": "invoice",
|
|
1441
1560
|
"signature": "meters.kyb.application.review"
|
|
1442
1561
|
},
|
|
1562
|
+
{
|
|
1563
|
+
"bps": 6,
|
|
1564
|
+
"meter": "transfer.internal.count",
|
|
1565
|
+
"payer": "end_customer",
|
|
1566
|
+
"perEventMinor": "16",
|
|
1567
|
+
"settlement": "per_event",
|
|
1568
|
+
"signature": "moves.allocation",
|
|
1569
|
+
"volumeMeter": "transfer.internal.volume_gbp"
|
|
1570
|
+
},
|
|
1443
1571
|
{
|
|
1444
1572
|
"bps": 8,
|
|
1445
1573
|
"meter": "collection.pay_in.count",
|
|
@@ -424,7 +424,6 @@
|
|
|
424
424
|
"required": [
|
|
425
425
|
"lenderAccountId",
|
|
426
426
|
"repaymentSourceAccountId",
|
|
427
|
-
"borrowerAccountId",
|
|
428
427
|
"currency",
|
|
429
428
|
"principal",
|
|
430
429
|
"firstDueAt",
|
|
@@ -432,6 +431,19 @@
|
|
|
432
431
|
"installment2Amount"
|
|
433
432
|
],
|
|
434
433
|
"summary": "2-anchor obligation for borrower",
|
|
434
|
+
"templateBinding": {
|
|
435
|
+
"id": "scheduled",
|
|
436
|
+
"parameters": {
|
|
437
|
+
"advanceTo": false,
|
|
438
|
+
"count": 2,
|
|
439
|
+
"derivedAmount": false,
|
|
440
|
+
"mandate": false,
|
|
441
|
+
"monthEnd": false,
|
|
442
|
+
"periodLiability": false,
|
|
443
|
+
"terminationDrain": false,
|
|
444
|
+
"until": false
|
|
445
|
+
}
|
|
446
|
+
},
|
|
435
447
|
"title": "Repayment"
|
|
436
448
|
},
|
|
437
449
|
{
|
|
@@ -1162,6 +1174,10 @@
|
|
|
1162
1174
|
"expiresAt"
|
|
1163
1175
|
],
|
|
1164
1176
|
"summary": "Draw capacity for borrower",
|
|
1177
|
+
"templateBinding": {
|
|
1178
|
+
"id": "credit_facility",
|
|
1179
|
+
"parameters": {}
|
|
1180
|
+
},
|
|
1165
1181
|
"title": "Facility"
|
|
1166
1182
|
},
|
|
1167
1183
|
{
|
|
@@ -542,6 +542,22 @@
|
|
|
542
542
|
"currency"
|
|
543
543
|
],
|
|
544
544
|
"summary": "Escrow-held payment from buyer to seller",
|
|
545
|
+
"templateBinding": {
|
|
546
|
+
"id": "held_payment",
|
|
547
|
+
"parameters": {
|
|
548
|
+
"cancelChargeBps": false,
|
|
549
|
+
"cancelOfferLife": false,
|
|
550
|
+
"derivedAmount": false,
|
|
551
|
+
"idPrefixOverride": false,
|
|
552
|
+
"privateActions": false,
|
|
553
|
+
"reference": false,
|
|
554
|
+
"releaseAction": false,
|
|
555
|
+
"releaseTo": false,
|
|
556
|
+
"upstream": false,
|
|
557
|
+
"wholeAmount": false,
|
|
558
|
+
"wholeFee": false
|
|
559
|
+
}
|
|
560
|
+
},
|
|
545
561
|
"title": "Sale"
|
|
546
562
|
}
|
|
547
563
|
],
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"summary": "Open a usage period with its committed rate card"
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
-
"agentDescription": "Reach for metered when the customer is billed per unit at a rate card fixed when the period opens, and the period closes on periodEnd. Every charge is its own transfer. Pick
|
|
149
|
+
"agentDescription": "Reach for metered when the customer is billed per unit at a rate card fixed when the period opens, and the period closes on periodEnd. Every charge is its own transfer. Pick scheduled for a flat repeating amount and instant transfer for a one-off payment.",
|
|
150
150
|
"description": "Metered usage: the customer is charged per unit at the committed rate card until the period closes on its stored end date",
|
|
151
151
|
"fields": {
|
|
152
152
|
"callRate": {
|
|
@@ -238,6 +238,10 @@
|
|
|
238
238
|
"currency"
|
|
239
239
|
],
|
|
240
240
|
"summary": "Metered charges from customer on a committed rate card",
|
|
241
|
+
"templateBinding": {
|
|
242
|
+
"id": "metered",
|
|
243
|
+
"parameters": {}
|
|
244
|
+
},
|
|
241
245
|
"title": "Usage"
|
|
242
246
|
}
|
|
243
247
|
],
|
|
@@ -181,6 +181,13 @@
|
|
|
181
181
|
"settleBy"
|
|
182
182
|
],
|
|
183
183
|
"summary": "Payout from treasury to supplier that is not done until the bank agrees",
|
|
184
|
+
"templateBinding": {
|
|
185
|
+
"id": "reconciled_payout",
|
|
186
|
+
"parameters": {
|
|
187
|
+
"matchedCeiling": 500,
|
|
188
|
+
"matchedWithin": 100
|
|
189
|
+
}
|
|
190
|
+
},
|
|
184
191
|
"title": "Supplier payout"
|
|
185
192
|
},
|
|
186
193
|
{
|
|
@@ -227,19 +227,19 @@
|
|
|
227
227
|
"type": "string"
|
|
228
228
|
},
|
|
229
229
|
"installment1Amount": {
|
|
230
|
-
"description": "Installment 1 of 3 (carries the integer-division remainder):
|
|
230
|
+
"description": "Installment 1 of 3 (carries the integer-division remainder): a stored share of totalAmount, collected on its own stored-date anchor",
|
|
231
231
|
"pattern": "^[1-9][0-9]{0,17}$",
|
|
232
232
|
"type": "string",
|
|
233
233
|
"x-hyperscale-currency": "SAR"
|
|
234
234
|
},
|
|
235
235
|
"installment2Amount": {
|
|
236
|
-
"description": "Installment 2 of 3:
|
|
236
|
+
"description": "Installment 2 of 3: a stored share of totalAmount, collected on its own stored-date anchor",
|
|
237
237
|
"pattern": "^[1-9][0-9]{0,17}$",
|
|
238
238
|
"type": "string",
|
|
239
239
|
"x-hyperscale-currency": "SAR"
|
|
240
240
|
},
|
|
241
241
|
"installment3Amount": {
|
|
242
|
-
"description": "Installment 3 of 3:
|
|
242
|
+
"description": "Installment 3 of 3: a stored share of totalAmount, collected on its own stored-date anchor",
|
|
243
243
|
"pattern": "^[1-9][0-9]{0,17}$",
|
|
244
244
|
"type": "string",
|
|
245
245
|
"x-hyperscale-currency": "SAR"
|
|
@@ -329,6 +329,21 @@
|
|
|
329
329
|
"currency"
|
|
330
330
|
],
|
|
331
331
|
"summary": "3-installment schedule from payer to payee",
|
|
332
|
+
"templateBinding": {
|
|
333
|
+
"id": "scheduled",
|
|
334
|
+
"parameters": {
|
|
335
|
+
"advanceTo": false,
|
|
336
|
+
"count": 3,
|
|
337
|
+
"debtor": false,
|
|
338
|
+
"derivedAmount": false,
|
|
339
|
+
"mandate": false,
|
|
340
|
+
"mode": false,
|
|
341
|
+
"monthEnd": false,
|
|
342
|
+
"periodLiability": false,
|
|
343
|
+
"terminationDrain": false,
|
|
344
|
+
"until": false
|
|
345
|
+
}
|
|
346
|
+
},
|
|
332
347
|
"title": "Installments"
|
|
333
348
|
}
|
|
334
349
|
],
|