@xyo-network/payment-payload-plugins 3.1.1 → 3.1.2

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 (92) hide show
  1. package/dist/neutral/Amount/Iso4217Currency.d.ts +9 -0
  2. package/dist/neutral/Amount/Iso4217Currency.d.ts.map +1 -1
  3. package/dist/neutral/Amount/Payload.d.ts +12 -0
  4. package/dist/neutral/Amount/Payload.d.ts.map +1 -1
  5. package/dist/neutral/Billing/Address/Address.d.ts +24 -0
  6. package/dist/neutral/Billing/Address/Address.d.ts.map +1 -1
  7. package/dist/neutral/Discount/Config.d.ts +12 -0
  8. package/dist/neutral/Discount/Config.d.ts.map +1 -1
  9. package/dist/neutral/Discount/Params.d.ts +3 -0
  10. package/dist/neutral/Discount/Params.d.ts.map +1 -1
  11. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +5 -0
  12. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +1 -1
  13. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +5 -0
  14. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +1 -1
  15. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +5 -0
  16. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +1 -1
  17. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +12 -0
  18. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
  19. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +12 -0
  20. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
  21. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +12 -0
  22. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
  23. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +12 -0
  24. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -1
  25. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +1 -1
  26. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +12 -0
  27. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -1
  28. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +9 -0
  29. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +1 -1
  30. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +3 -0
  31. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +1 -1
  32. package/dist/neutral/Discount/Payload/Discount.d.ts +12 -0
  33. package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -1
  34. package/dist/neutral/Escrow/Outcome.d.ts +15 -0
  35. package/dist/neutral/Escrow/Outcome.d.ts.map +1 -1
  36. package/dist/neutral/Escrow/Terms/Party.d.ts +3 -0
  37. package/dist/neutral/Escrow/Terms/Party.d.ts.map +1 -1
  38. package/dist/neutral/Escrow/Terms/PartySecret.d.ts +3 -0
  39. package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +1 -1
  40. package/dist/neutral/Escrow/Terms/Terms.d.ts +48 -0
  41. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +1 -1
  42. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +6 -0
  43. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -1
  44. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +7 -0
  45. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -1
  46. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +8 -1
  47. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -1
  48. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +7 -0
  49. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -1
  50. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +4 -0
  51. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +1 -1
  52. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +10 -1
  53. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -1
  54. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +16 -0
  55. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +1 -1
  56. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +5 -0
  57. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -1
  58. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +21 -0
  59. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -1
  60. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +4 -0
  61. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -1
  62. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +4 -0
  63. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +1 -1
  64. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +4 -0
  65. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +1 -1
  66. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +14 -0
  67. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -1
  68. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +4 -0
  69. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +1 -1
  70. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +14 -0
  71. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -1
  72. package/dist/neutral/Invoice/Invoice.d.ts +9 -0
  73. package/dist/neutral/Invoice/Invoice.d.ts.map +1 -1
  74. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +30 -0
  75. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -1
  76. package/dist/neutral/Payment/Payload.d.ts +18 -0
  77. package/dist/neutral/Payment/Payload.d.ts.map +1 -1
  78. package/dist/neutral/Payment/Status/Payload.d.ts +18 -0
  79. package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -1
  80. package/dist/neutral/Purchase/Payload.d.ts +19 -0
  81. package/dist/neutral/Purchase/Payload.d.ts.map +1 -1
  82. package/dist/neutral/Receipt/Payload.d.ts +18 -0
  83. package/dist/neutral/Receipt/Payload.d.ts.map +1 -1
  84. package/dist/neutral/Subtotal/Diviner/Config.d.ts +3 -0
  85. package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +1 -1
  86. package/dist/neutral/Subtotal/Diviner/Payload.d.ts +12 -0
  87. package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +1 -1
  88. package/dist/neutral/Total/Diviner/Config.d.ts +9 -0
  89. package/dist/neutral/Total/Diviner/Config.d.ts.map +1 -1
  90. package/dist/neutral/Total/Diviner/Payload.d.ts +12 -0
  91. package/dist/neutral/Total/Diviner/Payload.d.ts.map +1 -1
  92. package/package.json +23 -21
@@ -2,5 +2,12 @@ import type { Hash } from '@xylabs/hex';
2
2
  import { type BoundWitness } from '@xyo-network/boundwitness-model';
3
3
  import type { Payload, WithMeta } from '@xyo-network/payload-model';
