@pax2pay/client 0.11.31 → 0.11.32
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.
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
2
2
|
import { ProviderCode } from "./ProviderCode";
|
|
3
|
+
import { Usage } from "./Usage";
|
|
3
4
|
export interface InsertCardRequest {
|
|
4
5
|
providerCode: ProviderCode;
|
|
5
6
|
cardType: CardTypeSpecification | string;
|
|
6
7
|
useAs?: CardTypeSpecification | string;
|
|
7
8
|
providerAccountId?: string;
|
|
9
|
+
usage?: Usage;
|
|
8
10
|
}
|
|
9
11
|
export declare namespace InsertCardRequest {
|
|
10
12
|
const type: import("isly/dist/types/object").IslyObject<InsertCardRequest, object>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
3
3
|
import { ProviderCode } from "./ProviderCode";
|
|
4
|
+
import { Usage } from "./Usage";
|
|
4
5
|
export var InsertCardRequest;
|
|
5
6
|
(function (InsertCardRequest) {
|
|
6
7
|
InsertCardRequest.type = isly.object({
|
|
@@ -8,6 +9,7 @@ export var InsertCardRequest;
|
|
|
8
9
|
cardType: isly.union(CardTypeSpecification.type, isly.string()),
|
|
9
10
|
useAs: isly.union(CardTypeSpecification.type, isly.string()).optional(),
|
|
10
11
|
providerAccountId: isly.string().optional(),
|
|
12
|
+
usage: Usage.type.optional(),
|
|
11
13
|
});
|
|
12
14
|
InsertCardRequest.is = InsertCardRequest.type.is;
|
|
13
15
|
})(InsertCardRequest || (InsertCardRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsertCardRequest.js","sourceRoot":"../","sources":["model/InsertCardRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"InsertCardRequest.js","sourceRoot":"../","sources":["model/InsertCardRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAc/B,MAAM,KAAW,iBAAiB,CASjC;AATD,WAAiB,iBAAiB;IACpB,sBAAI,GAAG,IAAI,CAAC,MAAM,CAAoB;QAClD,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE,CAAC;QAC1D,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QAC/D,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QACvE,iBAAiB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC5B,CAAC,CAAA;IACW,oBAAE,GAAG,kBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EATgB,iBAAiB,KAAjB,iBAAiB,QASjC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { CardTypeSpecification } from "./CardTypeSpecification"
|
|
3
3
|
import { ProviderCode } from "./ProviderCode"
|
|
4
|
+
import { Usage } from "./Usage"
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* The card to be created
|
|
@@ -10,6 +11,8 @@ export interface InsertCardRequest {
|
|
|
10
11
|
cardType: CardTypeSpecification | string
|
|
11
12
|
useAs?: CardTypeSpecification | string
|
|
12
13
|
providerAccountId?: string
|
|
14
|
+
/** Usage of the cards created, unset meaning single use */
|
|
15
|
+
usage?: Usage
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
export namespace InsertCardRequest {
|
|
@@ -18,6 +21,7 @@ export namespace InsertCardRequest {
|
|
|
18
21
|
cardType: isly.union(CardTypeSpecification.type, isly.string()),
|
|
19
22
|
useAs: isly.union(CardTypeSpecification.type, isly.string()).optional(),
|
|
20
23
|
providerAccountId: isly.string().optional(),
|
|
24
|
+
usage: Usage.type.optional(),
|
|
21
25
|
})
|
|
22
26
|
export const is = type.is
|
|
23
27
|
}
|