@xyo-network/payment-payload-plugins 7.0.1 → 7.0.2
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/neutral/Amount/Payload.d.ts +2 -2
- package/dist/neutral/Billing/Address/Address.d.ts +2 -2
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +9 -9
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +9 -9
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +9 -9
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +20 -20
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +2 -2
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +1 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts +2 -2
- package/dist/neutral/Escrow/Outcome.d.ts +9 -9
- package/dist/neutral/Escrow/Terms/Terms.d.ts +37 -37
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +1 -1
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +1 -1
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +5 -5
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +1 -1
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +5 -5
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +1 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -1
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +2 -2
- package/dist/neutral/Payment/Payload.d.ts +2 -2
- package/dist/neutral/Payment/Status/Payload.d.ts +2 -2
- package/dist/neutral/Purchase/Payload.d.ts +16 -16
- package/dist/neutral/Receipt/Payload.d.ts +2 -2
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts +2 -2
- package/dist/neutral/Total/Diviner/Payload.d.ts +2 -2
- package/dist/neutral/index.mjs +24 -24
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +13 -13
|
@@ -41,7 +41,7 @@ export declare const asAmount: {
|
|
|
41
41
|
amount: number;
|
|
42
42
|
currency: Iso4217AlphabeticalCode;
|
|
43
43
|
}) | undefined;
|
|
44
|
-
<T>(value: T, assert: import("@
|
|
44
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
45
45
|
schema: "network.xyo.payments.amount" & {
|
|
46
46
|
readonly __schema: true;
|
|
47
47
|
};
|
|
@@ -57,7 +57,7 @@ export declare const toAmount: {
|
|
|
57
57
|
amount: number;
|
|
58
58
|
currency: Iso4217AlphabeticalCode;
|
|
59
59
|
}) | undefined;
|
|
60
|
-
<T>(value: T, assert: import("@
|
|
60
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
61
61
|
schema: "network.xyo.payments.amount" & {
|
|
62
62
|
readonly __schema: true;
|
|
63
63
|
};
|
|
@@ -64,7 +64,7 @@ export declare const asBillingAddress: {
|
|
|
64
64
|
postalCode?: string | undefined;
|
|
65
65
|
region?: string | undefined;
|
|
66
66
|
}) | undefined;
|
|
67
|
-
<T>(value: T, assert: import("@
|
|
67
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
68
68
|
schema: string & {
|
|
69
69
|
readonly __schema: true;
|
|
70
70
|
};
|
|
@@ -94,7 +94,7 @@ export declare const toBillingAddress: {
|
|
|
94
94
|
postalCode?: string | undefined;
|
|
95
95
|
region?: string | undefined;
|
|
96
96
|
}) | undefined;
|
|
97
|
-
<T>(value: T, assert: import("@
|
|
97
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
98
98
|
schema: string & {
|
|
99
99
|
readonly __schema: true;
|
|
100
100
|
};
|
|
@@ -6,7 +6,7 @@ export type FixedAmountCouponSchema = typeof FixedAmountCouponSchema;
|
|
|
6
6
|
export declare const FixedAmountCouponFieldsZod: z.ZodMiniObject<{
|
|
7
7
|
amount: z.ZodMiniNumber<number>;
|
|
8
8
|
currency: z.ZodMiniCustom<import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
|
|
9
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
9
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
10
10
|
exp: z.ZodMiniNumber<number>;
|
|
11
11
|
nbf: z.ZodMiniNumber<number>;
|
|
12
12
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -21,7 +21,7 @@ export declare const FixedAmountCouponZod: z.ZodMiniObject<{
|
|
|
21
21
|
}>;
|
|
22
22
|
amount: z.ZodMiniNumber<number>;
|
|
23
23
|
currency: z.ZodMiniCustom<import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
|
|
24
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
24
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
25
25
|
exp: z.ZodMiniNumber<number>;
|
|
26
26
|
nbf: z.ZodMiniNumber<number>;
|
|
27
27
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -38,7 +38,7 @@ export declare const isFixedAmountCoupon: <T>(value: T) => value is T & {
|
|
|
38
38
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
39
39
|
exp: number;
|
|
40
40
|
nbf: number;
|
|
41
|
-
conditions?: import("@
|
|
41
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
42
42
|
stackable?: boolean | undefined;
|
|
43
43
|
};
|
|
44
44
|
export declare const asFixedAmountCoupon: {
|
|
@@ -50,10 +50,10 @@ export declare const asFixedAmountCoupon: {
|
|
|
50
50
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
51
51
|
exp: number;
|
|
52
52
|
nbf: number;
|
|
53
|
-
conditions?: import("@
|
|
53
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
54
54
|
stackable?: boolean | undefined;
|
|
55
55
|
}) | undefined;
|
|
56
|
-
<T>(value: T, assert: import("@
|
|
56
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
57
57
|
schema: string & {
|
|
58
58
|
readonly __schema: true;
|
|
59
59
|
};
|
|
@@ -61,7 +61,7 @@ export declare const asFixedAmountCoupon: {
|
|
|
61
61
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
62
62
|
exp: number;
|
|
63
63
|
nbf: number;
|
|
64
|
-
conditions?: import("@
|
|
64
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
65
65
|
stackable?: boolean | undefined;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
@@ -74,10 +74,10 @@ export declare const toFixedAmountCoupon: {
|
|
|
74
74
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
75
75
|
exp: number;
|
|
76
76
|
nbf: number;
|
|
77
|
-
conditions?: import("@
|
|
77
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
78
78
|
stackable?: boolean | undefined;
|
|
79
79
|
}) | undefined;
|
|
80
|
-
<T>(value: T, assert: import("@
|
|
80
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
81
81
|
schema: string & {
|
|
82
82
|
readonly __schema: true;
|
|
83
83
|
};
|
|
@@ -85,7 +85,7 @@ export declare const toFixedAmountCoupon: {
|
|
|
85
85
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
86
86
|
exp: number;
|
|
87
87
|
nbf: number;
|
|
88
|
-
conditions?: import("@
|
|
88
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
89
89
|
stackable?: boolean | undefined;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
@@ -5,7 +5,7 @@ export declare const FixedPercentageCouponSchema: string & {
|
|
|
5
5
|
export type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema;
|
|
6
6
|
export declare const FixedPercentageCouponFieldsZod: z.ZodMiniObject<{
|
|
7
7
|
percentage: z.ZodMiniNumber<number>;
|
|
8
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
8
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
9
9
|
exp: z.ZodMiniNumber<number>;
|
|
10
10
|
nbf: z.ZodMiniNumber<number>;
|
|
11
11
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -19,7 +19,7 @@ export declare const FixedPercentageCouponZod: z.ZodMiniObject<{
|
|
|
19
19
|
readonly __schema: true;
|
|
20
20
|
}>;
|
|
21
21
|
percentage: z.ZodMiniNumber<number>;
|
|
22
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
22
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
23
23
|
exp: z.ZodMiniNumber<number>;
|
|
24
24
|
nbf: z.ZodMiniNumber<number>;
|
|
25
25
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -35,7 +35,7 @@ export declare const isFixedPercentageCoupon: <T>(value: T) => value is T & {
|
|
|
35
35
|
percentage: number;
|
|
36
36
|
exp: number;
|
|
37
37
|
nbf: number;
|
|
38
|
-
conditions?: import("@
|
|
38
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
39
39
|
stackable?: boolean | undefined;
|
|
40
40
|
};
|
|
41
41
|
export declare const asFixedPercentageCoupon: {
|
|
@@ -46,17 +46,17 @@ export declare const asFixedPercentageCoupon: {
|
|
|
46
46
|
percentage: number;
|
|
47
47
|
exp: number;
|
|
48
48
|
nbf: number;
|
|
49
|
-
conditions?: import("@
|
|
49
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
50
50
|
stackable?: boolean | undefined;
|
|
51
51
|
}) | undefined;
|
|
52
|
-
<T>(value: T, assert: import("@
|
|
52
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
53
53
|
schema: string & {
|
|
54
54
|
readonly __schema: true;
|
|
55
55
|
};
|
|
56
56
|
percentage: number;
|
|
57
57
|
exp: number;
|
|
58
58
|
nbf: number;
|
|
59
|
-
conditions?: import("@
|
|
59
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
60
60
|
stackable?: boolean | undefined;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
@@ -68,17 +68,17 @@ export declare const toFixedPercentageCoupon: {
|
|
|
68
68
|
percentage: number;
|
|
69
69
|
exp: number;
|
|
70
70
|
nbf: number;
|
|
71
|
-
conditions?: import("@
|
|
71
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
72
72
|
stackable?: boolean | undefined;
|
|
73
73
|
}) | undefined;
|
|
74
|
-
<T>(value: T, assert: import("@
|
|
74
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
75
75
|
schema: string & {
|
|
76
76
|
readonly __schema: true;
|
|
77
77
|
};
|
|
78
78
|
percentage: number;
|
|
79
79
|
exp: number;
|
|
80
80
|
nbf: number;
|
|
81
|
-
conditions?: import("@
|
|
81
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
82
82
|
stackable?: boolean | undefined;
|
|
83
83
|
};
|
|
84
84
|
};
|
|
@@ -6,7 +6,7 @@ export type FixedPriceCouponSchema = typeof FixedPriceCouponSchema;
|
|
|
6
6
|
export declare const FixedPriceCouponFieldsZod: z.ZodMiniObject<{
|
|
7
7
|
amount: z.ZodMiniNumber<number>;
|
|
8
8
|
currency: z.ZodMiniCustom<import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
|
|
9
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
9
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
10
10
|
exp: z.ZodMiniNumber<number>;
|
|
11
11
|
nbf: z.ZodMiniNumber<number>;
|
|
12
12
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -21,7 +21,7 @@ export declare const FixedPriceCouponZod: z.ZodMiniObject<{
|
|
|
21
21
|
}>;
|
|
22
22
|
amount: z.ZodMiniNumber<number>;
|
|
23
23
|
currency: z.ZodMiniCustom<import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
|
|
24
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
24
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
25
25
|
exp: z.ZodMiniNumber<number>;
|
|
26
26
|
nbf: z.ZodMiniNumber<number>;
|
|
27
27
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -38,7 +38,7 @@ export declare const isFixedPriceCoupon: <T>(value: T) => value is T & {
|
|
|
38
38
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
39
39
|
exp: number;
|
|
40
40
|
nbf: number;
|
|
41
|
-
conditions?: import("@
|
|
41
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
42
42
|
stackable?: boolean | undefined;
|
|
43
43
|
};
|
|
44
44
|
export declare const asFixedPriceCoupon: {
|
|
@@ -50,10 +50,10 @@ export declare const asFixedPriceCoupon: {
|
|
|
50
50
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
51
51
|
exp: number;
|
|
52
52
|
nbf: number;
|
|
53
|
-
conditions?: import("@
|
|
53
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
54
54
|
stackable?: boolean | undefined;
|
|
55
55
|
}) | undefined;
|
|
56
|
-
<T>(value: T, assert: import("@
|
|
56
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
57
57
|
schema: string & {
|
|
58
58
|
readonly __schema: true;
|
|
59
59
|
};
|
|
@@ -61,7 +61,7 @@ export declare const asFixedPriceCoupon: {
|
|
|
61
61
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
62
62
|
exp: number;
|
|
63
63
|
nbf: number;
|
|
64
|
-
conditions?: import("@
|
|
64
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
65
65
|
stackable?: boolean | undefined;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
@@ -74,10 +74,10 @@ export declare const toFixedPriceCoupon: {
|
|
|
74
74
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
75
75
|
exp: number;
|
|
76
76
|
nbf: number;
|
|
77
|
-
conditions?: import("@
|
|
77
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
78
78
|
stackable?: boolean | undefined;
|
|
79
79
|
}) | undefined;
|
|
80
|
-
<T>(value: T, assert: import("@
|
|
80
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
81
81
|
schema: string & {
|
|
82
82
|
readonly __schema: true;
|
|
83
83
|
};
|
|
@@ -85,7 +85,7 @@ export declare const toFixedPriceCoupon: {
|
|
|
85
85
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
86
86
|
exp: number;
|
|
87
87
|
nbf: number;
|
|
88
|
-
conditions?: import("@
|
|
88
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
89
89
|
stackable?: boolean | undefined;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
@@ -8,7 +8,7 @@ export declare const CouponZod: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
8
8
|
}>;
|
|
9
9
|
amount: z.ZodMiniNumber<number>;
|
|
10
10
|
currency: z.ZodMiniCustom<import("../../../index.ts").Iso4217AlphabeticalCode, import("../../../index.ts").Iso4217AlphabeticalCode>;
|
|
11
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
11
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
12
12
|
exp: z.ZodMiniNumber<number>;
|
|
13
13
|
nbf: z.ZodMiniNumber<number>;
|
|
14
14
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -17,7 +17,7 @@ export declare const CouponZod: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
17
17
|
readonly __schema: true;
|
|
18
18
|
}>;
|
|
19
19
|
percentage: z.ZodMiniNumber<number>;
|
|
20
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
20
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
21
21
|
exp: z.ZodMiniNumber<number>;
|
|
22
22
|
nbf: z.ZodMiniNumber<number>;
|
|
23
23
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -27,7 +27,7 @@ export declare const CouponZod: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
27
27
|
}>;
|
|
28
28
|
amount: z.ZodMiniNumber<number>;
|
|
29
29
|
currency: z.ZodMiniCustom<import("../../../index.ts").Iso4217AlphabeticalCode, import("../../../index.ts").Iso4217AlphabeticalCode>;
|
|
30
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
30
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
31
31
|
exp: z.ZodMiniNumber<number>;
|
|
32
32
|
nbf: z.ZodMiniNumber<number>;
|
|
33
33
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -44,7 +44,7 @@ export declare const isCoupon: <T>(value: T) => value is T & ({
|
|
|
44
44
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
45
45
|
exp: number;
|
|
46
46
|
nbf: number;
|
|
47
|
-
conditions?: import("@
|
|
47
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
48
48
|
stackable?: boolean | undefined;
|
|
49
49
|
} | {
|
|
50
50
|
schema: string & {
|
|
@@ -53,7 +53,7 @@ export declare const isCoupon: <T>(value: T) => value is T & ({
|
|
|
53
53
|
percentage: number;
|
|
54
54
|
exp: number;
|
|
55
55
|
nbf: number;
|
|
56
|
-
conditions?: import("@
|
|
56
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
57
57
|
stackable?: boolean | undefined;
|
|
58
58
|
} | {
|
|
59
59
|
schema: string & {
|
|
@@ -63,7 +63,7 @@ export declare const isCoupon: <T>(value: T) => value is T & ({
|
|
|
63
63
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
64
64
|
exp: number;
|
|
65
65
|
nbf: number;
|
|
66
|
-
conditions?: import("@
|
|
66
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
67
67
|
stackable?: boolean | undefined;
|
|
68
68
|
});
|
|
69
69
|
export declare const asCoupon: {
|
|
@@ -75,7 +75,7 @@ export declare const asCoupon: {
|
|
|
75
75
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
76
76
|
exp: number;
|
|
77
77
|
nbf: number;
|
|
78
|
-
conditions?: import("@
|
|
78
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
79
79
|
stackable?: boolean | undefined;
|
|
80
80
|
} | {
|
|
81
81
|
schema: string & {
|
|
@@ -84,7 +84,7 @@ export declare const asCoupon: {
|
|
|
84
84
|
percentage: number;
|
|
85
85
|
exp: number;
|
|
86
86
|
nbf: number;
|
|
87
|
-
conditions?: import("@
|
|
87
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
88
88
|
stackable?: boolean | undefined;
|
|
89
89
|
} | {
|
|
90
90
|
schema: string & {
|
|
@@ -94,10 +94,10 @@ export declare const asCoupon: {
|
|
|
94
94
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
95
95
|
exp: number;
|
|
96
96
|
nbf: number;
|
|
97
|
-
conditions?: import("@
|
|
97
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
98
98
|
stackable?: boolean | undefined;
|
|
99
99
|
})) | undefined;
|
|
100
|
-
<T>(value: T, assert: import("@
|
|
100
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & ({
|
|
101
101
|
schema: string & {
|
|
102
102
|
readonly __schema: true;
|
|
103
103
|
};
|
|
@@ -105,7 +105,7 @@ export declare const asCoupon: {
|
|
|
105
105
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
106
106
|
exp: number;
|
|
107
107
|
nbf: number;
|
|
108
|
-
conditions?: import("@
|
|
108
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
109
109
|
stackable?: boolean | undefined;
|
|
110
110
|
} | {
|
|
111
111
|
schema: string & {
|
|
@@ -114,7 +114,7 @@ export declare const asCoupon: {
|
|
|
114
114
|
percentage: number;
|
|
115
115
|
exp: number;
|
|
116
116
|
nbf: number;
|
|
117
|
-
conditions?: import("@
|
|
117
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
118
118
|
stackable?: boolean | undefined;
|
|
119
119
|
} | {
|
|
120
120
|
schema: string & {
|
|
@@ -124,7 +124,7 @@ export declare const asCoupon: {
|
|
|
124
124
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
125
125
|
exp: number;
|
|
126
126
|
nbf: number;
|
|
127
|
-
conditions?: import("@
|
|
127
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
128
128
|
stackable?: boolean | undefined;
|
|
129
129
|
});
|
|
130
130
|
};
|
|
@@ -137,7 +137,7 @@ export declare const toCoupon: {
|
|
|
137
137
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
138
138
|
exp: number;
|
|
139
139
|
nbf: number;
|
|
140
|
-
conditions?: import("@
|
|
140
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
141
141
|
stackable?: boolean | undefined;
|
|
142
142
|
} | {
|
|
143
143
|
schema: string & {
|
|
@@ -146,7 +146,7 @@ export declare const toCoupon: {
|
|
|
146
146
|
percentage: number;
|
|
147
147
|
exp: number;
|
|
148
148
|
nbf: number;
|
|
149
|
-
conditions?: import("@
|
|
149
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
150
150
|
stackable?: boolean | undefined;
|
|
151
151
|
} | {
|
|
152
152
|
schema: string & {
|
|
@@ -156,10 +156,10 @@ export declare const toCoupon: {
|
|
|
156
156
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
157
157
|
exp: number;
|
|
158
158
|
nbf: number;
|
|
159
|
-
conditions?: import("@
|
|
159
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
160
160
|
stackable?: boolean | undefined;
|
|
161
161
|
})) | undefined;
|
|
162
|
-
<T>(value: T, assert: import("@
|
|
162
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & ({
|
|
163
163
|
schema: string & {
|
|
164
164
|
readonly __schema: true;
|
|
165
165
|
};
|
|
@@ -167,7 +167,7 @@ export declare const toCoupon: {
|
|
|
167
167
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
168
168
|
exp: number;
|
|
169
169
|
nbf: number;
|
|
170
|
-
conditions?: import("@
|
|
170
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
171
171
|
stackable?: boolean | undefined;
|
|
172
172
|
} | {
|
|
173
173
|
schema: string & {
|
|
@@ -176,7 +176,7 @@ export declare const toCoupon: {
|
|
|
176
176
|
percentage: number;
|
|
177
177
|
exp: number;
|
|
178
178
|
nbf: number;
|
|
179
|
-
conditions?: import("@
|
|
179
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
180
180
|
stackable?: boolean | undefined;
|
|
181
181
|
} | {
|
|
182
182
|
schema: string & {
|
|
@@ -186,7 +186,7 @@ export declare const toCoupon: {
|
|
|
186
186
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
187
187
|
exp: number;
|
|
188
188
|
nbf: number;
|
|
189
|
-
conditions?: import("@
|
|
189
|
+
conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
190
190
|
stackable?: boolean | undefined;
|
|
191
191
|
});
|
|
192
192
|
};
|
|
@@ -58,7 +58,7 @@ export declare const asCondition: {
|
|
|
58
58
|
name?: string | undefined;
|
|
59
59
|
version?: number | undefined;
|
|
60
60
|
}) | undefined;
|
|
61
|
-
<T>(value: T, assert: import("@
|
|
61
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
62
62
|
schema: "network.xyo.schema" & {
|
|
63
63
|
readonly __schema: true;
|
|
64
64
|
};
|
|
@@ -84,7 +84,7 @@ export declare const toCondition: {
|
|
|
84
84
|
name?: string | undefined;
|
|
85
85
|
version?: number | undefined;
|
|
86
86
|
}) | undefined;
|
|
87
|
-
<T>(value: T, assert: import("@
|
|
87
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
88
88
|
schema: "network.xyo.schema" & {
|
|
89
89
|
readonly __schema: true;
|
|
90
90
|
};
|
|
@@ -3,7 +3,7 @@ import * as z from 'zod/mini';
|
|
|
3
3
|
* The fields that are common across all coupons
|
|
4
4
|
*/
|
|
5
5
|
export declare const CouponFieldsZod: z.ZodMiniObject<{
|
|
6
|
-
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
6
|
+
conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
7
7
|
exp: z.ZodMiniNumber<number>;
|
|
8
8
|
nbf: z.ZodMiniNumber<number>;
|
|
9
9
|
stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -37,7 +37,7 @@ export declare const asDiscount: {
|
|
|
37
37
|
amount: number;
|
|
38
38
|
currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
39
39
|
}) | undefined;
|
|
40
|
-
<T>(value: T, assert: import("@
|
|
40
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
41
41
|
schema: "network.xyo.payments.discount" & {
|
|
42
42
|
readonly __schema: true;
|
|
43
43
|
};
|
|
@@ -53,7 +53,7 @@ export declare const toDiscount: {
|
|
|
53
53
|
amount: number;
|
|
54
54
|
currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
55
55
|
}) | undefined;
|
|
56
|
-
<T>(value: T, assert: import("@
|
|
56
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
57
57
|
schema: "network.xyo.payments.discount" & {
|
|
58
58
|
readonly __schema: true;
|
|
59
59
|
};
|
|
@@ -16,7 +16,7 @@ export declare const EscrowOutcomeFieldsZod: z.ZodMiniObject<{
|
|
|
16
16
|
fulfilled: "fulfilled";
|
|
17
17
|
expired: "expired";
|
|
18
18
|
}>;
|
|
19
|
-
terms: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
19
|
+
terms: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export type EscrowOutcomeFields = z.infer<typeof EscrowOutcomeFieldsZod>;
|
|
22
22
|
/**
|
|
@@ -30,7 +30,7 @@ export declare const EscrowOutcomeZod: z.ZodMiniObject<{
|
|
|
30
30
|
fulfilled: "fulfilled";
|
|
31
31
|
expired: "expired";
|
|
32
32
|
}>;
|
|
33
|
-
terms: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@
|
|
33
|
+
terms: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
export type EscrowOutcome = z.infer<typeof EscrowOutcomeZod>;
|
|
36
36
|
/**
|
|
@@ -41,7 +41,7 @@ export declare const isEscrowOutcome: <T>(value: T) => value is T & {
|
|
|
41
41
|
readonly __schema: true;
|
|
42
42
|
};
|
|
43
43
|
outcome: "fulfilled" | "expired";
|
|
44
|
-
terms: import("@
|
|
44
|
+
terms: import("@ariestools/sdk").BrandedHash;
|
|
45
45
|
};
|
|
46
46
|
export declare const asEscrowOutcome: {
|
|
47
47
|
<T>(value: T): (T & {
|
|
@@ -49,14 +49,14 @@ export declare const asEscrowOutcome: {
|
|
|
49
49
|
readonly __schema: true;
|
|
50
50
|
};
|
|
51
51
|
outcome: "fulfilled" | "expired";
|
|
52
|
-
terms: import("@
|
|
52
|
+
terms: import("@ariestools/sdk").BrandedHash;
|
|
53
53
|
}) | undefined;
|
|
54
|
-
<T>(value: T, assert: import("@
|
|
54
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
55
55
|
schema: string & {
|
|
56
56
|
readonly __schema: true;
|
|
57
57
|
};
|
|
58
58
|
outcome: "fulfilled" | "expired";
|
|
59
|
-
terms: import("@
|
|
59
|
+
terms: import("@ariestools/sdk").BrandedHash;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
export declare const toEscrowOutcome: {
|
|
@@ -65,14 +65,14 @@ export declare const toEscrowOutcome: {
|
|
|
65
65
|
readonly __schema: true;
|
|
66
66
|
};
|
|
67
67
|
outcome: "fulfilled" | "expired";
|
|
68
|
-
terms: import("@
|
|
68
|
+
terms: import("@ariestools/sdk").BrandedHash;
|
|
69
69
|
}) | undefined;
|
|
70
|
-
<T>(value: T, assert: import("@
|
|
70
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
71
71
|
schema: string & {
|
|
72
72
|
readonly __schema: true;
|
|
73
73
|
};
|
|
74
74
|
outcome: "fulfilled" | "expired";
|
|
75
|
-
terms: import("@
|
|
75
|
+
terms: import("@ariestools/sdk").BrandedHash;
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
//# sourceMappingURL=Outcome.d.ts.map
|