@xyo-network/payment-payload-plugins 7.0.2 → 7.0.4

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 (195) hide show
  1. package/dist/neutral/index.d.ts +1 -11
  2. package/dist/neutral/index.d.ts.map +1 -1
  3. package/dist/neutral/index.mjs +2 -1298
  4. package/dist/neutral/index.mjs.map +4 -4
  5. package/package.json +53 -49
  6. package/dist/neutral/Amount/Iso4217Currency.d.ts +0 -14
  7. package/dist/neutral/Amount/Iso4217Currency.d.ts.map +0 -1
  8. package/dist/neutral/Amount/Payload.d.ts +0 -68
  9. package/dist/neutral/Amount/Payload.d.ts.map +0 -1
  10. package/dist/neutral/Amount/index.d.ts +0 -3
  11. package/dist/neutral/Amount/index.d.ts.map +0 -1
  12. package/dist/neutral/Billing/Address/Address.d.ts +0 -112
  13. package/dist/neutral/Billing/Address/Address.d.ts.map +0 -1
  14. package/dist/neutral/Billing/Address/Schema.d.ts +0 -5
  15. package/dist/neutral/Billing/Address/Schema.d.ts.map +0 -1
  16. package/dist/neutral/Billing/Address/index.d.ts +0 -3
  17. package/dist/neutral/Billing/Address/index.d.ts.map +0 -1
  18. package/dist/neutral/Billing/Schema.d.ts +0 -5
  19. package/dist/neutral/Billing/Schema.d.ts.map +0 -1
  20. package/dist/neutral/Billing/index.d.ts +0 -3
  21. package/dist/neutral/Billing/index.d.ts.map +0 -1
  22. package/dist/neutral/Currency.d.ts +0 -6
  23. package/dist/neutral/Currency.d.ts.map +0 -1
  24. package/dist/neutral/Discount/Config.d.ts +0 -23
  25. package/dist/neutral/Discount/Config.d.ts.map +0 -1
  26. package/dist/neutral/Discount/Params.d.ts +0 -9
  27. package/dist/neutral/Discount/Params.d.ts.map +0 -1
  28. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -8
  29. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -1
  30. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -8
  31. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -1
  32. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -34
  33. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -1
  34. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +0 -4
  35. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -1
  36. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -92
  37. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +0 -1
  38. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -85
  39. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +0 -1
  40. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -92
  41. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +0 -1
  42. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +0 -4
  43. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -1
  44. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +0 -193
  45. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
  46. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +0 -5
  47. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +0 -1
  48. package/dist/neutral/Discount/Payload/Coupon/index.d.ts +0 -6
  49. package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +0 -1
  50. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +0 -100
  51. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +0 -1
  52. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -12
  53. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -1
  54. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +0 -4
  55. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +0 -1
  56. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +0 -5
  57. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -1
  58. package/dist/neutral/Discount/Payload/Discount.d.ts +0 -64
  59. package/dist/neutral/Discount/Payload/Discount.d.ts.map +0 -1
  60. package/dist/neutral/Discount/Payload/NoDiscount.d.ts +0 -3
  61. package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +0 -1
  62. package/dist/neutral/Discount/Payload/index.d.ts +0 -4
  63. package/dist/neutral/Discount/Payload/index.d.ts.map +0 -1
  64. package/dist/neutral/Discount/index.d.ts +0 -4
  65. package/dist/neutral/Discount/index.d.ts.map +0 -1
  66. package/dist/neutral/Escrow/Outcome.d.ts +0 -78
  67. package/dist/neutral/Escrow/Outcome.d.ts.map +0 -1
  68. package/dist/neutral/Escrow/Schema.d.ts +0 -5
  69. package/dist/neutral/Escrow/Schema.d.ts.map +0 -1
  70. package/dist/neutral/Escrow/Terms/Party.d.ts +0 -6
  71. package/dist/neutral/Escrow/Terms/Party.d.ts.map +0 -1
  72. package/dist/neutral/Escrow/Terms/PartySecret.d.ts +0 -6
  73. package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +0 -1
  74. package/dist/neutral/Escrow/Terms/Terms.d.ts +0 -314
  75. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +0 -1
  76. package/dist/neutral/Escrow/Terms/index.d.ts +0 -4
  77. package/dist/neutral/Escrow/Terms/index.d.ts.map +0 -1
  78. package/dist/neutral/Escrow/index.d.ts +0 -6
  79. package/dist/neutral/Escrow/index.d.ts.map +0 -1
  80. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -12
  81. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -1
  82. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -12
  83. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -1
  84. package/dist/neutral/Escrow/util/appraisal/index.d.ts +0 -3
  85. package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +0 -1
  86. package/dist/neutral/Escrow/util/index.d.ts +0 -3
  87. package/dist/neutral/Escrow/util/index.d.ts.map +0 -1
  88. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +0 -38
  89. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +0 -1
  90. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -12
  91. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -1
  92. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +0 -7
  93. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -1
  94. package/dist/neutral/Escrow/util/secret/index.d.ts +0 -5
  95. package/dist/neutral/Escrow/util/secret/index.d.ts.map +0 -1
  96. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +0 -40
  97. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +0 -1
  98. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -2
  99. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -1
  100. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -21
  101. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -1
  102. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -10
  103. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -1
  104. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +0 -2
  105. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -1
  106. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +0 -2
  107. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -1
  108. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -6
  109. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -1
  110. package/dist/neutral/Escrow/validators/common/index.d.ts +0 -4
  111. package/dist/neutral/Escrow/validators/common/index.d.ts.map +0 -1
  112. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +0 -4
  113. package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +0 -1
  114. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +0 -29
  115. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +0 -1
  116. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -9
  117. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -1
  118. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +0 -8
  119. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +0 -1
  120. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +0 -8
  121. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +0 -1
  122. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +0 -21
  123. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -1
  124. package/dist/neutral/Escrow/validators/escrow/index.d.ts +0 -11
  125. package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +0 -1
  126. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +0 -4
  127. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +0 -1
  128. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -4
  129. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -1
  130. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +0 -8
  131. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +0 -1
  132. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +0 -21
  133. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -1
  134. package/dist/neutral/Escrow/validators/index.d.ts +0 -3
  135. package/dist/neutral/Escrow/validators/index.d.ts.map +0 -1
  136. package/dist/neutral/Invoice/Invoice.d.ts +0 -17
  137. package/dist/neutral/Invoice/Invoice.d.ts.map +0 -1
  138. package/dist/neutral/Invoice/index.d.ts +0 -2
  139. package/dist/neutral/Invoice/index.d.ts.map +0 -1
  140. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +0 -84
  141. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +0 -1
  142. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +0 -5
  143. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +0 -1
  144. package/dist/neutral/Payment/Instrument/Card/index.d.ts +0 -3
  145. package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +0 -1
  146. package/dist/neutral/Payment/Instrument/Schema.d.ts +0 -5
  147. package/dist/neutral/Payment/Instrument/Schema.d.ts.map +0 -1
  148. package/dist/neutral/Payment/Instrument/index.d.ts +0 -3
  149. package/dist/neutral/Payment/Instrument/index.d.ts.map +0 -1
  150. package/dist/neutral/Payment/Payload.d.ts +0 -64
  151. package/dist/neutral/Payment/Payload.d.ts.map +0 -1
  152. package/dist/neutral/Payment/Schema.d.ts +0 -5
  153. package/dist/neutral/Payment/Schema.d.ts.map +0 -1
  154. package/dist/neutral/Payment/Status/Payload.d.ts +0 -60
  155. package/dist/neutral/Payment/Status/Payload.d.ts.map +0 -1
  156. package/dist/neutral/Payment/Status/Schema.d.ts +0 -5
  157. package/dist/neutral/Payment/Status/Schema.d.ts.map +0 -1
  158. package/dist/neutral/Payment/Status/index.d.ts +0 -3
  159. package/dist/neutral/Payment/Status/index.d.ts.map +0 -1
  160. package/dist/neutral/Payment/index.d.ts +0 -5
  161. package/dist/neutral/Payment/index.d.ts.map +0 -1
  162. package/dist/neutral/Purchase/Payload.d.ts +0 -60
  163. package/dist/neutral/Purchase/Payload.d.ts.map +0 -1
  164. package/dist/neutral/Purchase/Schema.d.ts +0 -5
  165. package/dist/neutral/Purchase/Schema.d.ts.map +0 -1
  166. package/dist/neutral/Purchase/index.d.ts +0 -3
  167. package/dist/neutral/Purchase/index.d.ts.map +0 -1
  168. package/dist/neutral/Receipt/Payload.d.ts +0 -64
  169. package/dist/neutral/Receipt/Payload.d.ts.map +0 -1
  170. package/dist/neutral/Receipt/Schema.d.ts +0 -5
  171. package/dist/neutral/Receipt/Schema.d.ts.map +0 -1
  172. package/dist/neutral/Receipt/index.d.ts +0 -3
  173. package/dist/neutral/Receipt/index.d.ts.map +0 -1
  174. package/dist/neutral/Schema.d.ts +0 -5
  175. package/dist/neutral/Schema.d.ts.map +0 -1
  176. package/dist/neutral/Subtotal/Diviner/Config.d.ts +0 -10
  177. package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +0 -1
  178. package/dist/neutral/Subtotal/Diviner/Params.d.ts +0 -4
  179. package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +0 -1
  180. package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -64
  181. package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +0 -1
  182. package/dist/neutral/Subtotal/Diviner/index.d.ts +0 -4
  183. package/dist/neutral/Subtotal/Diviner/index.d.ts.map +0 -1
  184. package/dist/neutral/Subtotal/index.d.ts +0 -2
  185. package/dist/neutral/Subtotal/index.d.ts.map +0 -1
  186. package/dist/neutral/Total/Diviner/Config.d.ts +0 -19
  187. package/dist/neutral/Total/Diviner/Config.d.ts.map +0 -1
  188. package/dist/neutral/Total/Diviner/Params.d.ts +0 -4
  189. package/dist/neutral/Total/Diviner/Params.d.ts.map +0 -1
  190. package/dist/neutral/Total/Diviner/Payload.d.ts +0 -64
  191. package/dist/neutral/Total/Diviner/Payload.d.ts.map +0 -1
  192. package/dist/neutral/Total/Diviner/index.d.ts +0 -4
  193. package/dist/neutral/Total/Diviner/index.d.ts.map +0 -1
  194. package/dist/neutral/Total/index.d.ts +0 -2
  195. package/dist/neutral/Total/index.d.ts.map +0 -1
