@pax2pay/client 0.11.30 → 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.
- package/dist/model/InsertCardRequest.d.ts +2 -0
- package/dist/model/InsertCardRequest.js +2 -0
- package/dist/model/InsertCardRequest.js.map +1 -1
- package/dist/model/MerchantType.d.ts +3 -3
- package/dist/model/MerchantType.js +1 -1
- package/dist/model/MerchantType.js.map +1 -1
- package/model/InsertCardRequest.ts +4 -0
- package/model/MerchantType.ts +3 -2
- package/package.json +1 -1
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
export type MerchantType =
|
|
2
|
+
export type MerchantType = string;
|
|
3
3
|
export declare namespace MerchantType {
|
|
4
4
|
const types: readonly ["flight", "hotel"];
|
|
5
|
-
const type: isly.Type<
|
|
6
|
-
const is: (value: any |
|
|
5
|
+
const type: isly.Type<string>;
|
|
6
|
+
const is: (value: any | string) => value is string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import { isly } from "isly";
|
|
|
2
2
|
export var MerchantType;
|
|
3
3
|
(function (MerchantType) {
|
|
4
4
|
MerchantType.types = ["flight", "hotel"];
|
|
5
|
-
MerchantType.type = isly.string(
|
|
5
|
+
MerchantType.type = isly.string();
|
|
6
6
|
MerchantType.is = MerchantType.type.is;
|
|
7
7
|
})(MerchantType || (MerchantType = {}));
|
|
8
8
|
//# sourceMappingURL=MerchantType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerchantType.js","sourceRoot":"../","sources":["model/MerchantType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,YAAY,
|
|
1
|
+
{"version":3,"file":"MerchantType.js","sourceRoot":"../","sources":["model/MerchantType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,YAAY,CAK5B;AALD,WAAiB,YAAY;IAEf,kBAAK,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAA;IACpC,iBAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAA;IACpB,eAAE,GAAG,aAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EALgB,YAAY,KAAZ,YAAY,QAK5B"}
|
|
@@ -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
|
}
|
package/model/MerchantType.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type MerchantType =
|
|
3
|
+
export type MerchantType = string
|
|
4
4
|
|
|
5
5
|
export namespace MerchantType {
|
|
6
|
+
/** Suggested values for the create form. The server may return other types. */
|
|
6
7
|
export const types = ["flight", "hotel"] as const
|
|
7
|
-
export const type = isly.string(
|
|
8
|
+
export const type = isly.string()
|
|
8
9
|
export const is = type.is
|
|
9
10
|
}
|