@xyo-network/payment-payload-plugins 3.2.0-rc.1 → 3.2.0-rc.3

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 (33) hide show
  1. package/dist/neutral/Billing/Address/Address.d.ts +46 -4
  2. package/dist/neutral/Billing/Address/Address.d.ts.map +1 -1
  3. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +44 -4
  4. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
  5. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +40 -4
  6. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
  7. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +44 -4
  8. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
  9. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +101 -1
  10. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -1
  11. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +63 -15
  12. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -1
  13. package/dist/neutral/Discount/Payload/Discount.d.ts +7 -3
  14. package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -1
  15. package/dist/neutral/Escrow/Terms/Terms.d.ts +28 -4
  16. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +1 -1
  17. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +33 -12
  18. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -1
  19. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +33 -12
  20. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -1
  21. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +22 -4
  22. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -1
  23. package/dist/neutral/index.mjs +29 -4
  24. package/dist/neutral/index.mjs.map +1 -1
  25. package/package.json +22 -21
  26. package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +6 -3
  27. package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +6 -3
  28. package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +6 -3
  29. package/src/Discount/Payload/Coupon/Payload.ts +4 -0
  30. package/src/Discount/Payload/Coupon/types/Condition.ts +4 -1
  31. package/src/Discount/Payload/Discount.ts +2 -2
  32. package/src/Escrow/util/appraisal/getAppraisalsByAsset.ts +3 -3
  33. package/src/Escrow/util/secret/createEscrowIntent.ts +1 -1
@@ -30,13 +30,55 @@ export type BillingAddress = Payload<BillingAddressFields, BillingAddressSchema>
30
30
  /**
31
31
  * Identity function for determine if an object is a BillingAddress
32
32
  */
33
- export declare const isBillingAddress: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & BillingAddressFields & {
33
+ export declare const isBillingAddress: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
34
34
  schema: "network.xyo.payments.billing.address";
35
- };
35
+ address?: string
36
+ /** Street address line 2. */
37
+ | undefined;
38
+ address2?: string | null
39
+ /** City of the billing address. */
40
+ | undefined;
41
+ city?: string
42
+ /** Country code of the billing address, ISO 3166-1 alpha-2 code. */
43
+ | undefined;
44
+ country?: string
45
+ /** First name */
46
+ | undefined;
47
+ firstName: string;
48
+ lastName: string;
49
+ organization?: string | null
50
+ /** Postal or ZIP code of the billing address. */
51
+ | undefined;
52
+ postalCode?: string
53
+ /** State or region of the billing address. */
54
+ | undefined;
55
+ region?: string | undefined;
56
+ }>;
36
57
  /**
37
58
  * Identity function for determine if an object is a BillingAddress with sources
38
59
  */
39
- 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 & {
60
+ export declare const isBillingAddressWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
40
61
  schema: "network.xyo.payments.billing.address";
41
- }>;
62
+ address?: string
63
+ /** Street address line 2. */
64
+ | undefined;
65
+ address2?: string | null
66
+ /** City of the billing address. */
67
+ | undefined;
68
+ city?: string
69
+ /** Country code of the billing address, ISO 3166-1 alpha-2 code. */
70
+ | undefined;
71
+ country?: string
72
+ /** First name */
73
+ | undefined;
74
+ firstName: string;
75
+ lastName: string;
76
+ organization?: string | null
77
+ /** Postal or ZIP code of the billing address. */
78
+ | undefined;
79
+ postalCode?: string
80
+ /** State or region of the billing address. */
81
+ | undefined;
82
+ region?: string | undefined;
83
+ }>>;
42
84
  //# sourceMappingURL=Address.d.ts.map
