@hyperscale0/hsx 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/src/cli.d.ts +1 -1
  3. package/dist/src/diagnostics.d.ts.map +1 -1
  4. package/dist/src/diagnostics.js +7 -0
  5. package/dist/src/diagnostics.js.map +1 -1
  6. package/dist/src/std-bundle.js +1 -1
  7. package/dist/src/std-bundle.js.map +1 -1
  8. package/dist/src/typecheck.js +89 -1
  9. package/dist/src/typecheck.js.map +1 -1
  10. package/dist/src/version.d.ts +1 -1
  11. package/dist/src/version.js +1 -1
  12. package/docs/guide/09-cost.md +1 -1
  13. package/docs/llms-full.txt +25 -5
  14. package/docs/llms.txt +2 -2
  15. package/docs/reference/cli.md +2 -2
  16. package/docs/reference/diagnostics.md +21 -1
  17. package/docs/reference/grammar.md +1 -1
  18. package/docs/reference/std/advance.md +1 -1
  19. package/docs/reference/std/cancellable_booking.md +1 -1
  20. package/docs/reference/std/captured_payment.md +1 -1
  21. package/docs/reference/std/conditional_disbursement.md +1 -1
  22. package/docs/reference/std/credit_facility.md +1 -1
  23. package/docs/reference/std/held_payment.md +3 -3
  24. package/docs/reference/std/instant_transfer.md +1 -1
  25. package/docs/reference/std/metered.md +1 -1
  26. package/docs/reference/std/pooled_split.md +1 -1
  27. package/docs/reference/std/premium_forward.md +1 -1
  28. package/docs/reference/std/reconciled_payout.md +1 -1
  29. package/docs/reference/std/recurring_collection.md +1 -1
  30. package/docs/reference/std/rotating_pool.md +1 -1
  31. package/docs/reference/std/scheduled.md +1 -1
  32. package/docs/reference/std/security_deposit.md +1 -1
  33. package/docs/reference/std/settlement_batch.md +1 -1
  34. package/docs/reference/std/swap.md +1 -1
  35. package/docs/reference/std/threshold_pool.md +1 -1
  36. package/docs/reference/std/weighted_distribution.md +1 -1
  37. package/docs/reference/types.md +1 -1
  38. package/docs/reference/udl-output.md +1 -1
  39. package/examples/advance/advance.udl +6 -6
  40. package/examples/cancellable_booking/cancellable_booking.udl +10 -10
  41. package/examples/captured_payment/captured_payment.udl +6 -6
  42. package/examples/conditional_disbursement/conditional_disbursement.udl +2 -2
  43. package/examples/cost-table.json +18 -78
  44. package/examples/credit_facility/credit_facility.udl +10 -10
  45. package/examples/held_payment/held_payment.udl +23 -12
  46. package/examples/instant_transfer/instant_transfer.udl +6 -6
  47. package/examples/metered/metered.udl +4 -4
  48. package/examples/pooled_split/pooled_split.udl +10 -10
  49. package/examples/premium_forward/premium_forward.udl +12 -12
  50. package/examples/recurring_collection/recurring_collection.udl +8 -8
  51. package/examples/rotating_pool/rotating_pool.udl +78 -78
  52. package/examples/scheduled/scheduled.udl +6 -6
  53. package/examples/security_deposit/security_deposit.udl +2 -2
  54. package/examples/swap/swap.udl +22 -22
  55. package/examples/threshold_pool/threshold_pool.udl +10 -10
  56. package/examples/weighted_distribution/weighted_distribution.udl +2 -2
  57. package/package.json +3 -3
  58. package/src/diagnostics.ts +10 -0
  59. package/src/std-bundle.ts +1 -1
  60. package/src/typecheck.ts +105 -1
  61. package/src/version.ts +1 -1
  62. package/std/money_flows/held_payment.hsx +2 -0
@@ -1,5 +1,5 @@
1
1
  /** Package version reported by the command line. */
2
- export declare const HSX_VERSION = "2.0.0";
2
+ export declare const HSX_VERSION = "2.0.1";
3
3
  /** Canonical UDL contract version emitted by this compiler. */
