@xyo-network/payment-payload-plugins 3.1.2 → 3.2.0-rc.1
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 +0 -4
- package/dist/neutral/Amount/Payload.d.ts.map +1 -1
- package/dist/neutral/Billing/Address/Address.d.ts +0 -6
- package/dist/neutral/Billing/Address/Address.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +20 -9
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -1
- package/dist/neutral/Escrow/Outcome.d.ts +0 -4
- package/dist/neutral/Escrow/Outcome.d.ts.map +1 -1
- package/dist/neutral/Escrow/Terms/Terms.d.ts +0 -6
- package/dist/neutral/Escrow/Terms/Terms.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +2 -2
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +2 -2
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +5 -5
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +3 -3
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +5 -5
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +2 -2
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +4 -4
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +3 -3
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +3 -3
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -1
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +0 -6
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Payload.d.ts +0 -4
- package/dist/neutral/Payment/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Status/Payload.d.ts +0 -4
- package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -1
- package/dist/neutral/Purchase/Payload.d.ts +0 -4
- package/dist/neutral/Purchase/Payload.d.ts.map +1 -1
- package/dist/neutral/Receipt/Payload.d.ts +0 -4
- package/dist/neutral/Receipt/Payload.d.ts.map +1 -1
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -4
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/Total/Diviner/Payload.d.ts +0 -4
- package/dist/neutral/Total/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/index.mjs +10 -72
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +22 -21
- package/src/Amount/Payload.ts +0 -6
- package/src/Billing/Address/Address.ts +1 -8
- package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +0 -6
- package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +0 -6
- package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +0 -6
- package/src/Discount/Payload/Coupon/Payload.ts +1 -11
- package/src/Discount/Payload/Coupon/types/Condition.ts +2 -9
- package/src/Discount/Payload/Discount.ts +0 -6
- package/src/Escrow/Outcome.ts +0 -6
- package/src/Escrow/Terms/Terms.ts +1 -8
- package/src/Escrow/util/appraisal/getAppraisalsByAsset.ts +2 -4
- package/src/Escrow/util/appraisal/getSignaturesByAppraisal.ts +7 -7
- package/src/Escrow/util/secret/findEscrowPartySecretSignatures.ts +4 -5
- package/src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts +2 -4
- package/src/Escrow/validators/escrow/appraisal.ts +8 -9
- package/src/Escrow/validators/escrow/buyerSecret.ts +3 -3
- package/src/Escrow/validators/escrow/sellerSecret.ts +3 -3
- package/src/Payment/Instrument/Card/Payload.ts +1 -8
- package/src/Payment/Payload.ts +0 -6
- package/src/Payment/Status/Payload.ts +0 -6
- package/src/Purchase/Payload.ts +0 -6
- package/src/Receipt/Payload.ts +0 -6
- package/src/Subtotal/Diviner/Payload.ts +0 -6
- package/src/Total/Diviner/Payload.ts +0 -6
package/dist/neutral/index.mjs
CHANGED
|
@@ -185,20 +185,14 @@ var isIso4217CurrencyCode = (code) => Iso4217CurrencyCodes[code] ? true : false;
|
|
|
185
185
|
// src/Amount/Payload.ts
|
|
186
186
|
import {
|
|
187
187
|
isPayloadOfSchemaType,
|
|
188
|
-
isPayloadOfSchemaTypeWithMeta,
|
|
189
188
|
isPayloadOfSchemaTypeWithSources
|
|
190
189
|
} from "@xyo-network/payload-model";
|
|
191
190
|
var AmountSchema = "network.xyo.payments.amount";
|
|
192
191
|
var isAmount = isPayloadOfSchemaType(AmountSchema);
|
|
193
192
|
var isAmountWithSources = isPayloadOfSchemaTypeWithSources(AmountSchema);
|
|
194
|
-
var isAmountWithMeta = isPayloadOfSchemaTypeWithMeta(AmountSchema);
|
|
195
193
|
|
|
196
194
|
// src/Billing/Address/Address.ts
|
|
197
|
-
import {
|
|
198
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType2,
|
|
199
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta2,
|
|
200
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2
|
|
201
|
-
} from "@xyo-network/payload-model";
|
|
195
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType2, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2 } from "@xyo-network/payload-model";
|
|
202
196
|
|
|
203
197
|
// src/Schema.ts
|
|
204
198
|
var PaymentsSchema = "network.xyo.payments";
|
|
@@ -212,7 +206,6 @@ var BillingAddressSchema = `${BillingSchema}.address`;
|
|
|
212
206
|
// src/Billing/Address/Address.ts
|
|
213
207
|
var isBillingAddress = isPayloadOfSchemaType2(BillingAddressSchema);
|
|
214
208
|
var isBillingAddressWithSources = isPayloadOfSchemaTypeWithSources2(BillingAddressSchema);
|
|
215
|
-
var isBillingAddressWithMeta = isPayloadOfSchemaTypeWithMeta2(BillingAddressSchema);
|
|
216
209
|
|
|
217
210
|
// src/Discount/Config.ts
|
|
218
211
|
var PaymentDiscountDivinerConfigSchema = "network.xyo.diviner.payments.discount.config";
|
|
@@ -298,7 +291,6 @@ var createConditionForRequiredBuyer = (buyer) => {
|
|
|
298
291
|
// src/Discount/Payload/Coupon/Coupons/FixedAmount.ts
|
|
299
292
|
import {
|
|
300
293
|
isPayloadOfSchemaType as isPayloadOfSchemaType3,
|
|
301
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta3,
|
|
302
294
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources3
|
|
303
295
|
} from "@xyo-network/payload-model";
|
|
304
296
|
|
|
@@ -309,45 +301,34 @@ var CouponSchema = "network.xyo.payments.coupon";
|
|
|
309
301
|
var FixedAmountCouponSchema = `${CouponSchema}.fixed.amount`;
|
|
310
302
|
var isFixedAmountCoupon = isPayloadOfSchemaType3(FixedAmountCouponSchema);
|
|
311
303
|
var isFixedAmountCouponWithSources = isPayloadOfSchemaTypeWithSources3(FixedAmountCouponSchema);
|
|
312
|
-
var isFixedAmountCouponWithMeta = isPayloadOfSchemaTypeWithMeta3(FixedAmountCouponSchema);
|
|
313
304
|
|
|
314
305
|
// src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts
|
|
315
306
|
import {
|
|
316
307
|
isPayloadOfSchemaType as isPayloadOfSchemaType4,
|
|
317
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta4,
|
|
318
308
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources4
|
|
319
309
|
} from "@xyo-network/payload-model";
|
|
320
310
|
var FixedPercentageCouponSchema = `${CouponSchema}.fixed.percentage`;
|
|
321
311
|
var isFixedPercentageCoupon = isPayloadOfSchemaType4(FixedPercentageCouponSchema);
|
|
322
312
|
var isFixedPercentageCouponWithSources = isPayloadOfSchemaTypeWithSources4(FixedPercentageCouponSchema);
|
|
323
|
-
var isFixedPercentageCouponWithMeta = isPayloadOfSchemaTypeWithMeta4(FixedPercentageCouponSchema);
|
|
324
313
|
|
|
325
314
|
// src/Discount/Payload/Coupon/Coupons/FixedPrice.ts
|
|
326
315
|
import {
|
|
327
316
|
isPayloadOfSchemaType as isPayloadOfSchemaType5,
|
|
328
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta5,
|
|
329
317
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources5
|
|
330
318
|
} from "@xyo-network/payload-model";
|
|
331
319
|
var FixedPriceCouponSchema = `${CouponSchema}.fixed.price`;
|
|
332
320
|
var isFixedPriceCoupon = isPayloadOfSchemaType5(FixedPriceCouponSchema);
|
|
333
321
|
var isFixedPriceCouponWithSources = isPayloadOfSchemaTypeWithSources5(FixedPriceCouponSchema);
|
|
334
|
-
var isFixedPriceCouponWithMeta = isPayloadOfSchemaTypeWithMeta5(FixedPriceCouponSchema);
|
|
335
322
|
|
|
336
323
|
// src/Discount/Payload/Coupon/Payload.ts
|
|
337
324
|
var isCoupon = (x) => isFixedAmountCoupon(x) || isFixedPercentageCoupon(x) || isFixedPriceCoupon(x);
|
|
338
325
|
var isCouponWithSources = (x) => isFixedAmountCouponWithSources(x) || isFixedPercentageCouponWithSources(x) || isFixedPriceCouponWithSources(x);
|
|
339
|
-
var isCouponWithMeta = (x) => isFixedAmountCouponWithMeta(x) || isFixedPercentageCouponWithMeta(x) || isFixedPriceCouponWithMeta(x);
|
|
340
326
|
|
|
341
327
|
// src/Discount/Payload/Coupon/types/Condition.ts
|
|
342
|
-
import {
|
|
343
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType6,
|
|
344
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta6,
|
|
345
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources6
|
|
346
|
-
} from "@xyo-network/payload-model";
|
|
328
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType6, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources6 } from "@xyo-network/payload-model";
|
|
347
329
|
import { SchemaSchema as SchemaSchema4 } from "@xyo-network/schema-payload-plugin";
|
|
348
330
|
var isCondition = isPayloadOfSchemaType6(SchemaSchema4);
|
|
349
331
|
var isConditionWithSources = isPayloadOfSchemaTypeWithSources6(SchemaSchema4);
|
|
350
|
-
var isConditionWithMeta = isPayloadOfSchemaTypeWithMeta6(SchemaSchema4);
|
|
351
332
|
|
|
352
333
|
// src/Discount/Payload/Coupon/types/isStackable.ts
|
|
353
334
|
var isStackable = (x) => (x ?? { stackable: false })?.stackable;
|
|
@@ -355,13 +336,11 @@ var isStackable = (x) => (x ?? { stackable: false })?.stackable;
|
|
|
355
336
|
// src/Discount/Payload/Discount.ts
|
|
356
337
|
import {
|
|
357
338
|
isPayloadOfSchemaType as isPayloadOfSchemaType7,
|
|
358
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta7,
|
|
359
339
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources7
|
|
360
340
|
} from "@xyo-network/payload-model";
|
|
361
341
|
var DiscountSchema = "network.xyo.payments.discount";
|
|
362
342
|
var isDiscount = isPayloadOfSchemaType7(DiscountSchema);
|
|
363
343
|
var isDiscountWithSources = isPayloadOfSchemaTypeWithSources7(DiscountSchema);
|
|
364
|
-
var isDiscountWithMeta = isPayloadOfSchemaTypeWithMeta7(DiscountSchema);
|
|
365
344
|
|
|
366
345
|
// src/Discount/Payload/NoDiscount.ts
|
|
367
346
|
var NO_DISCOUNT = {
|
|
@@ -373,7 +352,6 @@ var NO_DISCOUNT = {
|
|
|
373
352
|
// src/Escrow/Outcome.ts
|
|
374
353
|
import {
|
|
375
354
|
isPayloadOfSchemaType as isPayloadOfSchemaType8,
|
|
376
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta8,
|
|
377
355
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources8
|
|
378
356
|
} from "@xyo-network/payload-model";
|
|
379
357
|
|
|
@@ -384,18 +362,12 @@ var EscrowSchema = "network.xyo.escrow";
|
|
|
384
362
|
var EscrowOutcomeSchema = `${EscrowSchema}.outcome`;
|
|
385
363
|
var isEscrowOutcome = isPayloadOfSchemaType8(EscrowOutcomeSchema);
|
|
386
364
|
var isEscrowOutcomeWithSources = isPayloadOfSchemaTypeWithSources8(EscrowOutcomeSchema);
|
|
387
|
-
var isEscrowOutcomeWithMeta = isPayloadOfSchemaTypeWithMeta8(EscrowOutcomeSchema);
|
|
388
365
|
|
|
389
366
|
// src/Escrow/Terms/Terms.ts
|
|
390
|
-
import {
|
|
391
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType9,
|
|
392
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta9,
|
|
393
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources9
|
|
394
|
-
} from "@xyo-network/payload-model";
|
|
367
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType9, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources9 } from "@xyo-network/payload-model";
|
|
395
368
|
var EscrowTermsSchema = `${EscrowSchema}.terms`;
|
|
396
369
|
var isEscrowTerms = isPayloadOfSchemaType9(EscrowTermsSchema);
|
|
397
370
|
var isEscrowTermsWithSources = isPayloadOfSchemaTypeWithSources9(EscrowTermsSchema);
|
|
398
|
-
var isEscrowTermsWithMeta = isPayloadOfSchemaTypeWithMeta9(EscrowTermsSchema);
|
|
399
371
|
|
|
400
372
|
// src/Escrow/util/appraisal/getAppraisalsByAsset.ts
|
|
401
373
|
import { isHashLeaseEstimateWithSources } from "@xyo-network/diviner-hash-lease";
|
|
@@ -420,7 +392,7 @@ var getAppraisalsByAsset = (terms, dictionary) => {
|
|
|
420
392
|
};
|
|
421
393
|
|
|
422
394
|
// src/Escrow/util/appraisal/getSignaturesByAppraisal.ts
|
|
423
|
-
import {
|
|
395
|
+
import { isBoundWitness } from "@xyo-network/boundwitness-model";
|
|
424
396
|
var getSignaturesByAppraisal = (terms, dictionary) => {
|
|
425
397
|
const appraisals = terms.appraisals;
|
|
426
398
|
if (!appraisals || appraisals.length === 0) return {};
|
|
@@ -429,7 +401,7 @@ var getSignaturesByAppraisal = (terms, dictionary) => {
|
|
|
429
401
|
const appraisalBWsValid = Object.fromEntries(
|
|
430
402
|
appraisals.map((hash) => [hash, []])
|
|
431
403
|
);
|
|
432
|
-
for (const bw of Object.values(dictionary).filter(
|
|
404
|
+
for (const bw of Object.values(dictionary).filter(isBoundWitness)) {
|
|
433
405
|
for (const appraisal of appraisals) {
|
|
434
406
|
if (bw.payload_hashes.includes(appraisal) && bw.addresses.some((address) => appraisalAuthorities.includes(address))) {
|
|
435
407
|
appraisalBWsValid[appraisal].push(bw);
|
|
@@ -447,7 +419,7 @@ var createEscrowIntentWithSecret = async (terms, secret, account) => {
|
|
|
447
419
|
};
|
|
448
420
|
|
|
449
421
|
// src/Escrow/util/secret/findEscrowPartySecretSignatures.ts
|
|
450
|
-
import {
|
|
422
|
+
import { isBoundWitness as isBoundWitness2 } from "@xyo-network/boundwitness-model";
|
|
451
423
|
var getLogPrefix = (party) => {
|
|
452
424
|
const partySecret = party === "seller" ? "sellerSecret" : "buyerSecret";
|
|
453
425
|
return `EscrowTerms.${partySecret}`;
|
|
@@ -464,7 +436,7 @@ var findEscrowPartySecretSignatures = (terms, dictionary, party) => {
|
|
|
464
436
|
console.log(`${getLogPrefix(party)}: No ${partySecret}: ${terms[partySecret]}`);
|
|
465
437
|
return [];
|
|
466
438
|
}
|
|
467
|
-
const partySignedBWs = Object.values(dictionary).filter(
|
|
439
|
+
const partySignedBWs = Object.values(dictionary).filter(isBoundWitness2).filter((bw) => bw.payload_hashes.includes(secretHash)).filter((bw) => partyAddresses.every((address) => bw.addresses.includes(address)));
|
|
468
440
|
return partySignedBWs;
|
|
469
441
|
};
|
|
470
442
|
|
|
@@ -552,7 +524,7 @@ var getEscrowAgentAllowedValidator = (allowedEscrowAgent) => {
|
|
|
552
524
|
|
|
553
525
|
// src/Escrow/validators/escrow/appraisal.ts
|
|
554
526
|
import { assertEx } from "@xylabs/assert";
|
|
555
|
-
import {
|
|
527
|
+
import { isBoundWitness as isBoundWitness3 } from "@xyo-network/boundwitness-model";
|
|
556
528
|
var name2 = "EscrowTerms.appraisal";
|
|
557
529
|
var appraisalsExistValidator = (terms) => {
|
|
558
530
|
const appraisals = terms.appraisals;
|
|
@@ -569,7 +541,7 @@ var getAppraisalsFromValidAuthoritiesValidator = (dictionary) => {
|
|
|
569
541
|
const appraisalBWsValid = Object.fromEntries(
|
|
570
542
|
appraisals.map((hash) => [hash, []])
|
|
571
543
|
);
|
|
572
|
-
for (const bw of Object.values(dictionary).filter(
|
|
544
|
+
for (const bw of Object.values(dictionary).filter(isBoundWitness3)) {
|
|
573
545
|
for (const appraisal of appraisals) {
|
|
574
546
|
if (bw.payload_hashes.includes(appraisal) && bw.addresses.some((address) => appraisalAuthorities.includes(address))) {
|
|
575
547
|
appraisalBWsValid[appraisal].push(bw);
|
|
@@ -767,11 +739,7 @@ var getSellerSecretSignedValidator = (dictionary) => {
|
|
|
767
739
|
};
|
|
768
740
|
|
|
769
741
|
// src/Payment/Instrument/Card/Payload.ts
|
|
770
|
-
import {
|
|
771
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType10,
|
|
772
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta10,
|
|
773
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources10
|
|
774
|
-
} from "@xyo-network/payload-model";
|
|
742
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType10, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources10 } from "@xyo-network/payload-model";
|
|
775
743
|
|
|
776
744
|
// src/Payment/Schema.ts
|
|
777
745
|
var PaymentSchema = `${PaymentsSchema}.payment`;
|
|
@@ -785,22 +753,18 @@ var PaymentCardSchema = `${PaymentInstrumentSchema}.card`;
|
|
|
785
753
|
// src/Payment/Instrument/Card/Payload.ts
|
|
786
754
|
var isPaymentCard = isPayloadOfSchemaType10(PaymentCardSchema);
|
|
787
755
|
var isPaymentCardWithSources = isPayloadOfSchemaTypeWithSources10(PaymentCardSchema);
|
|
788
|
-
var isPaymentCardWithMeta = isPayloadOfSchemaTypeWithMeta10(PaymentCardSchema);
|
|
789
756
|
|
|
790
757
|
// src/Payment/Payload.ts
|
|
791
758
|
import {
|
|
792
759
|
isPayloadOfSchemaType as isPayloadOfSchemaType11,
|
|
793
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta11,
|
|
794
760
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources11
|
|
795
761
|
} from "@xyo-network/payload-model";
|
|
796
762
|
var isPayment = isPayloadOfSchemaType11(PaymentSchema);
|
|
797
763
|
var isPaymentWithSources = isPayloadOfSchemaTypeWithSources11(PaymentSchema);
|
|
798
|
-
var isPaymentWithMeta = isPayloadOfSchemaTypeWithMeta11(PaymentSchema);
|
|
799
764
|
|
|
800
765
|
// src/Payment/Status/Payload.ts
|
|
801
766
|
import {
|
|
802
767
|
isPayloadOfSchemaType as isPayloadOfSchemaType12,
|
|
803
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta12,
|
|
804
768
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources12
|
|
805
769
|
} from "@xyo-network/payload-model";
|
|
806
770
|
|
|
@@ -810,12 +774,10 @@ var PaymentStatusSchema = `${PaymentSchema}.status`;
|
|
|
810
774
|
// src/Payment/Status/Payload.ts
|
|
811
775
|
var isPaymentStatus = isPayloadOfSchemaType12(PaymentStatusSchema);
|
|
812
776
|
var isPaymentStatusWithSources = isPayloadOfSchemaTypeWithSources12(PaymentStatusSchema);
|
|
813
|
-
var isPaymentStatusWithMeta = isPayloadOfSchemaTypeWithMeta12(PaymentStatusSchema);
|
|
814
777
|
|
|
815
778
|
// src/Purchase/Payload.ts
|
|
816
779
|
import {
|
|
817
780
|
isPayloadOfSchemaType as isPayloadOfSchemaType13,
|
|
818
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta13,
|
|
819
781
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources13
|
|
820
782
|
} from "@xyo-network/payload-model";
|
|
821
783
|
|
|
@@ -825,12 +787,10 @@ var PurchaseSchema = `${PaymentsSchema}.purchase`;
|
|
|
825
787
|
// src/Purchase/Payload.ts
|
|
826
788
|
var isPurchase = isPayloadOfSchemaType13(PurchaseSchema);
|
|
827
789
|
var isPurchaseWithSources = isPayloadOfSchemaTypeWithSources13(PurchaseSchema);
|
|
828
|
-
var isPurchaseWithMeta = isPayloadOfSchemaTypeWithMeta13(PurchaseSchema);
|
|
829
790
|
|
|
830
791
|
// src/Receipt/Payload.ts
|
|
831
792
|
import {
|
|
832
793
|
isPayloadOfSchemaType as isPayloadOfSchemaType14,
|
|
833
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta14,
|
|
834
794
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources14
|
|
835
795
|
} from "@xyo-network/payload-model";
|
|
836
796
|
|
|
@@ -840,7 +800,6 @@ var ReceiptSchema = `${PaymentsSchema}.receipt`;
|
|
|
840
800
|
// src/Receipt/Payload.ts
|
|
841
801
|
var isReceipt = isPayloadOfSchemaType14(ReceiptSchema);
|
|
842
802
|
var isReceiptWithSources = isPayloadOfSchemaTypeWithSources14(ReceiptSchema);
|
|
843
|
-
var isReceiptWithMeta = isPayloadOfSchemaTypeWithMeta14(ReceiptSchema);
|
|
844
803
|
|
|
845
804
|
// src/Subtotal/Diviner/Config.ts
|
|
846
805
|
var PaymentSubtotalDivinerConfigSchema = "network.xyo.diviner.payments.subtotal.config";
|
|
@@ -848,13 +807,11 @@ var PaymentSubtotalDivinerConfigSchema = "network.xyo.diviner.payments.subtotal.
|
|
|
848
807
|
// src/Subtotal/Diviner/Payload.ts
|
|
849
808
|
import {
|
|
850
809
|
isPayloadOfSchemaType as isPayloadOfSchemaType15,
|
|
851
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta15,
|
|
852
810
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources15
|
|
853
811
|
} from "@xyo-network/payload-model";
|
|
854
812
|
var SubtotalSchema = "network.xyo.payments.subtotal";
|
|
855
813
|
var isSubtotal = isPayloadOfSchemaType15(SubtotalSchema);
|
|
856
814
|
var isSubtotalWithSources = isPayloadOfSchemaTypeWithSources15(SubtotalSchema);
|
|
857
|
-
var isSubtotalWithMeta = isPayloadOfSchemaTypeWithMeta15(SubtotalSchema);
|
|
858
815
|
|
|
859
816
|
// src/Total/Diviner/Config.ts
|
|
860
817
|
var PaymentTotalDivinerConfigSchema = "network.xyo.diviner.payments.total.config";
|
|
@@ -862,13 +819,11 @@ var PaymentTotalDivinerConfigSchema = "network.xyo.diviner.payments.total.config
|
|
|
862
819
|
// src/Total/Diviner/Payload.ts
|
|
863
820
|
import {
|
|
864
821
|
isPayloadOfSchemaType as isPayloadOfSchemaType16,
|
|
865
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta16,
|
|
866
822
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources16
|
|
867
823
|
} from "@xyo-network/payload-model";
|
|
868
824
|
var TotalSchema = "network.xyo.payments.total";
|
|
869
825
|
var isTotal = isPayloadOfSchemaType16(TotalSchema);
|
|
870
826
|
var isTotalWithSources = isPayloadOfSchemaTypeWithSources16(TotalSchema);
|
|
871
|
-
var isTotalWithMeta = isPayloadOfSchemaTypeWithMeta16(TotalSchema);
|
|
872
827
|
export {
|
|
873
828
|
AmountSchema,
|
|
874
829
|
BillingAddressSchema,
|
|
@@ -920,57 +875,40 @@ export {
|
|
|
920
875
|
getSellerSecretSuppliedValidator,
|
|
921
876
|
getSignaturesByAppraisal,
|
|
922
877
|
isAmount,
|
|
923
|
-
isAmountWithMeta,
|
|
924
878
|
isAmountWithSources,
|
|
925
879
|
isBillingAddress,
|
|
926
|
-
isBillingAddressWithMeta,
|
|
927
880
|
isBillingAddressWithSources,
|
|
928
881
|
isCondition,
|
|
929
|
-
isConditionWithMeta,
|
|
930
882
|
isConditionWithSources,
|
|
931
883
|
isCoupon,
|
|
932
|
-
isCouponWithMeta,
|
|
933
884
|
isCouponWithSources,
|
|
934
885
|
isDiscount,
|
|
935
|
-
isDiscountWithMeta,
|
|
936
886
|
isDiscountWithSources,
|
|
937
887
|
isEscrowOutcome,
|
|
938
|
-
isEscrowOutcomeWithMeta,
|
|
939
888
|
isEscrowOutcomeWithSources,
|
|
940
889
|
isEscrowTerms,
|
|
941
|
-
isEscrowTermsWithMeta,
|
|
942
890
|
isEscrowTermsWithSources,
|
|
943
891
|
isFixedAmountCoupon,
|
|
944
|
-
isFixedAmountCouponWithMeta,
|
|
945
892
|
isFixedAmountCouponWithSources,
|
|
946
893
|
isFixedPercentageCoupon,
|
|
947
|
-
isFixedPercentageCouponWithMeta,
|
|
948
894
|
isFixedPercentageCouponWithSources,
|
|
949
895
|
isFixedPriceCoupon,
|
|
950
|
-
isFixedPriceCouponWithMeta,
|
|
951
896
|
isFixedPriceCouponWithSources,
|
|
952
897
|
isIso4217CurrencyCode,
|
|
953
898
|
isPayment,
|
|
954
899
|
isPaymentCard,
|
|
955
|
-
isPaymentCardWithMeta,
|
|
956
900
|
isPaymentCardWithSources,
|
|
957
901
|
isPaymentStatus,
|
|
958
|
-
isPaymentStatusWithMeta,
|
|
959
902
|
isPaymentStatusWithSources,
|
|
960
|
-
isPaymentWithMeta,
|
|
961
903
|
isPaymentWithSources,
|
|
962
904
|
isPurchase,
|
|
963
|
-
isPurchaseWithMeta,
|
|
964
905
|
isPurchaseWithSources,
|
|
965
906
|
isReceipt,
|
|
966
|
-
isReceiptWithMeta,
|
|
967
907
|
isReceiptWithSources,
|
|
968
908
|
isStackable,
|
|
969
909
|
isSubtotal,
|
|
970
|
-
isSubtotalWithMeta,
|
|
971
910
|
isSubtotalWithSources,
|
|
972
911
|
isTotal,
|
|
973
|
-
isTotalWithMeta,
|
|
974
912
|
isTotalWithSources,
|
|
975
913
|
moduleIdentifiersContainsAllOf,
|
|
976
914
|
moduleIdentifiersContainsOneOf,
|