@xyo-network/payment-payload-plugins 2.91.6 → 2.91.8

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 (100) hide show
  1. package/dist/browser/Escrow/Terms.d.cts +15 -0
  2. package/dist/browser/Escrow/Terms.d.cts.map +1 -1
  3. package/dist/browser/Escrow/Terms.d.mts +15 -0
  4. package/dist/browser/Escrow/Terms.d.mts.map +1 -1
  5. package/dist/browser/Escrow/Terms.d.ts +15 -0
  6. package/dist/browser/Escrow/Terms.d.ts.map +1 -1
  7. package/dist/browser/Escrow/validators/escrow/index.d.cts +1 -0
  8. package/dist/browser/Escrow/validators/escrow/index.d.cts.map +1 -1
  9. package/dist/browser/Escrow/validators/escrow/index.d.mts +1 -0
  10. package/dist/browser/Escrow/validators/escrow/index.d.mts.map +1 -1
  11. package/dist/browser/Escrow/validators/escrow/index.d.ts +1 -0
  12. package/dist/browser/Escrow/validators/escrow/index.d.ts.map +1 -1
  13. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.cts +21 -0
  14. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.cts.map +1 -0
  15. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.mts +21 -0
  16. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.mts.map +1 -0
  17. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.ts +21 -0
  18. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
  19. package/dist/browser/Payment.d.cts +12 -1
  20. package/dist/browser/Payment.d.cts.map +1 -1
  21. package/dist/browser/Payment.d.mts +12 -1
  22. package/dist/browser/Payment.d.mts.map +1 -1
  23. package/dist/browser/Payment.d.ts +12 -1
  24. package/dist/browser/Payment.d.ts.map +1 -1
  25. package/dist/browser/Purchase.d.cts +16 -4
  26. package/dist/browser/Purchase.d.cts.map +1 -1
  27. package/dist/browser/Purchase.d.mts +16 -4
  28. package/dist/browser/Purchase.d.mts.map +1 -1
  29. package/dist/browser/Purchase.d.ts +16 -4
  30. package/dist/browser/Purchase.d.ts.map +1 -1
  31. package/dist/browser/Receipt.d.cts +31 -0
  32. package/dist/browser/Receipt.d.cts.map +1 -0
  33. package/dist/browser/Receipt.d.mts +31 -0
  34. package/dist/browser/Receipt.d.mts.map +1 -0
  35. package/dist/browser/Receipt.d.ts +31 -0
  36. package/dist/browser/Receipt.d.ts.map +1 -0
  37. package/dist/browser/index.cjs +73 -2
  38. package/dist/browser/index.cjs.map +1 -1
  39. package/dist/browser/index.d.cts +1 -0
  40. package/dist/browser/index.d.cts.map +1 -1
  41. package/dist/browser/index.d.mts +1 -0
  42. package/dist/browser/index.d.mts.map +1 -1
  43. package/dist/browser/index.d.ts +1 -0
  44. package/dist/browser/index.d.ts.map +1 -1
  45. package/dist/browser/index.js +85 -2
  46. package/dist/browser/index.js.map +1 -1
  47. package/dist/node/Escrow/Terms.d.cts +15 -0
  48. package/dist/node/Escrow/Terms.d.cts.map +1 -1
  49. package/dist/node/Escrow/Terms.d.mts +15 -0
  50. package/dist/node/Escrow/Terms.d.mts.map +1 -1
  51. package/dist/node/Escrow/Terms.d.ts +15 -0
  52. package/dist/node/Escrow/Terms.d.ts.map +1 -1
  53. package/dist/node/Escrow/validators/escrow/index.d.cts +1 -0
  54. package/dist/node/Escrow/validators/escrow/index.d.cts.map +1 -1
  55. package/dist/node/Escrow/validators/escrow/index.d.mts +1 -0
  56. package/dist/node/Escrow/validators/escrow/index.d.mts.map +1 -1
  57. package/dist/node/Escrow/validators/escrow/index.d.ts +1 -0
  58. package/dist/node/Escrow/validators/escrow/index.d.ts.map +1 -1
  59. package/dist/node/Escrow/validators/escrow/sellerSecret.d.cts +21 -0
  60. package/dist/node/Escrow/validators/escrow/sellerSecret.d.cts.map +1 -0
  61. package/dist/node/Escrow/validators/escrow/sellerSecret.d.mts +21 -0
  62. package/dist/node/Escrow/validators/escrow/sellerSecret.d.mts.map +1 -0
  63. package/dist/node/Escrow/validators/escrow/sellerSecret.d.ts +21 -0
  64. package/dist/node/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
  65. package/dist/node/Payment.d.cts +12 -1
  66. package/dist/node/Payment.d.cts.map +1 -1
  67. package/dist/node/Payment.d.mts +12 -1
  68. package/dist/node/Payment.d.mts.map +1 -1
  69. package/dist/node/Payment.d.ts +12 -1
  70. package/dist/node/Payment.d.ts.map +1 -1
  71. package/dist/node/Purchase.d.cts +16 -4
  72. package/dist/node/Purchase.d.cts.map +1 -1
  73. package/dist/node/Purchase.d.mts +16 -4
  74. package/dist/node/Purchase.d.mts.map +1 -1
  75. package/dist/node/Purchase.d.ts +16 -4
  76. package/dist/node/Purchase.d.ts.map +1 -1
  77. package/dist/node/Receipt.d.cts +31 -0
  78. package/dist/node/Receipt.d.cts.map +1 -0
  79. package/dist/node/Receipt.d.mts +31 -0
  80. package/dist/node/Receipt.d.mts.map +1 -0
  81. package/dist/node/Receipt.d.ts +31 -0
  82. package/dist/node/Receipt.d.ts.map +1 -0
  83. package/dist/node/index.cjs +87 -2
  84. package/dist/node/index.cjs.map +1 -1
  85. package/dist/node/index.d.cts +1 -0
  86. package/dist/node/index.d.cts.map +1 -1
  87. package/dist/node/index.d.mts +1 -0
  88. package/dist/node/index.d.mts.map +1 -1
  89. package/dist/node/index.d.ts +1 -0
  90. package/dist/node/index.d.ts.map +1 -1
  91. package/dist/node/index.js +85 -2
  92. package/dist/node/index.js.map +1 -1
  93. package/package.json +10 -10
  94. package/src/Escrow/Terms.ts +14 -1
  95. package/src/Escrow/validators/escrow/index.ts +1 -0
  96. package/src/Escrow/validators/escrow/sellerSecret.ts +75 -0
  97. package/src/Payment.ts +20 -2
  98. package/src/Purchase.ts +25 -5
  99. package/src/Receipt.ts +42 -0
  100. package/src/index.ts +1 -0
