@pax2pay/client 0.0.97 → 0.0.100
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/CardResponse.d.ts +2 -1
- package/dist/model/CardResponseV2.d.ts +6 -0
- package/dist/model/CardResponseV2.js +5 -4
- package/dist/model/CardResponseV2.js.map +1 -1
- package/dist/model/FundingAccountResponseV2.d.ts +1 -0
- package/dist/model/FundingAccountResponseV2.js.map +1 -1
- package/dist/model/StatementReportResponse.d.ts +5 -0
- package/model/CardResponse.ts +2 -1
- package/model/CardResponseV2.ts +11 -4
- package/model/FundingAccountResponseV2.ts +1 -0
- package/model/StatementReportResponse.ts +5 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccountResponse } from "./AccountResponse";
|
|
2
|
+
import { AccountState } from "./AccountState";
|
|
2
3
|
import { BookingInfo } from "./BookingInfo";
|
|
3
4
|
import { BookingInfoResponse } from "./BookingInfoResponse";
|
|
4
5
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
@@ -21,7 +22,7 @@ export interface CardResponse {
|
|
|
21
22
|
remainingBalance?: number;
|
|
22
23
|
notes?: string;
|
|
23
24
|
usage?: CardUsage;
|
|
24
|
-
state?:
|
|
25
|
+
state?: AccountState;
|
|
25
26
|
providerCode?: ProviderCode;
|
|
26
27
|
providerCardId?: string;
|
|
27
28
|
cardAccount?: AccountResponse;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Currency } from "isoly";
|
|
2
|
+
import { AccountState } from "./AccountState";
|
|
1
3
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
2
4
|
import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
3
5
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
@@ -11,7 +13,10 @@ export interface CardResponseV2 {
|
|
|
11
13
|
cvv: string;
|
|
12
14
|
expiryDate: YearMonth;
|
|
13
15
|
nameOnCard: string;
|
|
16
|
+
fundingBalance: number;
|
|
17
|
+
fundingDate: string;
|
|
14
18
|
balance: number;
|
|
19
|
+
currency: Currency;
|
|
15
20
|
issueDate: string;
|
|
16
21
|
providerCode: ProviderCode;
|
|
17
22
|
providerCardId: string;
|
|
@@ -19,6 +24,7 @@ export interface CardResponseV2 {
|
|
|
19
24
|
fundingAccount: FundingAccountResponseV2;
|
|
20
25
|
schedule: CardScheduleResponseItem[];
|
|
21
26
|
createdBy: string;
|
|
27
|
+
state: AccountState;
|
|
22
28
|
delivery?: CardDeliveryResponse;
|
|
23
29
|
}
|
|
24
30
|
export declare namespace CardResponseV2 {
|
|
@@ -20,10 +20,11 @@ export var CardResponseV2;
|
|
|
20
20
|
typeof value.providerCardId == "string" &&
|
|
21
21
|
CardUsage.is(value.usage) &&
|
|
22
22
|
FundingAccountResponseV2.is(value.fundingAccount) &&
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
(value.schedule == undefined ||
|
|
24
|
+
(Array.isArray(value.schedule) &&
|
|
25
|
+
value.schedule.every((a) => {
|
|
26
|
+
return CardScheduleResponseItem.is(a);
|
|
27
|
+
}))) &&
|
|
27
28
|
typeof value.createdBy == "string" &&
|
|
28
29
|
CardDeliveryResponse.is(value.delivery));
|
|
29
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAEA,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,OAAO,EAAE,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ACvC,CAAA;IACF,CAAC;IAtBe,iBAAE,KAsBjB,CAAA;AACF,CAAC,EAxBgB,cAAc,KAAd,cAAc,QAwB9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FundingAccountResponseV2.js","sourceRoot":"../","sources":["model/FundingAccountResponseV2.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FundingAccountResponseV2.js","sourceRoot":"../","sources":["model/FundingAccountResponseV2.ts"],"names":[],"mappings":"AAMA,MAAM,KAAW,wBAAwB,CAIxC;AAJD,WAAiB,wBAAwB;IACxC,SAAgB,EAAE,CAAC,KAAqC;QACvD,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAA;IAClH,CAAC;IAFe,2BAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,wBAAwB,KAAxB,wBAAwB,QAIxC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { Currency } from "isoly";
|
|
2
|
+
import { ProviderCode } from "./ProviderCode";
|
|
1
3
|
import { StatementReportResponseRow } from "./StatementReportResponseRow";
|
|
2
4
|
export interface StatementReportResponse {
|
|
3
5
|
openingAvailableBalance: number;
|
|
4
6
|
closingAvailableBalance: number;
|
|
5
7
|
openingActualBalance: number;
|
|
6
8
|
closingActualBalance: number;
|
|
9
|
+
providerCode: ProviderCode;
|
|
10
|
+
providerAccountId: string;
|
|
11
|
+
currency: Currency;
|
|
7
12
|
totalStatements: number;
|
|
8
13
|
statements: StatementReportResponseRow[];
|
|
9
14
|
}
|
package/model/CardResponse.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccountResponse } from "./AccountResponse"
|
|
2
|
+
import { AccountState } from "./AccountState"
|
|
2
3
|
import { BookingInfo } from "./BookingInfo"
|
|
3
4
|
import { BookingInfoResponse } from "./BookingInfoResponse"
|
|
4
5
|
import { CardDeliveryResponse } from "./CardDeliveryResponse"
|
|
@@ -22,7 +23,7 @@ export interface CardResponse {
|
|
|
22
23
|
remainingBalance?: number
|
|
23
24
|
notes?: string
|
|
24
25
|
usage?: CardUsage
|
|
25
|
-
state?:
|
|
26
|
+
state?: AccountState
|
|
26
27
|
providerCode?: ProviderCode
|
|
27
28
|
providerCardId?: string
|
|
28
29
|
cardAccount?: AccountResponse
|
package/model/CardResponseV2.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Currency } from "isoly"
|
|
2
|
+
import { AccountState } from "./AccountState"
|
|
1
3
|
import { CardDeliveryResponse } from "./CardDeliveryResponse"
|
|
2
4
|
import { CardScheduleResponseItem } from "./CardScheduleResponseItem"
|
|
3
5
|
import { CardTypeSpecification } from "./CardTypeSpecification"
|
|
@@ -12,7 +14,10 @@ export interface CardResponseV2 {
|
|
|
12
14
|
cvv: string
|
|
13
15
|
expiryDate: YearMonth
|
|
14
16
|
nameOnCard: string
|
|
17
|
+
fundingBalance: number
|
|
18
|
+
fundingDate: string
|
|
15
19
|
balance: number
|
|
20
|
+
currency: Currency
|
|
16
21
|
issueDate: string
|
|
17
22
|
providerCode: ProviderCode
|
|
18
23
|
providerCardId: string
|
|
@@ -20,6 +25,7 @@ export interface CardResponseV2 {
|
|
|
20
25
|
fundingAccount: FundingAccountResponseV2
|
|
21
26
|
schedule: CardScheduleResponseItem[]
|
|
22
27
|
createdBy: string
|
|
28
|
+
state: AccountState
|
|
23
29
|
delivery?: CardDeliveryResponse
|
|
24
30
|
}
|
|
25
31
|
|
|
@@ -38,10 +44,11 @@ export namespace CardResponseV2 {
|
|
|
38
44
|
typeof value.providerCardId == "string" &&
|
|
39
45
|
CardUsage.is(value.usage) &&
|
|
40
46
|
FundingAccountResponseV2.is(value.fundingAccount) &&
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
(value.schedule == undefined ||
|
|
48
|
+
(Array.isArray(value.schedule) &&
|
|
49
|
+
value.schedule.every((a: any) => {
|
|
50
|
+
return CardScheduleResponseItem.is(a)
|
|
51
|
+
}))) &&
|
|
45
52
|
typeof value.createdBy == "string" &&
|
|
46
53
|
CardDeliveryResponse.is(value.delivery)
|
|
47
54
|
)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Currency } from "isoly"
|
|
2
|
+
import { ProviderCode } from "./ProviderCode"
|
|
1
3
|
import { StatementReportResponseRow } from "./StatementReportResponseRow"
|
|
2
4
|
|
|
3
5
|
export interface StatementReportResponse {
|
|
@@ -5,6 +7,9 @@ export interface StatementReportResponse {
|
|
|
5
7
|
closingAvailableBalance: number
|
|
6
8
|
openingActualBalance: number
|
|
7
9
|
closingActualBalance: number
|
|
10
|
+
providerCode: ProviderCode
|
|
11
|
+
providerAccountId: string
|
|
12
|
+
currency: Currency
|
|
8
13
|
totalStatements: number
|
|
9
14
|
statements: StatementReportResponseRow[]
|
|
10
15
|
}
|