@@ -1 +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;AAGzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;CAA8D,CAAA;AAE3F;;GAEG;AACH,eAAO,MAAM,2BAA2B;;EAAyE,CAAA"}
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;AAGzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;cA3BjB,MAAM;IAChB,6BAA6B;;eAClB,MAAM,GAAG,IAAI;IACxB,mCAAmC;;WAC5B,MAAM;IACb,oEAAoE;;cAC1D,MAAM;IAChB,iBAAiB;;eACN,MAAM;cAEP,MAAM;mBAED,MAAM,GAAG,IAAI;IAC5B,iDAAiD;;iBACpC,MAAM;IACnB,8CAA8C;;aACrC,MAAM;EAW0E,CAAA;AAE3F;;GAEG;AACH,eAAO,MAAM,2BAA2B;;cAhC5B,MAAM;IAChB,6BAA6B;;eAClB,MAAM,GAAG,IAAI;IACxB,mCAAmC;;WAC5B,MAAM;IACb,oEAAoE;;cAC1D,MAAM;IAChB,iBAAiB;;eACN,MAAM;cAEP,MAAM;mBAED,MAAM,GAAG,IAAI;IAC5B,iDAAiD;;iBACpC,MAAM;IACnB,8CAA8C;;aACrC,MAAM;GAgBgG,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { PayloadWithSources } from '@xyo-network/payload-model';
1
+ import type { PayloadWithOptionalSources } from '@xyo-network/payload-model';
2
2
  import type { AmountFields } from '../../../../Amount/index.ts';
3
3
  import type { CouponFields } from '../types/index.ts';
4
4
  export declare const FixedAmountCouponSchema: "network.xyo.payments.coupon.fixed.amount";
@@ -8,13 +8,53 @@ export interface FixedAmountCouponFields extends CouponFields, AmountFields {
8
8
  /**
9
9
  * A coupon that provides a fixed discount amount
10
10
  */
11
- export type FixedAmountCoupon = PayloadWithSources<FixedAmountCouponFields, FixedAmountCouponSchema>;
11
+ export type FixedAmountCoupon = PayloadWithOptionalSources<FixedAmountCouponFields, FixedAmountCouponSchema>;
12
12
  /**
13
13
  * Identity function for determining if an object is an FixedAmountCoupon
14
14
  */
15
15
  export declare const isFixedAmountCoupon: (x?: unknown | null) => x is FixedAmountCoupon;
16
+ export declare const asFixedAmountCoupon: {
17
+ <TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
18
+ <TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedAmountCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
19
+ };
16
20
  /**
17
21
  * Identity function for determining if an object is an FixedAmountCoupon with sources
18
- */
19
- export declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<FixedAmountCoupon>;
22
+ */
23
+ export declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
24
+ schema: "network.xyo.payments.coupon.fixed.amount";
25
+ conditions?: Lowercase<string>[] | undefined;
26
+ stackable?: boolean | undefined;
27
+ exp: number;
28
+ nbf: number;
29
+ amount: number;
30
+ currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
31
+ }> & import("@xyo-network/payload-model").SourcesMetaField;
32
+ export declare const asFixedAmountCouponWithSources: {
33
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
34
+ schema: "network.xyo.payments.coupon.fixed.amount";
35
+ conditions?: Lowercase<string>[] | undefined;
36
+ stackable?: boolean | undefined;
37
+ exp: number;
38
+ nbf: number;
39
+ amount: number;
40
+ currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
41
+ }> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
42
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
43
+ schema: "network.xyo.payments.coupon.fixed.amount";
44
+ conditions?: Lowercase<string>[] | undefined;
45
+ stackable?: boolean | undefined;
46
+ exp: number;
47
+ nbf: number;
48
+ amount: number;
49
+ currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
50
+ }> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
51
+ schema: "network.xyo.payments.coupon.fixed.amount";
52
+ conditions?: Lowercase<string>[] | undefined;
53
+ stackable?: boolean | undefined;
54
+ exp: number;
55
+ nbf: number;
56
+ amount: number;
57
+ currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
58
+ }> & import("@xyo-network/payload-model").SourcesMetaField>, config?: import("@xylabs/object").TypeCheckConfig): TType;
59
+ };
20
60
  //# sourceMappingURL=FixedAmount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FixedAmount.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedAmount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,uBAAuB,4CAA0C,CAAA;AAC9E,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAwB,SAAQ,YAAY,EAAE,YAAY;CAAG;AAE9E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,mBAAmB,gDAAoE,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,8BAA8B,kGAA+E,CAAA"}