4
4
  import type { EscrowTerms } from '../../Terms/index.ts';
5
+ /**
6
+ * Returns a dictionary of appraisals and their associated bound witnesses which are signed by
7
+ * valid appraisal authorities from the escrow terms
8
+ * @param terms The escrow terms
9
+ * @param dictionary The diction of payloads associated with the escrow terms
10
+ * @returns A dictionary of appraisals and their associated bound witnesses
11
+ */
5
12
  export declare const getSignaturesByAppraisal: (terms: EscrowTerms, dictionary: Record<Hash, WithMeta<Payload>>) => Record<Hash, WithMeta<BoundWitness>[]>;
6
13
  //# sourceMappingURL=getSignaturesByAppraisal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSignaturesByAppraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getSignaturesByAppraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,YAAY,EAA0B,MAAM,iCAAiC,CAAA;AAC3F,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASvD,eAAO,MAAM,wBAAwB,UAC5B,WAAW,cACN,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAC1C,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,CAsBvC,CAAA"}
1
+ {"version":3,"file":"getSignaturesByAppraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getSignaturesByAppraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,YAAY,EAA0B,MAAM,iCAAiC,CAAA;AAC3F,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,UAC5B,WAAW,cACN,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAC1C,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,CAsBvC,CAAA"}
@@ -1,12 +1,19 @@
1
1
  import type { AccountInstance } from '@xyo-network/account-model';
2
2
  import type { IdPayload } from '@xyo-network/id-payload-plugin';
3
3
  import type { EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * Creates an escrow intent (for a buyer or seller) using the supplied secret
6
+ * @param terms The payload describing the terms for the escrow
7
+ * @param secret The secret for the escrow principal party to use for the escrow
8
+ * @param account The account to create the escrow intent with
9
+ * @returns The escrow intent
10
+ */
4
11
  export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: IdPayload, account: AccountInstance) => Promise<[import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
12
  schema: "network.xyo.boundwitness";
6
13
  }>, import("@xyo-network/payload-model").WithMeta<{
7
14
  schema: string;
8
15
  } & import("@xyo-network/payload-model").PayloadFields>[], import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
9
- details?: import(".store/@xylabs-object-npm-4.1.0-3ec0b9a178/package").JsonValue;
16
+ details?: import(".store/@xylabs-object-npm-4.4.9-23a96f4f51/package").JsonValue;
10
17
  message?: string;
11
18
  name?: string;
12
19
  query?: import("@xylabs/hex").Hash;
@@ -1 +1 @@
1
- {"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASvD,eAAO,MAAM,4BAA4B,UAAiB,WAAW,UAAU,SAAS,WAAW,eAAe;;;;;;;;;;;MAGjH,CAAA"}
1
+ {"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,UAAiB,WAAW,UAAU,SAAS,WAAW,eAAe;;;;;;;;;;;MAGjH,CAAA"}
@@ -2,5 +2,12 @@ import type { Hash } from '@xylabs/hex';
2
2
  import type { BoundWitness } from '@xyo-network/boundwitness-model';
3
3
  import type { Payload, WithMeta } from '@xyo-network/payload-model';
4
4
  import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
5
+ /**
6
+ * Returns an array of BoundWitnesses containing the secret signed by all the parties
7
+ * @param terms The escrow terms
8
+ * @param dictionary A dictionary of all the payloads associated with the escrow
9
+ * @param party The party to get the secret signatures for
10
+ * @returns An array of BoundWitnesses containing the secret signed by all the parties
11
+ */
5
12
  export declare const findEscrowPartySecretSignatures: (terms: EscrowTerms, dictionary: Record<Hash, WithMeta<Payload>>, party: EscrowParty) => BoundWitness[];
6
13
  //# sourceMappingURL=findEscrowPartySecretSignatures.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"findEscrowPartySecretSignatures.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/findEscrowPartySecretSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAEnE,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAkB7B,eAAO,MAAM,+BAA+B,UAAW,WAAW,cAAc,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,SAAS,WAAW,KAAG,YAAY,EAqBjJ,CAAA"}
1
+ {"version":3,"file":"findEscrowPartySecretSignatures.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/findEscrowPartySecretSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAEnE,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAW7B;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,UAAW,WAAW,cAAc,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,SAAS,WAAW,KAAG,YAAY,EAqBjJ,CAAA"}
@@ -1,3 +1,7 @@
1
1
  import type { IdPayload } from '@xyo-network/id-payload-plugin';
