@xyo-network/payment-payload-plugins 3.0.2 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/neutral/Billing/Address/Address.d.ts +24 -0
  2. package/dist/neutral/Billing/Address/Address.d.ts.map +1 -0
  3. package/dist/neutral/Billing/Address/Schema.d.ts +3 -0
  4. package/dist/neutral/Billing/Address/Schema.d.ts.map +1 -0
  5. package/dist/neutral/Billing/Address/index.d.ts +3 -0
  6. package/dist/neutral/Billing/Address/index.d.ts.map +1 -0
  7. package/dist/neutral/Billing/Schema.d.ts +3 -0
  8. package/dist/neutral/Billing/Schema.d.ts.map +1 -0
  9. package/dist/neutral/Billing/index.d.ts +3 -0
  10. package/dist/neutral/Billing/index.d.ts.map +1 -0
  11. package/dist/neutral/Currency.d.ts +2 -0
  12. package/dist/neutral/Currency.d.ts.map +1 -0
  13. package/dist/neutral/Escrow/Outcome.d.ts +14 -0
  14. package/dist/neutral/Escrow/Outcome.d.ts.map +1 -0
  15. package/dist/neutral/Escrow/Schema.d.ts +3 -0
  16. package/dist/neutral/Escrow/Schema.d.ts.map +1 -0
  17. package/dist/neutral/Escrow/Terms.d.ts +28 -0
  18. package/dist/neutral/Escrow/Terms.d.ts.map +1 -0
  19. package/dist/neutral/Escrow/createEscrowIntent.d.ts +28 -0
  20. package/dist/neutral/Escrow/createEscrowIntent.d.ts.map +1 -0
  21. package/dist/neutral/Escrow/getEscrowSecret.d.ts +3 -0
  22. package/dist/neutral/Escrow/getEscrowSecret.d.ts.map +1 -0
  23. package/dist/neutral/Escrow/index.d.ts +7 -0
  24. package/dist/neutral/Escrow/index.d.ts.map +1 -0
  25. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +2 -0
  26. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +1 -0
  27. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +6 -0
  28. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +1 -0
  29. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +2 -0
  30. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +1 -0
  31. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +6 -0
  32. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +1 -0
  33. package/dist/neutral/Escrow/validators/common/index.d.ts +3 -0
  34. package/dist/neutral/Escrow/validators/common/index.d.ts.map +1 -0
  35. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +5 -0
  36. package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +1 -0
  37. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +8 -0
  38. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -0
  39. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +6 -0
  40. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -0
  41. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +4 -0
  42. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +1 -0
  43. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +4 -0
  44. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +1 -0
  45. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +7 -0
  46. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -0
  47. package/dist/neutral/Escrow/validators/escrow/index.d.ts +11 -0
  48. package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +1 -0
  49. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +4 -0
  50. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +1 -0
  51. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +5 -0
  52. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +1 -0
  53. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +4 -0
  54. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +1 -0
  55. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +7 -0
  56. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
  57. package/dist/neutral/Escrow/validators/index.d.ts +3 -0
  58. package/dist/neutral/Escrow/validators/index.d.ts.map +1 -0
  59. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +20 -0
  60. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -0
  61. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +3 -0
  62. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +1 -0
  63. package/dist/neutral/Payment/Instrument/Card/index.d.ts +3 -0
  64. package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +1 -0
  65. package/dist/neutral/Payment/Instrument/Schema.d.ts +3 -0
  66. package/dist/neutral/Payment/Instrument/Schema.d.ts.map +1 -0
  67. package/dist/neutral/Payment/Instrument/index.d.ts +3 -0
  68. package/dist/neutral/Payment/Instrument/index.d.ts.map +1 -0
  69. package/dist/neutral/Payment/Payload.d.ts +12 -0
  70. package/dist/neutral/Payment/Payload.d.ts.map +1 -0
  71. package/dist/neutral/Payment/Schema.d.ts +3 -0
  72. package/dist/neutral/Payment/Schema.d.ts.map +1 -0
  73. package/dist/neutral/Payment/Status/Payload.d.ts +11 -0
  74. package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -0
  75. package/dist/neutral/Payment/Status/Schema.d.ts +3 -0
  76. package/dist/neutral/Payment/Status/Schema.d.ts.map +1 -0
  77. package/dist/neutral/Payment/Status/index.d.ts +3 -0
  78. package/dist/neutral/Payment/Status/index.d.ts.map +1 -0
  79. package/dist/neutral/Payment/index.d.ts +5 -0
  80. package/dist/neutral/Payment/index.d.ts.map +1 -0
  81. package/dist/neutral/Purchase/Payload.d.ts +12 -0
  82. package/dist/neutral/Purchase/Payload.d.ts.map +1 -0
  83. package/dist/neutral/Purchase/Schema.d.ts +3 -0
  84. package/dist/neutral/Purchase/Schema.d.ts.map +1 -0
  85. package/dist/neutral/Purchase/index.d.ts +3 -0
  86. package/dist/neutral/Purchase/index.d.ts.map +1 -0
  87. package/dist/neutral/Receipt/Payload.d.ts +12 -0
  88. package/dist/neutral/Receipt/Payload.d.ts.map +1 -0
  89. package/dist/neutral/Receipt/Schema.d.ts +3 -0
  90. package/dist/neutral/Receipt/Schema.d.ts.map +1 -0
  91. package/dist/neutral/Receipt/index.d.ts +3 -0
  92. package/dist/neutral/Receipt/index.d.ts.map +1 -0
  93. package/dist/neutral/Schema.d.ts +3 -0
  94. package/dist/neutral/Schema.d.ts.map +1 -0
  95. package/dist/neutral/index.d.ts +7 -218
  96. package/dist/neutral/index.d.ts.map +1 -0
  97. package/dist/neutral/index.mjs +15 -3
  98. package/dist/neutral/index.mjs.map +1 -1
  99. package/package.json +34 -34
  100. package/src/Billing/Address/Address.ts +4 -1
  101. package/src/Escrow/Outcome.ts +2 -2
  102. package/src/Escrow/Terms.ts +5 -2
  103. package/src/Escrow/createEscrowIntent.ts +3 -3
  104. package/src/Escrow/getEscrowSecret.ts +2 -1
  105. package/src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts +3 -3
  106. package/src/Escrow/validators/escrow/agent.ts +3 -3
  107. package/src/Escrow/validators/escrow/appraisal.ts +9 -5
  108. package/src/Escrow/validators/escrow/appraisalAuthorities.ts +3 -3
  109. package/src/Escrow/validators/escrow/assets.ts +2 -2
  110. package/src/Escrow/validators/escrow/buyer.ts +2 -2
  111. package/src/Escrow/validators/escrow/buyerSecret.ts +5 -3
  112. package/src/Escrow/validators/escrow/nbfExp.ts +2 -2
  113. package/src/Escrow/validators/escrow/paymentAuthorities.ts +3 -3
  114. package/src/Escrow/validators/escrow/seller.ts +2 -2
  115. package/src/Escrow/validators/escrow/sellerSecret.ts +5 -3
  116. package/src/Payment/Instrument/Card/Payload.ts +4 -1
  117. package/src/Payment/Payload.ts +2 -2
  118. package/src/Payment/Status/Payload.ts +1 -1
  119. package/src/Purchase/Payload.ts +2 -2
  120. package/src/Receipt/Payload.ts +2 -2
  121. package/xy.config.ts +2 -4