1
+ {"version":3,"file":"FixedAmount.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedAmount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAM5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,uBAAuB,4CAA0C,CAAA;AAC9E,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAwB,SAAQ,YAAY,EAAE,YAAY;CAAG;AAE9E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,0BAA0B,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAE5G;;GAEG;AACH,eAAO,MAAM,mBAAmB,gDAAoE,CAAA;AACpG,eAAO,MAAM,mBAAmB;oDAlBf,sDAAiB,iCAC/B,gBAAoB;oDAGpB,sDAAiB,4GACkB,gBAAmB;CAaqB,CAAA;AAE9E;;EAEE;AACF,eAAO,MAAM,8BAA8B;;;;;;;;0DAA+E,CAAA;AAC1H,eAAO,MAAM,8BAA8B;;;;;;;;;8EAxB1B,sDAAiB,iCAC/B,gBAAoB;;;;;;;;;8EAGpB,sDAAiB;;;;;;;;iFACkB,gBAAmB;CAmB2C,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { PayloadWithSources } from '@xyo-network/payload-model';
1
+ import type { Payload, PayloadWithOptionalSources } from '@xyo-network/payload-model';
2
2
  import type { CouponFields } from '../types/index.ts';
3
3
  export declare const FixedPercentageCouponSchema: "network.xyo.payments.coupon.fixed.percentage";
4
4
  export type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema;
@@ -8,13 +8,49 @@ export interface FixedPercentageCouponFields extends CouponFields {
8
8
  /**
9
9
  * A coupon that provides a fixed discount amount
10
10
  */
11
- export type FixedPercentageCoupon = PayloadWithSources<FixedPercentageCouponFields, FixedPercentageCouponSchema>;
11
+ export type FixedPercentageCoupon = PayloadWithOptionalSources<Payload<FixedPercentageCouponFields, FixedPercentageCouponSchema>>;
12
12
  /**
13
13
  * Identity function for determining if an object is an FixedPercentageCoupon
14
14
  */
15
15
  export declare const isFixedPercentageCoupon: (x?: unknown | null) => x is FixedPercentageCoupon;
16
+ export declare const asFixedPercentageCoupon: {
17
+ <TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
18
+ <TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedPercentageCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
19
+ };
16
20
  /**
17
21
  * Identity function for determining if an object is an FixedPercentageCoupon with sources
18
- */
19
- export declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon>;
22
+ */
23
+ export declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
24
+ schema: "network.xyo.payments.coupon.fixed.percentage";
25
+ percentage: number;
26
+ conditions?: Lowercase<string>[] | undefined;
27
+ stackable?: boolean | undefined;
28
+ exp: number;
29
+ nbf: number;
30
+ }> & import("@xyo-network/payload-model").SourcesMetaField;
31
+ export declare const asFixedPercentageCouponWithSources: {
32
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
33
+ schema: "network.xyo.payments.coupon.fixed.percentage";
34
+ percentage: number;
35
+ conditions?: Lowercase<string>[] | undefined;
36
+ stackable?: boolean | undefined;
37
+ exp: number;
38
+ nbf: number;
39
+ }> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
40
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
41
+ schema: "network.xyo.payments.coupon.fixed.percentage";
42
+ percentage: number;
43
+ conditions?: Lowercase<string>[] | undefined;
44
+ stackable?: boolean | undefined;
45
+ exp: number;
46
+ nbf: number;
47
+ }> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
48
+ schema: "network.xyo.payments.coupon.fixed.percentage";
49
+ percentage: number;
50
+ conditions?: Lowercase<string>[] | undefined;
51
+ stackable?: boolean | undefined;
52
+ exp: number;
53
+ nbf: number;
54
+ }> & import("@xyo-network/payload-model").SourcesMetaField>, config?: import("@xylabs/object").TypeCheckConfig): TType;
55
+ };
20
56
  //# sourceMappingURL=FixedPercentage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FixedPercentage.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,2BAA2B,gDAA8C,CAAA;AACtF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,2BAA2B,EAAE,2BAA2B,CAAC,CAAA;AAEhH;;GAEG;AACH,eAAO,MAAM,uBAAuB,oDAA4E,CAAA;AAEhH;;GAEG;AACH,eAAO,MAAM,kCAAkC,sGAAuF,CAAA"}
