@pax2pay/client 0.3.146 → 0.3.147
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/CardResponseV3.d.ts +2 -2
- package/dist/model/CardResponseV3.js +2 -2
- package/dist/model/CardResponseV3.js.map +1 -1
- package/dist/model/PaymentCardCreateRequest.d.ts +7 -2
- package/dist/model/PaymentCardCreateRequest.js +7 -2
- package/dist/model/PaymentCardCreateRequest.js.map +1 -1
- package/model/CardResponseV3.ts +4 -4
- package/model/PaymentCardCreateRequest.ts +11 -4
- package/package.json +1 -1
|
@@ -9,9 +9,9 @@ export interface CardResponseV3 extends SummaryCardResponseV3 {
|
|
|
9
9
|
cvv?: string;
|
|
10
10
|
cardHolderName: string;
|
|
11
11
|
issued?: Date;
|
|
12
|
-
remaining: number;
|
|
13
|
-
maxAmount: number;
|
|
14
12
|
activationDate: Date;
|
|
13
|
+
closeDate?: Date;
|
|
14
|
+
restrictedToMerchant?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export declare namespace CardResponseV3 {
|
|
17
17
|
const type: import("isly/dist/cjs/object").IslyObject<CardResponseV3, SummaryCardResponseV3>;
|
|
@@ -12,9 +12,9 @@ export var CardResponseV3;
|
|
|
12
12
|
cvv: isly.string().optional(),
|
|
13
13
|
cardHolderName: isly.string(),
|
|
14
14
|
issued: isly.fromIs("Date", Date.is).optional(),
|
|
15
|
-
remaining: isly.number(),
|
|
16
|
-
maxAmount: isly.number(),
|
|
17
15
|
activationDate: isly.fromIs("Date", Date.is),
|
|
16
|
+
closeDate: isly.fromIs("Date", Date.is).optional(),
|
|
17
|
+
restrictedToMerchant: isly.boolean().optional(),
|
|
18
18
|
});
|
|
19
19
|
CardResponseV3.is = CardResponseV3.type.is;
|
|
20
20
|
})(CardResponseV3 || (CardResponseV3 = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponseV3.js","sourceRoot":"../","sources":["model/CardResponseV3.ts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CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC;QAC/C,KAAK,EAAE,SAAS,CAAC,IAAI;QACrB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE;QAC7B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC/C,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;QAC5C,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAClD,oBAAoB,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAC/C,CAAC,CAAA;IACW,iBAAE,GAAG,eAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAbgB,cAAc,KAAd,cAAc,QAa9B"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import * as isoly from "isoly";
|
|
2
|
+
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
1
3
|
import { CardUsage } from "./CardUsage";
|
|
4
|
+
import { YearMonth } from "./YearMonth";
|
|
2
5
|
export interface PaymentCardCreateRequest {
|
|
3
|
-
cardType:
|
|
4
|
-
expires?:
|
|
6
|
+
cardType: CardTypeSpecification;
|
|
7
|
+
expires?: YearMonth;
|
|
5
8
|
usage?: CardUsage;
|
|
9
|
+
closeDate?: isoly.Date;
|
|
10
|
+
restrictToMerchant?: boolean;
|
|
6
11
|
}
|
|
7
12
|
export declare namespace PaymentCardCreateRequest {
|
|
8
13
|
const type: import("isly/dist/cjs/object").IslyObject<PaymentCardCreateRequest, object>;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
import * as isoly from "isoly";
|
|
1
2
|
import { isly } from "isly";
|
|
3
|
+
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
2
4
|
import { CardUsage } from "./CardUsage";
|
|
5
|
+
import { YearMonth } from "./YearMonth";
|
|
3
6
|
export var PaymentCardCreateRequest;
|
|
4
7
|
(function (PaymentCardCreateRequest) {
|
|
5
8
|
PaymentCardCreateRequest.type = isly.object({
|
|
6
|
-
cardType:
|
|
7
|
-
expires: isly.
|
|
9
|
+
cardType: CardTypeSpecification.type,
|
|
10
|
+
expires: isly.fromIs("YearMonth", YearMonth.is).optional(),
|
|
8
11
|
usage: CardUsage.type.optional(),
|
|
12
|
+
closeDate: isly.fromIs("Date", isoly.Date.is).optional(),
|
|
13
|
+
restrictToMerchant: isly.boolean().optional(),
|
|
9
14
|
});
|
|
10
15
|
PaymentCardCreateRequest.is = PaymentCardCreateRequest.type.is;
|
|
11
16
|
})(PaymentCardCreateRequest || (PaymentCardCreateRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentCardCreateRequest.js","sourceRoot":"../","sources":["model/PaymentCardCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
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;AASvC,MAAM,KAAW,wBAAwB,CASxC;AATD,WAAiB,wBAAwB;IAC3B,6BAAI,GAAG,IAAI,CAAC,MAAM,CAA2B;QACzD,QAAQ,EAAE,qBAAqB,CAAC,IAAI;QACpC,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;KAC7C,CAAC,CAAA;IACW,2BAAE,GAAG,yBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EATgB,wBAAwB,KAAxB,wBAAwB,QASxC"}
|
package/model/CardResponseV3.ts
CHANGED
|
@@ -11,9 +11,9 @@ export interface CardResponseV3 extends SummaryCardResponseV3 {
|
|
|
11
11
|
cvv?: string
|
|
12
12
|
cardHolderName: string
|
|
13
13
|
issued?: Date
|
|
14
|
-
remaining: number
|
|
15
|
-
maxAmount: number
|
|
16
14
|
activationDate: Date
|
|
15
|
+
closeDate?: Date
|
|
16
|
+
restrictedToMerchant?: boolean
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export namespace CardResponseV3 {
|
|
@@ -24,9 +24,9 @@ export namespace CardResponseV3 {
|
|
|
24
24
|
cvv: isly.string().optional(),
|
|
25
25
|
cardHolderName: isly.string(),
|
|
26
26
|
issued: isly.fromIs("Date", Date.is).optional(),
|
|
27
|
-
remaining: isly.number(),
|
|
28
|
-
maxAmount: isly.number(),
|
|
29
27
|
activationDate: isly.fromIs("Date", Date.is),
|
|
28
|
+
closeDate: isly.fromIs("Date", Date.is).optional(),
|
|
29
|
+
restrictedToMerchant: isly.boolean().optional(),
|
|
30
30
|
})
|
|
31
31
|
export const is = type.is
|
|
32
32
|
}
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
+
import * as isoly from "isoly"
|
|
1
2
|
import { isly } from "isly"
|
|
3
|
+
import { CardTypeSpecification } from "./CardTypeSpecification"
|
|
2
4
|
import { CardUsage } from "./CardUsage"
|
|
5
|
+
import { YearMonth } from "./YearMonth"
|
|
3
6
|
|
|
4
7
|
export interface PaymentCardCreateRequest {
|
|
5
|
-
cardType:
|
|
6
|
-
expires?:
|
|
8
|
+
cardType: CardTypeSpecification
|
|
9
|
+
expires?: YearMonth
|
|
7
10
|
usage?: CardUsage
|
|
11
|
+
closeDate?: isoly.Date
|
|
12
|
+
restrictToMerchant?: boolean
|
|
8
13
|
}
|
|
9
14
|
export namespace PaymentCardCreateRequest {
|
|
10
15
|
export const type = isly.object<PaymentCardCreateRequest>({
|
|
11
|
-
cardType:
|
|
12
|
-
expires: isly.
|
|
16
|
+
cardType: CardTypeSpecification.type,
|
|
17
|
+
expires: isly.fromIs("YearMonth", YearMonth.is).optional(),
|
|
13
18
|
usage: CardUsage.type.optional(),
|
|
19
|
+
closeDate: isly.fromIs("Date", isoly.Date.is).optional(),
|
|
20
|
+
restrictToMerchant: isly.boolean().optional(),
|
|
14
21
|
})
|
|
15
22
|
export const is = type.is
|
|
16
23
|
}
|