4
4
  export declare const HSX_TARGET_UDL_VERSION = 1;
5
5
  //# sourceMappingURL=version.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /** Package version reported by the command line. */
2
- export const HSX_VERSION = "2.0.0";
2
+ export const HSX_VERSION = "2.0.1";
3
3
  /** Canonical UDL contract version emitted by this compiler. */
4
4
  export const HSX_TARGET_UDL_VERSION = 1;
5
5
  //# sourceMappingURL=version.js.map
@@ -19,6 +19,6 @@ Read an action line as `instrument.action`, followed by the effect signature and
19
19
 
20
20
  The monthly estimate is an expression over declared meter variables. Billing supplies observed readings to that frozen expression. Recomposition emits a new manifest for the next commercial snapshot. It does not rewrite a prior manifest. During recomposition planning, compose plan calculates the candidate program's proposed estimate and reconciles it against the current Build's frozen pricing quote. The existing Product retains its frozen quote until the recomposition is applied.
21
21
 
22
- An effect without a price row reports `HSX1301`. An invalid price reports `HSX1302`. A missing cost table also reports `HSX1301`. `examples/cost-table.json` ships one rate card per priced billing currency; the compiler picks the card whose currency the program's money fields move. Money in a currency no card prices reports `HSX1304`, and money in two currencies reports `HSX1305`: a program bills in one ledger currency. Do not create another table for documentation.
22
+ An effect without a price row reports `HSX1301`. An invalid price reports `HSX1302`. A missing cost table also reports `HSX1301`. `examples/cost-table.json` ships one rate card per priced billing currency; the compiler picks the card whose currency the program's money fields move. Money in a currency no card prices reports `HSX1304`, and money in two currencies reports `HSX1305`: a program bills in one ledger currency. A move of a `money<SAR>` field moves SAR whatever the caller wrote in the instance currency field: the compiler pins the move's currency binding to the constant, and a binding it cannot pin reports `HSX1306`. Do not create another table for documentation.
23
23
 
24
24
  Do not confuse an action `quote` with the commercial cost manifest. `cancellable_booking.cancel` quotes a customer-visible cancellation penalty and `confirm` commits it. The compiler counts an instrument that carries a quote as unwind work because an expired or abandoned offer still needs bounded cleanup. The cost manifest prices that runtime work from the shipped rate card. It does not replace, spend, or alter the quoted financial amount.
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # HSX full documentation
4
4
 
@@ -339,7 +339,7 @@ Read an action line as `instrument.action`, followed by the effect signature and
339
339
 
340
340
  The monthly estimate is an expression over declared meter variables. Billing supplies observed readings to that frozen expression. Recomposition emits a new manifest for the next commercial snapshot. It does not rewrite a prior manifest. During recomposition planning, compose plan calculates the candidate program's proposed estimate and reconciles it against the current Build's frozen pricing quote. The existing Product retains its frozen quote until the recomposition is applied.
341
341
 
342
- An effect without a price row reports `HSX1301`. An invalid price reports `HSX1302`. A missing cost table also reports `HSX1301`. `examples/cost-table.json` ships one rate card per priced billing currency; the compiler picks the card whose currency the program's money fields move. Money in a currency no card prices reports `HSX1304`, and money in two currencies reports `HSX1305`: a program bills in one ledger currency. Do not create another table for documentation.
342
+ An effect without a price row reports `HSX1301`. An invalid price reports `HSX1302`. A missing cost table also reports `HSX1301`. `examples/cost-table.json` ships one rate card per priced billing currency; the compiler picks the card whose currency the program's money fields move. Money in a currency no card prices reports `HSX1304`, and money in two currencies reports `HSX1305`: a program bills in one ledger currency. A move of a `money<SAR>` field moves SAR whatever the caller wrote in the instance currency field: the compiler pins the move's currency binding to the constant, and a binding it cannot pin reports `HSX1306`. Do not create another table for documentation.
343
343
 
