@xyo-network/payment-payload-plugins 6.1.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/Amount/Iso4217Currency.d.ts.map +1 -1
- package/dist/neutral/Amount/Payload.d.ts +56 -15
- package/dist/neutral/Amount/Payload.d.ts.map +1 -1
- package/dist/neutral/Billing/Address/Address.d.ts +102 -32
- package/dist/neutral/Billing/Address/Address.d.ts.map +1 -1
- package/dist/neutral/Currency.d.ts +5 -1
- package/dist/neutral/Currency.d.ts.map +1 -1
- package/dist/neutral/Discount/Config.d.ts +1 -1
- package/dist/neutral/Discount/Config.d.ts.map +1 -1
- package/dist/neutral/Discount/Params.d.ts +1 -1
- package/dist/neutral/Discount/Params.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +2 -2
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +81 -15
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +74 -15
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +81 -15
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +186 -9
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +92 -8
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +8 -12
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts +53 -14
- package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -1
- package/dist/neutral/Escrow/Outcome.d.ts +64 -17
- package/dist/neutral/Escrow/Outcome.d.ts.map +1 -1
- package/dist/neutral/Escrow/Terms/Terms.d.ts +303 -62
- package/dist/neutral/Escrow/Terms/Terms.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +2 -2
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +2 -2
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +18 -10
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +2 -2
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +1 -1
- package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +18 -10
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +1 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +2 -2
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +2 -2
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +2 -2
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts +1 -1
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +2 -2
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -1
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +74 -34
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Payload.d.ts +57 -23
- package/dist/neutral/Payment/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Status/Payload.d.ts +53 -22
- package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -1
- package/dist/neutral/Purchase/Payload.d.ts +53 -24
- package/dist/neutral/Purchase/Payload.d.ts.map +1 -1
- package/dist/neutral/Receipt/Payload.d.ts +57 -23
- package/dist/neutral/Receipt/Payload.d.ts.map +1 -1
- package/dist/neutral/Subtotal/Diviner/Config.d.ts +1 -1
- package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +1 -1
- package/dist/neutral/Subtotal/Diviner/Params.d.ts +1 -1
- package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +1 -1
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts +53 -14
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/Total/Diviner/Config.d.ts +1 -1
- package/dist/neutral/Total/Diviner/Config.d.ts.map +1 -1
- package/dist/neutral/Total/Diviner/Params.d.ts +1 -1
- package/dist/neutral/Total/Diviner/Params.d.ts.map +1 -1
- package/dist/neutral/Total/Diviner/Payload.d.ts +53 -14
- package/dist/neutral/Total/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/index.mjs +505 -305
- package/dist/neutral/index.mjs.map +4 -4
- package/package.json +25 -30
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccountInstance, Id } from '@xyo-network/sdk
|
|
1
|
+
import type { AccountInstance, Id } from '@xyo-network/sdk';
|
|
2
2
|
import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Creates an escrow intent (for a buyer or seller) using the supplied secret
|
|
@@ -9,24 +9,32 @@ import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
|
|
|
9
9
|
* not provided, a cryptographically random secret will be generated.
|
|
10
10
|
* @returns The escrow intent
|
|
11
11
|
*/
|
|
12
|
-
export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: Id) => Promise<[import("@xyo-network/sdk
|
|
12
|
+
export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: Id) => Promise<[import("@xyo-network/sdk").Signed<{
|
|
13
13
|
schema: "network.xyo.boundwitness" & {
|
|
14
14
|
readonly __schema: true;
|
|
15
15
|
};
|
|
16
|
-
addresses: (import("@xyo-network/sdk
|
|
16
|
+
addresses: (import("@xyo-network/sdk").XyoQuantAddress | (Lowercase<string> & {
|
|
17
17
|
readonly __hex: true;
|
|
18
18
|
} & {
|
|
19
19
|
readonly __address: true;
|
|
20
20
|
}))[];
|
|
21
|
-
payload_hashes: import("@xylabs/sdk
|
|
22
|
-
payload_schemas: import("@xyo-network/sdk
|
|
23
|
-
previous_hashes: (import("@xylabs/sdk
|
|
24
|
-
$signatures: (import("@xylabs/sdk
|
|
25
|
-
$destination?: import("@xyo-network/sdk
|
|
21
|
+
payload_hashes: import("@xylabs/sdk").BrandedHash[];
|
|
22
|
+
payload_schemas: import("@xyo-network/sdk").BrandedSchema<string>[];
|
|
23
|
+
previous_hashes: (import("@xylabs/sdk").BrandedHash | null)[];
|
|
24
|
+
$signatures: (import("@xylabs/sdk").BrandedHex | null)[];
|
|
25
|
+
$destination?: import("@xyo-network/sdk").XyoQuantAddress | (Lowercase<string> & {
|
|
26
26
|
readonly __hex: true;
|
|
27
27
|
} & {
|
|
28
28
|
readonly __address: true;
|
|
29
29
|
}) | undefined;
|
|
30
|
-
$sourceQuery?: import("@xylabs/sdk
|
|
31
|
-
}>, import("@xyo-network/sdk
|
|
30
|
+
$sourceQuery?: import("@xylabs/sdk").BrandedHash | undefined;
|
|
31
|
+
}>, import("@xyo-network/sdk").Payload[], {
|
|
32
|
+
schema: "network.xyo.error.module" & {
|
|
33
|
+
readonly __schema: true;
|
|
34
|
+
};
|
|
35
|
+
details?: unknown;
|
|
36
|
+
message?: string | undefined;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
query?: import("@xyo-network/sdk").BrandedSchema<string> | import("@xylabs/sdk").BrandedHash | undefined;
|
|
39
|
+
}[]]>;
|
|
32
40
|
//# sourceMappingURL=updateEscrowTermsWithSecret.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAG3D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,WAAW,EAClB,aAAa,WAAW,EACxB,SAAS,eAAe,GAAG,eAAe,EAAE,EAC5C,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;KAcZ,CAAA"}
|
package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModuleIdentifier, PayloadValueExpression } from '@xyo-network/sdk
|
|
1
|
+
import type { ModuleIdentifier, PayloadValueExpression } from '@xyo-network/sdk';
|
|
2
2
|
import type { EscrowTerms } from '../../../Terms/index.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Checks if property value of the escrow terms contains one of the valid moduleIdentifiers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moduleInstanceValidators.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"moduleInstanceValidators.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,oBAAoB,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EAC3I,mBAAmB,gBAAgB,EAAE,EACrC,kBAAe,YAOhB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,UAAU,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EACjI,mBAAmB,gBAAgB,EAAE,EACrC,kBAAe,YAOhB,CAAA"}
|
package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/sdk
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload } from '@xyo-network/sdk
|
|
1
|
+
import type { Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload } from '@xyo-network/sdk';
|
|
3
3
|
import type { EscrowParty, EscrowTerms } from '../../../Terms/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Returns a function that validates the escrow terms for the existence of the party secret signed by the party
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPartySecretSignedValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getPartySecretSignedValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,8BAA8B,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG/E,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,yBAAyB,CAAA;AAahC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAwB/I,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk
|
|
1
|
+
import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk';
|
|
2
2
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
3
|
export declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
4
|
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAEvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,8BAA8B,GAAI,oBAAoB,gBAAgB,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/sdk
|
|
2
|
-
import type { Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk
|
|
1
|
+
import type { Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* A function that validates the escrow terms for tbe existence of appraisals
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EAEV,OAAO,EAAE,6BAA6B,EACvC,MAAM,kBAAkB,CAAA;AAGzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,6BAA6B,CAAC,WAAW,CAQ/E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0CAA0C,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA2BvI,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GACtC,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EACjC,YAAY,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAW/H,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk
|
|
1
|
+
import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk';
|
|
2
2
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
3
|
/**
|
|
4
4
|
* A function that validates the escrow terms for appraisalAuthorities
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAEvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,6BAA6B,CAAC,WAAW,CAazF,CAAA;AAED,eAAO,MAAM,uCAAuC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/sdk
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
|
|
2
2
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Returns a function that validates the escrow terms for assets
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/sdk
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk
|
|
1
|
+
import type { Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Returns a function that validates the escrow terms for buyerSecret
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,kBAAkB,CAAA;AAEzB,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,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS5H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE3H,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/sdk
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/sdk';
|
|
2
2
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
3
|
export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
4
|
//# sourceMappingURL=nbfExp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,qBAAqB,MAAM,KAAG,6BAA6B,CAAC,WAAW,CActH,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk
|
|
1
|
+
import type { ModuleIdentifier, SyncPayloadValidationFunction } from '@xyo-network/sdk';
|
|
2
2
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
3
|
export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
4
|
//# sourceMappingURL=paymentAuthorities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAEvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,qCAAqC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ5H,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,WAAW,CAa5E,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/sdk
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk
|
|
1
|
+
import type { Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/sdk';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Returns a function that validates the escrow terms for sellerSecret
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,kBAAkB,CAAA;AAEzB,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,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS7H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE5H,CAAA"}
|
|
@@ -1,44 +1,84 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PaymentCardSchema } from './Schema.ts';
|
|
1
|
+
import * as z from 'zod/mini';
|
|
3
2
|
/**
|
|
4
3
|
* The fields describing a payment card.
|
|
5
4
|
*/
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
}
|
|
5
|
+
export declare const PaymentCardFieldsZod: z.ZodMiniObject<{
|
|
6
|
+
cardNumber: z.ZodMiniString<string>;
|
|
7
|
+
cardholderName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8
|
+
cvv: z.ZodMiniString<string>;
|
|
9
|
+
expMonth: z.ZodMiniNumber<number>;
|
|
10
|
+
expYear: z.ZodMiniNumber<number>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type PaymentCardFields = z.infer<typeof PaymentCardFieldsZod>;
|
|
28
13
|
/**
|
|
29
14
|
* A PaymentCard Payload
|
|
30
15
|
*/
|
|
31
|
-
export
|
|
16
|
+
export declare const PaymentCardZod: z.ZodMiniObject<{
|
|
17
|
+
schema: z.ZodMiniLiteral<string & {
|
|
18
|
+
readonly __schema: true;
|
|
19
|
+
}>;
|
|
20
|
+
cardNumber: z.ZodMiniString<string>;
|
|
21
|
+
cardholderName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
22
|
+
cvv: z.ZodMiniString<string>;
|
|
23
|
+
expMonth: z.ZodMiniNumber<number>;
|
|
24
|
+
expYear: z.ZodMiniNumber<number>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type PaymentCard = z.infer<typeof PaymentCardZod>;
|
|
32
27
|
/**
|
|
33
28
|
* Identity function for determine if an object is a PaymentCard
|
|
34
29
|
*/
|
|
35
|
-
export declare const isPaymentCard: (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
export declare const isPaymentCard: <T>(value: T) => value is T & {
|
|
31
|
+
schema: string & {
|
|
32
|
+
readonly __schema: true;
|
|
33
|
+
};
|
|
34
|
+
cardNumber: string;
|
|
35
|
+
cvv: string;
|
|
36
|
+
expMonth: number;
|
|
37
|
+
expYear: number;
|
|
38
|
+
cardholderName?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
export declare const asPaymentCard: {
|
|
41
|
+
<T>(value: T): (T & {
|
|
42
|
+
schema: string & {
|
|
43
|
+
readonly __schema: true;
|
|
44
|
+
};
|
|
45
|
+
cardNumber: string;
|
|
46
|
+
cvv: string;
|
|
47
|
+
expMonth: number;
|
|
48
|
+
expYear: number;
|
|
49
|
+
cardholderName?: string | undefined;
|
|
50
|
+
}) | undefined;
|
|
51
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
52
|
+
schema: string & {
|
|
53
|
+
readonly __schema: true;
|
|
54
|
+
};
|
|
55
|
+
cardNumber: string;
|
|
56
|
+
cvv: string;
|
|
57
|
+
expMonth: number;
|
|
58
|
+
expYear: number;
|
|
59
|
+
cardholderName?: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const toPaymentCard: {
|
|
63
|
+
<T>(value: T): (T & {
|
|
64
|
+
schema: string & {
|
|
65
|
+
readonly __schema: true;
|
|
66
|
+
};
|
|
67
|
+
cardNumber: string;
|
|
68
|
+
cvv: string;
|
|
69
|
+
expMonth: number;
|
|
70
|
+
expYear: number;
|
|
71
|
+
cardholderName?: string | undefined;
|
|
72
|
+
}) | undefined;
|
|
73
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
74
|
+
schema: string & {
|
|
75
|
+
readonly __schema: true;
|
|
76
|
+
};
|
|
77
|
+
cardNumber: string;
|
|
78
|
+
cvv: string;
|
|
79
|
+
expMonth: number;
|
|
80
|
+
expYear: number;
|
|
81
|
+
cardholderName?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
44
84
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;iBAqB/B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;iBAAqF,CAAA;AAEhH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;CAA+B,CAAA;AACzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA;AAC1E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA"}
|
|
@@ -1,30 +1,64 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The currency of the amount paid
|
|
11
|
-
*/
|
|
12
|
-
currency: SupportedCurrency;
|
|
13
|
-
}
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const PaymentFieldsZod: z.ZodMiniObject<{
|
|
3
|
+
amount: z.ZodMiniNumber<number>;
|
|
4
|
+
currency: z.ZodMiniEnum<{
|
|
5
|
+
USD: "USD";
|
|
6
|
+
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type PaymentFields = z.infer<typeof PaymentFieldsZod>;
|
|
14
9
|
/**
|
|
15
10
|
* A payment is a record of an amount to be paid
|
|
16
11
|
*/
|
|
17
|
-
export
|
|
12
|
+
export declare const PaymentZod: z.ZodMiniObject<{
|
|
13
|
+
schema: z.ZodMiniLiteral<string & {
|
|
14
|
+
readonly __schema: true;
|
|
15
|
+
}>;
|
|
16
|
+
amount: z.ZodMiniNumber<number>;
|
|
17
|
+
currency: z.ZodMiniEnum<{
|
|
18
|
+
USD: "USD";
|
|
19
|
+
}>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type Payment = z.infer<typeof PaymentZod>;
|
|
18
22
|
/**
|
|
19
23
|
* Identity function for determine if an object is a Payment
|
|
20
24
|
*/
|
|
21
|
-
export declare const isPayment: (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export declare const
|
|
29
|
-
|
|
25
|
+
export declare const isPayment: <T>(value: T) => value is T & {
|
|
26
|
+
schema: string & {
|
|
27
|
+
readonly __schema: true;
|
|
28
|
+
};
|
|
29
|
+
amount: number;
|
|
30
|
+
currency: "USD";
|
|
31
|
+
};
|
|
32
|
+
export declare const asPayment: {
|
|
33
|
+
<T>(value: T): (T & {
|
|
34
|
+
schema: string & {
|
|
35
|
+
readonly __schema: true;
|
|
36
|
+
};
|
|
37
|
+
amount: number;
|
|
38
|
+
currency: "USD";
|
|
39
|
+
}) | undefined;
|
|
40
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
41
|
+
schema: string & {
|
|
42
|
+
readonly __schema: true;
|
|
43
|
+
};
|
|
44
|
+
amount: number;
|
|
45
|
+
currency: "USD";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const toPayment: {
|
|
49
|
+
<T>(value: T): (T & {
|
|
50
|
+
schema: string & {
|
|
51
|
+
readonly __schema: true;
|
|
52
|
+
};
|
|
53
|
+
amount: number;
|
|
54
|
+
currency: "USD";
|
|
55
|
+
}) | undefined;
|
|
56
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
57
|
+
schema: string & {
|
|
58
|
+
readonly __schema: true;
|
|
59
|
+
};
|
|
60
|
+
amount: number;
|
|
61
|
+
currency: "USD";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
30
64
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B,eAAO,MAAM,gBAAgB;;;;;iBAS3B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE5D;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;iBAA6E,CAAA;AAEpG,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;CAA2B,CAAA;AACjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAAwC,CAAA;AAC9D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAAwC,CAAA"}
|
|
@@ -1,29 +1,60 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
result?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The status of the payment (i.e. completed)
|
|
10
|
-
*/
|
|
11
|
-
status: string;
|
|
12
|
-
}
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const PaymentStatusFieldsZod: z.ZodMiniObject<{
|
|
3
|
+
result: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
4
|
+
status: z.ZodMiniString<string>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type PaymentStatusFields = z.infer<typeof PaymentStatusFieldsZod>;
|
|
13
7
|
/**
|
|
14
8
|
* A payment status is the outcome of a payment attempt
|
|
15
9
|
*/
|
|
16
|
-
export
|
|
10
|
+
export declare const PaymentStatusZod: z.ZodMiniObject<{
|
|
11
|
+
schema: z.ZodMiniLiteral<string & {
|
|
12
|
+
readonly __schema: true;
|
|
13
|
+
}>;
|
|
14
|
+
result: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
15
|
+
status: z.ZodMiniString<string>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type PaymentStatus = z.infer<typeof PaymentStatusZod>;
|
|
17
18
|
/**
|
|
18
19
|
* Identity function for determine if an object is a PaymentStatus
|
|
19
20
|
*/
|
|
20
|
-
export declare const isPaymentStatus: (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export declare const
|
|
28
|
-
|
|
21
|
+
export declare const isPaymentStatus: <T>(value: T) => value is T & {
|
|
22
|
+
schema: string & {
|
|
23
|
+
readonly __schema: true;
|
|
24
|
+
};
|
|
25
|
+
status: string;
|
|
26
|
+
result?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
export declare const asPaymentStatus: {
|
|
29
|
+
<T>(value: T): (T & {
|
|
30
|
+
schema: string & {
|
|
31
|
+
readonly __schema: true;
|
|
32
|
+
};
|
|
33
|
+
status: string;
|
|
34
|
+
result?: string | undefined;
|
|
35
|
+
}) | undefined;
|
|
36
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
37
|
+
schema: string & {
|
|
38
|
+
readonly __schema: true;
|
|
39
|
+
};
|
|
40
|
+
status: string;
|
|
41
|
+
result?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const toPaymentStatus: {
|
|
45
|
+
<T>(value: T): (T & {
|
|
46
|
+
schema: string & {
|
|
47
|
+
readonly __schema: true;
|
|
48
|
+
};
|
|
49
|
+
status: string;
|
|
50
|
+
result?: string | undefined;
|
|
51
|
+
}) | undefined;
|
|
52
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
53
|
+
schema: string & {
|
|
54
|
+
readonly __schema: true;
|
|
55
|
+
};
|
|
56
|
+
status: string;
|
|
57
|
+
result?: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
29
60
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,sBAAsB;;;iBASjC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;iBAAyF,CAAA;AAEtH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE5D;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;CAAiC,CAAA;AAC7D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAAoD,CAAA;AAChF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAAoD,CAAA"}
|