@pax2pay/client 0.10.13 → 0.10.14
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/Batch/Status.d.ts +3 -3
- package/dist/model/Batch/Status.js +11 -1
- package/dist/model/Batch/Status.js.map +1 -1
- package/dist/model/PaymentCardCreateRequest.d.ts +1 -1
- package/dist/model/PaymentCardCreateRequest.js +1 -1
- package/dist/model/PaymentCardCreateRequest.js.map +1 -1
- package/model/Batch/Status.ts +11 -1
- package/model/PaymentCardCreateRequest.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export type Status = typeof Status.values[number];
|
|
3
3
|
export declare namespace Status {
|
|
4
|
-
const values: readonly ["todo", "processing", "completed", "failed to finalise", "cancelled", "importing"];
|
|
5
|
-
const type: isly.Type<"completed" | "todo" | "processing" | "failed to finalise" | "cancelled" | "importing">;
|
|
6
|
-
const is: (value: any | ("completed" | "todo" | "processing" | "failed to finalise" | "cancelled" | "importing")) => value is "completed" | "todo" | "processing" | "failed to finalise" | "cancelled" | "importing";
|
|
4
|
+
const values: readonly ["todo", "processing", "completed", "failed to finalise", "cancelled", "importing", "finalising", "finalising import", "failed to import"];
|
|
5
|
+
const type: isly.Type<"completed" | "todo" | "processing" | "failed to finalise" | "cancelled" | "importing" | "finalising" | "finalising import" | "failed to import">;
|
|
6
|
+
const is: (value: any | ("completed" | "todo" | "processing" | "failed to finalise" | "cancelled" | "importing" | "finalising" | "finalising import" | "failed to import")) => value is "completed" | "todo" | "processing" | "failed to finalise" | "cancelled" | "importing" | "finalising" | "finalising import" | "failed to import";
|
|
7
7
|
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export var Status;
|
|
3
3
|
(function (Status) {
|
|
4
|
-
Status.values = [
|
|
4
|
+
Status.values = [
|
|
5
|
+
"todo",
|
|
6
|
+
"processing",
|
|
7
|
+
"completed",
|
|
8
|
+
"failed to finalise",
|
|
9
|
+
"cancelled",
|
|
10
|
+
"importing",
|
|
11
|
+
"finalising",
|
|
12
|
+
"finalising import",
|
|
13
|
+
"failed to import",
|
|
14
|
+
];
|
|
5
15
|
Status.type = isly.string(Status.values);
|
|
6
16
|
Status.is = Status.type.is;
|
|
7
17
|
})(Status || (Status = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Status.js","sourceRoot":"../","sources":["model/Batch/Status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"../","sources":["model/Batch/Status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,MAAM,CActB;AAdD,WAAiB,MAAM;IACT,aAAM,GAAG;QACrB,MAAM;QACN,YAAY;QACZ,WAAW;QACX,oBAAoB;QACpB,WAAW;QACX,WAAW;QACX,YAAY;QACZ,mBAAmB;QACnB,kBAAkB;KACT,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAA,MAAM,CAAC,CAAA;IAC1B,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAdgB,MAAM,KAAN,MAAM,QActB"}
|
|
@@ -3,7 +3,7 @@ import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
|
3
3
|
import { CardUsage } from "./CardUsage";
|
|
4
4
|
import { YearMonth } from "./YearMonth";
|
|
5
5
|
export interface PaymentCardCreateRequest {
|
|
6
|
-
cardType: CardTypeSpecification;
|
|
6
|
+
cardType: CardTypeSpecification | string;
|
|
7
7
|
expires?: YearMonth;
|
|
8
8
|
usage?: CardUsage;
|
|
9
9
|
closeDate?: isoly.Date;
|
|
@@ -6,7 +6,7 @@ import { YearMonth } from "./YearMonth";
|
|
|
6
6
|
export var PaymentCardCreateRequest;
|
|
7
7
|
(function (PaymentCardCreateRequest) {
|
|
8
8
|
PaymentCardCreateRequest.type = isly.object({
|
|
9
|
-
cardType: CardTypeSpecification.type,
|
|
9
|
+
cardType: isly.union(CardTypeSpecification.type, isly.string()),
|
|
10
10
|
expires: isly.fromIs("YearMonth", YearMonth.is).optional(),
|
|
11
11
|
usage: CardUsage.type.optional(),
|
|
12
12
|
closeDate: isly.fromIs("Date", isoly.Date.is).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentCardCreateRequest.js","sourceRoot":"../","sources":["model/PaymentCardCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAUvC,MAAM,KAAW,wBAAwB,CAUxC;AAVD,WAAiB,wBAAwB;IAC3B,6BAAI,GAAG,IAAI,CAAC,MAAM,CAA2B;QACzD,QAAQ,EAAE,qBAAqB,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"PaymentCardCreateRequest.js","sourceRoot":"../","sources":["model/PaymentCardCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAUvC,MAAM,KAAW,wBAAwB,CAUxC;AAVD,WAAiB,wBAAwB;IAC3B,6BAAI,GAAG,IAAI,CAAC,MAAM,CAA2B;QACzD,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QAC/D,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC1D,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE;QAChC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACxD,kBAAkB,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC7C,uBAAuB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjD,CAAC,CAAA;IACW,2BAAE,GAAG,yBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAVgB,wBAAwB,KAAxB,wBAAwB,QAUxC"}
|
package/model/Batch/Status.ts
CHANGED
|
@@ -3,7 +3,17 @@ import { isly } from "isly"
|
|
|
3
3
|
export type Status = typeof Status.values[number]
|
|
4
4
|
|
|
5
5
|
export namespace Status {
|
|
6
|
-
export const values = [
|
|
6
|
+
export const values = [
|
|
7
|
+
"todo",
|
|
8
|
+
"processing",
|
|
9
|
+
"completed",
|
|
10
|
+
"failed to finalise",
|
|
11
|
+
"cancelled",
|
|
12
|
+
"importing",
|
|
13
|
+
"finalising",
|
|
14
|
+
"finalising import",
|
|
15
|
+
"failed to import",
|
|
16
|
+
] as const
|
|
7
17
|
export const type = isly.string(values)
|
|
8
18
|
export const is = type.is
|
|
9
19
|
}
|
|
@@ -5,7 +5,7 @@ import { CardUsage } from "./CardUsage"
|
|
|
5
5
|
import { YearMonth } from "./YearMonth"
|
|
6
6
|
|
|
7
7
|
export interface PaymentCardCreateRequest {
|
|
8
|
-
cardType: CardTypeSpecification
|
|
8
|
+
cardType: CardTypeSpecification | string
|
|
9
9
|
expires?: YearMonth
|
|
10
10
|
usage?: CardUsage
|
|
11
11
|
closeDate?: isoly.Date
|
|
@@ -14,7 +14,7 @@ export interface PaymentCardCreateRequest {
|
|
|
14
14
|
}
|
|
15
15
|
export namespace PaymentCardCreateRequest {
|
|
16
16
|
export const type = isly.object<PaymentCardCreateRequest>({
|
|
17
|
-
cardType: CardTypeSpecification.type,
|
|
17
|
+
cardType: isly.union(CardTypeSpecification.type, isly.string()),
|
|
18
18
|
expires: isly.fromIs("YearMonth", YearMonth.is).optional(),
|
|
19
19
|
usage: CardUsage.type.optional(),
|
|
20
20
|
closeDate: isly.fromIs("Date", isoly.Date.is).optional(),
|