@pax2pay/client 0.3.91 → 0.3.92
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,4 +1,5 @@
|
|
|
1
1
|
import { Currency, Date } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
2
3
|
import { AccountState } from "./AccountState";
|
|
3
4
|
import { BookingInfoResponse } from "./BookingInfoResponse";
|
|
4
5
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
@@ -6,6 +7,7 @@ import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
|
6
7
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
7
8
|
import { CardUsage } from "./CardUsage";
|
|
8
9
|
import { FundingAccountSummaryResponse } from "./FundingAccountSummaryResponse";
|
|
10
|
+
import { MerchantResponse } from "./MerchantResponse";
|
|
9
11
|
import { ProviderCode } from "./ProviderCode";
|
|
10
12
|
import { YearMonth } from "./YearMonth";
|
|
11
13
|
export interface CardResponseV2 {
|
|
@@ -32,7 +34,9 @@ export interface CardResponseV2 {
|
|
|
32
34
|
bookingInfo?: BookingInfoResponse;
|
|
33
35
|
delivery?: CardDeliveryResponse;
|
|
34
36
|
batchId?: string;
|
|
37
|
+
merchantRestriction?: MerchantResponse;
|
|
35
38
|
}
|
|
36
39
|
export declare namespace CardResponseV2 {
|
|
37
|
-
|
|
40
|
+
const type: isly.object.ExtendableType<CardResponseV2>;
|
|
41
|
+
const is: isly.Type.IsFunction<CardResponseV2>;
|
|
38
42
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Date } from "isoly";
|
|
1
|
+
import { Currency, Date } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
2
3
|
import { AccountState } from "./AccountState";
|
|
3
4
|
import { BookingInfoResponse } from "./BookingInfoResponse";
|
|
4
5
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
@@ -6,38 +7,37 @@ import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
|
6
7
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
7
8
|
import { CardUsage } from "./CardUsage";
|
|
8
9
|
import { FundingAccountSummaryResponse } from "./FundingAccountSummaryResponse";
|
|
10
|
+
import { MerchantResponse } from "./MerchantResponse";
|
|
9
11
|
import { ProviderCode } from "./ProviderCode";
|
|
10
12
|
import { YearMonth } from "./YearMonth";
|
|
11
13
|
export var CardResponseV2;
|
|
12
14
|
(function (CardResponseV2) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
CardResponseV2.is = is;
|
|
15
|
+
CardResponseV2.type = isly.object({
|
|
16
|
+
cardType: isly.union(CardTypeSpecification.type, isly.string()),
|
|
17
|
+
cardNumber: isly.string(),
|
|
18
|
+
cvv: isly.string().optional(),
|
|
19
|
+
expiryDate: isly.fromIs("YearMonth", YearMonth.is),
|
|
20
|
+
nameOnCard: isly.string().optional(),
|
|
21
|
+
fundingBalance: isly.number(),
|
|
22
|
+
remainingBalance: isly.number(),
|
|
23
|
+
fundingDate: isly.string(),
|
|
24
|
+
balance: isly.number(),
|
|
25
|
+
currency: isly.fromIs("Currency", Currency.is),
|
|
26
|
+
issueDate: isly.string(),
|
|
27
|
+
providerCode: isly.fromIs("ProviderCode", ProviderCode.is),
|
|
28
|
+
providerCardId: isly.string(),
|
|
29
|
+
usage: isly.fromIs("CardUsage", CardUsage.is),
|
|
30
|
+
fundingAccount: isly.fromIs("FundingAccountSummaryResponse", FundingAccountSummaryResponse.is),
|
|
31
|
+
createdBy: isly.string(),
|
|
32
|
+
state: isly.fromIs("AccountState", AccountState.is),
|
|
33
|
+
longTermTokenExpiry: isly.fromIs("Date", Date.is).optional(),
|
|
34
|
+
activationDate: isly.fromIs("Date", Date.is).optional(),
|
|
35
|
+
schedule: isly.array(isly.fromIs("CardScheduleResponseItem", CardScheduleResponseItem.is)).optional(),
|
|
36
|
+
bookingInfo: isly.fromIs("BookingInfoResponse", BookingInfoResponse.is).optional(),
|
|
37
|
+
delivery: isly.fromIs("CardDeliveryResponse", CardDeliveryResponse.is).optional(),
|
|
38
|
+
batchId: isly.string().optional(),
|
|
39
|
+
merchantRestriction: isly.fromIs("MerchantResponse", MerchantResponse.is).optional(),
|
|
40
|
+
});
|
|
41
|
+
CardResponseV2.is = CardResponseV2.type.is;
|
|
42
42
|
})(CardResponseV2 || (CardResponseV2 = {}));
|
|
43
43
|
//# sourceMappingURL=CardResponseV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC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QAC9F,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE,CAAC;QACnD,mBAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC5D,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACvD,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,wBAAwB,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;QACrG,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAClF,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACjF,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,mBAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KACpF,CAAC,CAAA;IACW,iBAAE,GAAG,eAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EA5BgB,cAAc,KAAd,cAAc,QA4B9B"}
|
package/model/CardResponseV2.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Currency, Date } from "isoly"
|
|
2
|
+
import { isly } from "isly"
|
|
2
3
|
import { AccountState } from "./AccountState"
|
|
3
4
|
import { BookingInfoResponse } from "./BookingInfoResponse"
|
|
4
5
|
import { CardDeliveryResponse } from "./CardDeliveryResponse"
|
|
@@ -6,6 +7,7 @@ import { CardScheduleResponseItem } from "./CardScheduleResponseItem"
|
|
|
6
7
|
import { CardTypeSpecification } from "./CardTypeSpecification"
|
|
7
8
|
import { CardUsage } from "./CardUsage"
|
|
8
9
|
import { FundingAccountSummaryResponse } from "./FundingAccountSummaryResponse"
|
|
10
|
+
import { MerchantResponse } from "./MerchantResponse"
|
|
9
11
|
import { ProviderCode } from "./ProviderCode"
|
|
10
12
|
import { YearMonth } from "./YearMonth"
|
|
11
13
|
|
|
@@ -33,37 +35,35 @@ export interface CardResponseV2 {
|
|
|
33
35
|
bookingInfo?: BookingInfoResponse
|
|
34
36
|
delivery?: CardDeliveryResponse
|
|
35
37
|
batchId?: string
|
|
38
|
+
merchantRestriction?: MerchantResponse
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
export namespace CardResponseV2 {
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
(value.activationDate == undefined || Date.is(value.activationDate))
|
|
67
|
-
)
|
|
68
|
-
}
|
|
42
|
+
export const type = isly.object<CardResponseV2>({
|
|
43
|
+
cardType: isly.union(CardTypeSpecification.type, isly.string()),
|
|
44
|
+
cardNumber: isly.string(),
|
|
45
|
+
cvv: isly.string().optional(),
|
|
46
|
+
expiryDate: isly.fromIs("YearMonth", YearMonth.is),
|
|
47
|
+
nameOnCard: isly.string().optional(),
|
|
48
|
+
fundingBalance: isly.number(),
|
|
49
|
+
remainingBalance: isly.number(),
|
|
50
|
+
fundingDate: isly.string(),
|
|
51
|
+
balance: isly.number(),
|
|
52
|
+
currency: isly.fromIs("Currency", Currency.is),
|
|
53
|
+
issueDate: isly.string(),
|
|
54
|
+
providerCode: isly.fromIs("ProviderCode", ProviderCode.is),
|
|
55
|
+
providerCardId: isly.string(),
|
|
56
|
+
usage: isly.fromIs("CardUsage", CardUsage.is),
|
|
57
|
+
fundingAccount: isly.fromIs("FundingAccountSummaryResponse", FundingAccountSummaryResponse.is),
|
|
58
|
+
createdBy: isly.string(),
|
|
59
|
+
state: isly.fromIs("AccountState", AccountState.is),
|
|
60
|
+
longTermTokenExpiry: isly.fromIs("Date", Date.is).optional(),
|
|
61
|
+
activationDate: isly.fromIs("Date", Date.is).optional(),
|
|
62
|
+
schedule: isly.array(isly.fromIs("CardScheduleResponseItem", CardScheduleResponseItem.is)).optional(),
|
|
63
|
+
bookingInfo: isly.fromIs("BookingInfoResponse", BookingInfoResponse.is).optional(),
|
|
64
|
+
delivery: isly.fromIs("CardDeliveryResponse", CardDeliveryResponse.is).optional(),
|
|
65
|
+
batchId: isly.string().optional(),
|
|
66
|
+
merchantRestriction: isly.fromIs("MerchantResponse", MerchantResponse.is).optional(),
|
|
67
|
+
})
|
|
68
|
+
export const is = type.is
|
|
69
69
|
}
|