@@ -52,7 +52,22 @@ export interface EscrowTermsFields {
52
52
  * The terms of an escrow
53
53
  */
54
54
  export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>;
55
+ /**
56
+ * Identity function for determining if an object is an EscrowTerms
57
+ */
55
58
  export declare const isEscrowTerms: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
56
59
  schema: "network.xyo.escrow.terms";
57
60
  };
61
+ /**
62
+ * Identity function for determining if an object is an EscrowTerms with sources
63
+ */
64
+ export declare const isEscrowTermsWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
65
+ schema: "network.xyo.escrow.terms";
66
+ }>;
67
+ /**
68
+ * Identity function for determining if an object is an EscrowTerms with meta
69
+ */
70
+ export declare const isEscrowTermsWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
71
+ schema: "network.xyo.escrow.terms";
72
+ }>;
58
73
  //# sourceMappingURL=Terms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAI3E,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF,eAAO,MAAM,aAAa;;CAAwD,CAAA"}
1
+ {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAA0F,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAI5I,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,aAAa;;CAAwD,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;EAAmE,CAAA;AAExG;;GAEG;AACH,eAAO,MAAM,qBAAqB;;EAAgE,CAAA"}
@@ -52,7 +52,22 @@ export interface EscrowTermsFields {
52
52
  * The terms of an escrow
53
53
  */
54
54
  export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>;
55
+ /**
56
+ * Identity function for determining if an object is an EscrowTerms
57
+ */
55
58
  export declare const isEscrowTerms: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
56
59
  schema: "network.xyo.escrow.terms";
57
60
  };
61
+ /**
62
+ * Identity function for determining if an object is an EscrowTerms with sources
63
+ */
64
+ export declare const isEscrowTermsWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
65
+ schema: "network.xyo.escrow.terms";
66
+ }>;
67
+ /**
68
+ * Identity function for determining if an object is an EscrowTerms with meta
69
+ */
70
+ export declare const isEscrowTermsWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
71
+ schema: "network.xyo.escrow.terms";
72
+ }>;
58
73
  //# sourceMappingURL=Terms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAI3E,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF,eAAO,MAAM,aAAa;;CAAwD,CAAA"}