@@ -0,0 +1,24 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import { BillingAddressSchema } from './Schema.ts';
3
+ export interface BillingAddressFields {
4
+ address?: string;
5
+ address2?: string | null;
6
+ city?: string;
7
+ country?: string;
8
+ firstName: string;
9
+ lastName: string;
10
+ organization?: string | null;
11
+ postalCode?: string;
12
+ region?: string;
13
+ }
14
+ export type BillingAddress = Payload<BillingAddressFields, BillingAddressSchema>;
15
+ export declare const isBillingAddress: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & BillingAddressFields & {
16
+ schema: "network.xyo.payments.billing.address";
17
+ };
18
+ export declare const isBillingAddressWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & BillingAddressFields & {
19
+ schema: "network.xyo.payments.billing.address";
20
+ }>;
21
+ export declare const isBillingAddressWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & BillingAddressFields & {
22
+ schema: "network.xyo.payments.billing.address";
23
+ }>;
24
+ //# sourceMappingURL=Address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../../src/Billing/Address/Address.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAKlD,MAAM,WAAW,oBAAoB;IAEnC,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,SAAS,EAAE,MAAM,CAAA;IAEjB,QAAQ,EAAE,MAAM,CAAA;IAEhB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAKD,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAA;AAKhF,eAAO,MAAM,gBAAgB;;CAA8D,CAAA;AAK3F,eAAO,MAAM,2BAA2B;;EAAyE,CAAA;AAKjH,eAAO,MAAM,wBAAwB;;EAAsE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const BillingAddressSchema = "network.xyo.payments.billing.address";
2
+ export type BillingAddressSchema = typeof BillingAddressSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Billing/Address/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,yCAA6B,CAAA;AAC9D,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Address.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Billing/Address/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const BillingSchema = "network.xyo.payments.billing";
2
+ export type BillingSchema = typeof BillingSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Billing/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,iCAA8B,CAAA;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Address/index.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type SupportedCurrency = 'USD';
2
+ //# sourceMappingURL=Currency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../src/Currency.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { PayloadWithSources } from '@xyo-network/payload-model';
3
+ export declare const EscrowOutcomeSchema: "network.xyo.escrow.outcome";
4
+ export type EscrowOutcomeSchema = typeof EscrowOutcomeSchema;
5
+ export type EscrowOutcomes = 'fulfilled' | 'expired';
6
+ export interface EscrowOutcomeFields {
7
+ outcome: EscrowOutcomes;
8
+ terms: Hash;
9
+ }
10
+ export type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcomeSchema>;
11
+ export declare const isEscrowOutcome: (x?: unknown | null) => x is EscrowOutcome;
12
+ export declare const isEscrowOutcomeWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<EscrowOutcome>;
13
+ export declare const isEscrowOutcomeWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<EscrowOutcome>;
14
+ //# sourceMappingURL=Outcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Outcome.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Outcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AASpE,eAAO,MAAM,mBAAmB,8BAAqC,CAAA;AACrE,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAK5D,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,SAAS,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,EAAE,IAAI,CAAA;CACZ;AAKD,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAKxF,eAAO,MAAM,eAAe,4CAA4D,CAAA;AAKxF,eAAO,MAAM,0BAA0B,8FAAuE,CAAA;AAK9G,eAAO,MAAM,uBAAuB,2FAAoE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const EscrowSchema = "network.xyo.escrow";
2
+ export type EscrowSchema = typeof EscrowSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,uBAAuB,CAAA;AAChD,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA"}
@@ -0,0 +1,28 @@
1
+ import type { Address, Hash } from '@xylabs/hex';
2
+ import type { Payload } from '@xyo-network/payload-model';
3
+ export declare const EscrowTermsSchema: "network.xyo.escrow.terms";
4
+ export type EscrowTermsSchema = typeof EscrowTermsSchema;
5
+ export interface EscrowTermsFields {
6
+ appraisalAuthorities: Address[];
7
+ appraisals: Hash[];
8
+ assets: Hash[];
9
+ buyer: Address[];
10
+ buyerSecret: Hash;
11
+ escrowAgent: Address;
12
+ exp: number;
13
+ nbf: number;
14
+ paymentAuthorities: Address[];
15
+ seller: Address[];
16
+ sellerSecret: Hash;
17
+ }
18
+ export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>;
19
+ export declare const isEscrowTerms: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
20
+ schema: "network.xyo.escrow.terms";
21
+ };
22
+ export declare const isEscrowTermsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
23
+ schema: "network.xyo.escrow.terms";
24
+ }>;
25
+ export declare const isEscrowTermsWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
26
+ schema: "network.xyo.escrow.terms";
27
+ }>;
28
+ //# sourceMappingURL=Terms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAOzD,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAIhC,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAI/B,UAAU,EAAE,IAAI,EAAE,CAAA;IAIlB,MAAM,EAAE,IAAI,EAAE,CAAA;IAId,KAAK,EAAE,OAAO,EAAE,CAAA;IAIhB,WAAW,EAAE,IAAI,CAAA;IAIjB,WAAW,EAAE,OAAO,CAAA;IAIpB,GAAG,EAAE,MAAM,CAAA;IAIX,GAAG,EAAE,MAAM,CAAA;IAIX,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAI7B,MAAM,EAAE,OAAO,EAAE,CAAA;IAIjB,YAAY,EAAE,IAAI,CAAA;CACnB;AAKD,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAKhF,eAAO,MAAM,aAAa;;CAAwD,CAAA;AAKlF,eAAO,MAAM,wBAAwB;;EAAmE,CAAA;AAKxG,eAAO,MAAM,qBAAqB;;EAAgE,CAAA"}
@@ -0,0 +1,28 @@
1
+ import type { AccountInstance } from '@xyo-network/account-model';
2
+ import type { IdPayload } from '@xyo-network/id-payload-plugin';
3
+ import type { EscrowTerms } from './Terms.ts';
4
+ export declare const createEscrowIntent: (terms: EscrowTerms[], account: AccountInstance) => Promise<[import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
+ schema: "network.xyo.boundwitness";
6
+ }>, import("@xyo-network/payload-model").WithMeta<{
7
+ schema: string;
8
+ } & import("@xyo-network/payload-model").PayloadFields>[], import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
9
+ details?: import(".store/@xylabs-object-npm-4.0.4-83706dfe17/package").JsonValue;
10
+ message?: string;
11
+ name?: string;
12
+ query?: import("@xylabs/hex").Hash;
13
+ schema: import("@xyo-network/payload-model").ModuleErrorSchema;
14
+ sources?: import("@xylabs/hex").Hash[];
15
+ }>[]]>;
16
+ export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: IdPayload, account: AccountInstance) => Promise<[import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
17
+ schema: "network.xyo.boundwitness";
18
+ }>, import("@xyo-network/payload-model").WithMeta<{
19
+ schema: string;
20
+ } & import("@xyo-network/payload-model").PayloadFields>[], import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
21
+ details?: import(".store/@xylabs-object-npm-4.0.4-83706dfe17/package").JsonValue;
22
+ message?: string;
23
+ name?: string;
24
+ query?: import("@xylabs/hex").Hash;
25
+ schema: import("@xyo-network/payload-model").ModuleErrorSchema;
26
+ sources?: import("@xylabs/hex").Hash[];
27
+ }>[]]>;
28
+ //# sourceMappingURL=createEscrowIntent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../src/Escrow/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAS7C,eAAO,MAAM,kBAAkB,UAAiB,WAAW,EAAE,WAAW,eAAe;;;;;;;;;;;MAGtF,CAAA;AASD,eAAO,MAAM,4BAA4B,UAAiB,WAAW,UAAU,SAAS,WAAW,eAAe;;;;;;;;;;;MAGjH,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { IdPayload } from '@xyo-network/id-payload-plugin';
2
+ export declare const getEscrowSecret: () => IdPayload;
3
+ //# sourceMappingURL=getEscrowSecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEscrowSecret.d.ts","sourceRoot":"","sources":["../../../src/Escrow/getEscrowSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAO/D,eAAO,MAAM,eAAe,QAAO,SAElC,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './createEscrowIntent.ts';
2
+ export * from './getEscrowSecret.ts';
3
+ export * from './Outcome.ts';
4
+ export * from './Schema.ts';
5
+ export * from './Terms.ts';
6
+ export * from './validators/index.ts';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './moduleInstanceValidators.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { ModuleIdentifier } from '@xyo-network/module-model';
2
+ import type { PayloadValueExpression } from '@xyo-network/payload-model';
3
+ import type { EscrowTerms } from '../../../Terms.ts';
4
+ export declare const moduleIdentifiersContainsOneOf: (escrowTerms: EscrowTerms, propertyExpression: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
5
+ export declare const moduleIdentifiersContainsAllOf: (escrowTerms: EscrowTerms, selector: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
6
+ //# sourceMappingURL=moduleInstanceValidators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moduleInstanceValidators.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAUpD,eAAO,MAAM,8BAA8B,gBAC5B,WAAW,sBACJ,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,qBACxH,gBAAgB,EAAE,aAC3B,OAAO,YAQlB,CAAA;AAUD,eAAO,MAAM,8BAA8B,gBAC5B,WAAW,YACd,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,qBAC9G,gBAAgB,EAAE,aAC3B,OAAO,YAQlB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './validateWithinWindow.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/TemporalValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
@@ -0,0 +1,6 @@
1
+ export type Windowed = {
2
+ exp?: number;
3
+ nbf?: number;
4
+ };
5
+ export declare const validateWithinWindow: (value: Windowed, exp: number, nbf?: number) => boolean;
6
+ //# sourceMappingURL=validateWithinWindow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateWithinWindow.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAErD,eAAO,MAAM,oBAAoB,UAAW,QAAQ,OAAO,MAAM,QAAO,MAAM,KAAgB,OAI7F,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './ModuleInstanceValidators/index.ts';
2
+ export * from './TemporalValidators/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { ModuleIdentifier } from '@xyo-network/module-model';
2
+ import type { PayloadValidationFunction } from '@xyo-network/payload-model';
3
+ import type { EscrowTerms } from '../../Terms.ts';
4
+ export declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) => PayloadValidationFunction<EscrowTerms>;
5
+ //# sourceMappingURL=agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAKjD,eAAO,MAAM,8BAA8B,uBAAwB,gBAAgB,KAAG,yBAAyB,CAAC,WAAW,CAQ1H,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { Payload, PayloadValidationFunction, WithMeta } from '@xyo-network/payload-model';
3
+ import type { EscrowTerms } from '../../Terms.ts';
4
+ export declare const appraisalsExistValidator: PayloadValidationFunction<EscrowTerms>;
5
+ export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => PayloadValidationFunction<EscrowTerms>;
6
+ export declare const getAppraisalsValidValidator: (dictionary: Record<Hash, WithMeta<Payload>>, minimumExp: number) => PayloadValidationFunction<EscrowTerms>;
7
+ export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => PayloadValidationFunction<EscrowTerms>;
8
+ //# sourceMappingURL=appraisal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAKvC,OAAO,KAAK,EACV,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAC7C,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AASjD,eAAO,MAAM,wBAAwB,EAAE,yBAAyB,CAAC,WAAW,CAQ3E,CAAA;AAOD,eAAO,MAAM,0CAA0C,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,yBAAyB,CAAC,WAAW,CA0B7I,CAAA;AASD,eAAO,MAAM,2BAA2B,eAC1B,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,cAC/B,MAAM,KACjB,yBAAyB,CAAC,WAAW,CAiBvC,CAAA;AAOD,eAAO,MAAM,kCAAkC,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,yBAAyB,CAAC,WAAW,CAWrI,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { ModuleIdentifier } from '@xyo-network/module-model';
2
+ import type { PayloadValidationFunction } from '@xyo-network/payload-model';
3
+ import type { EscrowTerms } from '../../Terms.ts';
4
+ export declare const appraisalAuthoritiesExistValidator: PayloadValidationFunction<EscrowTerms>;
5
+ export declare const getAppraisalAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => PayloadValidationFunction<EscrowTerms>;
6
+ //# sourceMappingURL=appraisalAuthorities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AASjD,eAAO,MAAM,kCAAkC,EAAE,yBAAyB,CAAC,WAAW,CAarF,CAAA;AAED,eAAO,MAAM,uCAAuC,YAAa,gBAAgB,EAAE,KAAG,yBAAyB,CAAC,WAAW,CAQ1H,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { PayloadValidationFunction } from '@xyo-network/payload-model';
2
+ import type { EscrowTerms } from '../../Terms.ts';
3
+ export declare const assetsExistValidator: PayloadValidationFunction<EscrowTerms>;
4
+ //# sourceMappingURL=assets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,oBAAoB,EAAE,yBAAyB,CAAC,WAAW,CAQvE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { PayloadValidationFunction } from '@xyo-network/payload-model';
2
+ import type { EscrowTerms } from '../../Terms.ts';
3
+ export declare const buyerExistsValidator: PayloadValidationFunction<EscrowTerms>;
4
+ //# sourceMappingURL=buyer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,oBAAoB,EAAE,yBAAyB,CAAC,WAAW,CAavE,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { Payload, PayloadValidationFunction, WithMeta } from '@xyo-network/payload-model';
3
+ import type { EscrowTerms } from '../../Terms.ts';
4
+ export declare const buyerSecretExistsValidator: PayloadValidationFunction<EscrowTerms>;
5
+ export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => PayloadValidationFunction<EscrowTerms>;
6
+ export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => PayloadValidationFunction<EscrowTerms>;
7
+ //# sourceMappingURL=buyerSecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EACV,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAC7C,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,0BAA0B,EAAE,yBAAyB,CAAC,WAAW,CAQ7E,CAAA;AAOD,eAAO,MAAM,+BAA+B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,yBAAyB,CAAC,WAAW,CASlI,CAAA;AAOD,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,yBAAyB,CAAC,WAAW,CA4BhI,CAAA"}
@@ -0,0 +1,11 @@
1
+ export * from './agent.ts';
2
+ export * from './appraisal.ts';
3
+ export * from './appraisalAuthorities.ts';
4
+ export * from './assets.ts';
5
+ export * from './buyer.ts';
6
+ export * from './buyerSecret.ts';
7
+ export * from './nbfExp.ts';
8
+ export * from './paymentAuthorities.ts';
9
+ export * from './seller.ts';
10
+ export * from './sellerSecret.ts';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { PayloadValidationFunction } from '@xyo-network/payload-model';
2
+ import type { EscrowTerms } from '../../Terms.ts';
3
+ export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => PayloadValidationFunction<EscrowTerms>;
4
+ //# sourceMappingURL=nbfExp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAEjD,eAAO,MAAM,kBAAkB,QAAS,MAAM,uBAAuB,MAAM,KAAG,yBAAyB,CAAC,WAAW,CAclH,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { ModuleIdentifier } from '@xyo-network/module-model';
2
+ import type { PayloadValidationFunction } from '@xyo-network/payload-model';
3
+ import type { EscrowTerms } from '../../Terms.ts';
4
+ export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => PayloadValidationFunction<EscrowTerms>;
5
+ //# sourceMappingURL=paymentAuthorities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAKjD,eAAO,MAAM,qCAAqC,YAAa,gBAAgB,EAAE,KAAG,yBAAyB,CAAC,WAAW,CAQxH,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { PayloadValidationFunction } from '@xyo-network/payload-model';
2
+ import type { EscrowTerms } from '../../Terms.ts';
3
+ export declare const sellerExistsValidator: PayloadValidationFunction<EscrowTerms>;
4
+ //# sourceMappingURL=seller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,qBAAqB,EAAE,yBAAyB,CAAC,WAAW,CAaxE,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { Payload, PayloadValidationFunction, WithMeta } from '@xyo-network/payload-model';
3
+ import type { EscrowTerms } from '../../Terms.ts';
4
+ export declare const sellerSecretExistsValidator: PayloadValidationFunction<EscrowTerms>;
5
+ export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => PayloadValidationFunction<EscrowTerms>;
6
+ export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => PayloadValidationFunction<EscrowTerms>;
7
+ //# 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,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EACV,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAC7C,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,2BAA2B,EAAE,yBAAyB,CAAC,WAAW,CAQ9E,CAAA;AAOD,eAAO,MAAM,gCAAgC,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,yBAAyB,CAAC,WAAW,CASnI,CAAA;AAOD,eAAO,MAAM,8BAA8B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,yBAAyB,CAAC,WAAW,CA4BjI,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './common/index.ts';
2
+ export * from './escrow/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,20 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import { PaymentCardSchema } from './Schema.ts';
3
+ export interface PaymentCardFields {
4
+ cardNumber: string;
5
+ cardholderName?: string;
6
+ cvv: string;
7
+ expMonth: number;
8
+ expYear: number;
9
+ }
10
+ export type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
11
+ export declare const isPaymentCard: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & PaymentCardFields & {
12
+ schema: "network.xyo.payments.payment.instrument.card";
13
+ };
14
+ export declare const isPaymentCardWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & PaymentCardFields & {
15
+ schema: "network.xyo.payments.payment.instrument.card";
16
+ }>;
17
+ export declare const isPaymentCardWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & PaymentCardFields & {
18
+ schema: "network.xyo.payments.payment.instrument.card";
19
+ }>;
20
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAK/C,MAAM,WAAW,iBAAiB;IAIhC,UAAU,EAAE,MAAM,CAAA;IAIlB,cAAc,CAAC,EAAE,MAAM,CAAA;IAIvB,GAAG,EAAE,MAAM,CAAA;IAIX,QAAQ,EAAE,MAAM,CAAA;IAIhB,OAAO,EAAE,MAAM,CAAA;CAChB;AAKD,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAKvE,eAAO,MAAM,aAAa;;CAAwD,CAAA;AAKlF,eAAO,MAAM,wBAAwB;;EAAmE,CAAA;AAKxG,eAAO,MAAM,qBAAqB;;EAAgE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const PaymentCardSchema = "network.xyo.payments.payment.instrument.card";
2
+ export type PaymentCardSchema = typeof PaymentCardSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,iDAAoC,CAAA;AAClE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const PaymentInstrumentSchema = "network.xyo.payments.payment.instrument";
2
+ export type PaymentInstrumentSchema = typeof PaymentInstrumentSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Instrument/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,4CAAgC,CAAA;AACpE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Card/index.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Instrument/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { PayloadWithSources } from '@xyo-network/payload-model';
2
+ import type { SupportedCurrency } from '../Currency.ts';
3
+ import { PaymentSchema } from './Schema.ts';
4
+ export interface PaymentFields {
5
+ amount: number;
6
+ currency: SupportedCurrency;
7
+ }
8
+ export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
9
+ export declare const isPayment: (x?: unknown | null) => x is Payment;
10
+ export declare const isPaymentWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Payment>;
11
+ export declare const isPaymentWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Payment>;
12
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAI5B,MAAM,EAAE,MAAM,CAAA;IAId,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAKD,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAKtE,eAAO,MAAM,SAAS,sCAAgD,CAAA;AAKtE,eAAO,MAAM,oBAAoB,wFAA2D,CAAA;AAK5F,eAAO,MAAM,iBAAiB,qFAAwD,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const PaymentSchema = "network.xyo.payments.payment";
2
+ export type PaymentSchema = typeof PaymentSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Payment/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,iCAA8B,CAAA;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { PayloadWithSources } from '@xyo-network/payload-model';
2
+ import { PaymentStatusSchema } from './Schema.ts';
3
+ export interface PaymentStatusFields {
4
+ result?: string;
5
+ status: string;
6
+ }
7
+ export type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatusSchema>;
8
+ export declare const isPaymentStatus: (x?: unknown | null) => x is PaymentStatus;
9
+ export declare const isPaymentStatusWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<PaymentStatus>;
10
+ export declare const isPaymentStatusWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<PaymentStatus>;
11
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IAIlC,MAAM,CAAC,EAAE,MAAM,CAAA;IAKf,MAAM,EAAE,MAAM,CAAA;CACf;AAKD,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAKxF,eAAO,MAAM,eAAe,4CAA4D,CAAA;AAKxF,eAAO,MAAM,0BAA0B,8FAAuE,CAAA;AAK9G,eAAO,MAAM,uBAAuB,2FAAoE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const PaymentStatusSchema = "network.xyo.payments.payment.status";
2
+ export type PaymentStatusSchema = typeof PaymentStatusSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,wCAA4B,CAAA;AAC5D,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './Instrument/index.ts';
2
+ export * from './Payload.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Status/index.ts';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payment/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { PayloadWithSources } from '@xyo-network/payload-model';
3
+ import { PurchaseSchema } from './Schema.ts';
4
+ export interface PurchaseFields {
5
+ assets: Hash[];
6
+ receipts: Hash[];
7
+ }
8
+ export type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
9
+ export declare const isPurchase: (x?: unknown | null) => x is Purchase;
10
+ export declare const isPurchaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Purchase>;
11
+ export declare const isPurchaseWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Purchase>;
12
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,cAAc;IAI7B,MAAM,EAAE,IAAI,EAAE,CAAA;IAKd,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB;AAKD,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAKzE,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAKzE,eAAO,MAAM,qBAAqB,yFAA6D,CAAA;AAK/F,eAAO,MAAM,kBAAkB,sFAA0D,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const PurchaseSchema = "network.xyo.payments.purchase";
2
+ export type PurchaseSchema = typeof PurchaseSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,kCAA+B,CAAA;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Purchase/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { PayloadWithSources } from '@xyo-network/payload-model';
2
+ import type { SupportedCurrency } from '../Currency.ts';
3
+ import { ReceiptSchema } from './Schema.ts';
4
+ export interface ReceiptFields {
5
+ amount: number;
6
+ currency: SupportedCurrency;
7
+ }
8
+ export type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>;
9
+ export declare const isReceipt: (x?: unknown | null) => x is Receipt;
10
+ export declare const isReceiptWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Receipt>;
11
+ export declare const isReceiptWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Receipt>;
12
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Receipt/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAI5B,MAAM,EAAE,MAAM,CAAA;IAId,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAKD,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAKtE,eAAO,MAAM,SAAS,sCAAgD,CAAA;AAKtE,eAAO,MAAM,oBAAoB,wFAA2D,CAAA;AAK5F,eAAO,MAAM,iBAAiB,qFAAwD,CAAA"}