2
+ /**
3
+ * Returns a cryptographically random secret to use for escrow
4
+ * @returns The escrow secret
5
+ */
2
6
  export declare const getEscrowSecret: () => IdPayload;
3
7
  //# sourceMappingURL=getEscrowSecret.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getEscrowSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/getEscrowSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAO/D,eAAO,MAAM,eAAe,QAAO,SAElC,CAAA"}
1
+ {"version":3,"file":"getEscrowSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/getEscrowSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,SAElC,CAAA"}
@@ -1,12 +1,21 @@
1
1
  import type { AccountInstance } from '@xyo-network/account-model';
2
2
  import type { IdPayload } from '@xyo-network/id-payload-plugin';
3
3
  import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * Creates an escrow intent (for a buyer or seller) using the supplied secret
6
+ * @param terms The payload describing the terms for the escrow
7
+ * @param escrowParty The party in the escrow transaction
8
+ * @param account The account(s) to create the escrow intent with
9
+ * @param secret The secret for the escrow principal party to use for the escrow. If
10
+ * not provided, a cryptographically random secret will be generated.
11
+ * @returns The escrow intent
12
+ */
4
13
  export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: IdPayload) => Promise<[import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
14
  schema: "network.xyo.boundwitness";
6
15
  }>, import("@xyo-network/payload-model").WithMeta<{
7
16
  schema: string;
8
17
  } & import("@xyo-network/payload-model").PayloadFields>[], import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
9
- details?: import(".store/@xylabs-object-npm-4.1.0-3ec0b9a178/package").JsonValue;
18
+ details?: import(".store/@xylabs-object-npm-4.4.9-23a96f4f51/package").JsonValue;
10
19
  message?: string;
11
20
  name?: string;
12
21
  query?: import("@xylabs/hex").Hash;
@@ -1 +1 @@
1
- {"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAY7B,eAAO,MAAM,2BAA2B,UAC/B,WAAW,eACL,WAAW,WACf,eAAe,GAAG,eAAe,EAAE,WACnC,SAAS;;;;;;;;;;;MAanB,CAAA"}
1
+ {"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,UAC/B,WAAW,eACL,WAAW,WACf,eAAe,GAAG,eAAe,EAAE,WACnC,SAAS;;;;;;;;;;;MAanB,CAAA"}
@@ -1,6 +1,22 @@
1
1
  import type { ModuleIdentifier } from '@xyo-network/module-model';
2
2
  import type { PayloadValueExpression } from '@xyo-network/payload-model';
3
3
  import type { EscrowTerms } from '../../../Terms/index.ts';