1
+ {"version":3,"file":"FixedPercentage.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAOrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,2BAA2B,gDAA8C,CAAA;AACtF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,0BAA0B,CAAC,OAAO,CAAC,2BAA2B,EAAE,2BAA2B,CAAC,CAAC,CAAA;AAEjI;;GAEG;AACH,eAAO,MAAM,uBAAuB,oDAA4E,CAAA;AAChH,eAAO,MAAM,uBAAuB;wDAnB3B,sDAAgB,iCACX,gBAAoB;wDAEwB,sDAAiB,gHAGpE,gBAAmB;CAa4D,CAAA;AAEtF;;EAEE;AACF,eAAO,MAAM,kCAAkC;;gBAjBjC,MAAM;;;;;0DAiBkH,CAAA;AACtI,eAAO,MAAM,kCAAkC;;;oBAlBjC,MAAM;;;;;8EAPX,sDAAgB,iCACX,gBAAoB;;;oBAMpB,MAAM;;;;;8EAJsC,sDAAiB;;oBAI7D,MAAM;;;;;iFADb,gBAAmB;CAmBkF,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { PayloadWithSources } from '@xyo-network/payload-model';
1
+ import type { PayloadWithOptionalSources } from '@xyo-network/payload-model';
2
2
  import type { AmountFields } from '../../../../Amount/index.ts';
3
3
  import type { CouponFields } from '../types/index.ts';
4
4
  export declare const FixedPriceCouponSchema: "network.xyo.payments.coupon.fixed.price";
@@ -8,13 +8,53 @@ export interface FixedPriceCouponFields extends CouponFields, AmountFields {
8
8
  /**
9
9
  * A coupon that provides a fixed total price
10
10
  */
11
- export type FixedPriceCoupon = PayloadWithSources<FixedPriceCouponFields, FixedPriceCouponSchema>;
11
+ export type FixedPriceCoupon = PayloadWithOptionalSources<FixedPriceCouponFields, FixedPriceCouponSchema>;
12
12
  /**
13
13
  * Identity function for determining if an object is an FixedPriceCoupon
14
14
  */
15
15
  export declare const isFixedPriceCoupon: (x?: unknown | null) => x is FixedPriceCoupon;
16
+ export declare const asFixedPriceCoupon: {
17
+ <TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
18
+ <TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedPriceCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
19
+ };
16
20
  /**
17
21
  * Identity function for determining if an object is an FixedPriceCoupon with sources
18
- */
19
- export declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>;
22
+ */
23
+ export declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
24
+ schema: "network.xyo.payments.coupon.fixed.price";
25
+ conditions?: Lowercase<string>[] | undefined;
26
+ stackable?: boolean | undefined;
27
+ exp: number;
28
+ nbf: number;
29
+ amount: number;
30
+ currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
31
+ }> & import("@xyo-network/payload-model").SourcesMetaField;
32
+ export declare const asFixedPriceCouponWithSources: {
33
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
34
+ schema: "network.xyo.payments.coupon.fixed.price";
35
+ conditions?: Lowercase<string>[] | undefined;
36
+ stackable?: boolean | undefined;
37
+ exp: number;
38
+ nbf: number;
39
+ amount: number;
40
+ currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
41
+ }> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
42
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
43
+ schema: "network.xyo.payments.coupon.fixed.price";
44
+ conditions?: Lowercase<string>[] | undefined;
45
+ stackable?: boolean | undefined;
46
+ exp: number;
47
+ nbf: number;
48
+ amount: number;
49
+ currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
50
+ }> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
51
+ schema: "network.xyo.payments.coupon.fixed.price";
52
+ conditions?: Lowercase<string>[] | undefined;
53
+ stackable?: boolean | undefined;
54
+ exp: number;
55
+ nbf: number;
56
+ amount: number;
57
+ currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
58
+ }> & import("@xyo-network/payload-model").SourcesMetaField>, config?: import("@xylabs/object").TypeCheckConfig): TType;
59
+ };
20
60
  //# sourceMappingURL=FixedPrice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FixedPrice.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPrice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,sBAAsB,2CAAyC,CAAA;AAC5E,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,WAAW,sBAAuB,SAAQ,YAAY,EAAE,YAAY;CAAI;AAE9E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAA;AAEjG;;GAEG;AACH,eAAO,MAAM,kBAAkB,+CAAkE,CAAA;AAEjG;;GAEG;AACH,eAAO,MAAM,6BAA6B,iGAA6E,CAAA"}