@@ -1,29 +0,0 @@
1
- import type { Hash } from '@ariestools/sdk';
2
- import type { Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk';
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
- */
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
- */
14
- export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, 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
- */
22
- export declare const getAppraisalsValidValidator: (dictionary: Record<Hash, 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
- */
28
- export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
29
- //# sourceMappingURL=appraisal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAG3C,OAAO,KAAK,EAEV,OAAO,EAAE,6BAA6B,EACvC,MAAM,kBAAkB,CAAA;AAGzB,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,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA2BvI,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GACtC,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EACjC,YAAY,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAW/H,CAAA"}
@@ -1,9 +0,0 @@
1
- import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
- import type { EscrowTerms } from '../../Terms/index.ts';
3
- /**
4
- * A function that validates the escrow terms for appraisalAuthorities
5
- * @returns True if the escrow terms contain appraisalAuthorities, false otherwise
6
- */
7
- export declare const appraisalAuthoritiesExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
8
- export declare const getAppraisalAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
9
- //# sourceMappingURL=appraisalAuthorities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAEvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,6BAA6B,CAAC,WAAW,CAazF,CAAA;AAED,eAAO,MAAM,uCAAuC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
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
- */
7
- export declare const assetsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
8
- //# sourceMappingURL=assets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
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
- */
7
- export declare const buyerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
8
- //# sourceMappingURL=buyer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
@@ -1,21 +0,0 @@
1
- import type { Hash } from '@ariestools/sdk';
2
- import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk';
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
- */
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
- */
14
- export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, 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
- */
20
- export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
21
- //# sourceMappingURL=buyerSecret.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,kBAAkB,CAAA;AAEzB,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,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS5H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE3H,CAAA"}
@@ -1,11 +0,0 @@
1
- export * from './agent.ts';
2
- export * from './appraisal.ts';
3
- export * from './appraisalAuthorities.ts';
4
- export * from './assets.ts';
5
- export * from './buyer.ts';
6
- export * from './buyerSecret.ts';
7
- export * from './nbfExp.ts';
8
- export * from './paymentAuthorities.ts';
9
- export * from './seller.ts';
10
- export * from './sellerSecret.ts';
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
- import type { EscrowTerms } from '../../Terms/index.ts';
3
- export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => SyncPayloadValidationFunction<EscrowTerms>;
4
- //# sourceMappingURL=nbfExp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,qBAAqB,MAAM,KAAG,6BAA6B,CAAC,WAAW,CActH,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
- import type { EscrowTerms } from '../../Terms/index.ts';
3
- export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
4
- //# sourceMappingURL=paymentAuthorities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAEvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,qCAAqC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ5H,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
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
- */
7
- export declare const sellerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
8
- //# sourceMappingURL=seller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,WAAW,CAa5E,CAAA"}
@@ -1,21 +0,0 @@
1
- import type { Hash } from '@ariestools/sdk';
2
- import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk';
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
- */
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
- */
14
- export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, 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
- */
20
- export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
21
- //# sourceMappingURL=sellerSecret.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,kBAAkB,CAAA;AAEzB,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,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS7H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE5H,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './common/index.ts';
2
- export * from './escrow/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
@@ -1,17 +0,0 @@
1
- import type { Discount } from '../Discount/index.ts';
2
- import type { Payment } from '../Payment/index.ts';
3
- import type { Subtotal } from '../Subtotal/index.ts';
4
- import type { Total } from '../Total/index.ts';
5
- /**
6
- * A tuple containing the subtotal, total, and payment for an invoice.
7
- */
8
- export type StandardInvoice = [Subtotal, Total, Payment];
9
- /**
10
- * A tuple containing the subtotal, total, payment, and discount for an invoice.
11
- */
12
- export type DiscountedInvoice = [...StandardInvoice, Discount];
13
- /**
14
- * An invoice.
15
- */
16
- export type Invoice = StandardInvoice | DiscountedInvoice;
17
- //# sourceMappingURL=Invoice.d.ts.map
@@ -1 +0,0 @@
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,2 +0,0 @@
1
- export * from './Invoice.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Invoice/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1,84 +0,0 @@
1
- import * as z from 'zod/mini';
2
- /**
3
- * The fields describing a payment card.
4
- */
5
- export declare const PaymentCardFieldsZod: z.ZodMiniObject<{
6
- cardNumber: z.ZodMiniString<string>;
7
- cardholderName: z.ZodMiniOptional<z.ZodMiniString<string>>;
8
- cvv: z.ZodMiniString<string>;
9
- expMonth: z.ZodMiniNumber<number>;
10
- expYear: z.ZodMiniNumber<number>;
11
- }, z.core.$strip>;
12
- export type PaymentCardFields = z.infer<typeof PaymentCardFieldsZod>;
13
- /**
14
- * A PaymentCard Payload
15
- */
16
- export declare const PaymentCardZod: z.ZodMiniObject<{
17
- schema: z.ZodMiniLiteral<string & {
18
- readonly __schema: true;
19
- }>;
20
- cardNumber: z.ZodMiniString<string>;
21
- cardholderName: z.ZodMiniOptional<z.ZodMiniString<string>>;
22
- cvv: z.ZodMiniString<string>;
23
- expMonth: z.ZodMiniNumber<number>;
24
- expYear: z.ZodMiniNumber<number>;
25
- }, z.core.$strip>;
26
- export type PaymentCard = z.infer<typeof PaymentCardZod>;
27
- /**
28
- * Identity function for determine if an object is a PaymentCard
29
- */
30
- export declare const isPaymentCard: <T>(value: T) => value is T & {
31
- schema: string & {
32
- readonly __schema: true;
33
- };
34
- cardNumber: string;
35
- cvv: string;
36
- expMonth: number;
37
- expYear: number;
38
- cardholderName?: string | undefined;
39
- };
40
- export declare const asPaymentCard: {
41
- <T>(value: T): (T & {
42
- schema: string & {
43
- readonly __schema: true;
44
- };
45
- cardNumber: string;
46
- cvv: string;
47
- expMonth: number;
48
- expYear: number;
49
- cardholderName?: string | undefined;
50
- }) | undefined;
51
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
52
- schema: string & {
53
- readonly __schema: true;
54
- };
55
- cardNumber: string;
56
- cvv: string;
57
- expMonth: number;
58
- expYear: number;
59
- cardholderName?: string | undefined;
60
- };
61
- };
62
- export declare const toPaymentCard: {
63
- <T>(value: T): (T & {
64
- schema: string & {
65
- readonly __schema: true;
66
- };
67
- cardNumber: string;
68
- cvv: string;
69
- expMonth: number;
70
- expYear: number;
71
- cardholderName?: string | undefined;
72
- }) | undefined;
73
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
74
- schema: string & {
75
- readonly __schema: true;
76
- };
77
- cardNumber: string;
78
- cvv: string;
79
- expMonth: number;
80
- expYear: number;
81
- cardholderName?: string | undefined;
82
- };
83
- };
84
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;iBAqB/B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;iBAAqF,CAAA;AAEhH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;CAA+B,CAAA;AACzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA;AAC1E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const PaymentCardSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PaymentCardSchema = typeof PaymentCardSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;CAAoD,CAAA;AAClF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const PaymentInstrumentSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PaymentInstrumentSchema = typeof PaymentInstrumentSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Instrument/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB;;CAAgD,CAAA;AACpF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Card/index.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Instrument/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA"}
@@ -1,64 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const PaymentFieldsZod: z.ZodMiniObject<{
3
- amount: z.ZodMiniNumber<number>;
4
- currency: z.ZodMiniEnum<{
5
- USD: "USD";
6
- }>;
7
- }, z.core.$strip>;
8
- export type PaymentFields = z.infer<typeof PaymentFieldsZod>;
9
- /**
10
- * A payment is a record of an amount to be paid
11
- */
12
- export declare const PaymentZod: z.ZodMiniObject<{
13
- schema: z.ZodMiniLiteral<string & {
14
- readonly __schema: true;
15
- }>;
16
- amount: z.ZodMiniNumber<number>;
17
- currency: z.ZodMiniEnum<{
18
- USD: "USD";
19
- }>;
20
- }, z.core.$strip>;
21
- export type Payment = z.infer<typeof PaymentZod>;
22
- /**
23
- * Identity function for determine if an object is a Payment
24
- */
25
- export declare const isPayment: <T>(value: T) => value is T & {
26
- schema: string & {
27
- readonly __schema: true;
28
- };
29
- amount: number;
30
- currency: "USD";
31
- };
32
- export declare const asPayment: {
33
- <T>(value: T): (T & {
34
- schema: string & {
35
- readonly __schema: true;
36
- };
37
- amount: number;
38
- currency: "USD";
39
- }) | undefined;
40
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
41
- schema: string & {
42
- readonly __schema: true;
43
- };
44
- amount: number;
45
- currency: "USD";
46
- };
47
- };
48
- export declare const toPayment: {
49
- <T>(value: T): (T & {
50
- schema: string & {
51
- readonly __schema: true;
52
- };
53
- amount: number;
54
- currency: "USD";
55
- }) | undefined;
56
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
57
- schema: string & {
58
- readonly __schema: true;
59
- };
60
- amount: number;
61
- currency: "USD";
62
- };
63
- };
64
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B,eAAO,MAAM,gBAAgB;;;;;iBAS3B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE5D;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;iBAA6E,CAAA;AAEpG,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;CAA2B,CAAA;AACjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAAwC,CAAA;AAC9D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAAwC,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const PaymentSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PaymentSchema = typeof PaymentSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Payment/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;CAA8C,CAAA;AACxE,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
@@ -1,60 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const PaymentStatusFieldsZod: z.ZodMiniObject<{
3
- result: z.ZodMiniOptional<z.ZodMiniString<string>>;
4
- status: z.ZodMiniString<string>;
5
- }, z.core.$strip>;
6
- export type PaymentStatusFields = z.infer<typeof PaymentStatusFieldsZod>;
7
- /**
8
- * A payment status is the outcome of a payment attempt
9
- */
10
- export declare const PaymentStatusZod: z.ZodMiniObject<{
11
- schema: z.ZodMiniLiteral<string & {
12
- readonly __schema: true;
13
- }>;
14
- result: z.ZodMiniOptional<z.ZodMiniString<string>>;
15
- status: z.ZodMiniString<string>;
16
- }, z.core.$strip>;
17
- export type PaymentStatus = z.infer<typeof PaymentStatusZod>;
18
- /**
19
- * Identity function for determine if an object is a PaymentStatus
20
- */
21
- export declare const isPaymentStatus: <T>(value: T) => value is T & {
22
- schema: string & {
23
- readonly __schema: true;
24
- };
25
- status: string;
26
- result?: string | undefined;
27
- };
28
- export declare const asPaymentStatus: {
29
- <T>(value: T): (T & {
30
- schema: string & {
31
- readonly __schema: true;
32
- };
33
- status: string;
34
- result?: string | undefined;
35
- }) | undefined;
36
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
37
- schema: string & {
38
- readonly __schema: true;
39
- };
40
- status: string;
41
- result?: string | undefined;
42
- };
43
- };
44
- export declare const toPaymentStatus: {
45
- <T>(value: T): (T & {
46
- schema: string & {
47
- readonly __schema: true;
48
- };
49
- status: string;
50
- result?: string | undefined;
51
- }) | undefined;
52
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
53
- schema: string & {
54
- readonly __schema: true;
55
- };
56
- status: string;
57
- result?: string | undefined;
58
- };
59
- };
60
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,sBAAsB;;;iBASjC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;iBAAyF,CAAA;AAEtH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE5D;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;CAAiC,CAAA;AAC7D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAAoD,CAAA;AAChF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAAoD,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const PaymentStatusSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PaymentStatusSchema = typeof PaymentStatusSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;CAA4C,CAAA;AAC5E,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -1,5 +0,0 @@
1
- export * from './Instrument/index.ts';
2
- export * from './Payload.ts';
3
- export * from './Schema.ts';
4
- export * from './Status/index.ts';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payment/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
@@ -1,60 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const PurchaseFieldsZod: z.ZodMiniObject<{
3
- assets: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
4
- receipts: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
5
- }, z.core.$strip>;
6
- export type PurchaseFields = z.infer<typeof PurchaseFieldsZod>;
7
- /**
8
- * A purchase ties a payment made to a quote
9
- */
10
- export declare const PurchaseZod: z.ZodMiniObject<{
11
- schema: z.ZodMiniLiteral<string & {
12
- readonly __schema: true;
13
- }>;
14
- assets: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
15
- receipts: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
16
- }, z.core.$strip>;
17
- export type Purchase = z.infer<typeof PurchaseZod>;
18
- /**
19
- * Identity function for determine if an object is a Purchase
20
- */
21
- export declare const isPurchase: <T>(value: T) => value is T & {
22
- schema: string & {
23
- readonly __schema: true;
24
- };
25
- assets: import("@ariestools/sdk").BrandedHash[];
26
- receipts: import("@ariestools/sdk").BrandedHash[];
27
- };
28
- export declare const asPurchase: {
29
- <T>(value: T): (T & {
30
- schema: string & {
31
- readonly __schema: true;
32
- };
33
- assets: import("@ariestools/sdk").BrandedHash[];
34
- receipts: import("@ariestools/sdk").BrandedHash[];
35
- }) | undefined;
36
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
37
- schema: string & {
38
- readonly __schema: true;
39
- };
40
- assets: import("@ariestools/sdk").BrandedHash[];
41
- receipts: import("@ariestools/sdk").BrandedHash[];
42
- };
43
- };
44
- export declare const toPurchase: {
45
- <T>(value: T): (T & {
46
- schema: string & {
47
- readonly __schema: true;
48
- };
49
- assets: import("@ariestools/sdk").BrandedHash[];
50
- receipts: import("@ariestools/sdk").BrandedHash[];
51
- }) | undefined;
52
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
53
- schema: string & {
54
- readonly __schema: true;
55
- };
56
- assets: import("@ariestools/sdk").BrandedHash[];
57
- receipts: import("@ariestools/sdk").BrandedHash[];
58
- };
59
- };
60
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,iBAAiB;;;iBAU5B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;iBAA+E,CAAA;AAEvG,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;CAA4B,CAAA;AACnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAA0C,CAAA;AACjE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAA0C,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const PurchaseSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PurchaseSchema = typeof PurchaseSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;CAA+C,CAAA;AAC1E,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Purchase/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}