@xyo-network/payment-payload-plugins 6.1.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/neutral/Amount/Iso4217Currency.d.ts.map +1 -1
  2. package/dist/neutral/Amount/Payload.d.ts +56 -15
  3. package/dist/neutral/Amount/Payload.d.ts.map +1 -1
  4. package/dist/neutral/Billing/Address/Address.d.ts +102 -32
  5. package/dist/neutral/Billing/Address/Address.d.ts.map +1 -1
  6. package/dist/neutral/Currency.d.ts +5 -1
  7. package/dist/neutral/Currency.d.ts.map +1 -1
  8. package/dist/neutral/Discount/Config.d.ts +1 -1
  9. package/dist/neutral/Discount/Config.d.ts.map +1 -1
  10. package/dist/neutral/Discount/Params.d.ts +1 -1
  11. package/dist/neutral/Discount/Params.d.ts.map +1 -1
  12. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +2 -2
  13. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +1 -1
  14. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +81 -15
  15. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
  16. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +74 -15
  17. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
  18. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +81 -15
  19. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
  20. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +186 -9
  21. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -1
  22. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +92 -8
  23. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -1
  24. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +8 -12
  25. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +1 -1
  26. package/dist/neutral/Discount/Payload/Discount.d.ts +53 -14
  27. package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -1
  28. package/dist/neutral/Escrow/Outcome.d.ts +64 -17
  29. package/dist/neutral/Escrow/Outcome.d.ts.map +1 -1
  30. package/dist/neutral/Escrow/Terms/Terms.d.ts +303 -62
  31. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +1 -1
  32. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +2 -2
  33. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -1
  34. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +2 -2
  35. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -1
  36. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +18 -10
  37. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -1
  38. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +2 -2
  39. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -1
  40. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +1 -1
  41. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +1 -1
  42. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +18 -10
  43. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -1
  44. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +1 -1
  45. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +1 -1
  46. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +2 -2
  47. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -1
  48. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +1 -1
  49. package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +1 -1
  50. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +2 -2
  51. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -1
  52. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +1 -1
  53. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -1
  54. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +1 -1
  55. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +1 -1
  56. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +1 -1
  57. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +1 -1
  58. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +2 -2
  59. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -1
  60. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +1 -1
  61. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +1 -1
  62. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +1 -1
  63. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +1 -1
  64. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +1 -1
  65. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +1 -1
  66. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +2 -2
  67. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -1
  68. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +74 -34
  69. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -1
  70. package/dist/neutral/Payment/Payload.d.ts +57 -23
  71. package/dist/neutral/Payment/Payload.d.ts.map +1 -1
  72. package/dist/neutral/Payment/Status/Payload.d.ts +53 -22
  73. package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -1
  74. package/dist/neutral/Purchase/Payload.d.ts +53 -24
  75. package/dist/neutral/Purchase/Payload.d.ts.map +1 -1
  76. package/dist/neutral/Receipt/Payload.d.ts +57 -23
  77. package/dist/neutral/Receipt/Payload.d.ts.map +1 -1
  78. package/dist/neutral/Subtotal/Diviner/Config.d.ts +1 -1
  79. package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +1 -1
  80. package/dist/neutral/Subtotal/Diviner/Params.d.ts +1 -1
  81. package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +1 -1
  82. package/dist/neutral/Subtotal/Diviner/Payload.d.ts +53 -14
  83. package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +1 -1
  84. package/dist/neutral/Total/Diviner/Config.d.ts +1 -1
  85. package/dist/neutral/Total/Diviner/Config.d.ts.map +1 -1
  86. package/dist/neutral/Total/Diviner/Params.d.ts +1 -1
  87. package/dist/neutral/Total/Diviner/Params.d.ts.map +1 -1
  88. package/dist/neutral/Total/Diviner/Payload.d.ts +53 -14
  89. package/dist/neutral/Total/Diviner/Payload.d.ts.map +1 -1
  90. package/dist/neutral/index.mjs +505 -305
  91. package/dist/neutral/index.mjs.map +4 -4
  92. package/package.json +25 -30
@@ -1,4 +1,4 @@
1
- import type { AccountInstance, Id } from '@xyo-network/sdk-js';
1
+ import type { AccountInstance, Id } from '@xyo-network/sdk';
2
2
  import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
3
3
  /**
4
4
  * Creates an escrow intent (for a buyer or seller) using the supplied secret
@@ -9,24 +9,32 @@ import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
9
9
  * not provided, a cryptographically random secret will be generated.
10
10
  * @returns The escrow intent
11
11
  */
