@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.
- package/dist/browser/Escrow/Terms.d.cts +15 -0
- package/dist/browser/Escrow/Terms.d.cts.map +1 -1
- package/dist/browser/Escrow/Terms.d.mts +15 -0
- package/dist/browser/Escrow/Terms.d.mts.map +1 -1
- package/dist/browser/Escrow/Terms.d.ts +15 -0
- package/dist/browser/Escrow/Terms.d.ts.map +1 -1
- package/dist/browser/Escrow/validators/escrow/index.d.cts +1 -0
- package/dist/browser/Escrow/validators/escrow/index.d.cts.map +1 -1
- package/dist/browser/Escrow/validators/escrow/index.d.mts +1 -0
- package/dist/browser/Escrow/validators/escrow/index.d.mts.map +1 -1
- package/dist/browser/Escrow/validators/escrow/index.d.ts +1 -0
- package/dist/browser/Escrow/validators/escrow/index.d.ts.map +1 -1
- package/dist/browser/Escrow/validators/escrow/sellerSecret.d.cts +21 -0
- package/dist/browser/Escrow/validators/escrow/sellerSecret.d.cts.map +1 -0
- package/dist/browser/Escrow/validators/escrow/sellerSecret.d.mts +21 -0
- package/dist/browser/Escrow/validators/escrow/sellerSecret.d.mts.map +1 -0
- package/dist/browser/Escrow/validators/escrow/sellerSecret.d.ts +21 -0
- package/dist/browser/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
- package/dist/browser/Payment.d.cts +12 -1
- package/dist/browser/Payment.d.cts.map +1 -1
- package/dist/browser/Payment.d.mts +12 -1
- package/dist/browser/Payment.d.mts.map +1 -1
- package/dist/browser/Payment.d.ts +12 -1
- package/dist/browser/Payment.d.ts.map +1 -1
- package/dist/browser/Purchase.d.cts +16 -4
- package/dist/browser/Purchase.d.cts.map +1 -1
- package/dist/browser/Purchase.d.mts +16 -4
- package/dist/browser/Purchase.d.mts.map +1 -1
- package/dist/browser/Purchase.d.ts +16 -4
- package/dist/browser/Purchase.d.ts.map +1 -1
- package/dist/browser/Receipt.d.cts +31 -0
- package/dist/browser/Receipt.d.cts.map +1 -0
- package/dist/browser/Receipt.d.mts +31 -0
- package/dist/browser/Receipt.d.mts.map +1 -0
- package/dist/browser/Receipt.d.ts +31 -0
- package/dist/browser/Receipt.d.ts.map +1 -0
- package/dist/browser/index.cjs +73 -2
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +1 -0
- package/dist/browser/index.d.cts.map +1 -1
- package/dist/browser/index.d.mts +1 -0
- package/dist/browser/index.d.mts.map +1 -1
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +85 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/node/Escrow/Terms.d.cts +15 -0
- package/dist/node/Escrow/Terms.d.cts.map +1 -1
- package/dist/node/Escrow/Terms.d.mts +15 -0
- package/dist/node/Escrow/Terms.d.mts.map +1 -1
- package/dist/node/Escrow/Terms.d.ts +15 -0
- package/dist/node/Escrow/Terms.d.ts.map +1 -1
- package/dist/node/Escrow/validators/escrow/index.d.cts +1 -0
- package/dist/node/Escrow/validators/escrow/index.d.cts.map +1 -1
- package/dist/node/Escrow/validators/escrow/index.d.mts +1 -0
- package/dist/node/Escrow/validators/escrow/index.d.mts.map +1 -1
- package/dist/node/Escrow/validators/escrow/index.d.ts +1 -0
- package/dist/node/Escrow/validators/escrow/index.d.ts.map +1 -1
- package/dist/node/Escrow/validators/escrow/sellerSecret.d.cts +21 -0
- package/dist/node/Escrow/validators/escrow/sellerSecret.d.cts.map +1 -0
- package/dist/node/Escrow/validators/escrow/sellerSecret.d.mts +21 -0
- package/dist/node/Escrow/validators/escrow/sellerSecret.d.mts.map +1 -0
- package/dist/node/Escrow/validators/escrow/sellerSecret.d.ts +21 -0
- package/dist/node/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
- package/dist/node/Payment.d.cts +12 -1
- package/dist/node/Payment.d.cts.map +1 -1
- package/dist/node/Payment.d.mts +12 -1
- package/dist/node/Payment.d.mts.map +1 -1
- package/dist/node/Payment.d.ts +12 -1
- package/dist/node/Payment.d.ts.map +1 -1
- package/dist/node/Purchase.d.cts +16 -4
- package/dist/node/Purchase.d.cts.map +1 -1
- package/dist/node/Purchase.d.mts +16 -4
- package/dist/node/Purchase.d.mts.map +1 -1
- package/dist/node/Purchase.d.ts +16 -4
- package/dist/node/Purchase.d.ts.map +1 -1
- package/dist/node/Receipt.d.cts +31 -0
- package/dist/node/Receipt.d.cts.map +1 -0
- package/dist/node/Receipt.d.mts +31 -0
- package/dist/node/Receipt.d.mts.map +1 -0
- package/dist/node/Receipt.d.ts +31 -0
- package/dist/node/Receipt.d.ts.map +1 -0
- package/dist/node/index.cjs +87 -2
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +1 -0
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.mts +1 -0
- package/dist/node/index.d.mts.map +1 -1
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +85 -2
- package/dist/node/index.js.map +1 -1
- package/package.json +10 -10
- package/src/Escrow/Terms.ts +14 -1
- package/src/Escrow/validators/escrow/index.ts +1 -0
- package/src/Escrow/validators/escrow/sellerSecret.ts +75 -0
- package/src/Payment.ts +20 -2
- package/src/Purchase.ts +25 -5
- package/src/Receipt.ts +42 -0
- 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,
|
|
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,
|
|
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,
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
7
|
+
* The things that were purchased
|
|
8
8
|
*/
|
|
9
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
|
7
|
+
* The things that were purchased
|
|
8
8
|
*/
|
|
9
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
|
7
|
+
* The things that were purchased
|
|
8
8
|
*/
|
|
9
|
-
|
|
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
|
-
|
|
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,
|
|
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"}
|