1
+ {"version":3,"file":"FixedPrice.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPrice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAM5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,sBAAsB,2CAAyC,CAAA;AAC5E,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,WAAW,sBAAuB,SAAQ,YAAY,EAAE,YAAY;CAAI;AAE9E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,0BAA0B,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAA;AAEzG;;GAEG;AACH,eAAO,MAAM,kBAAkB,+CAAkE,CAAA;AACjG,eAAO,MAAM,kBAAkB;mDAlBd,sDAAiB,iCAC/B,gBAAoB;mDAGpB,sDAAiB,2GACmB,gBAAoB;CAaiB,CAAA;AAE5E;;EAEE;AACF,eAAO,MAAM,6BAA6B;;;;;;;;0DAA6E,CAAA;AACvH,eAAO,MAAM,6BAA6B;;;;;;;;;8EAxBzB,sDAAiB,iCAC/B,gBAAoB;;;;;;;;;8EAGpB,sDAAiB;;;;;;;;iFACmB,gBAAoB;CAmBuC,CAAA"}
@@ -7,8 +7,108 @@ export type Coupon = FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupo
7
7
  * Identity function for determining if an object is an Coupon
8
8
  */
9
9
  export declare const isCoupon: (x?: unknown | null) => x is FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
10
+ export declare const asCoupon: {
11
+ <TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
12
+ <TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
13
+ };
10
14
  /**
11
15
  * Identity function for determining if an object is an Coupon with sources
12
16
  */