12
- export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: Id) => Promise<[import("@xyo-network/sdk-js").Signed<{
12
+ export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: Id) => Promise<[import("@xyo-network/sdk").Signed<{
13
13
  schema: "network.xyo.boundwitness" & {
14
14
  readonly __schema: true;
15
15
  };
16
- addresses: (import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
16
+ addresses: (import("@xyo-network/sdk").XyoQuantAddress | (Lowercase<string> & {
17
17
  readonly __hex: true;
18
18
  } & {
19
19
  readonly __address: true;
20
20
  }))[];
21
- payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
22
- payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
23
- previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
24
- $signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
25
- $destination?: import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
21
+ payload_hashes: import("@xylabs/sdk").BrandedHash[];
22
+ payload_schemas: import("@xyo-network/sdk").BrandedSchema<string>[];
23
+ previous_hashes: (import("@xylabs/sdk").BrandedHash | null)[];
24
+ $signatures: (import("@xylabs/sdk").BrandedHex | null)[];
25
+ $destination?: import("@xyo-network/sdk").XyoQuantAddress | (Lowercase<string> & {
26
26
  readonly __hex: true;
27
27
  } & {
28
28
  readonly __address: true;
29
29
  }) | undefined;
30
- $sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
31
- }>, import("@xyo-network/sdk-js").Payload[], import("@xyo-network/sdk-js").ModuleError[]]>;
30
+ $sourceQuery?: import("@xylabs/sdk").BrandedHash | undefined;
31
+ }>, import("@xyo-network/sdk").Payload[], {
32
+ schema: "network.xyo.error.module" & {
33
+ readonly __schema: true;
34
+ };
35
+ details?: unknown;
36
+ message?: string | undefined;
37
+ name?: string | undefined;
38
+ query?: import("@xyo-network/sdk").BrandedSchema<string> | import("@xylabs/sdk").BrandedHash | undefined;
39
+ }[]]>;
32
40
  //# sourceMappingURL=updateEscrowTermsWithSecret.d.ts.map