1
+ {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAA0F,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAI5I,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,aAAa;;CAAwD,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;EAAmE,CAAA;AAExG;;GAEG;AACH,eAAO,MAAM,qBAAqB;;EAAgE,CAAA"}
@@ -52,7 +52,22 @@ export interface EscrowTermsFields {
52
52
  * The terms of an escrow
53
53
  */
54
54
  export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>;
55
+ /**
56
+ * Identity function for determining if an object is an EscrowTerms
57
+ */
55
58
  export declare const isEscrowTerms: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
56
59
  schema: "network.xyo.escrow.terms";
57
60
  };
61
+ /**
62
+ * Identity function for determining if an object is an EscrowTerms with sources
63
+ */
64
+ export declare const isEscrowTermsWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
65
+ schema: "network.xyo.escrow.terms";
66
+ }>;
67
+ /**
68
+ * Identity function for determining if an object is an EscrowTerms with meta
69
+ */
70
+ export declare const isEscrowTermsWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
71
+ schema: "network.xyo.escrow.terms";
72
+ }>;
58
73
  //# sourceMappingURL=Terms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAI3E,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF,eAAO,MAAM,aAAa;;CAAwD,CAAA"}
1
+ {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAA0F,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAI5I,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,aAAa;;CAAwD,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;EAAmE,CAAA;AAExG;;GAEG;AACH,eAAO,MAAM,qBAAqB;;EAAgE,CAAA"}
@@ -7,4 +7,5 @@ export * from './buyerSecret';
7
7
  export * from './nbfExp';
8
8
  export * from './paymentAuthorities';
9
9
  export * from './seller';
10
+ export * from './sellerSecret';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA"}
@@ -7,4 +7,5 @@ export * from './buyerSecret';
7
7
  export * from './nbfExp';
8
8
  export * from './paymentAuthorities';
9
9
  export * from './seller';
10
+ export * from './sellerSecret';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA"}
@@ -7,4 +7,5 @@ export * from './buyerSecret';
7
7
  export * from './nbfExp';
8
8
  export * from './paymentAuthorities';
9
9
  export * from './seller';
10
+ export * from './sellerSecret';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { Payload, WithMeta } from '@xyo-network/payload-model';
3
+ import { EscrowTermsValidationFunction } from '../types';
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: EscrowTermsValidationFunction;
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, WithMeta<Payload>>) => EscrowTermsValidationFunction;
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, WithMeta<Payload>>) => EscrowTermsValidationFunction;
21
+ //# sourceMappingURL=sellerSecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGlC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAG9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAIxD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,6BAQzC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,eAAgB,OAAO,IAAI,EAAE,SAAS,OAAO,CAAC,CAAC,KAAG,6BAS9F,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,eAAgB,OAAO,IAAI,EAAE,SAAS,OAAO,CAAC,CAAC,KAAG,6BA4B5F,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { Payload, WithMeta } from '@xyo-network/payload-model';
3
+ import { EscrowTermsValidationFunction } from '../types';
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: EscrowTermsValidationFunction;
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, WithMeta<Payload>>) => EscrowTermsValidationFunction;
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, WithMeta<Payload>>) => EscrowTermsValidationFunction;
21
+ //# sourceMappingURL=sellerSecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGlC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAG9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAIxD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,6BAQzC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,eAAgB,OAAO,IAAI,EAAE,SAAS,OAAO,CAAC,CAAC,KAAG,6BAS9F,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,eAAgB,OAAO,IAAI,EAAE,SAAS,OAAO,CAAC,CAAC,KAAG,6BA4B5F,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { Payload, WithMeta } from '@xyo-network/payload-model';
3
+ import { EscrowTermsValidationFunction } from '../types';
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: EscrowTermsValidationFunction;
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, WithMeta<Payload>>) => EscrowTermsValidationFunction;
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, WithMeta<Payload>>) => EscrowTermsValidationFunction;
21
+ //# sourceMappingURL=sellerSecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGlC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAG9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAIxD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,6BAQzC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,eAAgB,OAAO,IAAI,EAAE,SAAS,OAAO,CAAC,CAAC,KAAG,6BAS9F,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,eAAgB,OAAO,IAAI,EAAE,SAAS,OAAO,CAAC,CAAC,KAAG,6BA4B5F,CAAA"}
@@ -13,8 +13,19 @@ export interface PaymentFields {
13
13
  currency: SupportedCurrency;
14
14
  }
