@xyo-network/payment-payload-plugins 3.0.19 → 3.0.21
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/Discount/Payload/Coupon/types/CouponFields.d.ts +2 -0
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +1 -1
- package/dist/neutral/Escrow/createEscrowIntent.d.ts +2 -2
- package/package.json +14 -14
- package/src/Discount/Payload/Coupon/types/CouponFields.ts +5 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
1
2
|
import type { DurationFields } from '@xyo-network/xns-record-payload-plugins';
|
|
2
3
|
export interface CouponFields extends DurationFields {
|
|
4
|
+
conditions?: Hash[];
|
|
3
5
|
stackable?: boolean;
|
|
4
6
|
}
|
|
5
7
|
//# sourceMappingURL=CouponFields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CouponFields.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/CouponFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAK7E,MAAM,WAAW,YAAa,SAAQ,cAAc;IAIlD,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
|
|
1
|
+
{"version":3,"file":"CouponFields.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/CouponFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAK7E,MAAM,WAAW,YAAa,SAAQ,cAAc;IAIlD,UAAU,CAAC,EAAE,IAAI,EAAE,CAAA;IAInB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
|
|
@@ -6,7 +6,7 @@ export declare const createEscrowIntent: (terms: EscrowTerms[], account: Account
|
|
|
6
6
|
}>, import("@xyo-network/payload-model").WithMeta<{
|
|
7
7
|
schema: string;
|
|
8
8
|
} & import("@xyo-network/payload-model").PayloadFields>[], import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
9
|
-
details?: import(".store/@xylabs-object-npm-4.0.
|
|
9
|
+
details?: import(".store/@xylabs-object-npm-4.0.10-ecd4ae377a/package").JsonValue;
|
|
10
10
|
message?: string;
|
|
11
11
|
name?: string;
|
|
12
12
|
query?: import("@xylabs/hex").Hash;
|
|
@@ -18,7 +18,7 @@ export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret:
|
|
|
18
18
|
}>, import("@xyo-network/payload-model").WithMeta<{
|
|
19
19
|
schema: string;
|
|
20
20
|
} & import("@xyo-network/payload-model").PayloadFields>[], import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
|
-
details?: import(".store/@xylabs-object-npm-4.0.
|
|
21
|
+
details?: import(".store/@xylabs-object-npm-4.0.10-ecd4ae377a/package").JsonValue;
|
|
22
22
|
message?: string;
|
|
23
23
|
name?: string;
|
|
24
24
|
query?: import("@xylabs/hex").Hash;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/payment-payload-plugins",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.21",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.0.
|
|
33
|
-
"@xylabs/crypto": "^4.0.
|
|
34
|
-
"@xylabs/hex": "^4.0.
|
|
35
|
-
"@xyo-network/account-model": "^3.1.
|
|
36
|
-
"@xyo-network/boundwitness-builder": "^3.1.
|
|
37
|
-
"@xyo-network/boundwitness-model": "^3.1.
|
|
38
|
-
"@xyo-network/boundwitness-validator": "^3.1.
|
|
39
|
-
"@xyo-network/diviner-hash-lease": "^3.1.
|
|
40
|
-
"@xyo-network/diviner-model": "^3.1.
|
|
41
|
-
"@xyo-network/id-payload-plugin": "^3.1.
|
|
42
|
-
"@xyo-network/module-model": "^3.1.
|
|
43
|
-
"@xyo-network/payload-model": "^3.1.
|
|
44
|
-
"@xyo-network/xns-record-payload-plugins": "^3.0.
|
|
32
|
+
"@xylabs/assert": "^4.0.10",
|
|
33
|
+
"@xylabs/crypto": "^4.0.10",
|
|
34
|
+
"@xylabs/hex": "^4.0.10",
|
|
35
|
+
"@xyo-network/account-model": "^3.1.11",
|
|
36
|
+
"@xyo-network/boundwitness-builder": "^3.1.11",
|
|
37
|
+
"@xyo-network/boundwitness-model": "^3.1.11",
|
|
38
|
+
"@xyo-network/boundwitness-validator": "^3.1.11",
|
|
39
|
+
"@xyo-network/diviner-hash-lease": "^3.1.11",
|
|
40
|
+
"@xyo-network/diviner-model": "^3.1.11",
|
|
41
|
+
"@xyo-network/id-payload-plugin": "^3.1.11",
|
|
42
|
+
"@xyo-network/module-model": "^3.1.11",
|
|
43
|
+
"@xyo-network/payload-model": "^3.1.11",
|
|
44
|
+
"@xyo-network/xns-record-payload-plugins": "^3.0.21"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
1
2
|
import type { DurationFields } from '@xyo-network/xns-record-payload-plugins'
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* The fields that are common across all coupons
|
|
5
6
|
*/
|
|
6
7
|
export interface CouponFields extends DurationFields {
|
|
8
|
+
/**
|
|
9
|
+
* The conditions that must be met in order for this coupon to be applied
|
|
10
|
+
*/
|
|
11
|
+
conditions?: Hash[]
|
|
7
12
|
/**
|
|
8
13
|
* Whether or not this discount can be stacked with other discounts
|
|
9
14
|
*/
|