@xyo-network/payment-payload-plugins 3.4.1 → 3.4.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/index.d.ts +77 -675
- package/package.json +18 -18
package/dist/neutral/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as _xylabs_object from '@xylabs/object';
|
|
|
2
2
|
import * as _store__xylabs_promise_npm_4_5_1_97d36b712b_package from '.store/@xylabs-promise-npm-4.5.1-97d36b712b/package';
|
|
3
3
|
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
4
4
|
import { PayloadWithSources, WithSources, Payload, PayloadWithOptionalSources, PayloadValueExpression, AsyncPayloadValidationFunction, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
5
|
-
import * as _xylabs_hex from '@xylabs/hex';
|
|
6
5
|
import { Address, Hash } from '@xylabs/hex';
|
|
7
6
|
import { DivinerConfig, DivinerParams } from '@xyo-network/diviner-model';
|
|
8
7
|
import { ModuleIdentifier, AnyConfigSchema } from '@xyo-network/module-model';
|
|
@@ -54,128 +53,18 @@ interface BillingAddressFields {
|
|
|
54
53
|
region?: string;
|
|
55
54
|
}
|
|
56
55
|
type BillingAddress = Payload<BillingAddressFields, BillingAddressSchema>;
|
|
57
|
-
declare const isBillingAddress: (x?: unknown | null) => x is
|
|
58
|
-
schema: "network.xyo.payments.billing.address";
|
|
59
|
-
address?: string | undefined;
|
|
60
|
-
address2?: string | null | undefined;
|
|
61
|
-
city?: string | undefined;
|
|
62
|
-
country?: string | undefined;
|
|
63
|
-
firstName: string;
|
|
64
|
-
lastName: string;
|
|
65
|
-
organization?: string | null | undefined;
|
|
66
|
-
postalCode?: string | undefined;
|
|
67
|
-
region?: string | undefined;
|
|
68
|
-
}>;
|
|
56
|
+
declare const isBillingAddress: (x?: unknown | null) => x is BillingAddress;
|
|
69
57
|
declare const asBillingAddress: {
|
|
70
|
-
<TType extends _xylabs_object.
|
|
71
|
-
|
|
72
|
-
address?: string | undefined;
|
|
73
|
-
address2?: string | null | undefined;
|
|
74
|
-
city?: string | undefined;
|
|
75
|
-
country?: string | undefined;
|
|
76
|
-
firstName: string;
|
|
77
|
-
lastName: string;
|
|
78
|
-
organization?: string | null | undefined;
|
|
79
|
-
postalCode?: string | undefined;
|
|
80
|
-
region?: string | undefined;
|
|
81
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
82
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
83
|
-
schema: "network.xyo.payments.billing.address";
|
|
84
|
-
address?: string | undefined;
|
|
85
|
-
address2?: string | null | undefined;
|
|
86
|
-
city?: string | undefined;
|
|
87
|
-
country?: string | undefined;
|
|
88
|
-
firstName: string;
|
|
89
|
-
lastName: string;
|
|
90
|
-
organization?: string | null | undefined;
|
|
91
|
-
postalCode?: string | undefined;
|
|
92
|
-
region?: string | undefined;
|
|
93
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
94
|
-
schema: "network.xyo.payments.billing.address";
|
|
95
|
-
address?: string | undefined;
|
|
96
|
-
address2?: string | null | undefined;
|
|
97
|
-
city?: string | undefined;
|
|
98
|
-
country?: string | undefined;
|
|
99
|
-
firstName: string;
|
|
100
|
-
lastName: string;
|
|
101
|
-
organization?: string | null | undefined;
|
|
102
|
-
postalCode?: string | undefined;
|
|
103
|
-
region?: string | undefined;
|
|
104
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
58
|
+
<TType extends BillingAddress>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
59
|
+
<TType extends BillingAddress>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<BillingAddress>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
105
60
|
};
|
|
106
|
-
declare const asOptionalBillingAddress: <TType extends
|
|
107
|
-
|
|
108
|
-
address?: string | undefined;
|
|
109
|
-
address2?: string | null | undefined;
|
|
110
|
-
city?: string | undefined;
|
|
111
|
-
country?: string | undefined;
|
|
112
|
-
firstName: string;
|
|
113
|
-
lastName: string;
|
|
114
|
-
organization?: string | null | undefined;
|
|
115
|
-
postalCode?: string | undefined;
|
|
116
|
-
region?: string | undefined;
|
|
117
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
118
|
-
declare const isBillingAddressWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
119
|
-
schema: "network.xyo.payments.billing.address";
|
|
120
|
-
address?: string | undefined;
|
|
121
|
-
address2?: string | null | undefined;
|
|
122
|
-
city?: string | undefined;
|
|
123
|
-
country?: string | undefined;
|
|
124
|
-
firstName: string;
|
|
125
|
-
lastName: string;
|
|
126
|
-
organization?: string | null | undefined;
|
|
127
|
-
postalCode?: string | undefined;
|
|
128
|
-
region?: string | undefined;
|
|
129
|
-
}>>;
|
|
61
|
+
declare const asOptionalBillingAddress: <TType extends BillingAddress>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
62
|
+
declare const isBillingAddressWithSources: (x?: unknown | null) => x is WithSources<BillingAddress>;
|
|
130
63
|
declare const asBillingAddressWithSources: {
|
|
131
|
-
<TType extends WithSources<_xylabs_object.
|
|
132
|
-
|
|
133
|
-
address?: string | undefined;
|
|
134
|
-
address2?: string | null | undefined;
|
|
135
|
-
city?: string | undefined;
|
|
136
|
-
country?: string | undefined;
|
|
137
|
-
firstName: string;
|
|
138
|
-
lastName: string;
|
|
139
|
-
organization?: string | null | undefined;
|
|
140
|
-
postalCode?: string | undefined;
|
|
141
|
-
region?: string | undefined;
|
|
142
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
143
|
-
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
144
|
-
schema: "network.xyo.payments.billing.address";
|
|
145
|
-
address?: string | undefined;
|
|
146
|
-
address2?: string | null | undefined;
|
|
147
|
-
city?: string | undefined;
|
|
148
|
-
country?: string | undefined;
|
|
149
|
-
firstName: string;
|
|
150
|
-
lastName: string;
|
|
151
|
-
organization?: string | null | undefined;
|
|
152
|
-
postalCode?: string | undefined;
|
|
153
|
-
region?: string | undefined;
|
|
154
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
155
|
-
schema: "network.xyo.payments.billing.address";
|
|
156
|
-
address?: string | undefined;
|
|
157
|
-
address2?: string | null | undefined;
|
|
158
|
-
city?: string | undefined;
|
|
159
|
-
country?: string | undefined;
|
|
160
|
-
firstName: string;
|
|
161
|
-
lastName: string;
|
|
162
|
-
organization?: string | null | undefined;
|
|
163
|
-
postalCode?: string | undefined;
|
|
164
|
-
region?: string | undefined;
|
|
165
|
-
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
64
|
+
<TType extends WithSources<BillingAddress>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
65
|
+
<TType extends WithSources<BillingAddress>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<BillingAddress>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
166
66
|
};
|
|
167
|
-
declare const asOptionalBillingAddressWithSources: <TType extends WithSources<
|
|
168
|
-
schema: "network.xyo.payments.billing.address";
|
|
169
|
-
address?: string | undefined;
|
|
170
|
-
address2?: string | null | undefined;
|
|
171
|
-
city?: string | undefined;
|
|
172
|
-
country?: string | undefined;
|
|
173
|
-
firstName: string;
|
|
174
|
-
lastName: string;
|
|
175
|
-
organization?: string | null | undefined;
|
|
176
|
-
postalCode?: string | undefined;
|
|
177
|
-
region?: string | undefined;
|
|
178
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
67
|
+
declare const asOptionalBillingAddressWithSources: <TType extends WithSources<BillingAddress>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
179
68
|
|
|
180
69
|
declare const BillingSchema = "network.xyo.payments.billing";
|
|
181
70
|
type BillingSchema = typeof BillingSchema;
|
|
@@ -254,52 +143,22 @@ declare const asFixedAmountCoupon: {
|
|
|
254
143
|
<TType extends FixedAmountCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<FixedAmountCoupon>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
255
144
|
};
|
|
256
145
|
declare const asOptionalFixedAmountCoupon: <TType extends FixedAmountCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
257
|
-
declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
146
|
+
declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
258
147
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
259
|
-
|
|
260
|
-
stackable?: boolean | undefined;
|
|
261
|
-
exp: number;
|
|
262
|
-
nbf: number;
|
|
263
|
-
amount: number;
|
|
264
|
-
currency: Iso4217AlphabeticalCode;
|
|
265
|
-
}> & _xyo_network_payload_model.SourcesMetaField>;
|
|
148
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>;
|
|
266
149
|
declare const asFixedAmountCouponWithSources: {
|
|
267
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
150
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
268
151
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
exp: number;
|
|
272
|
-
nbf: number;
|
|
273
|
-
amount: number;
|
|
274
|
-
currency: Iso4217AlphabeticalCode;
|
|
275
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
276
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
152
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
153
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
277
154
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
278
|
-
|
|
279
|
-
stackable?: boolean | undefined;
|
|
280
|
-
exp: number;
|
|
281
|
-
nbf: number;
|
|
282
|
-
amount: number;
|
|
283
|
-
currency: Iso4217AlphabeticalCode;
|
|
284
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
155
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
285
156
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
286
|
-
|
|
287
|
-
stackable?: boolean | undefined;
|
|
288
|
-
exp: number;
|
|
289
|
-
nbf: number;
|
|
290
|
-
amount: number;
|
|
291
|
-
currency: Iso4217AlphabeticalCode;
|
|
292
|
-
}> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
157
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
293
158
|
};
|
|
294
|
-
declare const asOptionalFixedAmountCouponWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
159
|
+
declare const asOptionalFixedAmountCouponWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
295
160
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
296
|
-
|
|
297
|
-
stackable?: boolean | undefined;
|
|
298
|
-
exp: number;
|
|
299
|
-
nbf: number;
|
|
300
|
-
amount: number;
|
|
301
|
-
currency: Iso4217AlphabeticalCode;
|
|
302
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
161
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
303
162
|
|
|
304
163
|
declare const FixedPercentageCouponSchema: "network.xyo.payments.coupon.fixed.percentage";
|
|
305
164
|
type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema;
|
|
@@ -313,47 +172,22 @@ declare const asFixedPercentageCoupon: {
|
|
|
313
172
|
<TType extends FixedPercentageCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<FixedPercentageCoupon>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
314
173
|
};
|
|
315
174
|
declare const asOptionalFixedPercentageCoupon: <TType extends FixedPercentageCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
316
|
-
declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
175
|
+
declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPercentageCouponFields & {
|
|
317
176
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
318
|
-
|
|
319
|
-
conditions?: Lowercase<string>[] | undefined;
|
|
320
|
-
stackable?: boolean | undefined;
|
|
321
|
-
exp: number;
|
|
322
|
-
nbf: number;
|
|
323
|
-
}> & _xyo_network_payload_model.SourcesMetaField>;
|
|
177
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>;
|
|
324
178
|
declare const asFixedPercentageCouponWithSources: {
|
|
325
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
179
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPercentageCouponFields & {
|
|
326
180
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
stackable?: boolean | undefined;
|
|
330
|
-
exp: number;
|
|
331
|
-
nbf: number;
|
|
332
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
333
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
181
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
182
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPercentageCouponFields & {
|
|
334
183
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
335
|
-
|
|
336
|
-
conditions?: Lowercase<string>[] | undefined;
|
|
337
|
-
stackable?: boolean | undefined;
|
|
338
|
-
exp: number;
|
|
339
|
-
nbf: number;
|
|
340
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
184
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPercentageCouponFields & {
|
|
341
185
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
342
|
-
|
|
343
|
-
conditions?: Lowercase<string>[] | undefined;
|
|
344
|
-
stackable?: boolean | undefined;
|
|
345
|
-
exp: number;
|
|
346
|
-
nbf: number;
|
|
347
|
-
}> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
186
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
348
187
|
};
|
|
349
|
-
declare const asOptionalFixedPercentageCouponWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
188
|
+
declare const asOptionalFixedPercentageCouponWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPercentageCouponFields & {
|
|
350
189
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
351
|
-
|
|
352
|
-
conditions?: Lowercase<string>[] | undefined;
|
|
353
|
-
stackable?: boolean | undefined;
|
|
354
|
-
exp: number;
|
|
355
|
-
nbf: number;
|
|
356
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
190
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
357
191
|
|
|
358
192
|
declare const FixedPriceCouponSchema: "network.xyo.payments.coupon.fixed.price";
|
|
359
193
|
type FixedPriceCouponSchema = typeof FixedPriceCouponSchema;
|
|
@@ -366,52 +200,22 @@ declare const asFixedPriceCoupon: {
|
|
|
366
200
|
<TType extends FixedPriceCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<FixedPriceCoupon>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
367
201
|
};
|
|
368
202
|
declare const asOptionalFixedPriceCoupon: <TType extends FixedPriceCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
369
|
-
declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
203
|
+
declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
370
204
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
371
|
-
|
|
372
|
-
stackable?: boolean | undefined;
|
|
373
|
-
exp: number;
|
|
374
|
-
nbf: number;
|
|
375
|
-
amount: number;
|
|
376
|
-
currency: Iso4217AlphabeticalCode;
|
|
377
|
-
}> & _xyo_network_payload_model.SourcesMetaField>;
|
|
205
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>;
|
|
378
206
|
declare const asFixedPriceCouponWithSources: {
|
|
379
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
207
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
380
208
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
exp: number;
|
|
384
|
-
nbf: number;
|
|
385
|
-
amount: number;
|
|
386
|
-
currency: Iso4217AlphabeticalCode;
|
|
387
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
388
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
209
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
210
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
389
211
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
390
|
-
|
|
391
|
-
stackable?: boolean | undefined;
|
|
392
|
-
exp: number;
|
|
393
|
-
nbf: number;
|
|
394
|
-
amount: number;
|
|
395
|
-
currency: Iso4217AlphabeticalCode;
|
|
396
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
212
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
397
213
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
398
|
-
|
|
399
|
-
stackable?: boolean | undefined;
|
|
400
|
-
exp: number;
|
|
401
|
-
nbf: number;
|
|
402
|
-
amount: number;
|
|
403
|
-
currency: Iso4217AlphabeticalCode;
|
|
404
|
-
}> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
214
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
405
215
|
};
|
|
406
|
-
declare const asOptionalFixedPriceCouponWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
216
|
+
declare const asOptionalFixedPriceCouponWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
407
217
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
408
|
-
|
|
409
|
-
stackable?: boolean | undefined;
|
|
410
|
-
exp: number;
|
|
411
|
-
nbf: number;
|
|
412
|
-
amount: number;
|
|
413
|
-
currency: Iso4217AlphabeticalCode;
|
|
414
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
218
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
415
219
|
|
|
416
220
|
type Coupon = FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
|
|
417
221
|
declare const isCoupon: (x?: unknown | null) => x is FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
|
|
@@ -419,102 +223,34 @@ declare const asCoupon: {
|
|
|
419
223
|
<TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
420
224
|
<TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
421
225
|
};
|
|
422
|
-
declare const isCouponWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
226
|
+
declare const isCouponWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
423
227
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
424
|
-
|
|
425
|
-
stackable?: boolean | undefined;
|
|
426
|
-
exp: number;
|
|
427
|
-
nbf: number;
|
|
428
|
-
amount: number;
|
|
429
|
-
currency: Iso4217AlphabeticalCode;
|
|
430
|
-
}> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
228
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPercentageCouponFields & {
|
|
431
229
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
432
|
-
|
|
433
|
-
conditions?: Lowercase<string>[] | undefined;
|
|
434
|
-
stackable?: boolean | undefined;
|
|
435
|
-
exp: number;
|
|
436
|
-
nbf: number;
|
|
437
|
-
}> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
230
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
438
231
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
439
|
-
|
|
440
|
-
stackable?: boolean | undefined;
|
|
441
|
-
exp: number;
|
|
442
|
-
nbf: number;
|
|
443
|
-
amount: number;
|
|
444
|
-
currency: Iso4217AlphabeticalCode;
|
|
445
|
-
}> & _xyo_network_payload_model.SourcesMetaField>;
|
|
232
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>;
|
|
446
233
|
declare const asCouponWithSources: {
|
|
447
|
-
<TType extends _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
234
|
+
<TType extends _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
448
235
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
449
|
-
|
|
450
|
-
stackable?: boolean | undefined;
|
|
451
|
-
exp: number;
|
|
452
|
-
nbf: number;
|
|
453
|
-
amount: number;
|
|
454
|
-
currency: Iso4217AlphabeticalCode;
|
|
455
|
-
}> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
236
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPercentageCouponFields & {
|
|
456
237
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
457
|
-
|
|
458
|
-
conditions?: Lowercase<string>[] | undefined;
|
|
459
|
-
stackable?: boolean | undefined;
|
|
460
|
-
exp: number;
|
|
461
|
-
nbf: number;
|
|
462
|
-
}> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
238
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
463
239
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
exp: number;
|
|
467
|
-
nbf: number;
|
|
468
|
-
amount: number;
|
|
469
|
-
currency: Iso4217AlphabeticalCode;
|
|
470
|
-
}> & _xyo_network_payload_model.SourcesMetaField>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
471
|
-
<TType extends _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
240
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
241
|
+
<TType extends _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
472
242
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
473
|
-
|
|
474
|
-
stackable?: boolean | undefined;
|
|
475
|
-
exp: number;
|
|
476
|
-
nbf: number;
|
|
477
|
-
amount: number;
|
|
478
|
-
currency: Iso4217AlphabeticalCode;
|
|
479
|
-
}> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
243
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPercentageCouponFields & {
|
|
480
244
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
481
|
-
|
|
482
|
-
conditions?: Lowercase<string>[] | undefined;
|
|
483
|
-
stackable?: boolean | undefined;
|
|
484
|
-
exp: number;
|
|
485
|
-
nbf: number;
|
|
486
|
-
}> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
245
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
487
246
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
488
|
-
|
|
489
|
-
stackable?: boolean | undefined;
|
|
490
|
-
exp: number;
|
|
491
|
-
nbf: number;
|
|
492
|
-
amount: number;
|
|
493
|
-
currency: Iso4217AlphabeticalCode;
|
|
494
|
-
}> & _xyo_network_payload_model.SourcesMetaField>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
247
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
495
248
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
496
|
-
|
|
497
|
-
stackable?: boolean | undefined;
|
|
498
|
-
exp: number;
|
|
499
|
-
nbf: number;
|
|
500
|
-
amount: number;
|
|
501
|
-
currency: Iso4217AlphabeticalCode;
|
|
502
|
-
}> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
249
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPercentageCouponFields & {
|
|
503
250
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
504
|
-
|
|
505
|
-
conditions?: Lowercase<string>[] | undefined;
|
|
506
|
-
stackable?: boolean | undefined;
|
|
507
|
-
exp: number;
|
|
508
|
-
nbf: number;
|
|
509
|
-
}> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
251
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField> | _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
510
252
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
511
|
-
|
|
512
|
-
stackable?: boolean | undefined;
|
|
513
|
-
exp: number;
|
|
514
|
-
nbf: number;
|
|
515
|
-
amount: number;
|
|
516
|
-
currency: Iso4217AlphabeticalCode;
|
|
517
|
-
}> & _xyo_network_payload_model.SourcesMetaField>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
253
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
518
254
|
};
|
|
519
255
|
|
|
520
256
|
declare const CouponSchema: "network.xyo.payments.coupon";
|
|
@@ -531,32 +267,22 @@ declare const asDiscount: {
|
|
|
531
267
|
<TType extends Discount>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Discount>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
532
268
|
};
|
|
533
269
|
declare const asOptionalDiscount: <TType extends Discount>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
534
|
-
declare const isDiscountWithSources: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<{
|
|
270
|
+
declare const isDiscountWithSources: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DiscountFields & {
|
|
535
271
|
schema: "network.xyo.payments.discount";
|
|
536
|
-
|
|
537
|
-
currency: Iso4217AlphabeticalCode;
|
|
538
|
-
}> & _xyo_network_payload_model.SourcesMetaField;
|
|
272
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField;
|
|
539
273
|
declare const asDiscountWithSources: {
|
|
540
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
274
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DiscountFields & {
|
|
541
275
|
schema: "network.xyo.payments.discount";
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
545
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
276
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
277
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DiscountFields & {
|
|
546
278
|
schema: "network.xyo.payments.discount";
|
|
547
|
-
|
|
548
|
-
currency: Iso4217AlphabeticalCode;
|
|
549
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
279
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DiscountFields & {
|
|
550
280
|
schema: "network.xyo.payments.discount";
|
|
551
|
-
|
|
552
|
-
currency: Iso4217AlphabeticalCode;
|
|
553
|
-
}> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
281
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
554
282
|
};
|
|
555
|
-
declare const asOptionalDiscountWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
283
|
+
declare const asOptionalDiscountWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DiscountFields & {
|
|
556
284
|
schema: "network.xyo.payments.discount";
|
|
557
|
-
|
|
558
|
-
currency: Iso4217AlphabeticalCode;
|
|
559
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
285
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
560
286
|
|
|
561
287
|
declare const NO_DISCOUNT: Discount;
|
|
562
288
|
|
|
@@ -598,158 +324,18 @@ interface EscrowTermsFields {
|
|
|
598
324
|
sellerSecret: Hash;
|
|
599
325
|
}
|
|
600
326
|
type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>;
|
|
601
|
-
declare const isEscrowTerms: (x?: unknown | null) => x is
|
|
602
|
-
schema: "network.xyo.escrow.terms";
|
|
603
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
604
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
605
|
-
assets?: Lowercase<string>[] | undefined;
|
|
606
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
607
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
608
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
609
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
610
|
-
exp?: number | undefined;
|
|
611
|
-
nbf?: number | undefined;
|
|
612
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
613
|
-
seller?: Lowercase<string>[] | undefined;
|
|
614
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
615
|
-
}>;
|
|
327
|
+
declare const isEscrowTerms: (x?: unknown | null) => x is EscrowTerms;
|
|
616
328
|
declare const asEscrowTerms: {
|
|
617
|
-
<TType extends _xylabs_object.
|
|
618
|
-
|
|
619
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
620
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
621
|
-
assets?: Lowercase<string>[] | undefined;
|
|
622
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
623
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
624
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
625
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
626
|
-
exp?: number | undefined;
|
|
627
|
-
nbf?: number | undefined;
|
|
628
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
629
|
-
seller?: Lowercase<string>[] | undefined;
|
|
630
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
631
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
632
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
633
|
-
schema: "network.xyo.escrow.terms";
|
|
634
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
635
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
636
|
-
assets?: Lowercase<string>[] | undefined;
|
|
637
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
638
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
639
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
640
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
641
|
-
exp?: number | undefined;
|
|
642
|
-
nbf?: number | undefined;
|
|
643
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
644
|
-
seller?: Lowercase<string>[] | undefined;
|
|
645
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
646
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
647
|
-
schema: "network.xyo.escrow.terms";
|
|
648
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
649
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
650
|
-
assets?: Lowercase<string>[] | undefined;
|
|
651
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
652
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
653
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
654
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
655
|
-
exp?: number | undefined;
|
|
656
|
-
nbf?: number | undefined;
|
|
657
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
658
|
-
seller?: Lowercase<string>[] | undefined;
|
|
659
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
660
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
329
|
+
<TType extends EscrowTerms>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
330
|
+
<TType extends EscrowTerms>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<EscrowTerms>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
661
331
|
};
|
|
662
|
-
declare const asOptionalEscrowTerms: <TType extends
|
|
663
|
-
|
|
664
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
665
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
666
|
-
assets?: Lowercase<string>[] | undefined;
|
|
667
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
668
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
669
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
670
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
671
|
-
exp?: number | undefined;
|
|
672
|
-
nbf?: number | undefined;
|
|
673
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
674
|
-
seller?: Lowercase<string>[] | undefined;
|
|
675
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
676
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
677
|
-
declare const isEscrowTermsWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
678
|
-
schema: "network.xyo.escrow.terms";
|
|
679
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
680
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
681
|
-
assets?: Lowercase<string>[] | undefined;
|
|
682
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
683
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
684
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
685
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
686
|
-
exp?: number | undefined;
|
|
687
|
-
nbf?: number | undefined;
|
|
688
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
689
|
-
seller?: Lowercase<string>[] | undefined;
|
|
690
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
691
|
-
}>>;
|
|
332
|
+
declare const asOptionalEscrowTerms: <TType extends EscrowTerms>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
333
|
+
declare const isEscrowTermsWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<EscrowTerms>;
|
|
692
334
|
declare const asEscrowTermsWithSources: {
|
|
693
|
-
<TType extends _xylabs_object.
|
|
694
|
-
|
|
695
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
696
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
697
|
-
assets?: Lowercase<string>[] | undefined;
|
|
698
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
699
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
700
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
701
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
702
|
-
exp?: number | undefined;
|
|
703
|
-
nbf?: number | undefined;
|
|
704
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
705
|
-
seller?: Lowercase<string>[] | undefined;
|
|
706
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
707
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
708
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
709
|
-
schema: "network.xyo.escrow.terms";
|
|
710
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
711
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
712
|
-
assets?: Lowercase<string>[] | undefined;
|
|
713
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
714
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
715
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
716
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
717
|
-
exp?: number | undefined;
|
|
718
|
-
nbf?: number | undefined;
|
|
719
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
720
|
-
seller?: Lowercase<string>[] | undefined;
|
|
721
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
722
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
723
|
-
schema: "network.xyo.escrow.terms";
|
|
724
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
725
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
726
|
-
assets?: Lowercase<string>[] | undefined;
|
|
727
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
728
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
729
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
730
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
731
|
-
exp?: number | undefined;
|
|
732
|
-
nbf?: number | undefined;
|
|
733
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
734
|
-
seller?: Lowercase<string>[] | undefined;
|
|
735
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
736
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
335
|
+
<TType extends EscrowTerms>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
336
|
+
<TType extends EscrowTerms>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<EscrowTerms>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
737
337
|
};
|
|
738
|
-
declare const asOptionalEscrowTermsWithSources: <TType extends
|
|
739
|
-
schema: "network.xyo.escrow.terms";
|
|
740
|
-
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
741
|
-
appraisals?: Lowercase<string>[] | undefined;
|
|
742
|
-
assets?: Lowercase<string>[] | undefined;
|
|
743
|
-
buyer?: Lowercase<string>[] | undefined;
|
|
744
|
-
buyerSecret?: Lowercase<string> | undefined;
|
|
745
|
-
discounts?: Lowercase<string>[] | undefined;
|
|
746
|
-
escrowAgent?: Lowercase<string> | undefined;
|
|
747
|
-
exp?: number | undefined;
|
|
748
|
-
nbf?: number | undefined;
|
|
749
|
-
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
750
|
-
seller?: Lowercase<string>[] | undefined;
|
|
751
|
-
sellerSecret?: Lowercase<string> | undefined;
|
|
752
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
338
|
+
declare const asOptionalEscrowTermsWithSources: <TType extends EscrowTerms>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
753
339
|
|
|
754
340
|
type EscrowParty = keyof Pick<EscrowTermsFields, 'buyer' | 'seller'>;
|
|
755
341
|
|
|
@@ -759,127 +345,13 @@ declare const getAppraisalsByAsset: (terms: EscrowTerms, dictionary: Record<Hash
|
|
|
759
345
|
|
|
760
346
|
declare const getSignaturesByAppraisal: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, BoundWitness[]>;
|
|
761
347
|
|
|
762
|
-
declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: IdPayload, account: AccountInstance) => Promise<[_xyo_network_boundwitness_model.Signed<_xyo_network_boundwitness_model.UnsignedBoundWitness>,
|
|
763
|
-
[x: string]: string | number | boolean | {
|
|
764
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
765
|
-
} | (string | number | boolean | {
|
|
766
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
767
|
-
} | (string | number | boolean | {
|
|
768
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
769
|
-
} | (string | number | boolean | {
|
|
770
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
771
|
-
} | (string | number | boolean | {
|
|
772
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
773
|
-
} | (string | number | boolean | {
|
|
774
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
775
|
-
} | (string | number | boolean | {
|
|
776
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
777
|
-
} | (string | number | boolean | {
|
|
778
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null;
|
|
779
|
-
} | (string | number | boolean | {
|
|
780
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null;
|
|
781
|
-
} | (string | number | boolean | {
|
|
782
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null;
|
|
783
|
-
} | (string | number | boolean | {
|
|
784
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | any | null)[] | null;
|
|
785
|
-
} | (string | number | boolean | {
|
|
786
|
-
[x: string]: string | number | boolean | any | any | null;
|
|
787
|
-
} | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
788
|
-
schema: _xyo_network_payload_model.Schema;
|
|
789
|
-
}>[], _xylabs_object.DeepRestrictToStringKeys<{
|
|
790
|
-
schema: "network.xyo.error.module";
|
|
791
|
-
details?: string | number | boolean | {
|
|
792
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
793
|
-
} | (string | number | boolean | {
|
|
794
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
795
|
-
} | (string | number | boolean | {
|
|
796
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
797
|
-
} | (string | number | boolean | {
|
|
798
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
799
|
-
} | (string | number | boolean | {
|
|
800
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
801
|
-
} | (string | number | boolean | {
|
|
802
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
803
|
-
} | (string | number | boolean | {
|
|
804
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
805
|
-
} | (string | number | boolean | {
|
|
806
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null;
|
|
807
|
-
} | (string | number | boolean | {
|
|
808
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null;
|
|
809
|
-
} | (string | number | boolean | {
|
|
810
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null;
|
|
811
|
-
} | (string | number | boolean | {
|
|
812
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | any | null)[] | null;
|
|
813
|
-
} | (string | number | boolean | {
|
|
814
|
-
[x: string]: string | number | boolean | any | any | null;
|
|
815
|
-
} | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null | undefined;
|
|
816
|
-
message?: string | undefined;
|
|
817
|
-
name?: string | undefined;
|
|
818
|
-
query?: _xylabs_hex.Hash | undefined;
|
|
819
|
-
}>[]]>;
|
|
348
|
+
declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: IdPayload, account: AccountInstance) => Promise<[_xyo_network_boundwitness_model.Signed<_xyo_network_boundwitness_model.UnsignedBoundWitness>, _xyo_network_payload_model.AnyPayload[], _xyo_network_payload_model.ModuleError[]]>;
|
|
820
349
|
|
|
821
350
|
declare const findEscrowPartySecretSignatures: (terms: EscrowTerms, dictionary: Record<Hash, Payload>, party: EscrowParty) => BoundWitness[];
|
|
822
351
|
|
|
823
352
|
declare const getEscrowSecret: () => IdPayload;
|
|
824
353
|
|
|
825
|
-
declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: IdPayload) => Promise<[_xyo_network_boundwitness_model.Signed<_xyo_network_boundwitness_model.UnsignedBoundWitness>,
|
|
826
|
-
[x: string]: string | number | boolean | {
|
|
827
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
828
|
-
} | (string | number | boolean | {
|
|
829
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
830
|
-
} | (string | number | boolean | {
|
|
831
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
832
|
-
} | (string | number | boolean | {
|
|
833
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
834
|
-
} | (string | number | boolean | {
|
|
835
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
836
|
-
} | (string | number | boolean | {
|
|
837
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
838
|
-
} | (string | number | boolean | {
|
|
839
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
840
|
-
} | (string | number | boolean | {
|
|
841
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null;
|
|
842
|
-
} | (string | number | boolean | {
|
|
843
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null;
|
|
844
|
-
} | (string | number | boolean | {
|
|
845
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null;
|
|
846
|
-
} | (string | number | boolean | {
|
|
847
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | any | null)[] | null;
|
|
848
|
-
} | (string | number | boolean | {
|
|
849
|
-
[x: string]: string | number | boolean | any | any | null;
|
|
850
|
-
} | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
851
|
-
schema: _xyo_network_payload_model.Schema;
|
|
852
|
-
}>[], _xylabs_object.DeepRestrictToStringKeys<{
|
|
853
|
-
schema: "network.xyo.error.module";
|
|
854
|
-
details?: string | number | boolean | {
|
|
855
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
856
|
-
} | (string | number | boolean | {
|
|
857
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
858
|
-
} | (string | number | boolean | {
|
|
859
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
860
|
-
} | (string | number | boolean | {
|
|
861
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
862
|
-
} | (string | number | boolean | {
|
|
863
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
864
|
-
} | (string | number | boolean | {
|
|
865
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
866
|
-
} | (string | number | boolean | {
|
|
867
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
868
|
-
} | (string | number | boolean | {
|
|
869
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null;
|
|
870
|
-
} | (string | number | boolean | {
|
|
871
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null;
|
|
872
|
-
} | (string | number | boolean | {
|
|
873
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null;
|
|
874
|
-
} | (string | number | boolean | {
|
|
875
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | any | null)[] | null;
|
|
876
|
-
} | (string | number | boolean | {
|
|
877
|
-
[x: string]: string | number | boolean | any | any | null;
|
|
878
|
-
} | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null | undefined;
|
|
879
|
-
message?: string | undefined;
|
|
880
|
-
name?: string | undefined;
|
|
881
|
-
query?: _xylabs_hex.Hash | undefined;
|
|
882
|
-
}>[]]>;
|
|
354
|
+
declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: IdPayload) => Promise<[_xyo_network_boundwitness_model.Signed<_xyo_network_boundwitness_model.UnsignedBoundWitness>, _xyo_network_payload_model.AnyPayload[], _xyo_network_payload_model.ModuleError[]]>;
|
|
883
355
|
|
|
884
356
|
declare const moduleIdentifiersContainsOneOf: (escrowTerms: EscrowTerms, propertyExpression: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
|
|
885
357
|
declare const moduleIdentifiersContainsAllOf: (escrowTerms: EscrowTerms, selector: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
|
|
@@ -931,88 +403,18 @@ interface PaymentCardFields {
|
|
|
931
403
|
expYear: number;
|
|
932
404
|
}
|
|
933
405
|
type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
|
|
934
|
-
declare const isPaymentCard: (x?: unknown | null) => x is
|
|
935
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
936
|
-
cardNumber: string;
|
|
937
|
-
cardholderName?: string | undefined;
|
|
938
|
-
cvv: string;
|
|
939
|
-
expMonth: number;
|
|
940
|
-
expYear: number;
|
|
941
|
-
}>;
|
|
406
|
+
declare const isPaymentCard: (x?: unknown | null) => x is PaymentCard;
|
|
942
407
|
declare const asPaymentCard: {
|
|
943
|
-
<TType extends _xylabs_object.
|
|
944
|
-
|
|
945
|
-
cardNumber: string;
|
|
946
|
-
cardholderName?: string | undefined;
|
|
947
|
-
cvv: string;
|
|
948
|
-
expMonth: number;
|
|
949
|
-
expYear: number;
|
|
950
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
951
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
952
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
953
|
-
cardNumber: string;
|
|
954
|
-
cardholderName?: string | undefined;
|
|
955
|
-
cvv: string;
|
|
956
|
-
expMonth: number;
|
|
957
|
-
expYear: number;
|
|
958
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
959
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
960
|
-
cardNumber: string;
|
|
961
|
-
cardholderName?: string | undefined;
|
|
962
|
-
cvv: string;
|
|
963
|
-
expMonth: number;
|
|
964
|
-
expYear: number;
|
|
965
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
408
|
+
<TType extends PaymentCard>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
409
|
+
<TType extends PaymentCard>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<PaymentCard>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
966
410
|
};
|
|
967
|
-
declare const asOptionalPaymentCard: <TType extends
|
|
968
|
-
|
|
969
|
-
cardNumber: string;
|
|
970
|
-
cardholderName?: string | undefined;
|
|
971
|
-
cvv: string;
|
|
972
|
-
expMonth: number;
|
|
973
|
-
expYear: number;
|
|
974
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
975
|
-
declare const isPaymentCardWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
976
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
977
|
-
cardNumber: string;
|
|
978
|
-
cardholderName?: string | undefined;
|
|
979
|
-
cvv: string;
|
|
980
|
-
expMonth: number;
|
|
981
|
-
expYear: number;
|
|
982
|
-
}>>;
|
|
411
|
+
declare const asOptionalPaymentCard: <TType extends PaymentCard>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
412
|
+
declare const isPaymentCardWithSources: (x?: unknown | null) => x is WithSources<PaymentCard>;
|
|
983
413
|
declare const asPaymentCardWithSources: {
|
|
984
|
-
<TType extends WithSources<_xylabs_object.
|
|
985
|
-
|
|
986
|
-
cardNumber: string;
|
|
987
|
-
cardholderName?: string | undefined;
|
|
988
|
-
cvv: string;
|
|
989
|
-
expMonth: number;
|
|
990
|
-
expYear: number;
|
|
991
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
992
|
-
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
993
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
994
|
-
cardNumber: string;
|
|
995
|
-
cardholderName?: string | undefined;
|
|
996
|
-
cvv: string;
|
|
997
|
-
expMonth: number;
|
|
998
|
-
expYear: number;
|
|
999
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
1000
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
1001
|
-
cardNumber: string;
|
|
1002
|
-
cardholderName?: string | undefined;
|
|
1003
|
-
cvv: string;
|
|
1004
|
-
expMonth: number;
|
|
1005
|
-
expYear: number;
|
|
1006
|
-
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
414
|
+
<TType extends WithSources<PaymentCard>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
415
|
+
<TType extends WithSources<PaymentCard>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<PaymentCard>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
1007
416
|
};
|
|
1008
|
-
declare const asOptionalPaymentCardWithSources: <TType extends WithSources<
|
|
1009
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
1010
|
-
cardNumber: string;
|
|
1011
|
-
cardholderName?: string | undefined;
|
|
1012
|
-
cvv: string;
|
|
1013
|
-
expMonth: number;
|
|
1014
|
-
expYear: number;
|
|
1015
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
417
|
+
declare const asOptionalPaymentCardWithSources: <TType extends WithSources<PaymentCard>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
1016
418
|
|
|
1017
419
|
declare const PaymentInstrumentSchema = "network.xyo.payments.payment.instrument";
|
|
1018
420
|
type PaymentInstrumentSchema = typeof PaymentInstrumentSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/payment-payload-plugins",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
"@xylabs/crypto": "^4.5.1",
|
|
34
34
|
"@xylabs/hex": "^4.5.1",
|
|
35
35
|
"@xylabs/object": "^4.5.1",
|
|
36
|
-
"@xyo-network/account-model": "^3.
|
|
37
|
-
"@xyo-network/boundwitness-builder": "^3.
|
|
38
|
-
"@xyo-network/boundwitness-model": "^3.
|
|
39
|
-
"@xyo-network/boundwitness-validator": "^3.
|
|
40
|
-
"@xyo-network/diviner-hash-lease": "^3.
|
|
41
|
-
"@xyo-network/diviner-model": "^3.
|
|
42
|
-
"@xyo-network/id-payload-plugin": "^3.
|
|
43
|
-
"@xyo-network/module-model": "^3.
|
|
44
|
-
"@xyo-network/payload-builder": "^3.
|
|
45
|
-
"@xyo-network/payload-model": "^3.
|
|
46
|
-
"@xyo-network/schema-payload-plugin": "^3.
|
|
47
|
-
"@xyo-network/xns-record-payload-plugins": "^3.4.
|
|
36
|
+
"@xyo-network/account-model": "^3.9.16",
|
|
37
|
+
"@xyo-network/boundwitness-builder": "^3.9.16",
|
|
38
|
+
"@xyo-network/boundwitness-model": "^3.9.16",
|
|
39
|
+
"@xyo-network/boundwitness-validator": "^3.9.16",
|
|
40
|
+
"@xyo-network/diviner-hash-lease": "^3.9.16",
|
|
41
|
+
"@xyo-network/diviner-model": "^3.9.16",
|
|
42
|
+
"@xyo-network/id-payload-plugin": "^3.9.16",
|
|
43
|
+
"@xyo-network/module-model": "^3.9.16",
|
|
44
|
+
"@xyo-network/payload-builder": "^3.9.16",
|
|
45
|
+
"@xyo-network/payload-model": "^3.9.16",
|
|
46
|
+
"@xyo-network/schema-payload-plugin": "^3.9.16",
|
|
47
|
+
"@xyo-network/xns-record-payload-plugins": "^3.4.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
51
|
-
"@xylabs/tsconfig": "^5.0.
|
|
50
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.24",
|
|
51
|
+
"@xylabs/tsconfig": "^5.0.24",
|
|
52
52
|
"@xylabs/vitest-extended": "^4.5.1",
|
|
53
|
-
"@xyo-network/account": "^3.
|
|
54
|
-
"@xyo-network/payload-builder": "^3.
|
|
53
|
+
"@xyo-network/account": "^3.9.16",
|
|
54
|
+
"@xyo-network/payload-builder": "^3.9.16",
|
|
55
55
|
"typescript": "^5.7.3",
|
|
56
|
-
"vitest": "^3.0.
|
|
56
|
+
"vitest": "^3.0.6"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|