13
- export declare const isCouponWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<FixedAmountCoupon> | import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon> | import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>;
17
+ export declare const isCouponWithSources: (x?: unknown | null) => x is (import("@xylabs/object").DeepRestrictToStringKeys<{
18
+ schema: "network.xyo.payments.coupon.fixed.amount";
19
+ conditions?: Lowercase<string>[] | undefined;
20
+ stackable?: boolean | undefined;
21
+ exp: number;
22
+ nbf: number;
23
+ amount: number;
24
+ currency: import("../../../index.ts").Iso4217AlphabeticalCode;
25
+ }> & import("@xyo-network/payload-model").SourcesMetaField) | (import("@xylabs/object").DeepRestrictToStringKeys<{
26
+ schema: "network.xyo.payments.coupon.fixed.percentage";
27
+ percentage: number;
28
+ conditions?: Lowercase<string>[] | undefined;
29
+ stackable?: boolean | undefined;
30
+ exp: number;
31
+ nbf: number;
32
+ }> & import("@xyo-network/payload-model").SourcesMetaField) | (import("@xylabs/object").DeepRestrictToStringKeys<{
33
+ schema: "network.xyo.payments.coupon.fixed.price";
34
+ conditions?: Lowercase<string>[] | undefined;
35
+ stackable?: boolean | undefined;
36
+ exp: number;
37
+ nbf: number;
38
+ amount: number;
39
+ currency: import("../../../index.ts").Iso4217AlphabeticalCode;
40
+ }> & import("@xyo-network/payload-model").SourcesMetaField);
41
+ export declare const asCouponWithSources: {
42
+ <TType extends (import("@xylabs/object").DeepRestrictToStringKeys<{
43
+ schema: "network.xyo.payments.coupon.fixed.amount";
44
+ conditions?: Lowercase<string>[] | undefined;
45
+ stackable?: boolean | undefined;
46
+ exp: number;
47
+ nbf: number;
48
+ amount: number;
49
+ currency: import("../../../index.ts").Iso4217AlphabeticalCode;
50
+ }> & import("@xyo-network/payload-model").SourcesMetaField) | (import("@xylabs/object").DeepRestrictToStringKeys<{
51
+ schema: "network.xyo.payments.coupon.fixed.percentage";
52
+ percentage: number;
53
+ conditions?: Lowercase<string>[] | undefined;
54
+ stackable?: boolean | undefined;
55
+ exp: number;
56
+ nbf: number;
57
+ }> & import("@xyo-network/payload-model").SourcesMetaField) | (import("@xylabs/object").DeepRestrictToStringKeys<{
58
+ schema: "network.xyo.payments.coupon.fixed.price";
59
+ conditions?: Lowercase<string>[] | undefined;
60
+ stackable?: boolean | undefined;
61
+ exp: number;
62
+ nbf: number;
63
+ amount: number;
64
+ currency: import("../../../index.ts").Iso4217AlphabeticalCode;
65
+ }> & import("@xyo-network/payload-model").SourcesMetaField)>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
66
+ <TType extends (import("@xylabs/object").DeepRestrictToStringKeys<{
67
+ schema: "network.xyo.payments.coupon.fixed.amount";
68
+ conditions?: Lowercase<string>[] | undefined;
69
+ stackable?: boolean | undefined;
70
+ exp: number;
71
+ nbf: number;
72
+ amount: number;
73
+ currency: import("../../../index.ts").Iso4217AlphabeticalCode;
74
+ }> & import("@xyo-network/payload-model").SourcesMetaField) | (import("@xylabs/object").DeepRestrictToStringKeys<{
75
+ schema: "network.xyo.payments.coupon.fixed.percentage";
76
+ percentage: number;
77
+ conditions?: Lowercase<string>[] | undefined;
78
+ stackable?: boolean | undefined;
79
+ exp: number;
80
+ nbf: number;
81
+ }> & import("@xyo-network/payload-model").SourcesMetaField) | (import("@xylabs/object").DeepRestrictToStringKeys<{
82
+ schema: "network.xyo.payments.coupon.fixed.price";
83
+ conditions?: Lowercase<string>[] | undefined;
84
+ stackable?: boolean | undefined;
85
+ exp: number;
86
+ nbf: number;
87
+ amount: number;
88
+ currency: import("../../../index.ts").Iso4217AlphabeticalCode;
89
+ }> & import("@xyo-network/payload-model").SourcesMetaField)>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<(import("@xylabs/object").DeepRestrictToStringKeys<{
90
+ schema: "network.xyo.payments.coupon.fixed.amount";
91
+ conditions?: Lowercase<string>[] | undefined;
92
+ stackable?: boolean | undefined;
93
+ exp: number;
94
+ nbf: number;
95
+ amount: number;
96
+ currency: import("../../../index.ts").Iso4217AlphabeticalCode;
97
+ }> & import("@xyo-network/payload-model").SourcesMetaField) | (import("@xylabs/object").DeepRestrictToStringKeys<{
98
+ schema: "network.xyo.payments.coupon.fixed.percentage";
99
+ percentage: number;
100
+ conditions?: Lowercase<string>[] | undefined;
101
+ stackable?: boolean | undefined;
102
+ exp: number;
103
+ nbf: number;
104
+ }> & import("@xyo-network/payload-model").SourcesMetaField) | (import("@xylabs/object").DeepRestrictToStringKeys<{
105
+ schema: "network.xyo.payments.coupon.fixed.price";
106
+ conditions?: Lowercase<string>[] | undefined;
107
+ stackable?: boolean | undefined;
108
+ exp: number;
109
+ nbf: number;
110
+ amount: number;
111
+ currency: import("../../../index.ts").Iso4217AlphabeticalCode;
112
+ }> & import("@xyo-network/payload-model").SourcesMetaField)>, config?: import("@xylabs/object").TypeCheckConfig): TType;
113
+ };
14
114
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAK1E,MAAM,oBAAoB,CAAA;AAE3B;;GAEG;AACH,MAAM,MAAM,MAAM,GAChB,iBAAiB,GACf,qBAAqB,GACrB,gBAAgB,CAAA;AAEpB;;GAEG;AACH,eAAO,MAAM,QAAQ,OAAQ,OAAO,GAAG,IAAI,sEAGjB,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,mBAAmB,OAAQ,OAAO,GAAG,IAAI,4NAGjB,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/Payload.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAK1E,MAAM,oBAAoB,CAAA;AAE3B;;GAEG;AACH,MAAM,MAAM,MAAM,GAChB,iBAAiB,GACf,qBAAqB,GACrB,gBAAgB,CAAA;AAEpB;;GAEG;AACH,eAAO,MAAM,QAAQ,OAAQ,OAAO,GAAG,IAAI,sEAGjB,CAAA;AAC1B,eAAO,MAAM,QAAQ;+FApBa,sDACrB,iCACW,gBACb;+FAMF,sDACH,uJAI4C,gBAE/C;CAIqD,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,mBAAmB,OAAQ,OAAO,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;2DAGjB,CAAA;AACrC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;+EA7BE,sDACrB,iCACW,gBACb;;;;;;;;;;;;;;;;;;;;;;;;+EAMF,sDACH;;;;;;;;;;;;;;;;;;;;;;;kFAI4C,gBAE/C;CAa2E,CAAA"}
@@ -1,4 +1,4 @@
1
- import { type SchemaPayload, SchemaSchema } from '@xyo-network/schema-payload-plugin';
1
+ import { type SchemaPayload } from '@xyo-network/schema-payload-plugin';
2
2
  /**
3
3
  * The payloads that can be used as conditions for a coupon
4
4
  */