4
+ /**
5
+ * Checks if property value of the escrow terms contains one of the valid moduleIdentifiers
6
+ * @param escrowTerms The escrow terms to validate
7
+ * @param propertyExpression The selector to get the property containing the moduleIdentifier(s) from the escrow terms
8
+ * @param moduleIdentifiers The list of allowed moduleIdentifiers
9
+ * @param required Is the property required to be present
10
+ * @returns True if the property value contains one of the valid moduleIdentifiers
11
+ */
4
12
  export declare const moduleIdentifiersContainsOneOf: (escrowTerms: EscrowTerms, propertyExpression: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
13
+ /**
14
+ * Checks if property value of the escrow terms contains all of the valid moduleIdentifiers
15
+ * @param escrowTerms The escrow terms to validate
16
+ * @param selector The selector to get the property containing the moduleIdentifier(s) from the escrow terms
17
+ * @param moduleIdentifiers The list of allowed moduleIdentifiers
18
+ * @param required Is the property required to be present
19
+ * @returns True if the property value contains all of the valid moduleIdentifiers
20
+ */
5
21
  export declare const moduleIdentifiersContainsAllOf: (escrowTerms: EscrowTerms, selector: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
6
22
  //# sourceMappingURL=moduleInstanceValidators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"moduleInstanceValidators.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,eAAO,MAAM,8BAA8B,gBAC5B,WAAW,sBACJ,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,qBACxH,gBAAgB,EAAE,aAC3B,OAAO,YAQlB,CAAA;AAUD,eAAO,MAAM,8BAA8B,gBAC5B,WAAW,YACd,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,qBAC9G,gBAAgB,EAAE,aAC3B,OAAO,YAQlB,CAAA"}
1
+ {"version":3,"file":"moduleInstanceValidators.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,gBAC5B,WAAW,sBACJ,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,qBACxH,gBAAgB,EAAE,aAC3B,OAAO,YAQlB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,gBAC5B,WAAW,YACd,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,qBAC9G,gBAAgB,EAAE,aAC3B,OAAO,YAQlB,CAAA"}
@@ -1,5 +1,10 @@
1
1
  import type { Hash } from '@xylabs/hex';
2
2
  import type { AsyncPayloadValidationFunction, Payload, WithMeta } from '@xyo-network/payload-model';
3
3
  import type { EscrowParty, EscrowTerms } from '../../../Terms/index.ts';
4
+ /**
5
+ * Returns a function that validates the escrow terms for the existence of the party secret signed by the party
6
+ * @param dictionary Payload dictionary of the escrow terms
7
+ * @returns A function that validates the escrow terms for the existence of the party secret signed by the party
8
+ */
4
9
  export declare const getPartySecretSignedValidator: (dictionary: Record<Hash, WithMeta<Payload>>, party: EscrowParty) => AsyncPayloadValidationFunction<EscrowTerms>;
5
10
  //# sourceMappingURL=getPartySecretSignedValidator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPartySecretSignedValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,QAAQ,EAClD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,yBAAyB,CAAA;AAkBhC,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,SAAS,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAqBzJ,CAAA"}
1
+ {"version":3,"file":"getPartySecretSignedValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,QAAQ,EAClD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,yBAAyB,CAAA;AAahC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,SAAS,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAqBzJ,CAAA"}
@@ -1,8 +1,29 @@
1
1
  import type { Hash } from '@xylabs/hex';
2
2
  import type { Payload, SyncPayloadValidationFunction, WithMeta } from '@xyo-network/payload-model';
3
3
  import type { EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * A function that validates the escrow terms for tbe existence of appraisals
6
+ * @returns True if the escrow terms contain appraisals, false otherwise
7
+ */
4
8
  export declare const appraisalsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
9
+ /**
10
+ * Returns a function that validates the escrow terms for appraisals which are from valid authorities
11
+ * @param dictionary Payload dictionary of the escrow terms
12
+ * @returns A function that validates the escrow terms for appraisals which are from valid authorities
13
+ */
5
14
  export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => SyncPayloadValidationFunction<EscrowTerms>;
15
+ /**
16
+ * Returns a function that validates the escrow terms for appraisals which are valid
17
+ * @param dictionary Payload dictionary of the escrow terms
18
+ * @param minimumExp The minium amount of time an estimate needs to be valid
19
+ * for in the future (so as not to expire before the escrow is complete)
20
+ * @returns A function that validates the escrow terms for appraisals which are valid
21
+ */
6
22
  export declare const getAppraisalsValidValidator: (dictionary: Record<Hash, WithMeta<Payload>>, minimumExp: number) => SyncPayloadValidationFunction<EscrowTerms>;
23
+ /**
24
+ * Returns a function that validates the escrow terms to ensure that they contain an appraisal for each asset
25
+ * @param dictionary Payload dictionary of the escrow terms
26
+ * @returns A function that validates the escrow terms for appraisals
27
+ */
7
28
  export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => SyncPayloadValidationFunction<EscrowTerms>;
8
29
  //# sourceMappingURL=appraisal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAIvC,OAAO,KAAK,EACV,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EACjD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAUvD,eAAO,MAAM,wBAAwB,EAAE,6BAA6B,CAAC,WAAW,CAQ/E,CAAA;AAOD,eAAO,MAAM,0CAA0C,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA0BjJ,CAAA;AASD,eAAO,MAAM,2BAA2B,eAC1B,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,cAC/B,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAOD,eAAO,MAAM,kCAAkC,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAWzI,CAAA"}
1
+ {"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAIvC,OAAO,KAAK,EACV,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EACjD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,6BAA6B,CAAC,WAAW,CAQ/E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0CAA0C,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA0BjJ,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,eAC1B,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,cAC/B,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAWzI,CAAA"}
@@ -1,6 +1,10 @@
1
1
  import type { ModuleIdentifier } from '@xyo-network/module-model';
2
2
  import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
3
3
  import type { EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * A function that validates the escrow terms for appraisalAuthorities
6
+ * @returns True if the escrow terms contain appraisalAuthorities, false otherwise
7
+ */
4
8
  export declare const appraisalAuthoritiesExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
5
9
  export declare const getAppraisalAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
6
10
  //# sourceMappingURL=appraisalAuthorities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASvD,eAAO,MAAM,kCAAkC,EAAE,6BAA6B,CAAC,WAAW,CAazF,CAAA;AAED,eAAO,MAAM,uCAAuC,YAAa,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
1
+ {"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,6BAA6B,CAAC,WAAW,CAazF,CAAA;AAED,eAAO,MAAM,uCAAuC,YAAa,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
@@ -1,4 +1,8 @@
1
1
  import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
+ /**
4
+ * Returns a function that validates the escrow terms for assets
5
+ * @returns A function that validates the escrow terms for assets
6
+ */
3
7
  export declare const assetsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
4
8
  //# sourceMappingURL=assets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAQvD,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
@@ -1,4 +1,8 @@
1
1
  import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
+ /**
4
+ * A function that validates the escrow terms for buyer
5
+ * @returns True if the escrow terms contain buyer, false otherwise
6
+ */
3
7
  export declare const buyerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
4
8
  //# sourceMappingURL=buyer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAQvD,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
1
+ {"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
@@ -1,7 +1,21 @@
1
1
  import type { Hash } from '@xylabs/hex';
2
2
  import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction, WithMeta } from '@xyo-network/payload-model';
3
3
  import type { EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * Returns a function that validates the escrow terms for buyerSecret
6
+ * @returns A function that validates the escrow terms for buyerSecret
7
+ */
4
8
  export declare const buyerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
9
+ /**
10
+ * Returns a function that validates the escrow terms for the existence of the buyerSecret in the dictionary
11
+ * @param dictionary Payload dictionary of the escrow terms
12
+ * @returns A function that validates the escrow terms for the existence of the buyerSecret in the dictionary
13
+ */
5
14
  export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => SyncPayloadValidationFunction<EscrowTerms>;
15
+ /**
16
+ * Returns a function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
17
+ * @param dictionary Payload dictionary of the escrow terms
18
+ * @returns A function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
19
+ */
6
20
  export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => AsyncPayloadValidationFunction<EscrowTerms>;
7
21
  //# sourceMappingURL=buyerSecret.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EACjF,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASvD,eAAO,MAAM,0BAA0B,EAAE,6BAA6B,CAAC,WAAW,CAQjF,CAAA;AAOD,eAAO,MAAM,+BAA+B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAStI,CAAA;AAOD,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAErI,CAAA"}
1
+ {"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EACjF,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,6BAA6B,CAAC,WAAW,CAQjF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAStI,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAErI,CAAA"}
@@ -1,4 +1,8 @@
1
1
  import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
+ /**
4
+ * A function that validates the escrow terms for seller
5
+ * @returns True if the escrow terms contain seller, false otherwise
6
+ */
3
7
  export declare const sellerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
4
8
  //# sourceMappingURL=seller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAQvD,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,WAAW,CAa5E,CAAA"}
1
+ {"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,WAAW,CAa5E,CAAA"}
@@ -1,7 +1,21 @@
1
1
  import type { Hash } from '@xylabs/hex';
2
2
  import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction, WithMeta } from '@xyo-network/payload-model';
3
3
  import type { EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * Returns a function that validates the escrow terms for sellerSecret
6
+ * @returns A function that validates the escrow terms for sellerSecret
7
+ */
4
8
  export declare const sellerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
9
+ /**
10
+ * Returns a function that validates the escrow terms for the existence of the sellerSecret in the dictionary
11
+ * @param dictionary Payload dictionary of the escrow terms
12
+ * @returns A function that validates the escrow terms for the existence of the sellerSecret in the dictionary
13
+ */
5
14
  export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => SyncPayloadValidationFunction<EscrowTerms>;
15
+ /**
16
+ * Returns a function that validates the escrow terms for the existence of the sellerSecret signed by the seller
17
+ * @param dictionary Payload dictionary of the escrow terms
18
+ * @returns A function that validates the escrow terms for the existence of the sellerSecret signed by the seller
19
+ */
6
20
  export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => AsyncPayloadValidationFunction<EscrowTerms>;
7
21
  //# sourceMappingURL=sellerSecret.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EACjF,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASvD,eAAO,MAAM,2BAA2B,EAAE,6BAA6B,CAAC,WAAW,CAQlF,CAAA;AAOD,eAAO,MAAM,gCAAgC,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CASvI,CAAA;AAOD,eAAO,MAAM,8BAA8B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAEtI,CAAA"}
1
+ {"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EACjF,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,6BAA6B,CAAC,WAAW,CAQlF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CASvI,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAEtI,CAAA"}
@@ -2,7 +2,16 @@ import type { Discount } from '../Discount/index.ts';
2
2
  import type { Payment } from '../Payment/index.ts';
3
3
  import type { Subtotal } from '../Subtotal/index.ts';
4
4
  import type { Total } from '../Total/index.ts';
5
+ /**
6
+ * A tuple containing the subtotal, total, and payment for an invoice.
7
+ */
5
8
  export type StandardInvoice = [Subtotal, Total, Payment];
9
+ /**
10
+ * A tuple containing the subtotal, total, payment, and discount for an invoice.
11
+ */
6
12
  export type DiscountedInvoice = [...StandardInvoice, Discount];
13
+ /**
14
+ * An invoice.
15
+ */
7
16
  export type Invoice = StandardInvoice | DiscountedInvoice;
8
17
  //# sourceMappingURL=Invoice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../src/Invoice/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAK9C,MAAM,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;AAKxD,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,eAAe,EAAE,QAAQ,CAAC,CAAA;AAK9D,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,iBAAiB,CAAA"}
1
+ {"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../src/Invoice/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;AAExD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,eAAe,EAAE,QAAQ,CAAC,CAAA;AAE9D;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,iBAAiB,CAAA"}
@@ -1,19 +1,49 @@
1
1
  import type { Payload } from '@xyo-network/payload-model';
2
2
  import { PaymentCardSchema } from './Schema.ts';
3
+ /**
4
+ * The fields describing a payment card.
5
+ */
3
6
  export interface PaymentCardFields {
7
+ /**
8
+ * Card Number (PAN) of the payment card. This value is required to perform a payment.
9
+ */
4
10
  cardNumber: string;
11
+ /**
12
+ * The name as it appears on the payment card.
13
+ */
5
14
  cardholderName?: string;
15
+ /**
16
+ * Card Verification Value (CVV/CVC) of the payment card.
17
+ */
6
18
  cvv: string;
19
+ /**
20
+ * Expiration month of the payment card.
21
+ */
7
22
  expMonth: number;
23
+ /**
24
+ * Expiration year of the payment card.
25
+ */
8
26
  expYear: number;
9
27
  }
28
+ /**
29
+ * A PaymentCard Payload
30
+ */
10
31
  export type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
32
+ /**
33
+ * Identity function for determine if an object is a PaymentCard
34
+ */
11
35
  export declare const isPaymentCard: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & PaymentCardFields & {
12
36
  schema: "network.xyo.payments.payment.instrument.card";
13
37
  };
38
+ /**
39
+ * Identity function for determine if an object is a PaymentCard with sources
40
+ */
14
41
  export declare const isPaymentCardWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & PaymentCardFields & {
15
42
  schema: "network.xyo.payments.payment.instrument.card";
16
43
  }>;
44
+ /**
45
+ * Identity function for determine if an object is a PaymentCard with meta
46
+ */
17
47
  export declare const isPaymentCardWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & PaymentCardFields & {
18
48
  schema: "network.xyo.payments.payment.instrument.card";
19
49
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAK/C,MAAM,WAAW,iBAAiB;IAIhC,UAAU,EAAE,MAAM,CAAA;IAIlB,cAAc,CAAC,EAAE,MAAM,CAAA;IAIvB,GAAG,EAAE,MAAM,CAAA;IAIX,QAAQ,EAAE,MAAM,CAAA;IAIhB,OAAO,EAAE,MAAM,CAAA;CAChB;AAKD,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAKvE,eAAO,MAAM,aAAa;;CAAwD,CAAA;AAKlF,eAAO,MAAM,wBAAwB;;EAAmE,CAAA;AAKxG,eAAO,MAAM,qBAAqB;;EAAgE,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,aAAa;;CAAwD,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;EAAmE,CAAA;AAExG;;GAEG;AACH,eAAO,MAAM,qBAAqB;;EAAgE,CAAA"}
@@ -2,11 +2,29 @@ import type { PayloadWithSources } from '@xyo-network/payload-model';
2
2
  import type { SupportedCurrency } from '../Currency.ts';
3
3
  import { PaymentSchema } from './Schema.ts';
4
4
  export interface PaymentFields {
5
+ /**
6
+ * The amount paid
7
+ */
5
8
  amount: number;
9
+ /**
10
+ * The currency of the amount paid
11
+ */
6
12
  currency: SupportedCurrency;
7
13
  }
14
+ /**
15
+ * A payment is a record of an amount to be paid
16
+ */
8
17
  export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
18
+ /**
19
+ * Identity function for determine if an object is a Payment
20
+ */
9
21
  export declare const isPayment: (x?: unknown | null) => x is Payment;
22
+ /**
23
+ * Identity function for determine if an object is a Payment with sources
24
+ */
10
25
  export declare const isPaymentWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Payment>;
26
+ /**
27
+ * Identity function for determine if an object is a Payment with meta
28
+ */
11
29
  export declare const isPaymentWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Payment>;
12
30
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAI5B,MAAM,EAAE,MAAM,CAAA;IAId,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAKD,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAKtE,eAAO,MAAM,SAAS,sCAAgD,CAAA;AAKtE,eAAO,MAAM,oBAAoB,wFAA2D,CAAA;AAK5F,eAAO,MAAM,iBAAiB,qFAAwD,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,wFAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,iBAAiB,qFAAwD,CAAA"}
@@ -1,11 +1,29 @@
1
1
  import type { PayloadWithSources } from '@xyo-network/payload-model';
2
2
  import { PaymentStatusSchema } from './Schema.ts';
3
3
  export interface PaymentStatusFields {
4
+ /**
5
+ * The result of the payment (i.e. declined)
6
+ */
4
7
  result?: string;
8
+ /**
9
+ * The status of the payment (i.e. completed)
10
+ */
5
11
  status: string;
6
12
  }
13
+ /**
14
+ * A payment status is the outcome of a payment attempt
15
+ */
7
16
  export type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatusSchema>;
17
+ /**
18
+ * Identity function for determine if an object is a PaymentStatus
19
+ */
8
20
  export declare const isPaymentStatus: (x?: unknown | null) => x is PaymentStatus;
21
+ /**
22
+ * Identity function for determine if an object is a PaymentStatus with sources
23
+ */
9
24
  export declare const isPaymentStatusWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<PaymentStatus>;
25
+ /**
26
+ * Identity function for determine if an object is a PaymentStatus with meta
27
+ */
10
28
  export declare const isPaymentStatusWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<PaymentStatus>;
11
29
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IAIlC,MAAM,CAAC,EAAE,MAAM,CAAA;IAKf,MAAM,EAAE,MAAM,CAAA;CACf;AAKD,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAKxF,eAAO,MAAM,eAAe,4CAA4D,CAAA;AAKxF,eAAO,MAAM,0BAA0B,8FAAuE,CAAA;AAK9G,eAAO,MAAM,uBAAuB,2FAAoE,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,0BAA0B,8FAAuE,CAAA;AAE9G;;GAEG;AACH,eAAO,MAAM,uBAAuB,2FAAoE,CAAA"}
@@ -2,11 +2,30 @@ import type { Hash } from '@xylabs/hex';
2
2
  import type { PayloadWithSources } from '@xyo-network/payload-model';
3
3
  import { PurchaseSchema } from './Schema.ts';
4
4
  export interface PurchaseFields {
5
+ /**
6
+ * The things that were purchased
7
+ */
5
8
  assets: Hash[];
9
+ /**
10
+ * The receipts for payments for this purchase. Array to allow for multiple payments
11
+ * for a single quote.
12
+ */
6
13
  receipts: Hash[];
7
14
  }
15
+ /**
16
+ * A purchase ties a payment made to a quote
17
+ */
8
18
  export type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
19
+ /**
20
+ * Identity function for determine if an object is a Purchase
21
+ */
9
22
  export declare const isPurchase: (x?: unknown | null) => x is Purchase;
23
+ /**
24
+ * Identity function for determine if an object is a Purchase with sources
25
+ */
10
26
  export declare const isPurchaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Purchase>;
27
+ /**
28
+ * Identity function for determine if an object is a Purchase with meta
29
+ */
11
30
  export declare const isPurchaseWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Purchase>;
12
31
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,cAAc;IAI7B,MAAM,EAAE,IAAI,EAAE,CAAA;IAKd,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB;AAKD,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAKzE,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAKzE,eAAO,MAAM,qBAAqB,yFAA6D,CAAA;AAK/F,eAAO,MAAM,kBAAkB,sFAA0D,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;;OAGG;IACH,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,kBAAkB,sFAA0D,CAAA"}
@@ -2,11 +2,29 @@ import type { PayloadWithSources } from '@xyo-network/payload-model';
2
2
  import type { SupportedCurrency } from '../Currency.ts';
3
3
  import { ReceiptSchema } from './Schema.ts';
4
4
  export interface ReceiptFields {
5
+ /**
6
+ * The amount paid
7
+ */
5
8
  amount: number;
9
+ /**
10
+ * The currency of the amount paid
11
+ */
6
12
  currency: SupportedCurrency;
7
13
  }
14
+ /**
15
+ * A receipt is a record of a payment made
16
+ */
8
17
  export type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>;
18
+ /**
19
+ * Identity function for determine if an object is a Receipt
20
+ */
9
21
  export declare const isReceipt: (x?: unknown | null) => x is Receipt;
22
+ /**
23
+ * Identity function for determine if an object is a Receipt with sources
24
+ */
10
25
  export declare const isReceiptWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Receipt>;
26
+ /**
27
+ * Identity function for determine if an object is a Receipt with meta
28
+ */
11
29
  export declare const isReceiptWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Receipt>;
12
30
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Receipt/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAI5B,MAAM,EAAE,MAAM,CAAA;IAId,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAKD,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAKtE,eAAO,MAAM,SAAS,sCAAgD,CAAA;AAKtE,eAAO,MAAM,oBAAoB,wFAA2D,CAAA;AAK5F,eAAO,MAAM,iBAAiB,qFAAwD,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Receipt/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,wFAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,iBAAiB,qFAAwD,CAAA"}
@@ -1,5 +1,8 @@
1
1
  import type { DivinerConfig } from '@xyo-network/diviner-model';
2
2
  export declare const PaymentSubtotalDivinerConfigSchema = "network.xyo.diviner.payments.subtotal.config";
3
3
  export type PaymentSubtotalDivinerConfigSchema = typeof PaymentSubtotalDivinerConfigSchema;
4
+ /**
5
+ * The configuration for the Coupon Subtotal Diviner
6
+ */
4
7
  export type PaymentSubtotalDivinerConfig = DivinerConfig<{}, PaymentSubtotalDivinerConfigSchema>;
5
8
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../../src/Subtotal/Diviner/Config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,eAAO,MAAM,kCAAkC,iDAAiD,CAAA;AAChG,MAAM,MAAM,kCAAkC,GAAG,OAAO,kCAAkC,CAAA;AAK1F,MAAM,MAAM,4BAA4B,GAAG,aAAa,CACtD,EAAE,EACF,kCAAkC,CACnC,CAAA"}
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../../src/Subtotal/Diviner/Config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,eAAO,MAAM,kCAAkC,iDAAiD,CAAA;AAChG,MAAM,MAAM,kCAAkC,GAAG,OAAO,kCAAkC,CAAA;AAE1F;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,aAAa,CACtD,EAAE,EACF,kCAAkC,CACnC,CAAA"}
@@ -4,8 +4,20 @@ export declare const SubtotalSchema: "network.xyo.payments.subtotal";
4
4
  export type SubtotalSchema = typeof SubtotalSchema;
5
5
  export interface SubtotalFields extends AmountFields {
6
6
  }
7
+ /**
8
+ * The result of a subtotal
9
+ */
7
10
  export type Subtotal = PayloadWithSources<SubtotalFields, SubtotalSchema>;
11
+ /**
12
+ * Identity function for determining if an object is an Subtotal
13
+ */
8
14
  export declare const isSubtotal: (x?: unknown | null) => x is Subtotal;
15
+ /**
16
+ * Identity function for determining if an object is an Subtotal with sources
17
+ */
9
18
  export declare const isSubtotalWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Subtotal>;
19
+ /**
20
+ * Identity function for determining if an object is an Subtotal with meta
21
+ */
10
22
  export declare const isSubtotalWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Subtotal>;
11
23
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Subtotal/Diviner/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,cAAc,iCAA2C,CAAA;AACtE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA;AAElD,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAG;AAKvD,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAKzE,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAKzE,eAAO,MAAM,qBAAqB,yFAA6D,CAAA;AAK/F,eAAO,MAAM,kBAAkB,sFAA0D,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Subtotal/Diviner/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,cAAc,EAAG,+BAAwC,CAAA;AACtE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA;AAElD,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAG;AAEvD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,kBAAkB,sFAA0D,CAAA"}