@xyo-network/payment-payload-plugins 3.2.0 → 3.2.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 +12 -2
- package/dist/neutral/Amount/Payload.d.ts.map +1 -1
- package/dist/neutral/Billing/Address/Address.d.ts +196 -2
- package/dist/neutral/Billing/Address/Address.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +13 -3
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +12 -3
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +13 -3
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +15 -15
- package/dist/neutral/Discount/Payload/Discount.d.ts +26 -0
- package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -1
- package/dist/neutral/Escrow/Outcome.d.ts +9 -2
- package/dist/neutral/Escrow/Outcome.d.ts.map +1 -1
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +100 -2
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Status/Payload.d.ts +12 -2
- package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -1
- package/dist/neutral/Purchase/Payload.d.ts +12 -2
- package/dist/neutral/Purchase/Payload.d.ts.map +1 -1
- package/dist/neutral/Receipt/Payload.d.ts +12 -2
- package/dist/neutral/Receipt/Payload.d.ts.map +1 -1
- package/dist/neutral/index.mjs +104 -20
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/Amount/Payload.ts +6 -1
- package/src/Billing/Address/Address.ts +6 -1
- package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +6 -4
- package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +8 -4
- package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +6 -4
- package/src/Discount/Payload/Discount.ts +6 -1
- package/src/Escrow/Outcome.ts +6 -1
- package/src/Payment/Instrument/Card/Payload.ts +6 -1
- package/src/Payment/Status/Payload.ts +6 -1
- package/src/Purchase/Payload.ts +6 -1
- package/src/Receipt/Payload.ts +6 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PayloadWithSources } from '@xyo-network/payload-model';
|
|
1
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
2
|
import type { Iso4217AlphabeticalCode } from './Iso4217Currency.ts';
|
|
3
3
|
export declare const AmountSchema: "network.xyo.payments.amount";
|
|
4
4
|
export type AmountSchema = typeof AmountSchema;
|
|
@@ -14,8 +14,18 @@ export type Amount = PayloadWithSources<AmountFields, AmountSchema>;
|
|
|
14
14
|
* Identity function for determining if an object is an Amount
|
|
15
15
|
*/
|
|
16
16
|
export declare const isAmount: (x?: unknown | null) => x is Amount;
|
|
17
|
+
export declare const asAmount: {
|
|
18
|
+
<TType extends Amount>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
19
|
+
<TType extends Amount>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Amount>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
20
|
+
};
|
|
21
|
+
export declare const asOptionalAmount: <TType extends Amount>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
17
22
|
/**
|
|
18
23
|
* Identity function for determining if an object is an Amount with sources
|
|
19
24
|
*/
|
|
20
|
-
export declare const isAmountWithSources: (x?: unknown | null) => x is
|
|
25
|
+
export declare const isAmountWithSources: (x?: unknown | null) => x is WithSources<Amount>;
|
|
26
|
+
export declare const asAmountWithSources: {
|
|
27
|
+
<TType extends WithSources<Amount>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
28
|
+
<TType extends WithSources<Amount>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Amount>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
29
|
+
};
|
|
30
|
+
export declare const asOptionalAmountWithSources: <TType extends WithSources<Amount>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
21
31
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Amount/Payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Amount/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEnE,eAAO,MAAM,YAAY,EAAG,6BAAsC,CAAA;AAClE,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA;AAE9C,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,uBAAuB,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,kBAAkB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,QAAQ,qCAA8C,CAAA;AACnE,eAAO,MAAM,QAAQ;yCAnBT,sDAAiB,iCAAiC,gBAEjD;yCACY,sDAAiB,iGAOxC,gBACgB;CAQ8C,CAAA;AAChE,eAAO,MAAM,gBAAgB,uCAJwB,sDAElD,qCAE6E,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,mBAAmB,kDAAyD,CAAA;AACzF,eAAO,MAAM,mBAAmB;sDA1BpB,sDAAiB,iCAAiC,gBAEjD;sDACY,sDAAiB,8GAOxC,gBACgB;CAeiF,CAAA;AACnG,eAAO,MAAM,2BAA2B,oDAXa,sDAElD,qCASgH,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/payload-model';
|
|
1
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
2
|
import { BillingAddressSchema } from './Schema.ts';
|
|
3
3
|
/**
|
|
4
4
|
* The fields describing a billing address.
|
|
@@ -54,10 +54,107 @@ export declare const isBillingAddress: (x?: unknown | null) => x is import("@xyl
|
|
|
54
54
|
| undefined;
|
|
55
55
|
region?: string | undefined;
|
|
56
56
|
}>;
|
|
57
|
+
export declare const asBillingAddress: {
|
|
58
|
+
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
59
|
+
schema: "network.xyo.payments.billing.address";
|
|
60
|
+
address?: string
|
|
61
|
+
/** Street address line 2. */
|
|
62
|
+
| undefined;
|
|
63
|
+
address2?: string | null
|
|
64
|
+
/** City of the billing address. */
|
|
65
|
+
| undefined;
|
|
66
|
+
city?: string
|
|
67
|
+
/** Country code of the billing address, ISO 3166-1 alpha-2 code. */
|
|
68
|
+
| undefined;
|
|
69
|
+
country?: string
|
|
70
|
+
/** First name */
|
|
71
|
+
| undefined;
|
|
72
|
+
firstName: string;
|
|
73
|
+
lastName: string;
|
|
74
|
+
organization?: string | null
|
|
75
|
+
/** Postal or ZIP code of the billing address. */
|
|
76
|
+
| undefined;
|
|
77
|
+
postalCode?: string
|
|
78
|
+
/** State or region of the billing address. */
|
|
79
|
+
| undefined;
|
|
80
|
+
region?: string | undefined;
|
|
81
|
+
}>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
82
|
+
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
83
|
+
schema: "network.xyo.payments.billing.address";
|
|
84
|
+
address?: string
|
|
85
|
+
/** Street address line 2. */
|
|
86
|
+
| undefined;
|
|
87
|
+
address2?: string | null
|
|
88
|
+
/** City of the billing address. */
|
|
89
|
+
| undefined;
|
|
90
|
+
city?: string
|
|
91
|
+
/** Country code of the billing address, ISO 3166-1 alpha-2 code. */
|
|
92
|
+
| undefined;
|
|
93
|
+
country?: string
|
|
94
|
+
/** First name */
|
|
95
|
+
| undefined;
|
|
96
|
+
firstName: string;
|
|
97
|
+
lastName: string;
|
|
98
|
+
organization?: string | null
|
|
99
|
+
/** Postal or ZIP code of the billing address. */
|
|
100
|
+
| undefined;
|
|
101
|
+
postalCode?: string
|
|
102
|
+
/** State or region of the billing address. */
|
|
103
|
+
| undefined;
|
|
104
|
+
region?: string | undefined;
|
|
105
|
+
}>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
106
|
+
schema: "network.xyo.payments.billing.address";
|
|
107
|
+
address?: string
|
|
108
|
+
/** Street address line 2. */
|
|
109
|
+
| undefined;
|
|
110
|
+
address2?: string | null
|
|
111
|
+
/** City of the billing address. */
|
|
112
|
+
| undefined;
|
|
113
|
+
city?: string
|
|
114
|
+
/** Country code of the billing address, ISO 3166-1 alpha-2 code. */
|
|
115
|
+
| undefined;
|
|
116
|
+
country?: string
|
|
117
|
+
/** First name */
|
|
118
|
+
| undefined;
|
|
119
|
+
firstName: string;
|
|
120
|
+
lastName: string;
|
|
121
|
+
organization?: string | null
|
|
122
|
+
/** Postal or ZIP code of the billing address. */
|
|
123
|
+
| undefined;
|
|
124
|
+
postalCode?: string
|
|
125
|
+
/** State or region of the billing address. */
|
|
126
|
+
| undefined;
|
|
127
|
+
region?: string | undefined;
|
|
128
|
+
}>>, config?: import("@xylabs/object" /** Country code of the billing address, ISO 3166-1 alpha-2 code. */).TypeCheckConfig): TType;
|
|
129
|
+
};
|
|
130
|
+
export declare const asOptionalBillingAddress: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
131
|
+
schema: "network.xyo.payments.billing.address";
|
|
132
|
+
address?: string
|
|
133
|
+
/** Street address line 2. */
|
|
134
|
+
| undefined;
|
|
135
|
+
address2?: string | null
|
|
136
|
+
/** City of the billing address. */
|
|
137
|
+
| undefined;
|
|
138
|
+
city?: string
|
|
139
|
+
/** Country code of the billing address, ISO 3166-1 alpha-2 code. */
|
|
140
|
+
| undefined;
|
|
141
|
+
country?: string
|
|
142
|
+
/** First name */
|
|
143
|
+
| undefined;
|
|
144
|
+
firstName: string;
|
|
145
|
+
lastName: string;
|
|
146
|
+
organization?: string | null
|
|
147
|
+
/** Postal or ZIP code of the billing address. */
|
|
148
|
+
| undefined;
|
|
149
|
+
postalCode?: string
|
|
150
|
+
/** State or region of the billing address. */
|
|
151
|
+
| undefined;
|
|
152
|
+
region?: string | undefined;
|
|
153
|
+
}>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
57
154
|
/**
|
|
58
155
|
* Identity function for determine if an object is a BillingAddress with sources
|
|
59
156
|
*/
|
|
60
|
-
export declare const isBillingAddressWithSources: (x?: unknown | null) => x is
|
|
157
|
+
export declare const isBillingAddressWithSources: (x?: unknown | null) => x is WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
61
158
|
schema: "network.xyo.payments.billing.address";
|
|
62
159
|
address?: string
|
|
63
160
|
/** Street address line 2. */
|
|
@@ -81,4 +178,101 @@ export declare const isBillingAddressWithSources: (x?: unknown | null) => x is i
|
|
|
81
178
|
| undefined;
|
|
82
179
|
region?: string | undefined;
|
|
83
180
|
}>>;
|
|
181
|
+
export declare const asBillingAddressWithSources: {
|
|
182
|
+
<TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
183
|
+
schema: "network.xyo.payments.billing.address";
|
|
184
|
+
address?: string
|
|
185
|
+
/** Street address line 2. */
|
|
186
|
+
| undefined;
|
|
187
|
+
address2?: string | null
|
|
188
|
+
/** City of the billing address. */
|
|
189
|
+
| undefined;
|
|
190
|
+
city?: string
|
|
191
|
+
/** Country code of the billing address, ISO 3166-1 alpha-2 code. */
|
|
192
|
+
| undefined;
|
|
193
|
+
country?: string
|
|
194
|
+
/** First name */
|
|
195
|
+
| undefined;
|
|
196
|
+
firstName: string;
|
|
197
|
+
lastName: string;
|
|
198
|
+
organization?: string | null
|
|
199
|
+
/** Postal or ZIP code of the billing address. */
|
|
200
|
+
| undefined;
|
|
201
|
+
postalCode?: string
|
|
202
|
+
/** State or region of the billing address. */
|
|
203
|
+
| undefined;
|
|
204
|
+
region?: string | undefined;
|
|
205
|
+
}>>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
206
|
+
<TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
207
|
+
schema: "network.xyo.payments.billing.address";
|
|
208
|
+
address?: string
|
|
209
|
+
/** Street address line 2. */
|
|
210
|
+
| undefined;
|
|
211
|
+
address2?: string | null
|
|
212
|
+
/** City of the billing address. */
|
|
213
|
+
| undefined;
|
|
214
|
+
city?: string
|
|
215
|
+
/** Country code of the billing address, ISO 3166-1 alpha-2 code. */
|
|
216
|
+
| undefined;
|
|
217
|
+
country?: string
|
|
218
|
+
/** First name */
|
|
219
|
+
| undefined;
|
|
220
|
+
firstName: string;
|
|
221
|
+
lastName: string;
|
|
222
|
+
organization?: string | null
|
|
223
|
+
/** Postal or ZIP code of the billing address. */
|
|
224
|
+
| undefined;
|
|
225
|
+
postalCode?: string
|
|
226
|
+
/** State or region of the billing address. */
|
|
227
|
+
| undefined;
|
|
228
|
+
region?: string | undefined;
|
|
229
|
+
}>>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
230
|
+
schema: "network.xyo.payments.billing.address";
|
|
231
|
+
address?: string
|
|
232
|
+
/** Street address line 2. */
|
|
233
|
+
| undefined;
|
|
234
|
+
address2?: string | null
|
|
235
|
+
/** City of the billing address. */
|
|
236
|
+
| undefined;
|
|
237
|
+
city?: string
|
|
238
|
+
/** Country code of the billing address, ISO 3166-1 alpha-2 code. */
|
|
239
|
+
| undefined;
|
|
240
|
+
country?: string
|
|
241
|
+
/** First name */
|
|
242
|
+
| undefined;
|
|
243
|
+
firstName: string;
|
|
244
|
+
lastName: string;
|
|
245
|
+
organization?: string | null
|
|
246
|
+
/** Postal or ZIP code of the billing address. */
|
|
247
|
+
| undefined;
|
|
248
|
+
postalCode?: string
|
|
249
|
+
/** State or region of the billing address. */
|
|
250
|
+
| undefined;
|
|
251
|
+
region?: string | undefined;
|
|
252
|
+
}>>>, config?: import("@xylabs/object" /** Country code of the billing address, ISO 3166-1 alpha-2 code. */).TypeCheckConfig): TType;
|
|
253
|
+
};
|
|
254
|
+
export declare const asOptionalBillingAddressWithSources: <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
255
|
+
schema: "network.xyo.payments.billing.address";
|
|
256
|
+
address?: string
|
|
257
|
+
/** Street address line 2. */
|
|
258
|
+
| undefined;
|
|
259
|
+
address2?: string | null
|
|
260
|
+
/** City of the billing address. */
|
|
261
|
+
| undefined;
|
|
262
|
+
city?: string
|
|
263
|
+
/** Country code of the billing address, ISO 3166-1 alpha-2 code. */
|
|
264
|
+
| undefined;
|
|
265
|
+
country?: string
|
|
266
|
+
/** First name */
|
|
267
|
+
| undefined;
|
|
268
|
+
firstName: string;
|
|
269
|
+
lastName: string;
|
|
270
|
+
organization?: string | null
|
|
271
|
+
/** Postal or ZIP code of the billing address. */
|
|
272
|
+
| undefined;
|
|
273
|
+
postalCode?: string
|
|
274
|
+
/** State or region of the billing address. */
|
|
275
|
+
| undefined;
|
|
276
|
+
region?: string | undefined;
|
|
277
|
+
}>>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
84
278
|
//# sourceMappingURL=Address.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../../src/Billing/Address/Address.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../../src/Billing/Address/Address.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PayloadWithOptionalSources } from '@xyo-network/payload-model';
|
|
1
|
+
import type { PayloadWithOptionalSources, WithSources } 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";
|
|
@@ -17,10 +17,11 @@ export declare const asFixedAmountCoupon: {
|
|
|
17
17
|
<TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
18
18
|
<TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedAmountCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
19
19
|
};
|
|
20
|
+
export declare const asOptionalFixedAmountCoupon: <TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
20
21
|
/**
|
|
21
22
|
* Identity function for determining if an object is an FixedAmountCoupon with sources
|
|
22
23
|
*/
|
|
23
|
-
export declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
24
|
+
export declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
24
25
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
25
26
|
conditions?: Lowercase<string>[] | undefined;
|
|
26
27
|
stackable?: boolean | undefined;
|
|
@@ -28,7 +29,7 @@ export declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x i
|
|
|
28
29
|
nbf: number;
|
|
29
30
|
amount: number;
|
|
30
31
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
31
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
32
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>;
|
|
32
33
|
export declare const asFixedAmountCouponWithSources: {
|
|
33
34
|
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
34
35
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
@@ -57,4 +58,13 @@ export declare const asFixedAmountCouponWithSources: {
|
|
|
57
58
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
58
59
|
}> & import("@xyo-network/payload-model").SourcesMetaField>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
59
60
|
};
|
|
61
|
+
export declare const asOptionalFixedAmountCouponWithSources: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
62
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
63
|
+
conditions?: Lowercase<string>[] | undefined;
|
|
64
|
+
stackable?: boolean | undefined;
|
|
65
|
+
exp: number;
|
|
66
|
+
nbf: number;
|
|
67
|
+
amount: number;
|
|
68
|
+
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
69
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
60
70
|
//# 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":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,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,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMzF,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;oDAlB5B,sDAAiB,iCAAiC,gBAC5C;oDACmC,sDAEtC,4GACiB,gBAAoB;CAaqD,CAAA;AACjG,eAAO,MAAM,2BAA2B,kDATZ,sDAAiB,qCASoE,CAAA;AAEjH;;EAEE;AACF,eAAO,MAAM,8BAA8B;;;;;;;;2DAA4F,CAAA;AACvI,eAAO,MAAM,8BAA8B;;;;;;;;;8EAzBvC,sDAAiB,iCAAiC,gBAC5C;;;;;;;;;8EACmC,sDAEtC;;;;;;;;iFACiB,gBAAoB;CAoBwF,CAAA;AACpI,eAAO,MAAM,sCAAsC;;;;;;;;0EAhBvB,sDAAiB,qCAgBuG,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Payload, PayloadWithOptionalSources } from '@xyo-network/payload-model';
|
|
1
|
+
import type { Payload, PayloadWithOptionalSources, WithSources } 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;
|
|
@@ -17,17 +17,18 @@ export declare const asFixedPercentageCoupon: {
|
|
|
17
17
|
<TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
18
18
|
<TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedPercentageCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
19
19
|
};
|
|
20
|
+
export declare const asOptionalFixedPercentageCoupon: <TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
20
21
|
/**
|
|
21
22
|
* Identity function for determining if an object is an FixedPercentageCoupon with sources
|
|
22
23
|
*/
|
|
23
|
-
export declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
24
|
+
export declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
24
25
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
25
26
|
percentage: number;
|
|
26
27
|
conditions?: Lowercase<string>[] | undefined;
|
|
27
28
|
stackable?: boolean | undefined;
|
|
28
29
|
exp: number;
|
|
29
30
|
nbf: number;
|
|
30
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
31
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>;
|
|
31
32
|
export declare const asFixedPercentageCouponWithSources: {
|
|
32
33
|
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
33
34
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
@@ -53,4 +54,12 @@ export declare const asFixedPercentageCouponWithSources: {
|
|
|
53
54
|
nbf: number;
|
|
54
55
|
}> & import("@xyo-network/payload-model").SourcesMetaField>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
55
56
|
};
|
|
57
|
+
export declare const asOptionalFixedPercentageCouponWithSources: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
58
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
59
|
+
percentage: number;
|
|
60
|
+
conditions?: Lowercase<string>[] | undefined;
|
|
61
|
+
stackable?: boolean | undefined;
|
|
62
|
+
exp: number;
|
|
63
|
+
nbf: number;
|
|
64
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
56
65
|
//# 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":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"FixedPercentage.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EAAE,0BAA0B,EAAE,WAAW,EACjD,MAAM,4BAA4B,CAAA;AAOnC,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;wDArBP,sDAEpB,iCAAiC,gBACxB;wDAEyB,sDAAgB,gHACS,gBAE1D;CAamG,CAAA;AAC7G,eAAO,MAAM,+BAA+B,sDAR1C,sDACa,qCAO8G,CAAA;AAE7H;;EAEE;AACF,eAAO,MAAM,kCAAkC;;gBAlBjC,MAAM;;;;;2DAkB+H,CAAA;AACnJ,eAAO,MAAM,kCAAkC;;;oBAnBjC,MAAM;;;;;8EATS,sDAEpB,iCAAiC,gBACxB;;;oBAMJ,MAAM;;;;;8EAJuB,sDAAgB;;oBAI7C,MAAM;;;;;iFAHgD,gBAE1D;CAoBsI,CAAA;AAChJ,eAAO,MAAM,0CAA0C;;gBApBzC,MAAM;;;;;0EAKlB,sDACa,qCAciJ,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PayloadWithOptionalSources } from '@xyo-network/payload-model';
|
|
1
|
+
import type { PayloadWithOptionalSources, WithSources } 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";
|
|
@@ -17,10 +17,11 @@ export declare const asFixedPriceCoupon: {
|
|
|
17
17
|
<TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
18
18
|
<TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedPriceCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
19
19
|
};
|
|
20
|
+
export declare const asOptionalFixedPriceCoupon: <TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
20
21
|
/**
|
|
21
22
|
* Identity function for determining if an object is an FixedPriceCoupon with sources
|
|
22
23
|
*/
|
|
23
|
-
export declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
24
|
+
export declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
24
25
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
25
26
|
conditions?: Lowercase<string>[] | undefined;
|
|
26
27
|
stackable?: boolean | undefined;
|
|
@@ -28,7 +29,7 @@ export declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is
|
|
|
28
29
|
nbf: number;
|
|
29
30
|
amount: number;
|
|
30
31
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
31
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
32
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>;
|
|
32
33
|
export declare const asFixedPriceCouponWithSources: {
|
|
33
34
|
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
34
35
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
@@ -57,4 +58,13 @@ export declare const asFixedPriceCouponWithSources: {
|
|
|
57
58
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
58
59
|
}> & import("@xyo-network/payload-model").SourcesMetaField>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
59
60
|
};
|
|
61
|
+
export declare const asOptionalFixedPriceCouponWithSources: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
62
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
63
|
+
conditions?: Lowercase<string>[] | undefined;
|
|
64
|
+
stackable?: boolean | undefined;
|
|
65
|
+
exp: number;
|
|
66
|
+
nbf: number;
|
|
67
|
+
amount: number;
|
|
68
|
+
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
69
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
60
70
|
//# 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":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,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,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMzF,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;mDAlB3B,sDAAiB,iCAAiC,gBAC5C;mDACmC,sDAEtC,2GACmB,gBAAoB;CAagD,CAAA;AAC9F,eAAO,MAAM,0BAA0B,iDATP,sDAC7B,qCAQ2G,CAAA;AAE9G;;EAEE;AACF,eAAO,MAAM,6BAA6B;;;;;;;;2DAA0F,CAAA;AACpI,eAAO,MAAM,6BAA6B;;;;;;;;;8EAzBtC,sDAAiB,iCAAiC,gBAC5C;;;;;;;;;8EACmC,sDAEtC;;;;;;;;iFACmB,gBAAoB;CAoBmF,CAAA;AACjI,eAAO,MAAM,qCAAqC;;;;;;;;0EAhBlB,sDAC7B,qCAe8I,CAAA"}
|
|
@@ -14,7 +14,7 @@ export declare const asCoupon: {
|
|
|
14
14
|
/**
|
|
15
15
|
* Identity function for determining if an object is an Coupon with sources
|
|
16
16
|
*/
|
|
17
|
-
export declare const isCouponWithSources: (x?: unknown | null) => x is (import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
17
|
+
export declare const isCouponWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
18
18
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
19
19
|
conditions?: Lowercase<string>[] | undefined;
|
|
20
20
|
stackable?: boolean | undefined;
|
|
@@ -22,14 +22,14 @@ export declare const isCouponWithSources: (x?: unknown | null) => x is (import("
|
|
|
22
22
|
nbf: number;
|
|
23
23
|
amount: number;
|
|
24
24
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
25
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
25
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField> | import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
26
26
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
27
27
|
percentage: number;
|
|
28
28
|
conditions?: Lowercase<string>[] | undefined;
|
|
29
29
|
stackable?: boolean | undefined;
|
|
30
30
|
exp: number;
|
|
31
31
|
nbf: number;
|
|
32
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
32
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField> | import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
33
33
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
34
34
|
conditions?: Lowercase<string>[] | undefined;
|
|
35
35
|
stackable?: boolean | undefined;
|
|
@@ -37,9 +37,9 @@ export declare const isCouponWithSources: (x?: unknown | null) => x is (import("
|
|
|
37
37
|
nbf: number;
|
|
38
38
|
amount: number;
|
|
39
39
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
40
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
40
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>;
|
|
41
41
|
export declare const asCouponWithSources: {
|
|
42
|
-
<TType extends (import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
42
|
+
<TType extends import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
43
43
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
44
44
|
conditions?: Lowercase<string>[] | undefined;
|
|
45
45
|
stackable?: boolean | undefined;
|
|
@@ -47,14 +47,14 @@ export declare const asCouponWithSources: {
|
|
|
47
47
|
nbf: number;
|
|
48
48
|
amount: number;
|
|
49
49
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
50
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
50
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField> | import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
51
51
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
52
52
|
percentage: number;
|
|
53
53
|
conditions?: Lowercase<string>[] | undefined;
|
|
54
54
|
stackable?: boolean | undefined;
|
|
55
55
|
exp: number;
|
|
56
56
|
nbf: number;
|
|
57
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
57
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField> | import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
58
58
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
59
59
|
conditions?: Lowercase<string>[] | undefined;
|
|
60
60
|
stackable?: boolean | undefined;
|
|
@@ -62,8 +62,8 @@ export declare const asCouponWithSources: {
|
|
|
62
62
|
nbf: number;
|
|
63
63
|
amount: number;
|
|
64
64
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
65
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
66
|
-
<TType extends (import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
65
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
66
|
+
<TType extends import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
67
67
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
68
68
|
conditions?: Lowercase<string>[] | undefined;
|
|
69
69
|
stackable?: boolean | undefined;
|
|
@@ -71,14 +71,14 @@ export declare const asCouponWithSources: {
|
|
|
71
71
|
nbf: number;
|
|
72
72
|
amount: number;
|
|
73
73
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
74
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
74
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField> | import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
75
75
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
76
76
|
percentage: number;
|
|
77
77
|
conditions?: Lowercase<string>[] | undefined;
|
|
78
78
|
stackable?: boolean | undefined;
|
|
79
79
|
exp: number;
|
|
80
80
|
nbf: number;
|
|
81
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
81
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField> | import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
82
82
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
83
83
|
conditions?: Lowercase<string>[] | undefined;
|
|
84
84
|
stackable?: boolean | undefined;
|
|
@@ -86,7 +86,7 @@ export declare const asCouponWithSources: {
|
|
|
86
86
|
nbf: number;
|
|
87
87
|
amount: number;
|
|
88
88
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
89
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
89
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
90
90
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
91
91
|
conditions?: Lowercase<string>[] | undefined;
|
|
92
92
|
stackable?: boolean | undefined;
|
|
@@ -94,14 +94,14 @@ export declare const asCouponWithSources: {
|
|
|
94
94
|
nbf: number;
|
|
95
95
|
amount: number;
|
|
96
96
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
97
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
97
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField> | import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
98
98
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
99
99
|
percentage: number;
|
|
100
100
|
conditions?: Lowercase<string>[] | undefined;
|
|
101
101
|
stackable?: boolean | undefined;
|
|
102
102
|
exp: number;
|
|
103
103
|
nbf: number;
|
|
104
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
104
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField> | import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
105
105
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
106
106
|
conditions?: Lowercase<string>[] | undefined;
|
|
107
107
|
stackable?: boolean | undefined;
|
|
@@ -109,6 +109,6 @@ export declare const asCouponWithSources: {
|
|
|
109
109
|
nbf: number;
|
|
110
110
|
amount: number;
|
|
111
111
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
112
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField
|
|
112
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
113
113
|
};
|
|
114
114
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -12,6 +12,11 @@ export type Discount = PayloadWithOptionalSources<DiscountFields, DiscountSchema
|
|
|
12
12
|
* Identity function for determining if an object is an Discount
|
|
13
13
|
*/
|
|
14
14
|
export declare const isDiscount: (x?: unknown | null) => x is Discount;
|
|
15
|
+
export declare const asDiscount: {
|
|
16
|
+
<TType extends Discount>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
17
|
+
<TType extends Discount>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Discount>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
18
|
+
};
|
|
19
|
+
export declare const asOptionalDiscount: <TType extends Discount>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
15
20
|
/**
|
|
16
21
|
* Identity function for determining if an object is an Discount with sources
|
|
17
22
|
*/
|
|
@@ -20,4 +25,25 @@ export declare const isDiscountWithSources: (x?: unknown | null) => x is import(
|
|
|
20
25
|
amount: number;
|
|
21
26
|
currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
22
27
|
}> & import("@xyo-network/payload-model").SourcesMetaField;
|
|
28
|
+
export declare const asDiscountWithSources: {
|
|
29
|
+
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
30
|
+
schema: "network.xyo.payments.discount";
|
|
31
|
+
amount: number;
|
|
32
|
+
currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
33
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
34
|
+
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
35
|
+
schema: "network.xyo.payments.discount";
|
|
36
|
+
amount: number;
|
|
37
|
+
currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
38
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
39
|
+
schema: "network.xyo.payments.discount";
|
|
40
|
+
amount: number;
|
|
41
|
+
currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
42
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
43
|
+
};
|
|
44
|
+
export declare const asOptionalDiscountWithSources: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
45
|
+
schema: "network.xyo.payments.discount";
|
|
46
|
+
amount: number;
|
|
47
|
+
currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
48
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
23
49
|
//# sourceMappingURL=Discount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/Discount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/Discount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAe,MAAM,4BAA4B,CAAA;AAMzF,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;AACzE,eAAO,MAAM,UAAU;2CAhBnB,sDAAiB,iCAAiC,gBAEvC;2CACQ,sDAAiB,mGAKlB,gBAEZ;CAM4D,CAAA;AACtE,eAAO,MAAM,kBAAkB,yCAJ8B,sDAEpD,qCAE6E,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;0DAA6D,CAAA;AAC/F,eAAO,MAAM,qBAAqB;;;;;8EAvB9B,sDAAiB,iCAAiC,gBAEvC;;;;;8EACQ,sDAAiB;;;;iFAKlB,gBAEZ;CAa+F,CAAA;AACzG,eAAO,MAAM,6BAA6B;;;;0EAXmB,sDAEpD,qCASgH,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { PayloadWithSources } from '@xyo-network/payload-model';
|
|
2
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
3
3
|
export declare const EscrowOutcomeSchema: "network.xyo.escrow.outcome";
|
|
4
4
|
export type EscrowOutcomeSchema = typeof EscrowOutcomeSchema;
|
|
5
5
|
/**
|
|
@@ -18,8 +18,15 @@ export type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcom
|
|
|
18
18
|
* Identity function for determining if an object is an EscrowOutcome
|
|
19
19
|
*/
|
|
20
20
|
export declare const isEscrowOutcome: (x?: unknown | null) => x is EscrowOutcome;
|
|
21
|
+
export declare const asEscrowOutcome: {
|
|
22
|
+
<TType extends EscrowOutcome>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
23
|
+
<TType extends EscrowOutcome>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<EscrowOutcome>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
24
|
+
};
|
|
25
|
+
export declare const asOptionalEscrowOutcome: <TType extends EscrowOutcome>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
21
26
|
/**
|
|
22
27
|
* Identity function for determining if an object is an EscrowOutcome with sources
|
|
23
28
|
*/
|
|
24
|
-
export declare const isEscrowOutcomeWithSources: (x?: unknown | null) => x is
|
|
29
|
+
export declare const isEscrowOutcomeWithSources: (x?: unknown | null) => x is WithSources<EscrowOutcome>;
|
|
30
|
+
export declare const asEscrowOutcomeWithSources: <TType extends WithSources<EscrowOutcome>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
31
|
+
export declare const asOptionalEscrowOutcomeWithSources: <TType extends WithSources<EscrowOutcome>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
|
|
25
32
|
//# sourceMappingURL=Outcome.d.ts.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"Outcome.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Outcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAQjF,eAAO,MAAM,mBAAmB,8BAAqC,CAAA;AACrE,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,SAAS,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,EAAE,IAAI,CAAA;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AACxF,eAAO,MAAM,eAAe;gDA1BnB,sDAAiB,iCAEJ,gBAAoB;gDAGnC,sDAAiB,wGAKZ,gBAAmB;CAgBsD,CAAA;AACrF,eAAO,MAAM,uBAAuB,8CAT7B,sDAAgB,qCAS8E,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,0BAA0B,yDAAuE,CAAA;AAC9G,eAAO,MAAM,0BAA0B,2DAfhC,sDAAgB,qCAeyG,CAAA;AAChI,eAAO,MAAM,kCAAkC,2DAhBxC,sDAAgB,qCAgBiH,CAAA"}
|