@@ -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,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAG9D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,WAAW,EAClB,aAAa,WAAW,EACxB,SAAS,eAAe,GAAG,eAAe,EAAE,EAC5C,SAAS,EAAE;;;;;;;;;;;;;;;;;;;0FAaZ,CAAA"}
1
+ {"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAG3D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,WAAW,EAClB,aAAa,WAAW,EACxB,SAAS,eAAe,GAAG,eAAe,EAAE,EAC5C,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;KAcZ,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { ModuleIdentifier, PayloadValueExpression } from '@xyo-network/sdk-js';
1
+ import type { ModuleIdentifier, PayloadValueExpression } from '@xyo-network/sdk';
2
2
  import type { EscrowTerms } from '../../../Terms/index.ts';
3
3
  /**
4
4
  * Checks if property value of the escrow terms contains one of the valid moduleIdentifiers
@@ -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,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAEnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,oBAAoB,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EAC3I,mBAAmB,gBAAgB,EAAE,EACrC,kBAAe,YAQhB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,UAAU,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EACjI,mBAAmB,gBAAgB,EAAE,EACrC,kBAAe,YAQhB,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,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,oBAAoB,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EAC3I,mBAAmB,gBAAgB,EAAE,EACrC,kBAAe,YAOhB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,UAAU,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EACjI,mBAAmB,gBAAgB,EAAE,EACrC,kBAAe,YAOhB,CAAA"}
@@ -1,5 +1,5 @@
1
- import type { Hash } from '@xylabs/sdk-js';
2
- import type { AsyncPayloadValidationFunction, Payload } from '@xyo-network/sdk-js';
1
+ import type { Hash } from '@xylabs/sdk';
2
+ import type { AsyncPayloadValidationFunction, Payload } from '@xyo-network/sdk';
3
3
  import type { EscrowParty, EscrowTerms } from '../../../Terms/index.ts';
4
4
  /**
5
5
  * Returns a function that validates the escrow terms for the existence of the party secret signed by the party
@@ -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,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlF,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,yBAAyB,CAAA;AAahC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAqB/I,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;AACvC,OAAO,KAAK,EAAE,8BAA8B,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG/E,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,yBAAyB,CAAA;AAahC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAwB/I,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
3
  export declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) => SyncPayloadValidationFunction<EscrowTerms>;
4
4
  //# sourceMappingURL=agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AAE1F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,8BAA8B,GAAI,oBAAoB,gBAAgB,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.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,8BAA8B,GAAI,oBAAoB,gBAAgB,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
@@ -1,5 +1,5 @@
1
- import type { Hash } from '@xylabs/sdk-js';
2
- import type { Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { Hash } from '@xylabs/sdk';
2
+ import type { Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk';
3
3
  import type { EscrowTerms } from '../../Terms/index.ts';
4
4
  /**
5
5
  * A function that validates the escrow terms for tbe existence of appraisals
@@ -1 +1 @@
1
- {"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAG1C,OAAO,KAAK,EAEV,OAAO,EAAE,6BAA6B,EACvC,MAAM,qBAAqB,CAAA;AAG5B,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,CA0BvI,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
+ {"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,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,4 +1,4 @@
1
- import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
3
  /**
4
4
  * A function that validates the escrow terms for appraisalAuthorities
@@ -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,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AAE1F,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
+ {"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,4 +1,4 @@
1
- import type { SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
3
  /**
4
4
  * Returns a function that validates the escrow terms for assets
@@ -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,qBAAqB,CAAA;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,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,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
3
  /**
4
4
  * A function that validates the escrow terms for buyer
@@ -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,qBAAqB,CAAA;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,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,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
@@ -1,5 +1,5 @@
1
- import type { Hash } from '@xylabs/sdk-js';
2
- import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { Hash } from '@xylabs/sdk';
2
+ import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk';
3
3
  import type { EscrowTerms } from '../../Terms/index.ts';
4
4
  /**
5
5
  * Returns a function that validates the escrow terms for buyerSecret
@@ -1 +1 @@
1
- {"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,qBAAqB,CAAA;AAE5B,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
+ {"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,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,4 +1,4 @@
1
- import type { SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
3
  export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => SyncPayloadValidationFunction<EscrowTerms>;
4
4
  //# sourceMappingURL=nbfExp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AAExE,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
+ {"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 +1,4 @@
1
- import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
3
  export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
4
4
  //# sourceMappingURL=paymentAuthorities.d.ts.map
@@ -1 +1 @@
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,qBAAqB,CAAA;AAE1F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,qCAAqC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ5H,CAAA"}
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,4 +1,4 @@
1
- import type { SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
2
2
  import type { EscrowTerms } from '../../Terms/index.ts';
3
3
  /**
4
4
  * A function that validates the escrow terms for seller
@@ -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,qBAAqB,CAAA;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,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,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,WAAW,CAa5E,CAAA"}
@@ -1,5 +1,5 @@
1
- import type { Hash } from '@xylabs/sdk-js';
2
- import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk-js';
1
+ import type { Hash } from '@xylabs/sdk';
2
+ import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk';
3
3
  import type { EscrowTerms } from '../../Terms/index.ts';
4
4
  /**
5
5
  * Returns a function that validates the escrow terms for sellerSecret
@@ -1 +1 @@
1
- {"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,qBAAqB,CAAA;AAE5B,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
+ {"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,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,44 +1,84 @@
1
- import type { Payload, WithSources } from '@xyo-network/sdk-js';
2
- import { PaymentCardSchema } from './Schema.ts';
1
+ import * as z from 'zod/mini';
3
2
  /**
4
3
  * The fields describing a payment card.
5
4
  */
6
- export interface PaymentCardFields {
7
- /**
8
- * Card Number (PAN) of the payment card. This value is required to perform a payment.
9
- */
10
- cardNumber: string;
11
- /**
12
- * The name as it appears on the payment card.
13
- */
14
- cardholderName?: string;
15
- /**
16
- * Card Verification Value (CVV/CVC) of the payment card.
17
- */
18
- cvv: string;
19
- /**
20
- * Expiration month of the payment card.
21
- */
22
- expMonth: number;
23
- /**
24
- * Expiration year of the payment card.
25
- */
26
- expYear: number;
27
- }
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>;
28
13
  /**
29
14
  * A PaymentCard Payload
30
15
  */
31
- export type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
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>;
32
27
  /**
33
28
  * Identity function for determine if an object is a PaymentCard
34
29
  */
35
- export declare const isPaymentCard: (x?: unknown) => x is PaymentCard;
36
- export declare const asPaymentCard: import("@xylabs/sdk-js").AsTypeFunction<PaymentCard>;
37
- export declare const asOptionalPaymentCard: (value: import("@xylabs/sdk-js").AnyNonPromise) => PaymentCard | undefined;
38
- /**
39
- * Identity function for determine if an object is a PaymentCard with sources
40
- */
41
- export declare const isPaymentCardWithSources: (x?: unknown) => x is WithSources<PaymentCard>;
42
- export declare const asPaymentCardWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<PaymentCard>>;
43
- export declare const asOptionalPaymentCardWithSources: (value: import("@xylabs/sdk-js").AnyNonPromise) => WithSources<PaymentCard> | undefined;
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("@xylabs/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("@xylabs/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
+ };
44
84
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAG/D,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,mCAAwD,CAAA;AAClF,eAAO,MAAM,aAAa,sDAAqD,CAAA;AAC/E,eAAO,MAAM,qBAAqB,4EAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,gDAAmE,CAAA;AACxG,eAAO,MAAM,wBAAwB,mEAA6E,CAAA;AAClH,eAAO,MAAM,gCAAgC,yFAAqF,CAAA"}
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,30 +1,64 @@
1
- import type { PayloadWithSources, WithSources } from '@xyo-network/sdk-js';
2
- import type { SupportedCurrency } from '../Currency.ts';
3
- import { PaymentSchema } from './Schema.ts';
4
- export interface PaymentFields {
5
- /**
6
- * The amount paid
7
- */
8
- amount: number;
9
- /**
10
- * The currency of the amount paid
11
- */
12
- currency: SupportedCurrency;
13
- }
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>;
14
9
  /**
15
10
  * A payment is a record of an amount to be paid
16
11
  */
17
- export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
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>;
18
22
  /**
19
23
  * Identity function for determine if an object is a Payment
20
24
  */
21
- export declare const isPayment: (x?: unknown) => x is Payment;
22
- export declare const asPayment: import("@xylabs/sdk-js").AsTypeFunction<Payment>;
23
- export declare const asOptionalPayment: (value: import("@xylabs/sdk-js").AnyNonPromise) => Payment | undefined;
24
- /**
25
- * Identity function for determine if an object is a Payment with sources
26
- */
27
- export declare const isPaymentWithSources: (x?: unknown) => x is WithSources<Payment>;
28
- export declare const asPaymentWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<Payment>>;
29
- export declare const asOptionalPaymentWithSources: (value: import("@xylabs/sdk-js").AnyNonPromise) => WithSources<Payment> | undefined;
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("@xylabs/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("@xylabs/sdk").ZodFactoryConfig): T & {
57
+ schema: string & {
58
+ readonly __schema: true;
59
+ };
60
+ amount: number;
61
+ currency: "USD";
62
+ };
63
+ };
30
64
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAM1E,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,+BAAgD,CAAA;AACtE,eAAO,MAAM,SAAS,kDAA6C,CAAA;AACnE,eAAO,MAAM,iBAAiB,wEAAqD,CAAA;AAEnF;;GAEG;AACH,eAAO,MAAM,oBAAoB,4CAA2D,CAAA;AAC5F,eAAO,MAAM,oBAAoB,+DAAqE,CAAA;AACtG,eAAO,MAAM,4BAA4B,qFAA6E,CAAA"}
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,29 +1,60 @@
1
- import type { PayloadWithSources, WithSources } from '@xyo-network/sdk-js';
2
- import { PaymentStatusSchema } from './Schema.ts';
3
- export interface PaymentStatusFields {
4
- /**
5
- * The result of the payment (i.e. declined)
6
- */
7
- result?: string;
8
- /**
9
- * The status of the payment (i.e. completed)
10
- */
11
- status: string;
12
- }
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>;
13
7
  /**
14
8
  * A payment status is the outcome of a payment attempt
15
9
  */