@@ -6,25 +6,73 @@ export type Condition = SchemaPayload;
6
6
  /**
7
7
  * Identity function for determining if an object is a Condition payload
8
8
  */
9
- export declare const isCondition: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
9
+ export declare const isCondition: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
10
+ schema: "network.xyo.schema";
10
11
  definition: {
11
- [key: string]: unknown;
12
- $id?: string;
12
+ [x: string]: unknown;
13
13
  };
14
- extends?: string;
15
- name?: string;
16
- schema: SchemaSchema;
14
+ extends?: string | undefined;
15
+ name?: string | undefined;
16
+ }>;
17
+ export declare const asCondition: {
18
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
19
+ schema: "network.xyo.schema";
20
+ definition: {
21
+ [x: string]: unknown;
22
+ };
23
+ extends?: string | undefined;
24
+ name?: string | undefined;
25
+ }>>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
26
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
27
+ schema: "network.xyo.schema";
28
+ definition: {
29
+ [x: string]: unknown;
30
+ };
31
+ extends?: string | undefined;
32
+ name?: string | undefined;
33
+ }>>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
34
+ schema: "network.xyo.schema";
35
+ definition: {
36
+ [x: string]: unknown;
37
+ };
38
+ extends?: string | undefined;
39
+ name?: string | undefined;
40
+ }>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
17
41
  };
18
42
  /**
19
43
  * Identity function for determining if an object is a Condition payload with sources
20
- */
21
- export declare const isConditionWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
44
+ */
45
+ export declare const isConditionWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
46
+ schema: "network.xyo.schema";
22
47
  definition: {
23
- [key: string]: unknown;
24
- $id?: string;
48
+ [x: string]: unknown;
25
49
  };
26
- extends?: string;
27
- name?: string;
28
- schema: SchemaSchema;
29
- }>;
50
+ extends?: string | undefined;
51
+ name?: string | undefined;
52
+ }>>;
53
+ export declare const asConditionWithSources: {
54
+ <TType extends import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
55
+ schema: "network.xyo.schema";
56
+ definition: {
57
+ [x: string]: unknown;
58
+ };
59
+ extends?: string | undefined;
60
+ name?: string | undefined;
61
+ }>>>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
62
+ <TType extends import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
63
+ schema: "network.xyo.schema";
64
+ definition: {
65
+ [x: string]: unknown;
66
+ };
67
+ extends?: string | undefined;
68
+ name?: string | undefined;
69
+ }>>>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
70
+ schema: "network.xyo.schema";
71
+ definition: {
72
+ [x: string]: unknown;
73
+ };
74
+ extends?: string | undefined;
75
+ name?: string | undefined;
76
+ }>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
77
+ };
30
78
  //# sourceMappingURL=Condition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/Condition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AAErF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAA;AAErC;;GAEG;AACH,eAAO,MAAM,WAAW;;;WAP+B,CAAC;;;;;CAOiB,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;WAZoB,CAAC;;;;;EAYuC,CAAA"}
