@xyo-network/payment-payload-plugins 3.4.0 → 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 +561 -12
- package/dist/neutral/index.mjs +2 -4
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +18 -18
- package/src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts +1 -2
- package/src/Escrow/validators/escrow/appraisal.ts +1 -2
- package/dist/neutral/Amount/Iso4217Currency.d.ts +0 -14
- package/dist/neutral/Amount/Iso4217Currency.d.ts.map +0 -1
- package/dist/neutral/Amount/Payload.d.ts +0 -31
- package/dist/neutral/Amount/Payload.d.ts.map +0 -1
- package/dist/neutral/Amount/index.d.ts +0 -3
- package/dist/neutral/Amount/index.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/Address.d.ts +0 -278
- package/dist/neutral/Billing/Address/Address.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/Schema.d.ts +0 -3
- package/dist/neutral/Billing/Address/Schema.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/index.d.ts +0 -3
- package/dist/neutral/Billing/Address/index.d.ts.map +0 -1
- package/dist/neutral/Billing/Schema.d.ts +0 -3
- package/dist/neutral/Billing/Schema.d.ts.map +0 -1
- package/dist/neutral/Billing/index.d.ts +0 -3
- package/dist/neutral/Billing/index.d.ts.map +0 -1
- package/dist/neutral/Currency.d.ts +0 -2
- package/dist/neutral/Currency.d.ts.map +0 -1
- package/dist/neutral/Discount/Config.d.ts +0 -23
- package/dist/neutral/Discount/Config.d.ts.map +0 -1
- package/dist/neutral/Discount/Params.d.ts +0 -11
- package/dist/neutral/Discount/Params.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -8
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -8
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -34
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -70
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -65
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -70
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +0 -114
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +0 -3
- package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/index.d.ts +0 -6
- package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +0 -22
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -16
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +0 -5
- package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts +0 -49
- package/dist/neutral/Discount/Payload/Discount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/NoDiscount.d.ts +0 -3
- package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/index.d.ts.map +0 -1
- package/dist/neutral/Discount/index.d.ts +0 -4
- package/dist/neutral/Discount/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/Outcome.d.ts +0 -32
- package/dist/neutral/Escrow/Outcome.d.ts.map +0 -1
- package/dist/neutral/Escrow/Schema.d.ts +0 -3
- package/dist/neutral/Escrow/Schema.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/Party.d.ts +0 -6
- package/dist/neutral/Escrow/Terms/Party.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/PartySecret.d.ts +0 -6
- package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/Terms.d.ts +0 -217
- package/dist/neutral/Escrow/Terms/Terms.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/index.d.ts +0 -4
- package/dist/neutral/Escrow/Terms/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/index.d.ts +0 -6
- package/dist/neutral/Escrow/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -12
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -13
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/index.d.ts +0 -3
- package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/index.d.ts +0 -3
- package/dist/neutral/Escrow/util/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +0 -69
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -13
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +0 -7
- package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/index.d.ts +0 -5
- package/dist/neutral/Escrow/util/secret/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +0 -71
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -2
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -22
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -10
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +0 -2
- package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +0 -2
- package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -6
- package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/index.d.ts +0 -4
- package/dist/neutral/Escrow/validators/common/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts +0 -5
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +0 -29
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -10
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts +0 -8
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +0 -8
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +0 -21
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/index.d.ts +0 -11
- package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +0 -4
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -5
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts +0 -8
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +0 -21
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/index.d.ts +0 -3
- package/dist/neutral/Escrow/validators/index.d.ts.map +0 -1
- package/dist/neutral/Invoice/Invoice.d.ts +0 -17
- package/dist/neutral/Invoice/Invoice.d.ts.map +0 -1
- package/dist/neutral/Invoice/index.d.ts +0 -2
- package/dist/neutral/Invoice/index.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +0 -160
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +0 -3
- package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/index.d.ts +0 -3
- package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Schema.d.ts +0 -3
- package/dist/neutral/Payment/Instrument/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/index.d.ts +0 -3
- package/dist/neutral/Payment/Instrument/index.d.ts.map +0 -1
- package/dist/neutral/Payment/Payload.d.ts +0 -36
- package/dist/neutral/Payment/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Schema.d.ts +0 -3
- package/dist/neutral/Payment/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/Payload.d.ts +0 -35
- package/dist/neutral/Payment/Status/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/Schema.d.ts +0 -3
- package/dist/neutral/Payment/Status/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/index.d.ts +0 -3
- package/dist/neutral/Payment/Status/index.d.ts.map +0 -1
- package/dist/neutral/Payment/index.d.ts +0 -5
- package/dist/neutral/Payment/index.d.ts.map +0 -1
- package/dist/neutral/Purchase/Payload.d.ts +0 -37
- package/dist/neutral/Purchase/Payload.d.ts.map +0 -1
- package/dist/neutral/Purchase/Schema.d.ts +0 -3
- package/dist/neutral/Purchase/Schema.d.ts.map +0 -1
- package/dist/neutral/Purchase/index.d.ts +0 -3
- package/dist/neutral/Purchase/index.d.ts.map +0 -1
- package/dist/neutral/Receipt/Payload.d.ts +0 -36
- package/dist/neutral/Receipt/Payload.d.ts.map +0 -1
- package/dist/neutral/Receipt/Schema.d.ts +0 -3
- package/dist/neutral/Receipt/Schema.d.ts.map +0 -1
- package/dist/neutral/Receipt/index.d.ts +0 -3
- package/dist/neutral/Receipt/index.d.ts.map +0 -1
- package/dist/neutral/Schema.d.ts +0 -3
- package/dist/neutral/Schema.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Config.d.ts +0 -8
- package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Params.d.ts +0 -5
- package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -29
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/index.d.ts +0 -4
- package/dist/neutral/Subtotal/Diviner/index.d.ts.map +0 -1
- package/dist/neutral/Subtotal/index.d.ts +0 -2
- package/dist/neutral/Subtotal/index.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Config.d.ts +0 -18
- package/dist/neutral/Total/Diviner/Config.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Params.d.ts +0 -5
- package/dist/neutral/Total/Diviner/Params.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Payload.d.ts +0 -29
- package/dist/neutral/Total/Diviner/Payload.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/index.d.ts +0 -4
- package/dist/neutral/Total/Diviner/index.d.ts.map +0 -1
- package/dist/neutral/Total/index.d.ts +0 -2
- package/dist/neutral/Total/index.d.ts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,12 +1,561 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import * as _xylabs_object from '@xylabs/object';
|
|
2
|
+
import * as _store__xylabs_promise_npm_4_5_1_97d36b712b_package from '.store/@xylabs-promise-npm-4.5.1-97d36b712b/package';
|
|
3
|
+
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
4
|
+
import { PayloadWithSources, WithSources, Payload, PayloadWithOptionalSources, PayloadValueExpression, AsyncPayloadValidationFunction, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
5
|
+
import { Address, Hash } from '@xylabs/hex';
|
|
6
|
+
import { DivinerConfig, DivinerParams } from '@xyo-network/diviner-model';
|
|
7
|
+
import { ModuleIdentifier, AnyConfigSchema } from '@xyo-network/module-model';
|
|
8
|
+
import { SchemaPayload, SchemaSchema } from '@xyo-network/schema-payload-plugin';
|
|
9
|
+
import { DurationFields } from '@xyo-network/xns-record-payload-plugins';
|
|
10
|
+
import { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
|
|
11
|
+
import * as _xyo_network_boundwitness_model from '@xyo-network/boundwitness-model';
|
|
12
|
+
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
13
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
14
|
+
import { IdPayload } from '@xyo-network/id-payload-plugin';
|
|
15
|
+
|
|
16
|
+
type Iso4217AlphabeticalCode = 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWG' | 'ZWL';
|
|
17
|
+
type Iso4217NumericCode = 784 | 971 | 8 | 51 | 532 | 973 | 32 | 36 | 533 | 944 | 977 | 52 | 50 | 975 | 48 | 108 | 60 | 96 | 68 | 984 | 986 | 44 | 64 | 72 | 933 | 84 | 124 | 976 | 947 | 756 | 948 | 990 | 152 | 156 | 170 | 970 | 188 | 192 | 132 | 203 | 262 | 208 | 214 | 12 | 818 | 232 | 230 | 978 | 242 | 238 | 826 | 981 | 936 | 292 | 270 | 324 | 320 | 328 | 344 | 340 | 332 | 348 | 360 | 376 | 356 | 368 | 364 | 352 | 388 | 400 | 392 | 404 | 417 | 116 | 174 | 408 | 410 | 414 | 136 | 398 | 418 | 422 | 144 | 430 | 426 | 434 | 504 | 498 | 969 | 807 | 104 | 496 | 446 | 929 | 480 | 462 | 454 | 484 | 979 | 458 | 943 | 516 | 566 | 558 | 578 | 524 | 554 | 512 | 590 | 604 | 598 | 608 | 586 | 985 | 600 | 634 | 946 | 941 | 643 | 646 | 682 | 90 | 690 | 938 | 752 | 702 | 654 | 925 | 706 | 968 | 728 | 930 | 222 | 760 | 748 | 764 | 972 | 934 | 788 | 776 | 949 | 780 | 901 | 834 | 980 | 800 | 840 | 997 | 940 | 858 | 927 | 860 | 926 | 928 | 704 | 548 | 882 | 950 | 961 | 959 | 955 | 956 | 957 | 958 | 951 | 960 | 952 | 964 | 953 | 962 | 994 | 963 | 965 | 999 | 886 | 710 | 967 | 924 | 932;
|
|
18
|
+
declare const Iso4217CurrencyCodes: Record<Iso4217AlphabeticalCode, Iso4217NumericCode>;
|
|
19
|
+
declare const isIso4217CurrencyCode: (code: string) => code is Iso4217AlphabeticalCode;
|
|
20
|
+
|
|
21
|
+
declare const AmountSchema: "network.xyo.payments.amount";
|
|
22
|
+
type AmountSchema = typeof AmountSchema;
|
|
23
|
+
interface AmountFields {
|
|
24
|
+
amount: number;
|
|
25
|
+
currency: Iso4217AlphabeticalCode;
|
|
26
|
+
}
|
|
27
|
+
type Amount = PayloadWithSources<AmountFields, AmountSchema>;
|
|
28
|
+
declare const isAmount: (x?: unknown | null) => x is Amount;
|
|
29
|
+
declare const asAmount: {
|
|
30
|
+
<TType extends Amount>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
31
|
+
<TType extends Amount>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Amount>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
32
|
+
};
|
|
33
|
+
declare const asOptionalAmount: <TType extends Amount>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
34
|
+
declare const isAmountWithSources: (x?: unknown | null) => x is WithSources<Amount>;
|
|
35
|
+
declare const asAmountWithSources: {
|
|
36
|
+
<TType extends WithSources<Amount>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
37
|
+
<TType extends WithSources<Amount>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<Amount>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
38
|
+
};
|
|
39
|
+
declare const asOptionalAmountWithSources: <TType extends WithSources<Amount>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
40
|
+
|
|
41
|
+
declare const BillingAddressSchema = "network.xyo.payments.billing.address";
|
|
42
|
+
type BillingAddressSchema = typeof BillingAddressSchema;
|
|
43
|
+
|
|
44
|
+
interface BillingAddressFields {
|
|
45
|
+
address?: string;
|
|
46
|
+
address2?: string | null;
|
|
47
|
+
city?: string;
|
|
48
|
+
country?: string;
|
|
49
|
+
firstName: string;
|
|
50
|
+
lastName: string;
|
|
51
|
+
organization?: string | null;
|
|
52
|
+
postalCode?: string;
|
|
53
|
+
region?: string;
|
|
54
|
+
}
|
|
55
|
+
type BillingAddress = Payload<BillingAddressFields, BillingAddressSchema>;
|
|
56
|
+
declare const isBillingAddress: (x?: unknown | null) => x is BillingAddress;
|
|
57
|
+
declare const asBillingAddress: {
|
|
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;
|
|
60
|
+
};
|
|
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>;
|
|
63
|
+
declare const asBillingAddressWithSources: {
|
|
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;
|
|
66
|
+
};
|
|
67
|
+
declare const asOptionalBillingAddressWithSources: <TType extends WithSources<BillingAddress>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
68
|
+
|
|
69
|
+
declare const BillingSchema = "network.xyo.payments.billing";
|
|
70
|
+
type BillingSchema = typeof BillingSchema;
|
|
71
|
+
|
|
72
|
+
type SupportedCurrency = 'USD';
|
|
73
|
+
|
|
74
|
+
declare const PaymentDiscountDivinerConfigSchema = "network.xyo.diviner.payments.discount.config";
|
|
75
|
+
type PaymentDiscountDivinerConfigSchema = typeof PaymentDiscountDivinerConfigSchema;
|
|
76
|
+
type PaymentDiscountDivinerConfig = DivinerConfig<{
|
|
77
|
+
boundWitnessDiviner?: ModuleIdentifier;
|
|
78
|
+
couponAuthorities?: Address[];
|
|
79
|
+
paymentSubtotalDiviner?: ModuleIdentifier;
|
|
80
|
+
}, PaymentDiscountDivinerConfigSchema>;
|
|
81
|
+
|
|
82
|
+
type PaymentDiscountDivinerParams<TConfig extends AnyConfigSchema<PaymentDiscountDivinerConfig> = AnyConfigSchema<PaymentDiscountDivinerConfig>> = DivinerParams<TConfig, {
|
|
83
|
+
couponAuthorities?: Address[];
|
|
84
|
+
}>;
|
|
85
|
+
|
|
86
|
+
type Condition = SchemaPayload;
|
|
87
|
+
declare const isCondition: (x?: unknown | null) => x is SchemaPayload;
|
|
88
|
+
declare const asCondition: {
|
|
89
|
+
<TType extends SchemaPayload>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
90
|
+
<TType extends SchemaPayload>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<SchemaPayload>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
91
|
+
};
|
|
92
|
+
declare const isConditionWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<SchemaPayload>;
|
|
93
|
+
declare const asConditionWithSources: {
|
|
94
|
+
<TType extends _xyo_network_payload_model.WithSources<SchemaPayload>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
95
|
+
<TType extends _xyo_network_payload_model.WithSources<SchemaPayload>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xyo_network_payload_model.WithSources<SchemaPayload>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
interface CouponFields extends DurationFields {
|
|
99
|
+
conditions?: Hash[];
|
|
100
|
+
stackable?: boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare const isStackable: (x?: unknown | null) => boolean | undefined;
|
|
104
|
+
|
|
105
|
+
declare const createConditionForMaximumAppraisalAmount: (maximumAppraisalAmount: number) => Condition;
|
|
106
|
+
|
|
107
|
+
declare const createConditionForMinimumAssetQuantity: (minimumAssetQuantity: number) => Condition;
|
|
108
|
+
|
|
109
|
+
type BuyerCondition = Condition & {
|
|
110
|
+
definition: {
|
|
111
|
+
contains: {
|
|
112
|
+
properties: {
|
|
113
|
+
buyer: {
|
|
114
|
+
items: {
|
|
115
|
+
const: Address;
|
|
116
|
+
type: 'string';
|
|
117
|
+
};
|
|
118
|
+
minItems: 1;
|
|
119
|
+
type: 'array';
|
|
120
|
+
};
|
|
121
|
+
schema: {
|
|
122
|
+
const: 'network.xyo.escrow.terms';
|
|
123
|
+
type: 'string';
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
required: ['schema', 'buyer'];
|
|
127
|
+
type: 'object';
|
|
128
|
+
};
|
|
129
|
+
type: 'array';
|
|
130
|
+
};
|
|
131
|
+
schema: SchemaSchema;
|
|
132
|
+
};
|
|
133
|
+
declare const createConditionForRequiredBuyer: (buyer: Address) => BuyerCondition;
|
|
134
|
+
|
|
135
|
+
declare const FixedAmountCouponSchema: "network.xyo.payments.coupon.fixed.amount";
|
|
136
|
+
type FixedAmountCouponSchema = typeof FixedAmountCouponSchema;
|
|
137
|
+
interface FixedAmountCouponFields extends CouponFields, AmountFields {
|
|
138
|
+
}
|
|
139
|
+
type FixedAmountCoupon = PayloadWithOptionalSources<FixedAmountCouponFields, FixedAmountCouponSchema>;
|
|
140
|
+
declare const isFixedAmountCoupon: (x?: unknown | null) => x is FixedAmountCoupon;
|
|
141
|
+
declare const asFixedAmountCoupon: {
|
|
142
|
+
<TType extends FixedAmountCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
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;
|
|
144
|
+
};
|
|
145
|
+
declare const asOptionalFixedAmountCoupon: <TType extends FixedAmountCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
146
|
+
declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
147
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
148
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>;
|
|
149
|
+
declare const asFixedAmountCouponWithSources: {
|
|
150
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
151
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
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 & {
|
|
154
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
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 & {
|
|
156
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
157
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
158
|
+
};
|
|
159
|
+
declare const asOptionalFixedAmountCouponWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
160
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
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;
|
|
162
|
+
|
|
163
|
+
declare const FixedPercentageCouponSchema: "network.xyo.payments.coupon.fixed.percentage";
|
|
164
|
+
type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema;
|
|
165
|
+
interface FixedPercentageCouponFields extends CouponFields {
|
|
166
|
+
percentage: number;
|
|
167
|
+
}
|
|
168
|
+
type FixedPercentageCoupon = PayloadWithOptionalSources<Payload<FixedPercentageCouponFields, FixedPercentageCouponSchema>>;
|
|
169
|
+
declare const isFixedPercentageCoupon: (x?: unknown | null) => x is FixedPercentageCoupon;
|
|
170
|
+
declare const asFixedPercentageCoupon: {
|
|
171
|
+
<TType extends FixedPercentageCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
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;
|
|
173
|
+
};
|
|
174
|
+
declare const asOptionalFixedPercentageCoupon: <TType extends FixedPercentageCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
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 & {
|
|
176
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
177
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>;
|
|
178
|
+
declare const asFixedPercentageCouponWithSources: {
|
|
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 & {
|
|
180
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
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 & {
|
|
183
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
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 & {
|
|
185
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
186
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields>> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
187
|
+
};
|
|
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 & {
|
|
189
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
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;
|
|
191
|
+
|
|
192
|
+
declare const FixedPriceCouponSchema: "network.xyo.payments.coupon.fixed.price";
|
|
193
|
+
type FixedPriceCouponSchema = typeof FixedPriceCouponSchema;
|
|
194
|
+
interface FixedPriceCouponFields extends CouponFields, AmountFields {
|
|
195
|
+
}
|
|
196
|
+
type FixedPriceCoupon = PayloadWithOptionalSources<FixedPriceCouponFields, FixedPriceCouponSchema>;
|
|
197
|
+
declare const isFixedPriceCoupon: (x?: unknown | null) => x is FixedPriceCoupon;
|
|
198
|
+
declare const asFixedPriceCoupon: {
|
|
199
|
+
<TType extends FixedPriceCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
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;
|
|
201
|
+
};
|
|
202
|
+
declare const asOptionalFixedPriceCoupon: <TType extends FixedPriceCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
203
|
+
declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
204
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
205
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>;
|
|
206
|
+
declare const asFixedPriceCouponWithSources: {
|
|
207
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
208
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
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 & {
|
|
211
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
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 & {
|
|
213
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
214
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
215
|
+
};
|
|
216
|
+
declare const asOptionalFixedPriceCouponWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedPriceCouponFields & {
|
|
217
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
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;
|
|
219
|
+
|
|
220
|
+
type Coupon = FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
|
|
221
|
+
declare const isCoupon: (x?: unknown | null) => x is FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
|
|
222
|
+
declare const asCoupon: {
|
|
223
|
+
<TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
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;
|
|
225
|
+
};
|
|
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 & {
|
|
227
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
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 & {
|
|
229
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
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 & {
|
|
231
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
232
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>;
|
|
233
|
+
declare const asCouponWithSources: {
|
|
234
|
+
<TType extends _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & FixedAmountCouponFields & {
|
|
235
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
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 & {
|
|
237
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
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 & {
|
|
239
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
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 & {
|
|
242
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
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 & {
|
|
244
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
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 & {
|
|
246
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
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 & {
|
|
248
|
+
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
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 & {
|
|
250
|
+
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
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 & {
|
|
252
|
+
schema: "network.xyo.payments.coupon.fixed.price";
|
|
253
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
declare const CouponSchema: "network.xyo.payments.coupon";
|
|
257
|
+
type CouponSchema = typeof CouponSchema;
|
|
258
|
+
|
|
259
|
+
declare const DiscountSchema: "network.xyo.payments.discount";
|
|
260
|
+
type DiscountSchema = typeof DiscountSchema;
|
|
261
|
+
interface DiscountFields extends AmountFields {
|
|
262
|
+
}
|
|
263
|
+
type Discount = PayloadWithOptionalSources<DiscountFields, DiscountSchema>;
|
|
264
|
+
declare const isDiscount: (x?: unknown | null) => x is Discount;
|
|
265
|
+
declare const asDiscount: {
|
|
266
|
+
<TType extends Discount>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
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;
|
|
268
|
+
};
|
|
269
|
+
declare const asOptionalDiscount: <TType extends Discount>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
270
|
+
declare const isDiscountWithSources: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DiscountFields & {
|
|
271
|
+
schema: "network.xyo.payments.discount";
|
|
272
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField;
|
|
273
|
+
declare const asDiscountWithSources: {
|
|
274
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DiscountFields & {
|
|
275
|
+
schema: "network.xyo.payments.discount";
|
|
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 & {
|
|
278
|
+
schema: "network.xyo.payments.discount";
|
|
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 & {
|
|
280
|
+
schema: "network.xyo.payments.discount";
|
|
281
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
282
|
+
};
|
|
283
|
+
declare const asOptionalDiscountWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DiscountFields & {
|
|
284
|
+
schema: "network.xyo.payments.discount";
|
|
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;
|
|
286
|
+
|
|
287
|
+
declare const NO_DISCOUNT: Discount;
|
|
288
|
+
|
|
289
|
+
declare const EscrowOutcomeSchema: "network.xyo.escrow.outcome";
|
|
290
|
+
type EscrowOutcomeSchema = typeof EscrowOutcomeSchema;
|
|
291
|
+
type EscrowOutcomes = 'fulfilled' | 'expired';
|
|
292
|
+
interface EscrowOutcomeFields {
|
|
293
|
+
outcome: EscrowOutcomes;
|
|
294
|
+
terms: Hash;
|
|
295
|
+
}
|
|
296
|
+
type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcomeSchema>;
|
|
297
|
+
declare const isEscrowOutcome: (x?: unknown | null) => x is EscrowOutcome;
|
|
298
|
+
declare const asEscrowOutcome: {
|
|
299
|
+
<TType extends EscrowOutcome>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
300
|
+
<TType extends EscrowOutcome>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<EscrowOutcome>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
301
|
+
};
|
|
302
|
+
declare const asOptionalEscrowOutcome: <TType extends EscrowOutcome>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
303
|
+
declare const isEscrowOutcomeWithSources: (x?: unknown | null) => x is WithSources<EscrowOutcome>;
|
|
304
|
+
declare const asEscrowOutcomeWithSources: <TType extends WithSources<EscrowOutcome>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
305
|
+
declare const asOptionalEscrowOutcomeWithSources: <TType extends WithSources<EscrowOutcome>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
306
|
+
|
|
307
|
+
declare const EscrowSchema = "network.xyo.escrow";
|
|
308
|
+
type EscrowSchema = typeof EscrowSchema;
|
|
309
|
+
|
|
310
|
+
declare const EscrowTermsSchema: "network.xyo.escrow.terms";
|
|
311
|
+
type EscrowTermsSchema = typeof EscrowTermsSchema;
|
|
312
|
+
interface EscrowTermsFields {
|
|
313
|
+
appraisalAuthorities: Address[];
|
|
314
|
+
appraisals: Hash[];
|
|
315
|
+
assets: Hash[];
|
|
316
|
+
buyer: Address[];
|
|
317
|
+
buyerSecret: Hash;
|
|
318
|
+
discounts: Hash[];
|
|
319
|
+
escrowAgent: Address;
|
|
320
|
+
exp: number;
|
|
321
|
+
nbf: number;
|
|
322
|
+
paymentAuthorities: Address[];
|
|
323
|
+
seller: Address[];
|
|
324
|
+
sellerSecret: Hash;
|
|
325
|
+
}
|
|
326
|
+
type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>;
|
|
327
|
+
declare const isEscrowTerms: (x?: unknown | null) => x is EscrowTerms;
|
|
328
|
+
declare const asEscrowTerms: {
|
|
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;
|
|
331
|
+
};
|
|
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>;
|
|
334
|
+
declare const asEscrowTermsWithSources: {
|
|
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;
|
|
337
|
+
};
|
|
338
|
+
declare const asOptionalEscrowTermsWithSources: <TType extends EscrowTerms>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
339
|
+
|
|
340
|
+
type EscrowParty = keyof Pick<EscrowTermsFields, 'buyer' | 'seller'>;
|
|
341
|
+
|
|
342
|
+
type EscrowPartySecret = keyof Pick<EscrowTermsFields, 'buyerSecret' | 'sellerSecret'>;
|
|
343
|
+
|
|
344
|
+
declare const getAppraisalsByAsset: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, WithSources<HashLeaseEstimate>[]>;
|
|
345
|
+
|
|
346
|
+
declare const getSignaturesByAppraisal: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, BoundWitness[]>;
|
|
347
|
+
|
|
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[]]>;
|
|
349
|
+
|
|
350
|
+
declare const findEscrowPartySecretSignatures: (terms: EscrowTerms, dictionary: Record<Hash, Payload>, party: EscrowParty) => BoundWitness[];
|
|
351
|
+
|
|
352
|
+
declare const getEscrowSecret: () => IdPayload;
|
|
353
|
+
|
|
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[]]>;
|
|
355
|
+
|
|
356
|
+
declare const moduleIdentifiersContainsOneOf: (escrowTerms: EscrowTerms, propertyExpression: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
|
|
357
|
+
declare const moduleIdentifiersContainsAllOf: (escrowTerms: EscrowTerms, selector: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
|
|
358
|
+
|
|
359
|
+
declare const getPartySecretSignedValidator: (dictionary: Record<Hash, Payload>, party: EscrowParty) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
360
|
+
|
|
361
|
+
type Windowed = {
|
|
362
|
+
exp?: number;
|
|
363
|
+
nbf?: number;
|
|
364
|
+
};
|
|
365
|
+
declare const validateWithinWindow: (value: Windowed, exp: number, nbf?: number) => boolean;
|
|
366
|
+
|
|
367
|
+
declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
368
|
+
|
|
369
|
+
declare const appraisalsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
370
|
+
declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
371
|
+
declare const getAppraisalsValidValidator: (dictionary: Record<Hash, Payload>, minimumExp: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
372
|
+
declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
373
|
+
|
|
374
|
+
declare const appraisalAuthoritiesExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
375
|
+
declare const getAppraisalAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
376
|
+
|
|
377
|
+
declare const assetsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
378
|
+
|
|
379
|
+
declare const buyerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
380
|
+
|
|
381
|
+
declare const buyerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
382
|
+
declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
383
|
+
declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
384
|
+
|
|
385
|
+
declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
386
|
+
|
|
387
|
+
declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
388
|
+
|
|
389
|
+
declare const sellerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
390
|
+
|
|
391
|
+
declare const sellerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
392
|
+
declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
393
|
+
declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
394
|
+
|
|
395
|
+
declare const PaymentCardSchema = "network.xyo.payments.payment.instrument.card";
|
|
396
|
+
type PaymentCardSchema = typeof PaymentCardSchema;
|
|
397
|
+
|
|
398
|
+
interface PaymentCardFields {
|
|
399
|
+
cardNumber: string;
|
|
400
|
+
cardholderName?: string;
|
|
401
|
+
cvv: string;
|
|
402
|
+
expMonth: number;
|
|
403
|
+
expYear: number;
|
|
404
|
+
}
|
|
405
|
+
type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
|
|
406
|
+
declare const isPaymentCard: (x?: unknown | null) => x is PaymentCard;
|
|
407
|
+
declare const asPaymentCard: {
|
|
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;
|
|
410
|
+
};
|
|
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>;
|
|
413
|
+
declare const asPaymentCardWithSources: {
|
|
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;
|
|
416
|
+
};
|
|
417
|
+
declare const asOptionalPaymentCardWithSources: <TType extends WithSources<PaymentCard>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
418
|
+
|
|
419
|
+
declare const PaymentInstrumentSchema = "network.xyo.payments.payment.instrument";
|
|
420
|
+
type PaymentInstrumentSchema = typeof PaymentInstrumentSchema;
|
|
421
|
+
|
|
422
|
+
declare const PaymentSchema = "network.xyo.payments.payment";
|
|
423
|
+
type PaymentSchema = typeof PaymentSchema;
|
|
424
|
+
|
|
425
|
+
interface PaymentFields {
|
|
426
|
+
amount: number;
|
|
427
|
+
currency: SupportedCurrency;
|
|
428
|
+
}
|
|
429
|
+
type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
|
|
430
|
+
declare const isPayment: (x?: unknown | null) => x is Payment;
|
|
431
|
+
declare const asPayment: {
|
|
432
|
+
<TType extends Payment>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
433
|
+
<TType extends Payment>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Payment>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
434
|
+
};
|
|
435
|
+
declare const asOptionalPayment: <TType extends Payment>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
436
|
+
declare const isPaymentWithSources: (x?: unknown | null) => x is WithSources<Payment>;
|
|
437
|
+
declare const asPaymentWithSources: {
|
|
438
|
+
<TType extends WithSources<Payment>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
439
|
+
<TType extends WithSources<Payment>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<Payment>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
440
|
+
};
|
|
441
|
+
declare const asOptionalPaymentWithSources: <TType extends WithSources<Payment>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
442
|
+
|
|
443
|
+
declare const PaymentStatusSchema = "network.xyo.payments.payment.status";
|
|
444
|
+
type PaymentStatusSchema = typeof PaymentStatusSchema;
|
|
445
|
+
|
|
446
|
+
interface PaymentStatusFields {
|
|
447
|
+
result?: string;
|
|
448
|
+
status: string;
|
|
449
|
+
}
|
|
450
|
+
type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatusSchema>;
|
|
451
|
+
declare const isPaymentStatus: (x?: unknown | null) => x is PaymentStatus;
|
|
452
|
+
declare const asPaymentStatus: {
|
|
453
|
+
<TType extends PaymentStatus>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
454
|
+
<TType extends PaymentStatus>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<PaymentStatus>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
455
|
+
};
|
|
456
|
+
declare const asOptionalPaymentStatus: <TType extends PaymentStatus>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
457
|
+
declare const isPaymentStatusWithSources: (x?: unknown | null) => x is WithSources<PaymentStatus>;
|
|
458
|
+
declare const asPaymentStatusWithSources: {
|
|
459
|
+
<TType extends WithSources<PaymentStatus>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
460
|
+
<TType extends WithSources<PaymentStatus>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<PaymentStatus>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
461
|
+
};
|
|
462
|
+
declare const asOptionalPaymentStatusWithSources: <TType extends WithSources<PaymentStatus>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
463
|
+
|
|
464
|
+
declare const PaymentSubtotalDivinerConfigSchema = "network.xyo.diviner.payments.subtotal.config";
|
|
465
|
+
type PaymentSubtotalDivinerConfigSchema = typeof PaymentSubtotalDivinerConfigSchema;
|
|
466
|
+
type PaymentSubtotalDivinerConfig = DivinerConfig<{}, PaymentSubtotalDivinerConfigSchema>;
|
|
467
|
+
|
|
468
|
+
type PaymentSubtotalDivinerParams<TConfig extends AnyConfigSchema<PaymentSubtotalDivinerConfig> = AnyConfigSchema<PaymentSubtotalDivinerConfig>> = DivinerParams<TConfig>;
|
|
469
|
+
|
|
470
|
+
declare const SubtotalSchema: "network.xyo.payments.subtotal";
|
|
471
|
+
type SubtotalSchema = typeof SubtotalSchema;
|
|
472
|
+
interface SubtotalFields extends AmountFields {
|
|
473
|
+
}
|
|
474
|
+
type Subtotal = PayloadWithSources<SubtotalFields, SubtotalSchema>;
|
|
475
|
+
declare const isSubtotal: (x?: unknown | null) => x is Subtotal;
|
|
476
|
+
declare const asSubtotal: {
|
|
477
|
+
<TType extends Subtotal>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
478
|
+
<TType extends Subtotal>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Subtotal>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
479
|
+
};
|
|
480
|
+
declare const asOptionalSubtotal: <TType extends Subtotal>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
481
|
+
declare const isSubtotalWithSources: (x?: unknown | null) => x is WithSources<Subtotal>;
|
|
482
|
+
declare const asSubtotalWithSources: {
|
|
483
|
+
<TType extends WithSources<Subtotal>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
484
|
+
<TType extends WithSources<Subtotal>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<Subtotal>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
485
|
+
};
|
|
486
|
+
declare const asOptionalSubtotalWithSources: <TType extends WithSources<Subtotal>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
487
|
+
|
|
488
|
+
declare const PaymentTotalDivinerConfigSchema = "network.xyo.diviner.payments.total.config";
|
|
489
|
+
type PaymentTotalDivinerConfigSchema = typeof PaymentTotalDivinerConfigSchema;
|
|
490
|
+
type PaymentTotalDivinerConfig = DivinerConfig<{
|
|
491
|
+
paymentDiscountDiviner?: ModuleIdentifier;
|
|
492
|
+
paymentSubtotalDiviner?: ModuleIdentifier;
|
|
493
|
+
}, PaymentTotalDivinerConfigSchema>;
|
|
494
|
+
|
|
495
|
+
type PaymentTotalDivinerParams<TConfig extends AnyConfigSchema<PaymentTotalDivinerConfig> = AnyConfigSchema<PaymentTotalDivinerConfig>> = DivinerParams<TConfig>;
|
|
496
|
+
|
|
497
|
+
declare const TotalSchema: "network.xyo.payments.total";
|
|
498
|
+
type TotalSchema = typeof TotalSchema;
|
|
499
|
+
interface TotalFields extends AmountFields {
|
|
500
|
+
}
|
|
501
|
+
type Total = PayloadWithSources<TotalFields, TotalSchema>;
|
|
502
|
+
declare const isTotal: (x?: unknown | null) => x is Total;
|
|
503
|
+
declare const asTotal: {
|
|
504
|
+
<TType extends Total>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
505
|
+
<TType extends Total>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Total>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
506
|
+
};
|
|
507
|
+
declare const asOptionalTotal: <TType extends Total>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
508
|
+
declare const isTotalWithSources: (x?: unknown | null) => x is WithSources<Total>;
|
|
509
|
+
declare const asTotalWithSources: {
|
|
510
|
+
<TType extends WithSources<Total>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
511
|
+
<TType extends WithSources<Total>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<Total>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
512
|
+
};
|
|
513
|
+
declare const asOptionalTotalWithSources: <TType extends WithSources<Total>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
514
|
+
|
|
515
|
+
type StandardInvoice = [Subtotal, Total, Payment];
|
|
516
|
+
type DiscountedInvoice = [...StandardInvoice, Discount];
|
|
517
|
+
type Invoice = StandardInvoice | DiscountedInvoice;
|
|
518
|
+
|
|
519
|
+
declare const PurchaseSchema = "network.xyo.payments.purchase";
|
|
520
|
+
type PurchaseSchema = typeof PurchaseSchema;
|
|
521
|
+
|
|
522
|
+
interface PurchaseFields {
|
|
523
|
+
assets: Hash[];
|
|
524
|
+
receipts: Hash[];
|
|
525
|
+
}
|
|
526
|
+
type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
|
|
527
|
+
declare const isPurchase: (x?: unknown | null) => x is Purchase;
|
|
528
|
+
declare const asPurchase: {
|
|
529
|
+
<TType extends Purchase>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
530
|
+
<TType extends Purchase>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Purchase>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
531
|
+
};
|
|
532
|
+
declare const asOptionalPurchase: <TType extends Purchase>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
533
|
+
declare const isPurchaseWithSources: (x?: unknown | null) => x is WithSources<Purchase>;
|
|
534
|
+
declare const asPurchaseWithSources: {
|
|
535
|
+
<TType extends WithSources<Purchase>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
536
|
+
<TType extends WithSources<Purchase>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<Purchase>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
537
|
+
};
|
|
538
|
+
declare const asOptionalPurchaseWithSources: <TType extends WithSources<Purchase>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
539
|
+
|
|
540
|
+
declare const ReceiptSchema = "network.xyo.payments.receipt";
|
|
541
|
+
type ReceiptSchema = typeof ReceiptSchema;
|
|
542
|
+
|
|
543
|
+
interface ReceiptFields {
|
|
544
|
+
amount: number;
|
|
545
|
+
currency: SupportedCurrency;
|
|
546
|
+
}
|
|
547
|
+
type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>;
|
|
548
|
+
declare const isReceipt: (x?: unknown | null) => x is Receipt;
|
|
549
|
+
declare const asReceipt: {
|
|
550
|
+
<TType extends Receipt>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
551
|
+
<TType extends Receipt>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Receipt>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
552
|
+
};
|
|
553
|
+
declare const asOptionalReceipt: <TType extends Receipt>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
554
|
+
declare const isReceiptWithSources: (x?: unknown | null) => x is WithSources<Receipt>;
|
|
555
|
+
declare const asReceiptWithSources: {
|
|
556
|
+
<TType extends WithSources<Receipt>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
557
|
+
<TType extends WithSources<Receipt>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<Receipt>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
558
|
+
};
|
|
559
|
+
declare const asOptionalReceiptWithSources: <TType extends WithSources<Receipt>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
560
|
+
|
|
561
|
+
export { type Amount, type AmountFields, AmountSchema, type BillingAddress, type BillingAddressFields, BillingAddressSchema, BillingSchema, type BuyerCondition, type Condition, type Coupon, type CouponFields, CouponSchema, type Discount, type DiscountFields, DiscountSchema, type DiscountedInvoice, type EscrowOutcome, type EscrowOutcomeFields, EscrowOutcomeSchema, type EscrowOutcomes, type EscrowParty, type EscrowPartySecret, EscrowSchema, type EscrowTerms, type EscrowTermsFields, EscrowTermsSchema, type FixedAmountCoupon, type FixedAmountCouponFields, FixedAmountCouponSchema, type FixedPercentageCoupon, type FixedPercentageCouponFields, FixedPercentageCouponSchema, type FixedPriceCoupon, type FixedPriceCouponFields, FixedPriceCouponSchema, type Invoice, type Iso4217AlphabeticalCode, Iso4217CurrencyCodes, type Iso4217NumericCode, NO_DISCOUNT, type Payment, type PaymentCard, type PaymentCardFields, PaymentCardSchema, type PaymentDiscountDivinerConfig, PaymentDiscountDivinerConfigSchema, type PaymentDiscountDivinerParams, type PaymentFields, PaymentInstrumentSchema, PaymentSchema, type PaymentStatus, type PaymentStatusFields, PaymentStatusSchema, type PaymentSubtotalDivinerConfig, PaymentSubtotalDivinerConfigSchema, type PaymentSubtotalDivinerParams, type PaymentTotalDivinerConfig, PaymentTotalDivinerConfigSchema, type PaymentTotalDivinerParams, type Purchase, type PurchaseFields, PurchaseSchema, type Receipt, type ReceiptFields, ReceiptSchema, type StandardInvoice, type Subtotal, type SubtotalFields, SubtotalSchema, type SupportedCurrency, type Total, type TotalFields, TotalSchema, type Windowed, appraisalAuthoritiesExistValidator, appraisalsExistValidator, asAmount, asAmountWithSources, asBillingAddress, asBillingAddressWithSources, asCondition, asConditionWithSources, asCoupon, asCouponWithSources, asDiscount, asDiscountWithSources, asEscrowOutcome, asEscrowOutcomeWithSources, asEscrowTerms, asEscrowTermsWithSources, asFixedAmountCoupon, asFixedAmountCouponWithSources, asFixedPercentageCoupon, asFixedPercentageCouponWithSources, asFixedPriceCoupon, asFixedPriceCouponWithSources, asOptionalAmount, asOptionalAmountWithSources, asOptionalBillingAddress, asOptionalBillingAddressWithSources, asOptionalDiscount, asOptionalDiscountWithSources, asOptionalEscrowOutcome, asOptionalEscrowOutcomeWithSources, asOptionalEscrowTerms, asOptionalEscrowTermsWithSources, asOptionalFixedAmountCoupon, asOptionalFixedAmountCouponWithSources, asOptionalFixedPercentageCoupon, asOptionalFixedPercentageCouponWithSources, asOptionalFixedPriceCoupon, asOptionalFixedPriceCouponWithSources, asOptionalPayment, asOptionalPaymentCard, asOptionalPaymentCardWithSources, asOptionalPaymentStatus, asOptionalPaymentStatusWithSources, asOptionalPaymentWithSources, asOptionalPurchase, asOptionalPurchaseWithSources, asOptionalReceipt, asOptionalReceiptWithSources, asOptionalSubtotal, asOptionalSubtotalWithSources, asOptionalTotal, asOptionalTotalWithSources, asPayment, asPaymentCard, asPaymentCardWithSources, asPaymentStatus, asPaymentStatusWithSources, asPaymentWithSources, asPurchase, asPurchaseWithSources, asReceipt, asReceiptWithSources, asSubtotal, asSubtotalWithSources, asTotal, asTotalWithSources, assetsExistValidator, buyerExistsValidator, buyerSecretExistsValidator, createConditionForMaximumAppraisalAmount, createConditionForMinimumAssetQuantity, createConditionForRequiredBuyer, createEscrowIntentWithSecret, findEscrowPartySecretSignatures, getAppraisalAuthoritiesAllowedValidator, getAppraisalsByAsset, getAppraisalsForAllAssetsValidator, getAppraisalsFromValidAuthoritiesValidator, getAppraisalsValidValidator, getBuyerSecretSignedValidator, getBuyerSecretSuppliedValidator, getEscrowAgentAllowedValidator, getEscrowSecret, getNbfExpValidator, getPartySecretSignedValidator, getPaymentAuthoritiesAllowedValidator, getSellerSecretSignedValidator, getSellerSecretSuppliedValidator, getSignaturesByAppraisal, isAmount, isAmountWithSources, isBillingAddress, isBillingAddressWithSources, isCondition, isConditionWithSources, isCoupon, isCouponWithSources, isDiscount, isDiscountWithSources, isEscrowOutcome, isEscrowOutcomeWithSources, isEscrowTerms, isEscrowTermsWithSources, isFixedAmountCoupon, isFixedAmountCouponWithSources, isFixedPercentageCoupon, isFixedPercentageCouponWithSources, isFixedPriceCoupon, isFixedPriceCouponWithSources, isIso4217CurrencyCode, isPayment, isPaymentCard, isPaymentCardWithSources, isPaymentStatus, isPaymentStatusWithSources, isPaymentWithSources, isPurchase, isPurchaseWithSources, isReceipt, isReceiptWithSources, isStackable, isSubtotal, isSubtotalWithSources, isTotal, isTotalWithSources, moduleIdentifiersContainsAllOf, moduleIdentifiersContainsOneOf, sellerExistsValidator, sellerSecretExistsValidator, updateEscrowTermsWithSecret, validateWithinWindow };
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -552,8 +552,7 @@ var getPartySecretSignedValidator = (dictionary, party) => {
|
|
|
552
552
|
// src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts
|
|
553
553
|
var validateWithinWindow = (value, exp, nbf = Date.now()) => {
|
|
554
554
|
if (value.nbf === void 0 || value.nbf > nbf) return false;
|
|
555
|
-
|
|
556
|
-
return true;
|
|
555
|
+
return !(value.exp === void 0 || value.exp < exp);
|
|
557
556
|
};
|
|
558
557
|
|
|
559
558
|
// src/Escrow/validators/escrow/agent.ts
|
|
@@ -633,8 +632,7 @@ var getAppraisalsForAllAssetsValidator = (dictionary) => {
|
|
|
633
632
|
var validateEstimate = (estimate, exp) => {
|
|
634
633
|
if (!validateWithinWindow(estimate, exp)) return false;
|
|
635
634
|
if (estimate.currency !== "USD") return false;
|
|
636
|
-
|
|
637
|
-
return true;
|
|
635
|
+
return estimate.price >= 0;
|
|
638
636
|
};
|
|
639
637
|
|
|
640
638
|
// src/Escrow/validators/escrow/appraisalAuthorities.ts
|