344
344
  Do not confuse an action `quote` with the commercial cost manifest. `cancellable_booking.cancel` quotes a customer-visible cancellation penalty and `confirm` commits it. The compiler counts an instrument that carries a quote as unwind work because an expired or abandoned offer still needs bounded cleanup. The cost manifest prices that runtime work from the shipped rate card. It does not replace, spend, or alter the quoted financial amount.
345
345
 
@@ -374,7 +374,7 @@ Exit code `0` means the command accepted the program. Exit code `1` means compil
374
374
  # CLI
375
375
 
376
376
  ```text
377
- hsx 2.0.0, the HSX compiler
377
+ hsx 2.0.1, the HSX compiler
378
378
 
379
379
  Usage:
380
380
  hsx check <file.hsx> [--strict]
@@ -938,6 +938,26 @@ instrument probe {
938
938
  }
939
939
  ```
940
940
 
941
+ ## HSX1306: Fixed-currency amount moved in another currency
942
+
943
+ Stage: `typecheck`
944
+
945
+ Fix: Bind the currency of a money<CUR> move or account step as the constant CUR; the compiler pins a binding that reads the instrument's currency field.
946
+
947
+ ```hsx expect=HSX1306
948
+ program catalog_probe "Catalog probe"
949
+ instrument probe {
950
+ agent_description: "Probe instrument for catalog diagnostics.";
951
+ fields { amount: money<SAR>; payeeAccountId: account<SAR>; payerAccountId: account<SAR>; }
952
+ lifecycle { states created; initial created; }
953
+ action create {
954
+ agent_description: "Create a probe instance.";
955
+ steps: [];
956
+ }
957
+ action pay { agent_description: "Pay the amount."; moves: [{ "bind": { "amount": { "from": "instance"; "path": "fields.amount"; }; "currency": { "from": "const"; "value": "USD"; }; "destinationAccountId": { "from": "instance"; "path": "fields.payeeAccountId"; }; "sourceAccountId": { "from": "instance"; "path": "fields.payerAccountId"; }; }; "key": "transfer"; "operation": "internal_transfer.create"; }]; steps: []; }
958
+ }
959
+ ```
960
+
941
961
  ## HSX1401: Unbounded action
942
962
 
943
963
  Stage: `typecheck`