15
15
  /**
16
- * A payment is a record of a payment made
16
+ * A payment is a record of an amount to be paid
17
17
  */
18
18
  export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
19
+ /**
20
+ * Identity function for determine if an object is a Payment
21
+ */
19
22
  export declare const isPayment: (x?: unknown) => x is Payment;
23
+ /**
24
+ * Identity function for determine if an object is a Payment with sources
25
+ */
26
+ export declare const isPaymentWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<Payment>;
27
+ /**
28
+ * Identity function for determine if an object is a Payment with meta
29
+ */
30
+ export declare const isPaymentWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<Payment>;
20
31
  //# sourceMappingURL=Payment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payment.d.ts","sourceRoot":"","sources":["../../src/Payment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,8BAA8B,CAAA;AAC1D,eAAO,MAAM,aAAa,EAAE,aAA8C,CAAA;AAE1E,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,eAAO,MAAM,SAAS,+BAAgD,CAAA"}
1
+ {"version":3,"file":"Payment.d.ts","sourceRoot":"","sources":["../../src/Payment.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,8BAA8B,CAAA;AAC1D,eAAO,MAAM,aAAa,EAAE,aAA8C,CAAA;AAE1E,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;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,iFAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,iBAAiB,8EAAwD,CAAA"}
@@ -13,8 +13,19 @@ export interface PaymentFields {
13
13
  currency: SupportedCurrency;
14
14
  }
15
15
  /**
16
- * A payment is a record of a payment made
16
+ * A payment is a record of an amount to be paid
17
17
  */
18
18
  export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
19
+ /**
20
+ * Identity function for determine if an object is a Payment
21
+ */
19
22
  export declare const isPayment: (x?: unknown) => x is Payment;
23
+ /**
24
+ * Identity function for determine if an object is a Payment with sources
25
+ */
26
+ export declare const isPaymentWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<Payment>;
27
+ /**
28
+ * Identity function for determine if an object is a Payment with meta
29
+ */
30
+ export declare const isPaymentWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<Payment>;
20
31
  //# sourceMappingURL=Payment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payment.d.ts","sourceRoot":"","sources":["../../src/Payment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,8BAA8B,CAAA;AAC1D,eAAO,MAAM,aAAa,EAAE,aAA8C,CAAA;AAE1E,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,eAAO,MAAM,SAAS,+BAAgD,CAAA"}
1
+ {"version":3,"file":"Payment.d.ts","sourceRoot":"","sources":["../../src/Payment.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,8BAA8B,CAAA;AAC1D,eAAO,MAAM,aAAa,EAAE,aAA8C,CAAA;AAE1E,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;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,iFAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,iBAAiB,8EAAwD,CAAA"}
@@ -13,8 +13,19 @@ export interface PaymentFields {
13
13
  currency: SupportedCurrency;
14
14
  }
15
15
  /**
16
- * A payment is a record of a payment made
16
+ * A payment is a record of an amount to be paid
17
17
  */
18
18
  export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
19
+ /**
20
+ * Identity function for determine if an object is a Payment
21
+ */
19
22
  export declare const isPayment: (x?: unknown) => x is Payment;
23
+ /**
24
+ * Identity function for determine if an object is a Payment with sources
25
+ */
26
+ export declare const isPaymentWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<Payment>;
27
+ /**
28
+ * Identity function for determine if an object is a Payment with meta
29
+ */
30
+ export declare const isPaymentWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<Payment>;
20
31
  //# sourceMappingURL=Payment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payment.d.ts","sourceRoot":"","sources":["../../src/Payment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,8BAA8B,CAAA;AAC1D,eAAO,MAAM,aAAa,EAAE,aAA8C,CAAA;AAE1E,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,eAAO,MAAM,SAAS,+BAAgD,CAAA"}
1
+ {"version":3,"file":"Payment.d.ts","sourceRoot":"","sources":["../../src/Payment.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,8BAA8B,CAAA;AAC1D,eAAO,MAAM,aAAa,EAAE,aAA8C,CAAA;AAE1E,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;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,iFAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,iBAAiB,8EAAwD,CAAA"}
@@ -4,17 +4,29 @@ export type PurchaseSchema = 'network.xyo.payments.purchase';
4
4
  export declare const PurchaseSchema: PurchaseSchema;
5
5
  export interface PurchaseFields {
6
6
  /**
7
- * The hashes that were purchased
7
+ * The things that were purchased
8
8
  */
9
- hashes: Hash[];
9
+ assets: Hash[];
10
10
  /**
11
- * The payments for this purchase. Array to allow for multiple payments
11
+ * The receipts for payments for this purchase. Array to allow for multiple payments
12
12
  * for a single quote.
13
13
  */
14
- payments: Hash[];
14
+ receipts: Hash[];
15
15
  }
16
16
  /**
17
17
  * A purchase ties a payment made to a quote
18
18
  */
19
19
  export type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
20
+ /**
21
+ * Identity function for determine if an object is a Purchase
22
+ */
23
+ export declare const isPurchase: (x?: unknown) => x is Purchase;
24
+ /**
25
+ * Identity function for determine if an object is a Purchase with sources
26
+ */
27
+ export declare const isPurchaseWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<Purchase>;
28
+ /**
29
+ * Identity function for determine if an object is a Purchase with meta
30
+ */
31
+ export declare const isPurchaseWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<Purchase>;
20
32
  //# sourceMappingURL=Purchase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Purchase.d.ts","sourceRoot":"","sources":["../../src/Purchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAE/D,MAAM,MAAM,cAAc,GAAG,+BAA+B,CAAA;AAC5D,eAAO,MAAM,cAAc,EAAE,cAAgD,CAAA;AAE7E,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"}
1
+ {"version":3,"file":"Purchase.d.ts","sourceRoot":"","sources":["../../src/Purchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAIL,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,MAAM,cAAc,GAAG,+BAA+B,CAAA;AAC5D,eAAO,MAAM,cAAc,EAAE,cAAgD,CAAA;AAE7E,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,gCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,kFAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,kBAAkB,+EAA0D,CAAA"}
@@ -4,17 +4,29 @@ export type PurchaseSchema = 'network.xyo.payments.purchase';
4
4
  export declare const PurchaseSchema: PurchaseSchema;
5
5
  export interface PurchaseFields {
6
6
  /**
7
- * The hashes that were purchased
7
+ * The things that were purchased
8
8
  */
9
- hashes: Hash[];
9
+ assets: Hash[];
10
10
  /**
11
- * The payments for this purchase. Array to allow for multiple payments
11
+ * The receipts for payments for this purchase. Array to allow for multiple payments
12
12
  * for a single quote.
13
13
  */
14
- payments: Hash[];
14
+ receipts: Hash[];
15
15
  }
16
16
  /**
17
17
  * A purchase ties a payment made to a quote
18
18
  */
19
19
  export type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
20
+ /**
21
+ * Identity function for determine if an object is a Purchase
22
+ */
23
+ export declare const isPurchase: (x?: unknown) => x is Purchase;
24
+ /**
25
+ * Identity function for determine if an object is a Purchase with sources
26
+ */
27
+ export declare const isPurchaseWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<Purchase>;
28
+ /**
29
+ * Identity function for determine if an object is a Purchase with meta
30
+ */
31
+ export declare const isPurchaseWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<Purchase>;
20
32
  //# sourceMappingURL=Purchase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Purchase.d.ts","sourceRoot":"","sources":["../../src/Purchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAE/D,MAAM,MAAM,cAAc,GAAG,+BAA+B,CAAA;AAC5D,eAAO,MAAM,cAAc,EAAE,cAAgD,CAAA;AAE7E,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"}
1
+ {"version":3,"file":"Purchase.d.ts","sourceRoot":"","sources":["../../src/Purchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAIL,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,MAAM,cAAc,GAAG,+BAA+B,CAAA;AAC5D,eAAO,MAAM,cAAc,EAAE,cAAgD,CAAA;AAE7E,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,gCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,kFAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,kBAAkB,+EAA0D,CAAA"}
@@ -4,17 +4,29 @@ export type PurchaseSchema = 'network.xyo.payments.purchase';
4
4
  export declare const PurchaseSchema: PurchaseSchema;
5
5
  export interface PurchaseFields {
6
6
  /**
7
- * The hashes that were purchased
7
+ * The things that were purchased
8
8
  */
9
- hashes: Hash[];
9
+ assets: Hash[];
10
10
  /**
11
- * The payments for this purchase. Array to allow for multiple payments
11
+ * The receipts for payments for this purchase. Array to allow for multiple payments
12
12
  * for a single quote.
13
13
  */
14
- payments: Hash[];
14
+ receipts: Hash[];
15
15
  }
16
16
  /**
17
17
  * A purchase ties a payment made to a quote
18
18
  */
19
19
  export type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
20
+ /**
21
+ * Identity function for determine if an object is a Purchase
22
+ */
23
+ export declare const isPurchase: (x?: unknown) => x is Purchase;
24
+ /**
25
+ * Identity function for determine if an object is a Purchase with sources
26
+ */
27
+ export declare const isPurchaseWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<Purchase>;
28
+ /**
29
+ * Identity function for determine if an object is a Purchase with meta
30
+ */
31
+ export declare const isPurchaseWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<Purchase>;
20
32
  //# sourceMappingURL=Purchase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Purchase.d.ts","sourceRoot":"","sources":["../../src/Purchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAE/D,MAAM,MAAM,cAAc,GAAG,+BAA+B,CAAA;AAC5D,eAAO,MAAM,cAAc,EAAE,cAAgD,CAAA;AAE7E,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"}
1
+ {"version":3,"file":"Purchase.d.ts","sourceRoot":"","sources":["../../src/Purchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAIL,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,MAAM,cAAc,GAAG,+BAA+B,CAAA;AAC5D,eAAO,MAAM,cAAc,EAAE,cAAgD,CAAA;AAE7E,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,gCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,kFAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,kBAAkB,+EAA0D,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { PayloadWithSources } from '@xyo-network/payload-model';
2
+ import { SupportedCurrency } from './Currency';
3
+ export type ReceiptSchema = 'network.xyo.payments.receipt';
4
+ export declare const ReceiptSchema: ReceiptSchema;
5
+ export interface ReceiptFields {
6
+ /**
7
+ * The amount paid
8
+ */
9
+ amount: number;
10
+ /**
11
+ * The currency of the amount paid
12
+ */
13
+ currency: SupportedCurrency;
14
+ }
15
+ /**
16
+ * A receipt is a record of a payment made
17
+ */
18
+ export type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>;
19
+ /**
20
+ * Identity function for determine if an object is a Receipt
21
+ */
22
+ export declare const isReceipt: (x?: unknown) => x is Receipt;
23
+ /**
24
+ * Identity function for determine if an object is a Receipt with sources
25
+ */
26
+ export declare const isReceiptWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<Receipt>;
27
+ /**
28
+ * Identity function for determine if an object is a Receipt with meta
29
+ */
30
+ export declare const isReceiptWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<Receipt>;
31
+ //# sourceMappingURL=Receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Receipt.d.ts","sourceRoot":"","sources":["../../src/Receipt.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,8BAA8B,CAAA;AAC1D,eAAO,MAAM,aAAa,EAAE,aAA8C,CAAA;AAE1E,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;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,iFAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,iBAAiB,8EAAwD,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { PayloadWithSources } from '@xyo-network/payload-model';
2
+ import { SupportedCurrency } from './Currency';
3
+ export type ReceiptSchema = 'network.xyo.payments.receipt';
4
+ export declare const ReceiptSchema: ReceiptSchema;
5
+ export interface ReceiptFields {
6
+ /**
7
+ * The amount paid
8
+ */
9
+ amount: number;
10
+ /**
11
+ * The currency of the amount paid
12
+ */
13
+ currency: SupportedCurrency;
14
+ }
15
+ /**
16
+ * A receipt is a record of a payment made
17
+ */
18
+ export type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>;
19
+ /**
20
+ * Identity function for determine if an object is a Receipt
21
+ */
22
+ export declare const isReceipt: (x?: unknown) => x is Receipt;
23
+ /**
24
+ * Identity function for determine if an object is a Receipt with sources
25
+ */
26
+ export declare const isReceiptWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<Receipt>;
27
+ /**
28
+ * Identity function for determine if an object is a Receipt with meta
29
+ */
30
+ export declare const isReceiptWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<Receipt>;
31
+ //# sourceMappingURL=Receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Receipt.d.ts","sourceRoot":"","sources":["../../src/Receipt.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,8BAA8B,CAAA;AAC1D,eAAO,MAAM,aAAa,EAAE,aAA8C,CAAA;AAE1E,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;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,iFAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,iBAAiB,8EAAwD,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { PayloadWithSources } from '@xyo-network/payload-model';
2
+ import { SupportedCurrency } from './Currency';
3
+ export type ReceiptSchema = 'network.xyo.payments.receipt';
4
+ export declare const ReceiptSchema: ReceiptSchema;
5
+ export interface ReceiptFields {
6
+ /**
7
+ * The amount paid
8
+ */
9
+ amount: number;
10
+ /**
11
+ * The currency of the amount paid
12
+ */
13
+ currency: SupportedCurrency;
14
+ }
15
+ /**
16
+ * A receipt is a record of a payment made
17
+ */
18
+ export type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>;
19
+ /**
20
+ * Identity function for determine if an object is a Receipt
21
+ */
22
+ export declare const isReceipt: (x?: unknown) => x is Receipt;
23
+ /**
24
+ * Identity function for determine if an object is a Receipt with sources
25
+ */
26
+ export declare const isReceiptWithSources: (x?: unknown) => x is import("@xyo-network/payload-model").WithSources<Receipt>;
27
+ /**
28
+ * Identity function for determine if an object is a Receipt with meta
29
+ */
30
+ export declare const isReceiptWithMeta: (x?: unknown) => x is import("@xyo-network/payload-model").WithMeta<Receipt>;
31
+ //# sourceMappingURL=Receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Receipt.d.ts","sourceRoot":"","sources":["../../src/Receipt.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,8BAA8B,CAAA;AAC1D,eAAO,MAAM,aAAa,EAAE,aAA8C,CAAA;AAE1E,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;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,iFAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,iBAAiB,8EAAwD,CAAA"}