16
- export type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatusSchema>;
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>;
17
18
  /**
18
19
  * Identity function for determine if an object is a PaymentStatus
19
20
  */
20
- export declare const isPaymentStatus: (x?: unknown) => x is PaymentStatus;
21
- export declare const asPaymentStatus: import("@xylabs/sdk-js").AsTypeFunction<PaymentStatus>;
22
- export declare const asOptionalPaymentStatus: (value: import("@xylabs/sdk-js").AnyNonPromise) => PaymentStatus | undefined;
23
- /**
24
- * Identity function for determine if an object is a PaymentStatus with sources
25
- */
26
- export declare const isPaymentStatusWithSources: (x?: unknown) => x is WithSources<PaymentStatus>;
27
- export declare const asPaymentStatusWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<PaymentStatus>>;
28
- export declare const asOptionalPaymentStatusWithSources: (value: import("@xylabs/sdk-js").AnyNonPromise) => WithSources<PaymentStatus> | undefined;
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("@xylabs/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("@xylabs/sdk").ZodFactoryConfig): T & {
53
+ schema: string & {
54
+ readonly __schema: true;
55
+ };
56
+ status: string;
57
+ result?: string | undefined;
58
+ };
59
+ };
29
60
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAM1E,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,qCAA4D,CAAA;AACxF,eAAO,MAAM,eAAe,wDAAyD,CAAA;AACrF,eAAO,MAAM,uBAAuB,8EAAiE,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,0BAA0B,kDAAuE,CAAA;AAC9G,eAAO,MAAM,0BAA0B,qEAAiF,CAAA;AACxH,eAAO,MAAM,kCAAkC,2FAAyF,CAAA"}
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"}