@xyo-network/payment-payload-plugins 3.3.0 → 3.4.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/index.d.ts +1159 -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 -44
- 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 -46
- 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
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Returns a function that validates the escrow terms for assets
|
|
5
|
-
* @returns A function that validates the escrow terms for assets
|
|
6
|
-
*/
|
|
7
|
-
export declare const assetsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
|
-
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* A function that validates the escrow terms for buyer
|
|
5
|
-
* @returns True if the escrow terms contain buyer, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare const buyerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
|
-
//# sourceMappingURL=buyer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Returns a function that validates the escrow terms for buyerSecret
|
|
6
|
-
* @returns A function that validates the escrow terms for buyerSecret
|
|
7
|
-
*/
|
|
8
|
-
export declare const buyerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
-
/**
|
|
10
|
-
* Returns a function that validates the escrow terms for the existence of the buyerSecret in the dictionary
|
|
11
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
12
|
-
* @returns A function that validates the escrow terms for the existence of the buyerSecret in the dictionary
|
|
13
|
-
*/
|
|
14
|
-
export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
|
|
17
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
18
|
-
* @returns A function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
|
|
19
|
-
*/
|
|
20
|
-
export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
21
|
-
//# sourceMappingURL=buyerSecret.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,6BAA6B,CAAC,WAAW,CAQjF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS5H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE3H,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './agent.ts';
|
|
2
|
-
export * from './appraisal.ts';
|
|
3
|
-
export * from './appraisalAuthorities.ts';
|
|
4
|
-
export * from './assets.ts';
|
|
5
|
-
export * from './buyer.ts';
|
|
6
|
-
export * from './buyerSecret.ts';
|
|
7
|
-
export * from './nbfExp.ts';
|
|
8
|
-
export * from './paymentAuthorities.ts';
|
|
9
|
-
export * from './seller.ts';
|
|
10
|
-
export * from './sellerSecret.ts';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
-
export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
|
-
//# sourceMappingURL=nbfExp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD,eAAO,MAAM,kBAAkB,QAAS,MAAM,uBAAuB,MAAM,KAAG,6BAA6B,CAAC,WAAW,CActH,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
|
-
//# sourceMappingURL=paymentAuthorities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,qCAAqC,YAAa,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ5H,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* A function that validates the escrow terms for seller
|
|
5
|
-
* @returns True if the escrow terms contain seller, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare const sellerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
|
-
//# sourceMappingURL=seller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,WAAW,CAa5E,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Returns a function that validates the escrow terms for sellerSecret
|
|
6
|
-
* @returns A function that validates the escrow terms for sellerSecret
|
|
7
|
-
*/
|
|
8
|
-
export declare const sellerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
-
/**
|
|
10
|
-
* Returns a function that validates the escrow terms for the existence of the sellerSecret in the dictionary
|
|
11
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
12
|
-
* @returns A function that validates the escrow terms for the existence of the sellerSecret in the dictionary
|
|
13
|
-
*/
|
|
14
|
-
export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a function that validates the escrow terms for the existence of the sellerSecret signed by the seller
|
|
17
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
18
|
-
* @returns A function that validates the escrow terms for the existence of the sellerSecret signed by the seller
|
|
19
|
-
*/
|
|
20
|
-
export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
21
|
-
//# sourceMappingURL=sellerSecret.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,6BAA6B,CAAC,WAAW,CAQlF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS7H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE5H,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Discount } from '../Discount/index.ts';
|
|
2
|
-
import type { Payment } from '../Payment/index.ts';
|
|
3
|
-
import type { Subtotal } from '../Subtotal/index.ts';
|
|
4
|
-
import type { Total } from '../Total/index.ts';
|
|
5
|
-
/**
|
|
6
|
-
* A tuple containing the subtotal, total, and payment for an invoice.
|
|
7
|
-
*/
|
|
8
|
-
export type StandardInvoice = [Subtotal, Total, Payment];
|
|
9
|
-
/**
|
|
10
|
-
* A tuple containing the subtotal, total, payment, and discount for an invoice.
|
|
11
|
-
*/
|
|
12
|
-
export type DiscountedInvoice = [...StandardInvoice, Discount];
|
|
13
|
-
/**
|
|
14
|
-
* An invoice.
|
|
15
|
-
*/
|
|
16
|
-
export type Invoice = StandardInvoice | DiscountedInvoice;
|
|
17
|
-
//# sourceMappingURL=Invoice.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../src/Invoice/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;AAExD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,eAAe,EAAE,QAAQ,CAAC,CAAA;AAE9D;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Invoice/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import { PaymentCardSchema } from './Schema.ts';
|
|
3
|
-
/**
|
|
4
|
-
* The fields describing a payment card.
|
|
5
|
-
*/
|
|
6
|
-
export interface PaymentCardFields {
|
|
7
|
-
/**
|
|
8
|
-
* Card Number (PAN) of the payment card. This value is required to perform a payment.
|
|
9
|
-
*/
|
|
10
|
-
cardNumber: string;
|
|
11
|
-
/**
|
|
12
|
-
* The name as it appears on the payment card.
|
|
13
|
-
*/
|
|
14
|
-
cardholderName?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
17
|
-
*/
|
|
18
|
-
cvv: string;
|
|
19
|
-
/**
|
|
20
|
-
* Expiration month of the payment card.
|
|
21
|
-
*/
|
|
22
|
-
expMonth: number;
|
|
23
|
-
/**
|
|
24
|
-
* Expiration year of the payment card.
|
|
25
|
-
*/
|
|
26
|
-
expYear: number;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A PaymentCard Payload
|
|
30
|
-
*/
|
|
31
|
-
export type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
|
|
32
|
-
/**
|
|
33
|
-
* Identity function for determine if an object is a PaymentCard
|
|
34
|
-
*/
|
|
35
|
-
export declare const isPaymentCard: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
36
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
37
|
-
cardNumber: string;
|
|
38
|
-
cardholderName?: string
|
|
39
|
-
/**
|
|
40
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
41
|
-
*/
|
|
42
|
-
| undefined;
|
|
43
|
-
cvv: string;
|
|
44
|
-
expMonth: number;
|
|
45
|
-
expYear: number;
|
|
46
|
-
}>;
|
|
47
|
-
export declare const asPaymentCard: {
|
|
48
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
49
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
50
|
-
cardNumber: string;
|
|
51
|
-
cardholderName?: string
|
|
52
|
-
/**
|
|
53
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
54
|
-
*/
|
|
55
|
-
| undefined;
|
|
56
|
-
cvv: string;
|
|
57
|
-
expMonth: number;
|
|
58
|
-
expYear: number;
|
|
59
|
-
}>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
60
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
61
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
62
|
-
cardNumber: string;
|
|
63
|
-
cardholderName?: string
|
|
64
|
-
/**
|
|
65
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
66
|
-
*/
|
|
67
|
-
| undefined;
|
|
68
|
-
cvv: string;
|
|
69
|
-
expMonth: number;
|
|
70
|
-
expYear: number;
|
|
71
|
-
}>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
72
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
73
|
-
cardNumber: string;
|
|
74
|
-
cardholderName?: string
|
|
75
|
-
/**
|
|
76
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
77
|
-
*/
|
|
78
|
-
| undefined;
|
|
79
|
-
cvv: string;
|
|
80
|
-
expMonth: number;
|
|
81
|
-
expYear: number;
|
|
82
|
-
}>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
83
|
-
};
|
|
84
|
-
export declare const asOptionalPaymentCard: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
85
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
86
|
-
cardNumber: string;
|
|
87
|
-
cardholderName?: string
|
|
88
|
-
/**
|
|
89
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
90
|
-
*/
|
|
91
|
-
| undefined;
|
|
92
|
-
cvv: string;
|
|
93
|
-
expMonth: number;
|
|
94
|
-
expYear: number;
|
|
95
|
-
}>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Identity function for determine if an object is a PaymentCard with sources
|
|
98
|
-
*/
|
|
99
|
-
export declare const isPaymentCardWithSources: (x?: unknown | null) => x is WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
100
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
101
|
-
cardNumber: string;
|
|
102
|
-
cardholderName?: string
|
|
103
|
-
/**
|
|
104
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
105
|
-
*/
|
|
106
|
-
| undefined;
|
|
107
|
-
cvv: string;
|
|
108
|
-
expMonth: number;
|
|
109
|
-
expYear: number;
|
|
110
|
-
}>>;
|
|
111
|
-
export declare const asPaymentCardWithSources: {
|
|
112
|
-
<TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
113
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
114
|
-
cardNumber: string;
|
|
115
|
-
cardholderName?: string
|
|
116
|
-
/**
|
|
117
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
118
|
-
*/
|
|
119
|
-
| undefined;
|
|
120
|
-
cvv: string;
|
|
121
|
-
expMonth: number;
|
|
122
|
-
expYear: number;
|
|
123
|
-
}>>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
124
|
-
<TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
125
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
126
|
-
cardNumber: string;
|
|
127
|
-
cardholderName?: string
|
|
128
|
-
/**
|
|
129
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
130
|
-
*/
|
|
131
|
-
| undefined;
|
|
132
|
-
cvv: string;
|
|
133
|
-
expMonth: number;
|
|
134
|
-
expYear: number;
|
|
135
|
-
}>>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
136
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
137
|
-
cardNumber: string;
|
|
138
|
-
cardholderName?: string
|
|
139
|
-
/**
|
|
140
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
141
|
-
*/
|
|
142
|
-
| undefined;
|
|
143
|
-
cvv: string;
|
|
144
|
-
expMonth: number;
|
|
145
|
-
expYear: number;
|
|
146
|
-
}>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
147
|
-
};
|
|
148
|
-
export declare const asOptionalPaymentCardWithSources: <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
149
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
150
|
-
cardNumber: string;
|
|
151
|
-
cardholderName?: string
|
|
152
|
-
/**
|
|
153
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
154
|
-
*/
|
|
155
|
-
| undefined;
|
|
156
|
-
cvv: string;
|
|
157
|
-
expMonth: number;
|
|
158
|
-
expYear: number;
|
|
159
|
-
}>>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
160
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,aAAa;;gBA3BZ,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;EAWiE,CAAA;AAClF,eAAO,MAAM,aAAa;;;oBA5BZ,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;sBAzBY,qDAAgB,iCAGpB,gBAEzB;;;oBAIc,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;sBAlBmB,qDAAiB;;oBAEvC,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;yBAdW,gBAAmB;CA0BgC,CAAA;AAC/E,eAAO,MAAM,qBAAqB;;gBA7BpB,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;kBANL,qDAAiB,qCAmBkE,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB;;gBAlCvB,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;GAkBuF,CAAA;AACxG,eAAO,MAAM,wBAAwB;;;oBAnCvB,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;uBAzBY,qDAAgB,iCAGpB,gBAEzB;;;oBAIc,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;uBAlBmB,qDAAiB;;oBAEvC,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;0BAdW,gBAAmB;CAiCmE,CAAA;AAClH,eAAO,MAAM,gCAAgC;;gBApC/B,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;mBANL,qDAAiB,qCA0BqG,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,iDAAoC,CAAA;AAClE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Instrument/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,4CAAgC,CAAA;AACpE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Instrument/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { SupportedCurrency } from '../Currency.ts';
|
|
3
|
-
import { PaymentSchema } from './Schema.ts';
|
|
4
|
-
export interface PaymentFields {
|
|
5
|
-
/**
|
|
6
|
-
* The amount paid
|
|
7
|
-
*/
|
|
8
|
-
amount: number;
|
|
9
|
-
/**
|
|
10
|
-
* The currency of the amount paid
|
|
11
|
-
*/
|
|
12
|
-
currency: SupportedCurrency;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A payment is a record of an amount to be paid
|
|
16
|
-
*/
|
|
17
|
-
export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
|
|
18
|
-
/**
|
|
19
|
-
* Identity function for determine if an object is a Payment
|
|
20
|
-
*/
|
|
21
|
-
export declare const isPayment: (x?: unknown | null) => x is Payment;
|
|
22
|
-
export declare const asPayment: {
|
|
23
|
-
<TType extends Payment>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
24
|
-
<TType extends Payment>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Payment>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
25
|
-
};
|
|
26
|
-
export declare const asOptionalPayment: <TType extends Payment>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Identity function for determine if an object is a Payment with sources
|
|
29
|
-
*/
|
|
30
|
-
export declare const isPaymentWithSources: (x?: unknown | null) => x is WithSources<Payment>;
|
|
31
|
-
export declare const asPaymentWithSources: {
|
|
32
|
-
<TType extends WithSources<Payment>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
33
|
-
<TType extends WithSources<Payment>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Payment>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
34
|
-
};
|
|
35
|
-
export declare const asOptionalPaymentWithSources: <TType extends WithSources<Payment>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
36
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AACtE,eAAO,MAAM,SAAS;0CAvBV,qDAAiB,iCACtB,gBAAmB;0CAKvB,qDACQ,kGAQN,gBAAmB;CAQ2C,CAAA;AACnE,eAAO,MAAM,iBAAiB,wCAJG,qDAAiB,qCAIiC,CAAA;AAEnF;;GAEG;AACH,eAAO,MAAM,oBAAoB,mDAA2D,CAAA;AAC5F,eAAO,MAAM,oBAAoB;uDA9BrB,qDAAiB,iCACtB,gBAAmB;uDAKvB,qDACQ,+GAQN,gBAAmB;CAe8E,CAAA;AACtG,eAAO,MAAM,4BAA4B,qDAXR,qDAAiB,qCAWoE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Payment/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,iCAA8B,CAAA;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import { PaymentStatusSchema } from './Schema.ts';
|
|
3
|
-
export interface PaymentStatusFields {
|
|
4
|
-
/**
|
|
5
|
-
* The result of the payment (i.e. declined)
|
|
6
|
-
*/
|
|
7
|
-
result?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The status of the payment (i.e. completed)
|
|
10
|
-
*/
|
|
11
|
-
status: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A payment status is the outcome of a payment attempt
|
|
15
|
-
*/
|
|
16
|
-
export type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatusSchema>;
|
|
17
|
-
/**
|
|
18
|
-
* Identity function for determine if an object is a PaymentStatus
|
|
19
|
-
*/
|
|
20
|
-
export declare const isPaymentStatus: (x?: unknown | null) => x is PaymentStatus;
|
|
21
|
-
export declare const asPaymentStatus: {
|
|
22
|
-
<TType extends PaymentStatus>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
23
|
-
<TType extends PaymentStatus>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<PaymentStatus>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
24
|
-
};
|
|
25
|
-
export declare const asOptionalPaymentStatus: <TType extends PaymentStatus>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Identity function for determine if an object is a PaymentStatus with sources
|
|
28
|
-
*/
|
|
29
|
-
export declare const isPaymentStatusWithSources: (x?: unknown | null) => x is WithSources<PaymentStatus>;
|
|
30
|
-
export declare const asPaymentStatusWithSources: {
|
|
31
|
-
<TType extends WithSources<PaymentStatus>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
32
|
-
<TType extends WithSources<PaymentStatus>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<PaymentStatus>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
33
|
-
};
|
|
34
|
-
export declare const asOptionalPaymentStatusWithSources: <TType extends WithSources<PaymentStatus>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
35
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AACxF,eAAO,MAAM,eAAe;gDAvBhB,qDAAiB,iCAElB,gBAAoB;gDAInB,qDAGR,wGAMmB,gBAAmB;CAQ2C,CAAA;AACrF,eAAO,MAAM,uBAAuB,8CAJV,qDAAiB,qCAI0D,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,0BAA0B,yDAAuE,CAAA;AAC9G,eAAO,MAAM,0BAA0B;6DA9B3B,qDAAiB,iCAElB,gBAAoB;6DAInB,qDAGR,qHAMmB,gBAAmB;CAe8E,CAAA;AACxH,eAAO,MAAM,kCAAkC,2DAXrB,qDAAiB,qCAW6F,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,wCAA4B,CAAA;AAC5D,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payment/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
3
|
-
import { PurchaseSchema } from './Schema.ts';
|
|
4
|
-
export interface PurchaseFields {
|
|
5
|
-
/**
|
|
6
|
-
* The things that were purchased
|
|
7
|
-
*/
|
|
8
|
-
assets: Hash[];
|
|
9
|
-
/**
|
|
10
|
-
* The receipts for payments for this purchase. Array to allow for multiple payments
|
|
11
|
-
* for a single quote.
|
|
12
|
-
*/
|
|
13
|
-
receipts: Hash[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A purchase ties a payment made to a quote
|
|
17
|
-
*/
|
|
18
|
-
export type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
|
|
19
|
-
/**
|
|
20
|
-
* Identity function for determine if an object is a Purchase
|
|
21
|
-
*/
|
|
22
|
-
export declare const isPurchase: (x?: unknown | null) => x is Purchase;
|
|
23
|
-
export declare const asPurchase: {
|
|
24
|
-
<TType extends Purchase>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
25
|
-
<TType extends Purchase>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Purchase>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
26
|
-
};
|
|
27
|
-
export declare const asOptionalPurchase: <TType extends Purchase>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Identity function for determine if an object is a Purchase with sources
|
|
30
|
-
*/
|
|
31
|
-
export declare const isPurchaseWithSources: (x?: unknown | null) => x is WithSources<Purchase>;
|
|
32
|
-
export declare const asPurchaseWithSources: {
|
|
33
|
-
<TType extends WithSources<Purchase>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
34
|
-
<TType extends WithSources<Purchase>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Purchase>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
35
|
-
};
|
|
36
|
-
export declare const asOptionalPurchaseWithSources: <TType extends WithSources<Purchase>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
37
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;;OAGG;IACH,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AACzE,eAAO,MAAM,UAAU;2CAzBd,qDAAiB,iCAEJ,gBAAoB;2CAKvC,qDACO,mGAEyE,gBACpE;CAcuD,CAAA;AACtE,eAAO,MAAM,kBAAkB,yCAPgB,qDAAiB,qCAOsB,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,qBAAqB,oDAA6D,CAAA;AAC/F,eAAO,MAAM,qBAAqB;wDAhCzB,qDAAiB,iCAEJ,gBAAoB;wDAKvC,qDACO,gHAEyE,gBACpE;CAqB0F,CAAA;AACzG,eAAO,MAAM,6BAA6B,sDAdK,qDAAiB,qCAcyD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,kCAA+B,CAAA;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Purchase/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { SupportedCurrency } from '../Currency.ts';
|
|
3
|
-
import { ReceiptSchema } from './Schema.ts';
|
|
4
|
-
export interface ReceiptFields {
|
|
5
|
-
/**
|
|
6
|
-
* The amount paid
|
|
7
|
-
*/
|
|
8
|
-
amount: number;
|
|
9
|
-
/**
|
|
10
|
-
* The currency of the amount paid
|
|
11
|
-
*/
|
|
12
|
-
currency: SupportedCurrency;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A receipt is a record of a payment made
|
|
16
|
-
*/
|
|
17
|
-
export type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>;
|
|
18
|
-
/**
|
|
19
|
-
* Identity function for determine if an object is a Receipt
|
|
20
|
-
*/
|
|
21
|
-
export declare const isReceipt: (x?: unknown | null) => x is Receipt;
|
|
22
|
-
export declare const asReceipt: {
|
|
23
|
-
<TType extends Receipt>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
24
|
-
<TType extends Receipt>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Receipt>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
25
|
-
};
|
|
26
|
-
export declare const asOptionalReceipt: <TType extends Receipt>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Identity function for determine if an object is a Receipt with sources
|
|
29
|
-
*/
|
|
30
|
-
export declare const isReceiptWithSources: (x?: unknown | null) => x is WithSources<Receipt>;
|
|
31
|
-
export declare const asReceiptWithSources: {
|
|
32
|
-
<TType extends WithSources<Receipt>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
33
|
-
<TType extends WithSources<Receipt>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Receipt>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
34
|
-
};
|
|
35
|
-
export declare const asOptionalReceiptWithSources: <TType extends WithSources<Receipt>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
|
|
36
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Receipt/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AACtE,eAAO,MAAM,SAAS;0CAvBV,qDAAiB,iCACtB,gBAAmB;0CAKvB,qDACQ,kGAQN,gBAAmB;CAQ2C,CAAA;AACnE,eAAO,MAAM,iBAAiB,wCAJS,qDAAiB,qCAI2B,CAAA;AAEnF;;GAEG;AACH,eAAO,MAAM,oBAAoB,mDAA2D,CAAA;AAC5F,eAAO,MAAM,oBAAoB;uDA9BrB,qDAAiB,iCACtB,gBAAmB;uDAKvB,qDACQ,+GAQN,gBAAmB;CAe8E,CAAA;AACtG,eAAO,MAAM,4BAA4B,qDAXF,qDAAiB,qCAW8D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Receipt/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,iCAA8B,CAAA;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
|