1
+ {"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/Condition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,oCAAoC,CAAA;AAErF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAA;AAErC;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;EAAiD,CAAA;AACzE,eAAO,MAAM,WAAW;;;;;;;;sBARf,sDAAiB,iCACzB,gBACc;;;;;;;;sBAGoC,sDAAiB;;;;;;;yBAGvD,gBAAoB;CAA6B,CAAA;AAE9D;;EAEE;AACF,eAAO,MAAM,sBAAsB;;;;;;;GAA4D,CAAA;AAC/F,eAAO,MAAM,sBAAsB;;;;;;;;uBAd1B,sDAAiB,iCACzB,gBACc;;;;;;;;uBAGoC,sDAAiB;;;;;;;0BAGvD,gBAAoB;CAMmD,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { PayloadWithSources } from '@xyo-network/payload-model';
1
+ import type { PayloadWithOptionalSources } from '@xyo-network/payload-model';
2
2
  import type { AmountFields } from '../../Amount/index.ts';
3
3
  export declare const DiscountSchema: "network.xyo.payments.discount";
4
4
  export type DiscountSchema = typeof DiscountSchema;
@@ -7,7 +7,7 @@ export interface DiscountFields extends AmountFields {
7
7
  /**
8
8
  * The result of a discount
9
9
  */
10
- export type Discount = PayloadWithSources<DiscountFields, DiscountSchema>;
10
+ export type Discount = PayloadWithOptionalSources<DiscountFields, DiscountSchema>;
11
11
  /**
12
12
  * Identity function for determining if an object is an Discount
13
13
  */
@@ -15,5 +15,9 @@ export declare const isDiscount: (x?: unknown | null) => x is Discount;
15
15
  /**
16
16
  * Identity function for determining if an object is an Discount with sources
17
17
  */
18
- export declare const isDiscountWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Discount>;
18
+ export declare const isDiscountWithSources: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
19
+ schema: "network.xyo.payments.discount";
20
+ amount: number;
21
+ currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
22
+ }> & import("@xyo-network/payload-model").SourcesMetaField;
19
23
  //# sourceMappingURL=Discount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/Discount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,cAAc,EAAG,+BAAwC,CAAA;AACtE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA;AAElD,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAI;AAExD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,CAAA"}
1
+ {"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/Discount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAM5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,cAAc,EAAG,+BAAwC,CAAA;AACtE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA;AAElD,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAI;AAExD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,0BAA0B,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;0DAA6D,CAAA"}
@@ -59,13 +59,37 @@ export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>
59
59
  /**
60
60
  * Identity function for determining if an object is an EscrowTerms
61
61
  */
62
- export declare const isEscrowTerms: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
62
+ export declare const isEscrowTerms: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
63
63
  schema: "network.xyo.escrow.terms";
64
- };
64
+ appraisalAuthorities?: Lowercase<string>[] | undefined;
65
+ appraisals?: Lowercase<string>[] | undefined;
66
+ assets?: Lowercase<string>[] | undefined;
67
+ buyer?: Lowercase<string>[] | undefined;
68
+ buyerSecret?: Lowercase<string> | undefined;
69
+ discounts?: Lowercase<string>[] | undefined;
70
+ escrowAgent?: Lowercase<string> | undefined;
71
+ exp?: number | undefined;
72
+ nbf?: number | undefined;
73
+ paymentAuthorities?: Lowercase<string>[] | undefined;
74
+ seller?: Lowercase<string>[] | undefined;
75
+ sellerSecret?: Lowercase<string> | undefined;
76
+ }>;
65
77
  /**
66
78
  * Identity function for determining if an object is an EscrowTerms with sources
67
79
  */
68
- 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> & {
80
+ export declare const isEscrowTermsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
69
81
  schema: "network.xyo.escrow.terms";
70
- }>;
82
+ appraisalAuthorities?: Lowercase<string>[] | undefined;
83
+ appraisals?: Lowercase<string>[] | undefined;
84
+ assets?: Lowercase<string>[] | undefined;
85
+ buyer?: Lowercase<string>[] | undefined;
86
+ buyerSecret?: Lowercase<string> | undefined;
87
+ discounts?: Lowercase<string>[] | undefined;
88
+ escrowAgent?: Lowercase<string> | undefined;
89
+ exp?: number | undefined;
90
+ nbf?: number | undefined;
91
+ paymentAuthorities?: Lowercase<string>[] | undefined;
92
+ seller?: Lowercase<string>[] | undefined;
93
+ sellerSecret?: Lowercase<string> | undefined;
94
+ }>>;
71
95
  //# sourceMappingURL=Terms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,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,SAAS,EAAE,IAAI,EAAE,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"}
1
+ {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,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,SAAS,EAAE,IAAI,EAAE,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;;;;;;;;;;;;;;EAAwD,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;GAAmE,CAAA"}