@@ -1479,7 +1499,7 @@ Source: [`std/money_flows/held_payment.hsx`](../../../std/money_flows/held_payme
1479
1499
  | `refund_piece_2` | `agent description`, `moves`, `steps`, `summary` |
1480
1500
  | `unfund_piece_1` | `agent description`, `moves`, `steps`, `summary` |
1481
1501
  | `abandon` | `agent description`, `moves`, `steps`, `summary` |
1482
- | `dispute` | `agent description`, `description`, `moves`, `steps`, `summary` |
1502
+ | `dispute` | `agent description`, `deadline`, `description`, `moves`, `steps`, `summary` |
1483
1503
  | `resume` | `agent description`, `description`, `moves`, `steps`, `summary` |
1484
1504
  | `create` | `agent description`, `moves`, `steps`, `summary` |
1485
1505
  | `fund` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
@@ -1487,7 +1507,7 @@ Source: [`std/money_flows/held_payment.hsx`](../../../std/money_flows/held_payme
1487
1507
  | `release_on_deadline` | `due`, `event name`, `moves`, `steps`, `summary` |
1488
1508
  | `cancel` | `agent description`, `deadline`, `event name`, `moves`, `steps`, `summary` |
1489
1509
  | `abandon` | `agent description`, `moves`, `steps`, `summary` |
1490
- | `dispute` | `agent description`, `description`, `moves`, `steps`, `summary` |
1510
+ | `dispute` | `agent description`, `deadline`, `description`, `moves`, `steps`, `summary` |
1491
1511
  | `resume` | `agent description`, `description`, `moves`, `steps`, `summary` |
1492
1512
 
1493
1513
  # instant_transfer
package/docs/llms.txt CHANGED
@@ -1,8 +1,8 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # HSX documentation
4
4
 
5
- > Repository guide and generated compiler reference for HSX 2.0.0.
5
+ > Repository guide and generated compiler reference for HSX 2.0.1.
6
6
 
7
7
  ## Guide
8
8
 
@@ -1,9 +1,9 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # CLI
4
4
 
5
5
  ```text
6
- hsx 2.0.0, the HSX compiler
6
+ hsx 2.0.1, the HSX compiler
7
7
 
8
8
  Usage:
9
9
  hsx check <file.hsx> [--strict]
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # Diagnostics
4
4
 
@@ -533,6 +533,26 @@ instrument probe {
533
533
  }
534
534
  ```
535
535
 
536
+ ## HSX1306: Fixed-currency amount moved in another currency
537
+
538
+ Stage: `typecheck`
539
+
540
+ Fix: Bind the currency of a money<CUR> move or account step as the constant CUR; the compiler pins a binding that reads the instrument's currency field.
541
+
542
+ ```hsx expect=HSX1306
543
+ program catalog_probe "Catalog probe"
544
+ instrument probe {
545
+ agent_description: "Probe instrument for catalog diagnostics.";
546
+ fields { amount: money<SAR>; payeeAccountId: account<SAR>; payerAccountId: account<SAR>; }
547
+ lifecycle { states created; initial created; }
548
+ action create {
549
+ agent_description: "Create a probe instance.";
550
+ steps: [];
551
+ }
552
+ action pay { agent_description: "Pay the amount."; moves: [{ "bind": { "amount": { "from": "instance"; "path": "fields.amount"; }; "currency": { "from": "const"; "value": "USD"; }; "destinationAccountId": { "from": "instance"; "path": "fields.payeeAccountId"; }; "sourceAccountId": { "from": "instance"; "path": "fields.payerAccountId"; }; }; "key": "transfer"; "operation": "internal_transfer.create"; }]; steps: []; }
553
+ }
554
+ ```
555
+
536
556
  ## HSX1401: Unbounded action
537
557
 
538
558
  Stage: `typecheck`
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # Grammar vocabulary
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # advance
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # cancellable_booking
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # captured_payment
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # conditional_disbursement
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # credit_facility
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # held_payment
4
4
 
@@ -56,7 +56,7 @@ Source: [`std/money_flows/held_payment.hsx`](../../../std/money_flows/held_payme
56
56
  | `refund_piece_2` | `agent description`, `moves`, `steps`, `summary` |
57
57
  | `unfund_piece_1` | `agent description`, `moves`, `steps`, `summary` |
58
58
  | `abandon` | `agent description`, `moves`, `steps`, `summary` |
59
- | `dispute` | `agent description`, `description`, `moves`, `steps`, `summary` |
59
+ | `dispute` | `agent description`, `deadline`, `description`, `moves`, `steps`, `summary` |
60
60
  | `resume` | `agent description`, `description`, `moves`, `steps`, `summary` |
61
61
  | `create` | `agent description`, `moves`, `steps`, `summary` |
62
62
  | `fund` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
@@ -64,5 +64,5 @@ Source: [`std/money_flows/held_payment.hsx`](../../../std/money_flows/held_payme
64
64
  | `release_on_deadline` | `due`, `event name`, `moves`, `steps`, `summary` |
65
65
  | `cancel` | `agent description`, `deadline`, `event name`, `moves`, `steps`, `summary` |
66
66
  | `abandon` | `agent description`, `moves`, `steps`, `summary` |
67
- | `dispute` | `agent description`, `description`, `moves`, `steps`, `summary` |
67
+ | `dispute` | `agent description`, `deadline`, `description`, `moves`, `steps`, `summary` |
68
68
  | `resume` | `agent description`, `description`, `moves`, `steps`, `summary` |
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # instant_transfer
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # metered
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # pooled_split
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # premium_forward
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # reconciled_payout
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # recurring_collection
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # rotating_pool
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # scheduled
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # security_deposit
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # settlement_batch
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # swap
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # threshold_pool
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # weighted_distribution
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # Types
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- Generated by scripts/docs/build.ts for HSX 2.0.0. Do not edit. -->
1
+ <!-- Generated by scripts/docs/build.ts for HSX 2.0.1. Do not edit. -->
2
2
 
3
3
  # UDL output
4
4
 
@@ -34,8 +34,8 @@
34
34
  "path": "fields.repayment1Amount"
35
35
  },
36
36
  "currency": {
37
- "from": "instance",
38
- "path": "fields.currency"
37
+ "from": "const",
38
+ "value": "SAR"
39
39
  },
40
40
  "destinationAccountId": {
41
41
  "from": "instance",
@@ -99,8 +99,8 @@
99
99
  "path": "fields.repayment2Amount"
100
100
  },
101
101
  "currency": {
102
- "from": "instance",
103
- "path": "fields.currency"
102
+ "from": "const",
103
+ "value": "SAR"
104
104
  },
105
105
  "destinationAccountId": {
106
106
  "from": "instance",
@@ -162,8 +162,8 @@
162
162
  "path": "fields.principal"
163
163
  },
164
164
  "currency": {
165
- "from": "instance",
166
- "path": "fields.currency"
165
+ "from": "const",
166
+ "value": "SAR"
167
167
  },
168
168
  "destinationAccountId": {
169
169
  "from": "instance",
@@ -80,8 +80,8 @@
80
80
  "path": "fields.sessionPrice"
81
81
  },
82
82
  "currency": {
83
- "from": "instance",
84
- "path": "fields.currency"
83
+ "from": "const",
84
+ "value": "SAR"
85
85
  },
86
86
  "destinationAccountId": {
87
87
  "from": "instance",
@@ -125,8 +125,8 @@
125
125
  "path": "refs.cancellationRefundAmount"
126
126
  },
127
127
  "currency": {
128
- "from": "instance",
129
- "path": "fields.currency"
128
+ "from": "const",
129
+ "value": "SAR"
130
130
  },
131
131
  "destinationAccountId": {
132
132
  "from": "instance",
@@ -160,8 +160,8 @@
160
160
  {
161
161
  "bind": {
162
162
  "currency": {
163
- "from": "instance",
164
- "path": "fields.currency"
163
+ "from": "const",
164
+ "value": "SAR"
165
165
  },
166
166
  "owner.id": {
167
167
  "from": "instance",
@@ -206,8 +206,8 @@
206
206
  "path": "refs.cancellationPenaltyAmount"
207
207
  },
208
208
  "currency": {
209
- "from": "instance",
210
- "path": "fields.currency"
209
+ "from": "const",
210
+ "value": "SAR"
211
211
  },
212
212
  "destinationAccountId": {
213
213
  "from": "instance",
@@ -251,8 +251,8 @@
251
251
  "path": "fields.sessionPrice"
252
252
  },
253
253
  "currency": {
254
- "from": "instance",
255
- "path": "fields.currency"
254
+ "from": "const",
255
+ "value": "SAR"
256
256
  },
257
257
  "destinationAccountId": {
258
258
  "from": "instance",
@@ -38,8 +38,8 @@
38
38
  "path": "fields.authorizedAmount"
39
39
  },
40
40
  "currency": {
41
- "from": "instance",
42
- "path": "fields.currency"
41
+ "from": "const",
42
+ "value": "SAR"
43
43
  },
44
44
  "destinationAccountId": {
45
45
  "from": "instance",
@@ -231,8 +231,8 @@
231
231
  "path": "refs.capturedAmount"
232
232
  },
233
233
  "currency": {
234
- "from": "instance",
235
- "path": "fields.currency"
234
+ "from": "const",
235
+ "value": "SAR"
236
236
  },
237
237
  "destinationAccountId": {
238
238
  "from": "instance",
@@ -374,8 +374,8 @@
374
374
  "path": "refs.capturedAmount"
375
375
  },
376
376
  "currency": {
377
- "from": "instance",
378
- "path": "fields.currency"
377
+ "from": "const",
378
+ "value": "SAR"
379
379
  },
380
380
  "destinationAccountId": {
381
381
  "from": "instance",
@@ -270,8 +270,8 @@
270
270
  "path": "fields.amount"
271
271
  },
272
272
  "currency": {
273
- "from": "instance",
274
- "path": "fields.currency"
273
+ "from": "const",
274
+ "value": "SAR"
275
275
  },
276
276
  "destinationAccountId": {
277
277
  "from": "instance",