@pax2pay/client 0.0.91 → 0.0.95

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.
Files changed (109) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +2 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/model/AccountBankResponse.d.ts +9 -0
  5. package/dist/model/AccountBankResponse.js +12 -0
  6. package/dist/model/AccountBankResponse.js.map +1 -0
  7. package/dist/model/AccountIdentifierResponse.d.ts +11 -0
  8. package/dist/model/AccountIdentifierResponse.js +14 -0
  9. package/dist/model/AccountIdentifierResponse.js.map +1 -0
  10. package/dist/model/AccountResponse.d.ts +1 -1
  11. package/dist/model/AccountResponse.js +1 -1
  12. package/dist/model/AccountResponse.js.map +1 -1
  13. package/dist/model/AccountSummary.d.ts +29 -0
  14. package/dist/model/AccountSummary.js +32 -0
  15. package/dist/model/AccountSummary.js.map +1 -0
  16. package/dist/model/AddressInfo.d.ts +3 -0
  17. package/dist/model/AddressInfo.js +12 -1
  18. package/dist/model/AddressInfo.js.map +1 -1
  19. package/dist/model/AmountPair.d.ts +3 -0
  20. package/dist/model/AmountPair.js +8 -1
  21. package/dist/model/AmountPair.js.map +1 -1
  22. package/dist/model/BeneficiaryResponse.d.ts +5 -1
  23. package/dist/model/BeneficiaryResponse.js +17 -1
  24. package/dist/model/BeneficiaryResponse.js.map +1 -1
  25. package/dist/model/BeneficiaryStatus.d.ts +6 -0
  26. package/dist/model/BeneficiaryStatus.js +9 -0
  27. package/dist/model/BeneficiaryStatus.js.map +1 -0
  28. package/dist/model/BillingTransactionAmountPair.d.ts +3 -0
  29. package/dist/model/BillingTransactionAmountPair.js +11 -1
  30. package/dist/model/BillingTransactionAmountPair.js.map +1 -1
  31. package/dist/model/BookingInfoResponse.d.ts +3 -0
  32. package/dist/model/BookingInfoResponse.js +16 -1
  33. package/dist/model/BookingInfoResponse.js.map +1 -1
  34. package/dist/model/FiveFieldsBookingInfoResponse.d.ts +3 -0
  35. package/dist/model/FiveFieldsBookingInfoResponse.js +15 -1
  36. package/dist/model/FiveFieldsBookingInfoResponse.js.map +1 -1
  37. package/dist/model/FlightBookingInfoResponse.d.ts +3 -0
  38. package/dist/model/FlightBookingInfoResponse.js +20 -1
  39. package/dist/model/FlightBookingInfoResponse.js.map +1 -1
  40. package/dist/model/FlightInfo.d.ts +3 -7
  41. package/dist/model/FlightInfo.js +10 -1
  42. package/dist/model/FlightInfo.js.map +1 -1
  43. package/dist/model/FundingAccountIdentifierType.d.ts +6 -0
  44. package/dist/model/FundingAccountIdentifierType.js +9 -0
  45. package/dist/model/FundingAccountIdentifierType.js.map +1 -0
  46. package/dist/model/HotelBookingInfoResponse.d.ts +3 -0
  47. package/dist/model/HotelBookingInfoResponse.js +20 -1
  48. package/dist/model/HotelBookingInfoResponse.js.map +1 -1
  49. package/dist/model/InvoiceBookingInfoResponse.d.ts +3 -0
  50. package/dist/model/InvoiceBookingInfoResponse.js +17 -1
  51. package/dist/model/InvoiceBookingInfoResponse.js.map +1 -1
  52. package/dist/model/Segment.d.ts +10 -0
  53. package/dist/model/Segment.js +14 -0
  54. package/dist/model/Segment.js.map +1 -0
  55. package/dist/model/StatementReportRequest.d.ts +3 -1
  56. package/dist/model/StatementReportResponse.d.ts +1 -0
  57. package/dist/model/StatementReportResponseRow.d.ts +5 -2
  58. package/dist/model/StatementReportResponseRow.js +26 -1
  59. package/dist/model/StatementReportResponseRow.js.map +1 -1
  60. package/dist/model/StatementReportRowType.d.ts +3 -0
  61. package/dist/model/StatementReportRowType.js +7 -1
  62. package/dist/model/StatementReportRowType.js.map +1 -1
  63. package/dist/model/StatementRowIds.d.ts +3 -0
  64. package/dist/model/StatementRowIds.js +12 -1
  65. package/dist/model/StatementRowIds.js.map +1 -1
  66. package/dist/model/SummaryBookingInfoResponse.d.ts +5 -2
  67. package/dist/model/SummaryBookingInfoResponse.js +12 -1
  68. package/dist/model/SummaryBookingInfoResponse.js.map +1 -1
  69. package/dist/model/TransferDestinationInfo.d.ts +5 -1
  70. package/dist/model/TransferDestinationInfo.js +16 -1
  71. package/dist/model/TransferDestinationInfo.js.map +1 -1
  72. package/dist/model/TransferResponse.d.ts +5 -1
  73. package/dist/model/TransferResponse.js +25 -1
  74. package/dist/model/TransferResponse.js.map +1 -1
  75. package/dist/model/TransferStatus.d.ts +6 -0
  76. package/dist/model/TransferStatus.js +20 -0
  77. package/dist/model/TransferStatus.js.map +1 -0
  78. package/dist/model/index.d.ts +8 -1
  79. package/dist/model/index.js +24 -1
  80. package/dist/model/index.js.map +1 -1
  81. package/index.ts +14 -0
  82. package/model/AccountBankResponse.ts +18 -0
  83. package/model/AccountIdentifierResponse.ts +22 -0
  84. package/model/AccountResponse.ts +2 -2
  85. package/model/AccountSummary.ts +51 -0
  86. package/model/AddressInfo.ts +13 -0
  87. package/model/AmountPair.ts +6 -0
  88. package/model/BeneficiaryResponse.ts +18 -1
  89. package/model/BeneficiaryStatus.ts +9 -0
  90. package/model/BillingTransactionAmountPair.ts +10 -0
  91. package/model/BookingInfoResponse.ts +12 -0
  92. package/model/FiveFieldsBookingInfoResponse.ts +16 -0
  93. package/model/FlightBookingInfoResponse.ts +17 -0
  94. package/model/FlightInfo.ts +9 -6
  95. package/model/FundingAccountIdentifierType.ts +9 -0
  96. package/model/HotelBookingInfoResponse.ts +17 -0
  97. package/model/InvoiceBookingInfoResponse.ts +17 -0
  98. package/model/Segment.ts +21 -0
  99. package/model/StatementReportRequest.ts +3 -1
  100. package/model/StatementReportResponse.ts +1 -0
  101. package/model/StatementReportResponseRow.ts +21 -2
  102. package/model/StatementReportRowType.ts +6 -0
  103. package/model/StatementRowIds.ts +12 -0
  104. package/model/SummaryBookingInfoResponse.ts +15 -2
  105. package/model/TransferDestinationInfo.ts +17 -1
  106. package/model/TransferResponse.ts +23 -11
  107. package/model/TransferStatus.ts +20 -0
  108. package/model/index.ts +14 -0
  109. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"InvoiceBookingInfoResponse.js","sourceRoot":"../","sources":["model/InvoiceBookingInfoResponse.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"InvoiceBookingInfoResponse.js","sourceRoot":"../","sources":["model/InvoiceBookingInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B,MAAM,KAAW,0BAA0B,CAe1C;AAfD,WAAiB,0BAA0B;IAC1C,SAAgB,EAAE,CAAC,KAAuC;QACzD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,KAAK,CAAC,IAAI,IAAI,SAAS;YACvB,CAAC,KAAK,CAAC,qBAAqB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,qBAAqB,IAAI,QAAQ,CAAC;YAC5F,CAAC,KAAK,CAAC,UAAU,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,CAAC;YACtE,CAAC,KAAK,CAAC,YAAY,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ,CAAC;YAC1E,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC,KAAK,CAAC,uBAAuB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,uBAAuB,IAAI,QAAQ,CAAC;YAChG,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;YAC5D,CAAC,KAAK,CAAC,UAAU,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,CAAC;YACtE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAClC,CAAA;IACF,CAAC;IAbe,6BAAE,KAajB,CAAA;AACF,CAAC,EAfgB,0BAA0B,KAA1B,0BAA0B,QAe1C"}
@@ -0,0 +1,10 @@
1
+ import * as isoly from "isoly";
2
+ export interface Segment {
3
+ from: string;
4
+ to: string;
5
+ date: isoly.Date;
6
+ flightNumbers?: string[];
7
+ }
8
+ export declare namespace Segment {
9
+ function is(value: Segment | any): value is Segment;
10
+ }
@@ -0,0 +1,14 @@
1
+ import * as isoly from "isoly";
2
+ export var Segment;
3
+ (function (Segment) {
4
+ function is(value) {
5
+ return (typeof value == "object" &&
6
+ typeof value.from == "string" &&
7
+ typeof value.to == "string" &&
8
+ isoly.Date.is(value.date) &&
9
+ (value.flightNumbers == undefined ||
10
+ (Array.isArray(value.flightNumbers) && value.flightNumbers.every((item) => typeof item == "string"))));
11
+ }
12
+ Segment.is = is;
13
+ })(Segment || (Segment = {}));
14
+ //# sourceMappingURL=Segment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Segment.js","sourceRoot":"../","sources":["model/Segment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,MAAM,KAAW,OAAO,CAWvB;AAXD,WAAiB,OAAO;IACvB,SAAgB,EAAE,CAAC,KAAoB;QACtC,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ;YAC3B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;YACzB,CAAC,KAAK,CAAC,aAAa,IAAI,SAAS;gBAChC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,OAAO,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,CAC3G,CAAA;IACF,CAAC;IATe,UAAE,KASjB,CAAA;AACF,CAAC,EAXgB,OAAO,KAAP,OAAO,QAWvB"}
@@ -3,8 +3,10 @@ import { ProviderCode } from "./ProviderCode";
3
3
  export interface StatementReportRequest {
4
4
  providerCode: ProviderCode;
5
5
  providerAccountId: string;
6
- period: {
6
+ dateRange: {
7
7
  start: isoly.DateTime;
8
8
  end: isoly.DateTime;
9
9
  };
10
+ balanceType?: "AVAILABLE" | "ACTUAL";
11
+ type?: "summary" | "full";
10
12
  }
@@ -4,5 +4,6 @@ export interface StatementReportResponse {
4
4
  closingAvailableBalance: number;
5
5
  openingActualBalance: number;
6
6
  closingActualBalance: number;
7
+ totalStatements: number;
7
8
  statements: StatementReportResponseRow[];
8
9
  }
@@ -9,9 +9,9 @@ import { TransferResponse } from "./TransferResponse";
9
9
  export interface StatementReportResponseRow {
10
10
  actionType: StatementReportRowActionType;
11
11
  amount: BillingTransactionAmountPair;
12
- bookingInfo: BookingInfoResponse;
12
+ bookingInfo?: BookingInfoResponse;
13
13
  postedDate: isoly.DateTime;
14
- transactionDate: isoly.DateTime;
14
+ transactionDate?: isoly.DateTime;
15
15
  actualBalance: number;
16
16
  availableBalance: number;
17
17
  rowType: StatementReportRowType;
@@ -19,3 +19,6 @@ export interface StatementReportResponseRow {
19
19
  card?: CardResponseV2;
20
20
  transfer?: TransferResponse;
21
21
  }
22
+ export declare namespace StatementReportResponseRow {
23
+ function is(value: StatementReportResponseRow | any): value is StatementReportResponseRow;
24
+ }
@@ -1,2 +1,27 @@
1
- export {};
1
+ import * as isoly from "isoly";
2
+ import { BillingTransactionAmountPair } from "./BillingTransactionAmountPair";
3
+ import { BookingInfoResponse } from "./BookingInfoResponse";
4
+ import { CardResponseV2 } from "./CardResponseV2";
5
+ import { StatementReportRowActionType } from "./StatementReportRowActionType";
6
+ import { StatementReportRowType } from "./StatementReportRowType";
7
+ import { StatementRowIds } from "./StatementRowIds";
8
+ import { TransferResponse } from "./TransferResponse";
9
+ export var StatementReportResponseRow;
10
+ (function (StatementReportResponseRow) {
11
+ function is(value) {
12
+ return (typeof value == "object" &&
13
+ StatementReportRowActionType.is(value.actionType) &&
14
+ BillingTransactionAmountPair.is(value.amount) &&
15
+ (value.bookingInfo == undefined || BookingInfoResponse.is(value.bookingInfo)) &&
16
+ isoly.DateTime.is(value.postedDate) &&
17
+ (value.transactionDate == undefined || isoly.DateTime.is(value.transactionDate)) &&
18
+ typeof value.actualBalance == "number" &&
19
+ typeof value.availableBalance == "number" &&
20
+ StatementReportRowType.is(value.rowType) &&
21
+ StatementRowIds.is(value.ids) &&
22
+ (value.card == undefined || CardResponseV2.is(value.card)) &&
23
+ (value.transfer == undefined || TransferResponse.is(value.transfer)));
24
+ }
25
+ StatementReportResponseRow.is = is;
26
+ })(StatementReportResponseRow || (StatementReportResponseRow = {}));
2
27
  //# sourceMappingURL=StatementReportResponseRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatementReportResponseRow.js","sourceRoot":"../","sources":["model/StatementReportResponseRow.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"StatementReportResponseRow.js","sourceRoot":"../","sources":["model/StatementReportResponseRow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAgBrD,MAAM,KAAW,0BAA0B,CAiB1C;AAjBD,WAAiB,0BAA0B;IAC1C,SAAgB,EAAE,CAAC,KAAuC;QACzD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,4BAA4B,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YACjD,4BAA4B,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;YAC7C,CAAC,KAAK,CAAC,WAAW,IAAI,SAAS,IAAI,mBAAmB,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;YAC7E,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YACnC,CAAC,KAAK,CAAC,eAAe,IAAI,SAAS,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YAChF,OAAO,KAAK,CAAC,aAAa,IAAI,QAAQ;YACtC,OAAO,KAAK,CAAC,gBAAgB,IAAI,QAAQ;YACzC,sBAAsB,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;YACxC,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;YAC7B,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,IAAI,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC1D,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,gBAAgB,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CACpE,CAAA;IACF,CAAC;IAfe,6BAAE,KAejB,CAAA;AACF,CAAC,EAjBgB,0BAA0B,KAA1B,0BAA0B,QAiB1C"}
@@ -1 +1,4 @@
1
1
  export declare type StatementReportRowType = "SUMMARY" | "FULL";
2
+ export declare namespace StatementReportRowType {
3
+ function is(value: StatementReportRowType | any): value is StatementReportRowType;
4
+ }
@@ -1,2 +1,8 @@
1
- export {};
1
+ export var StatementReportRowType;
2
+ (function (StatementReportRowType) {
3
+ function is(value) {
4
+ return value == "SUMMARY" || value == "FULL";
5
+ }
6
+ StatementReportRowType.is = is;
7
+ })(StatementReportRowType || (StatementReportRowType = {}));
2
8
  //# sourceMappingURL=StatementReportRowType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatementReportRowType.js","sourceRoot":"../","sources":["model/StatementReportRowType.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"StatementReportRowType.js","sourceRoot":"../","sources":["model/StatementReportRowType.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,sBAAsB,CAItC;AAJD,WAAiB,sBAAsB;IACtC,SAAgB,EAAE,CAAC,KAAmC;QACrD,OAAO,KAAK,IAAI,SAAS,IAAI,KAAK,IAAI,MAAM,CAAA;IAC7C,CAAC;IAFe,yBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,sBAAsB,KAAtB,sBAAsB,QAItC"}
@@ -5,3 +5,6 @@ export interface StatementRowIds {
5
5
  providerCardId?: string;
6
6
  providerTransferId?: string;
7
7
  }
8
+ export declare namespace StatementRowIds {
9
+ function is(value: StatementRowIds | any): value is StatementRowIds;
10
+ }
@@ -1,2 +1,13 @@
1
- export {};
1
+ import { ProviderCode } from "./ProviderCode";
2
+ export var StatementRowIds;
3
+ (function (StatementRowIds) {
4
+ function is(value) {
5
+ return (typeof value == "object" &&
6
+ typeof value.rowId == "string" &&
7
+ ProviderCode.is(value.providerCode) &&
8
+ (value.providerCardId == undefined || typeof value.providerCardId == "string") &&
9
+ (value.providerTransferId == undefined || typeof value.providerTransferId == "string"));
10
+ }
11
+ StatementRowIds.is = is;
12
+ })(StatementRowIds || (StatementRowIds = {}));
2
13
  //# sourceMappingURL=StatementRowIds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatementRowIds.js","sourceRoot":"../","sources":["model/StatementRowIds.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"StatementRowIds.js","sourceRoot":"../","sources":["model/StatementRowIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAS7C,MAAM,KAAW,eAAe,CAU/B;AAVD,WAAiB,eAAe;IAC/B,SAAgB,EAAE,CAAC,KAA4B;QAC9C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,KAAK,IAAI,QAAQ;YAC9B,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YACnC,CAAC,KAAK,CAAC,cAAc,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,cAAc,IAAI,QAAQ,CAAC;YAC9E,CAAC,KAAK,CAAC,kBAAkB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,kBAAkB,IAAI,QAAQ,CAAC,CACtF,CAAA;IACF,CAAC;IARe,kBAAE,KAQjB,CAAA;AACF,CAAC,EAVgB,eAAe,KAAf,eAAe,QAU/B"}
@@ -1,7 +1,10 @@
1
1
  export interface SummaryBookingInfoResponse {
2
- leadPassengerName: string;
3
- agentBookingReference: string;
2
+ leadPassengerName?: string;
3
+ agentBookingReference?: string;
4
4
  type: "SUMMARY";
5
5
  bookingInfoIdentifier: string;
6
6
  trackingId: string;
7
7
  }
8
+ export declare namespace SummaryBookingInfoResponse {
9
+ function is(value: SummaryBookingInfoResponse | any): value is SummaryBookingInfoResponse;
10
+ }
@@ -1,2 +1,13 @@
1
- export {};
1
+ export var SummaryBookingInfoResponse;
2
+ (function (SummaryBookingInfoResponse) {
3
+ function is(value) {
4
+ return (typeof value == "object" &&
5
+ value.type == "SUMMARY" &&
6
+ (value.leadPassengerName == undefined || typeof value.leadPassengerName == "string") &&
7
+ (value.agentBookingReference == undefined || typeof value.agentBookingReference == "string") &&
8
+ typeof value.bookingInfoIdentifier == "string" &&
9
+ typeof value.trackingId == "string");
10
+ }
11
+ SummaryBookingInfoResponse.is = is;
12
+ })(SummaryBookingInfoResponse || (SummaryBookingInfoResponse = {}));
2
13
  //# sourceMappingURL=SummaryBookingInfoResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryBookingInfoResponse.js","sourceRoot":"../","sources":["model/SummaryBookingInfoResponse.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"SummaryBookingInfoResponse.js","sourceRoot":"../","sources":["model/SummaryBookingInfoResponse.ts"],"names":[],"mappings":"AAQA,MAAM,KAAW,0BAA0B,CAW1C;AAXD,WAAiB,0BAA0B;IAC1C,SAAgB,EAAE,CAAC,KAAuC;QACzD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,KAAK,CAAC,IAAI,IAAI,SAAS;YACvB,CAAC,KAAK,CAAC,iBAAiB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ,CAAC;YACpF,CAAC,KAAK,CAAC,qBAAqB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,qBAAqB,IAAI,QAAQ,CAAC;YAC5F,OAAO,KAAK,CAAC,qBAAqB,IAAI,QAAQ;YAC9C,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,CACnC,CAAA;IACF,CAAC;IATe,6BAAE,KASjB,CAAA;AACF,CAAC,EAXgB,0BAA0B,KAA1B,0BAA0B,QAW1C"}
@@ -1,10 +1,14 @@
1
+ import * as isoly from "isoly";
1
2
  import { AddressInfo } from "./AddressInfo";
2
3
  export interface TransferDestinationInfo {
3
4
  accountNumber?: string;
4
5
  sortCode?: string;
5
6
  iban?: string;
6
7
  bic?: string;
7
- currency: string;
8
+ currency: isoly.Currency;
8
9
  address?: AddressInfo;
9
10
  fullName?: string;
10
11
  }
12
+ export declare namespace TransferDestinationInfo {
13
+ function is(value: TransferDestinationInfo | any): value is TransferDestinationInfo;
14
+ }
@@ -1,2 +1,17 @@
1
- export {};
1
+ import * as isoly from "isoly";
2
+ import { AddressInfo } from "./AddressInfo";
3
+ export var TransferDestinationInfo;
4
+ (function (TransferDestinationInfo) {
5
+ function is(value) {
6
+ return (typeof value == "object" &&
7
+ (value.accountNumber == undefined || typeof value.accountNumber == "string") &&
8
+ (value.sortCode == undefined || typeof value.sortCode == "string") &&
9
+ (value.iban == undefined || typeof value.iban == "string") &&
10
+ (value.bic == undefined || typeof value.bic == "string") &&
11
+ isoly.Currency.is(value.currency) &&
12
+ (value.address == undefined || AddressInfo.is(value.address)) &&
13
+ (value.fullName == undefined || typeof value.fullName == "string"));
14
+ }
15
+ TransferDestinationInfo.is = is;
16
+ })(TransferDestinationInfo || (TransferDestinationInfo = {}));
2
17
  //# sourceMappingURL=TransferDestinationInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransferDestinationInfo.js","sourceRoot":"../","sources":["model/TransferDestinationInfo.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"TransferDestinationInfo.js","sourceRoot":"../","sources":["model/TransferDestinationInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAe3C,MAAM,KAAW,uBAAuB,CAavC;AAbD,WAAiB,uBAAuB;IACvC,SAAgB,EAAE,CAAC,KAAoC;QACtD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,aAAa,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,aAAa,IAAI,QAAQ,CAAC;YAC5E,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC;YAClE,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ,CAAC;YAC1D,CAAC,KAAK,CAAC,GAAG,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,GAAG,IAAI,QAAQ,CAAC;YACxD,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YACjC,CAAC,KAAK,CAAC,OAAO,IAAI,SAAS,IAAI,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC7D,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAClE,CAAA;IACF,CAAC;IAXe,0BAAE,KAWjB,CAAA;AACF,CAAC,EAbgB,uBAAuB,KAAvB,uBAAuB,QAavC"}
@@ -2,13 +2,14 @@ import { AccountResponse } from "./AccountResponse";
2
2
  import { BeneficiaryResponse } from "./BeneficiaryResponse";
3
3
  import { ProviderCode } from "./ProviderCode";
4
4
  import { TransferDestinationInfo } from "./TransferDestinationInfo";
5
+ import { TransferStatus } from "./TransferStatus";
5
6
  export interface TransferResponse {
6
7
  sourceAccount?: AccountResponse;
7
8
  beneficiary?: BeneficiaryResponse;
8
9
  destinationAccount?: AccountResponse;
9
10
  destination?: TransferDestinationInfo;
10
11
  amount?: number;
11
- status?: "PENDING" | "PENDING_FOR_DATE" | "PENDING_FOR_FUNDS" | "SETTLED" | "CANCELLED" | "ERROR_REJECTED" | "APPROVAL_PENDING" | "DECLINED" | "APPROVED" | "GENERATED";
12
+ status?: TransferStatus;
12
13
  createdDate?: string;
13
14
  paymentDate?: string;
14
15
  reference?: string;
@@ -17,3 +18,6 @@ export interface TransferResponse {
17
18
  scheduled?: boolean;
18
19
  errorDescription?: string;
19
20
  }
21
+ export declare namespace TransferResponse {
22
+ function is(value: TransferResponse | any): value is TransferResponse;
23
+ }
@@ -1,2 +1,26 @@
1
- export {};
1
+ import { AccountResponse } from "./AccountResponse";
2
+ import { BeneficiaryResponse } from "./BeneficiaryResponse";
3
+ import { ProviderCode } from "./ProviderCode";
4
+ import { TransferDestinationInfo } from "./TransferDestinationInfo";
5
+ import { TransferStatus } from "./TransferStatus";
6
+ export var TransferResponse;
7
+ (function (TransferResponse) {
8
+ function is(value) {
9
+ return (typeof value == "object" &&
10
+ (value.sourceAccount == undefined || AccountResponse.is(value.sourceAccount)) &&
11
+ (value.beneficiary == undefined || BeneficiaryResponse.is(value.beneficiary)) &&
12
+ (value.destinationAccount == undefined || AccountResponse.is(value.destinationAccount)) &&
13
+ (value.destination == undefined || TransferDestinationInfo.is(value.destination)) &&
14
+ (value.amount == undefined || typeof value.amount == "number") &&
15
+ (value.status == undefined || TransferStatus.is(value.status)) &&
16
+ (value.createdDate == undefined || typeof value.createdDate == "string") &&
17
+ (value.paymentDate == undefined || typeof value.paymentDate == "string") &&
18
+ (value.reference == undefined || typeof value.reference == "string") &&
19
+ (value.providerCode == undefined || ProviderCode.is(value.providerCode)) &&
20
+ (value.providerTransferId == undefined || typeof value.providerTransferId == "string") &&
21
+ (value.scheduled == undefined || typeof value.scheduled == "boolean") &&
22
+ (value.errorDescription == undefined || typeof value.errorDescription == "string"));
23
+ }
24
+ TransferResponse.is = is;
25
+ })(TransferResponse || (TransferResponse = {}));
2
26
  //# sourceMappingURL=TransferResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransferResponse.js","sourceRoot":"../","sources":["model/TransferResponse.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"TransferResponse.js","sourceRoot":"../","sources":["model/TransferResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAkBjD,MAAM,KAAW,gBAAgB,CAmBhC;AAnBD,WAAiB,gBAAgB;IAChC,SAAgB,EAAE,CAAC,KAA6B;QAC/C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,aAAa,IAAI,SAAS,IAAI,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YAC7E,CAAC,KAAK,CAAC,WAAW,IAAI,SAAS,IAAI,mBAAmB,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;YAC7E,CAAC,KAAK,CAAC,kBAAkB,IAAI,SAAS,IAAI,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,kBA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GENERATED"];
2
+ export declare type TransferStatus = typeof transferStatus[number];
3
+ export declare namespace TransferStatus {
4
+ function is(value: unknown): value is TransferStatus;
5
+ }
6
+ export {};
@@ -0,0 +1,20 @@
1
+ const transferStatus = [
2
+ "PENDING",
3
+ "PENDING_FOR_DATE",
4
+ "PENDING_FOR_FUNDS",
5
+ "SETTLED",
6
+ "CANCELLED",
7
+ "ERROR_REJECTED",
8
+ "APPROVAL_PENDING",
9
+ "DECLINED",
10
+ "APPROVED",
11
+ "GENERATED",
12
+ ];
13
+ export var TransferStatus;
14
+ (function (TransferStatus) {
15
+ function is(value) {
16
+ return typeof value == "string" && transferStatus.includes(value);
17
+ }
18
+ TransferStatus.is = is;
19
+ })(TransferStatus || (TransferStatus = {}));
20
+ //# sourceMappingURL=TransferStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransferStatus.js","sourceRoot":"../","sources":["model/TransferStatus.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG;IACtB,SAAS;IACT,kBAAkB;IAClB,mBAAmB;IACnB,SAAS;IACT,WAAW;IACX,gBAAgB;IAChB,kBAAkB;IAClB,UAAU;IACV,UAAU;IACV,WAAW;CACF,CAAA;AAIV,MAAM,KAAW,cAAc,CAI9B;AAJD,WAAiB,cAAc;IAC9B,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAA;IACpF,CAAC;IAFe,iBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,cAAc,KAAd,cAAc,QAI9B"}
@@ -1,7 +1,10 @@
1
+ import { AccountBankResponse } from "./AccountBankResponse";
1
2
  import { AccountCreationRequest } from "./AccountCreationRequest";
3
+ import { AccountIdentifierResponse } from "./AccountIdentifierResponse";
2
4
  import { AccountResponse } from "./AccountResponse";
3
5
  import { AccountSearchRequest } from "./AccountSearchRequest";
4
6
  import { AccountState } from "./AccountState";
7
+ import { AccountSummary } from "./AccountSummary";
5
8
  import { AccountType } from "./AccountType";
6
9
  import { AddressInfo } from "./AddressInfo";
7
10
  import { AgentBookingInfo } from "./AgentBookingInfo";
@@ -9,6 +12,7 @@ import { AmendCardRequest } from "./AmendCardRequest";
9
12
  import { AmountPair } from "./AmountPair";
10
13
  import { BeneficiaryRequest } from "./BeneficiaryRequest";
11
14
  import { BeneficiaryResponse } from "./BeneficiaryResponse";
15
+ import { BeneficiaryStatus } from "./BeneficiaryStatus";
12
16
  import { BillingTransactionAmountPair } from "./BillingTransactionAmountPair";
13
17
  import { BookedProductInfo } from "./BookedProductInfo";
14
18
  import { BookingInfo } from "./BookingInfo";
@@ -53,6 +57,7 @@ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse";
53
57
  import { FlightBookingInfoRequest } from "./FlightBookingInfoRequest";
54
58
  import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse";
55
59
  import { FlightInfo } from "./FlightInfo";
60
+ import { FundingAccountIdentifierType } from "./FundingAccountIdentifierType";
56
61
  import { FundingAccountInboundTransferNotificationConfig } from "./FundingAccountInboundTransferNotificationConfig";
57
62
  import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
58
63
  import { FundingAccountSearchRequest } from "./FundingAccountSearchRequest";
@@ -94,6 +99,7 @@ import { RolesetResponse } from "./RolesetResponse";
94
99
  import { Room } from "./Room";
95
100
  import { ScheduledTaskRequest } from "./ScheduledTaskRequest";
96
101
  import { SearchRolesetsRequest } from "./SearchRolesetsRequest";
102
+ import { Segment } from "./Segment";
97
103
  import { Sorting } from "./Sorting";
98
104
  import { StatementReportRequest } from "./StatementReportRequest";
99
105
  import { StatementReportResponse } from "./StatementReportResponse";
@@ -109,6 +115,7 @@ import { TransferDestinationInfo } from "./TransferDestinationInfo";
109
115
  import { TransferRequest } from "./TransferRequest";
110
116
  import { TransferResponse } from "./TransferResponse";
111
117
  import { TransferSearch } from "./TransferSearch";
118
+ import { TransferStatus } from "./TransferStatus";
112
119
  import { TravelPartyInfo } from "./TravelPartyInfo";
113
120
  import { TwoFactorAuthenticationDetails } from "./TwoFactorAuthenticationDetails";
114
121
  import { TwoFactorAuthenticationRegistrationResponse } from "./TwoFactorAuthenticationRegistrationResponse";
@@ -125,4 +132,4 @@ import { UserResponse } from "./UserResponse";
125
132
  import { UserRoleResponse } from "./UserRoleResponse";
126
133
  import { UserSearchRequest } from "./UserSearchRequest";
127
134
  import { YearMonth } from "./YearMonth";
128
- export { AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountState, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
135
+ export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
@@ -1,6 +1,15 @@
1
+ import { AccountBankResponse } from "./AccountBankResponse";
2
+ import { AccountIdentifierResponse } from "./AccountIdentifierResponse";
1
3
  import { AccountResponse } from "./AccountResponse";
2
4
  import { AccountState } from "./AccountState";
5
+ import { AccountSummary } from "./AccountSummary";
3
6
  import { AccountType } from "./AccountType";
7
+ import { AddressInfo } from "./AddressInfo";
8
+ import { AmountPair } from "./AmountPair";
9
+ import { BeneficiaryResponse } from "./BeneficiaryResponse";
10
+ import { BeneficiaryStatus } from "./BeneficiaryStatus";
11
+ import { BillingTransactionAmountPair } from "./BillingTransactionAmountPair";
12
+ import { BookingInfoResponse } from "./BookingInfoResponse";
4
13
  import { BookingInfoType } from "./BookingInfoType";
5
14
  import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
6
15
  import { CardDeliveryRequest } from "./CardDeliveryRequest";
@@ -16,10 +25,16 @@ import { CardTypeSpecification } from "./CardTypeSpecification";
16
25
  import { CardTypeSpecificationFlag } from "./CardTypeSpecificationFlag";
17
26
  import { ErrorMessageDto } from "./ErrorMessageDto";
18
27
  import { ErrorResponse } from "./ErrorResponse";
28
+ import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse";
29
+ import { FlightBookingInfoResponse } from "./FlightBookingInfoResponse";
30
+ import { FlightInfo } from "./FlightInfo";
31
+ import { FundingAccountIdentifierType } from "./FundingAccountIdentifierType";
19
32
  import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
20
33
  import { FundingLimitResponse } from "./FundingLimitResponse";
21
34
  import { HotelBookingInfoRequest } from "./HotelBookingInfoRequest";
35
+ import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse";
22
36
  import { HotelInfo } from "./HotelInfo";
37
+ import { InvoiceBookingInfoResponse } from "./InvoiceBookingInfoResponse";
23
38
  import { Issue } from "./Issue";
24
39
  import { LoginResponse } from "./LoginResponse";
25
40
  import { OrganisationBalanceLimitResponse } from "./OrganisationBalanceLimitResponse";
@@ -28,8 +43,16 @@ import { Passengers } from "./Passengers";
28
43
  import { ProviderCode } from "./ProviderCode";
29
44
  import { ProviderResponse } from "./ProviderResponse";
30
45
  import { References } from "./References";
46
+ import { Segment } from "./Segment";
47
+ import { StatementReportResponseRow } from "./StatementReportResponseRow";
31
48
  import { StatementReportRowActionType } from "./StatementReportRowActionType";
49
+ import { StatementReportRowType } from "./StatementReportRowType";
50
+ import { StatementRowIds } from "./StatementRowIds";
51
+ import { SummaryBookingInfoResponse } from "./SummaryBookingInfoResponse";
52
+ import { TransferDestinationInfo } from "./TransferDestinationInfo";
53
+ import { TransferResponse } from "./TransferResponse";
54
+ import { TransferStatus } from "./TransferStatus";
32
55
  import { UserResponse } from "./UserResponse";
33
56
  import { YearMonth } from "./YearMonth";
34
- export { AccountResponse, AccountState, AccountType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelInfo, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, StatementReportRowActionType, UserResponse, YearMonth, };
57
+ export { AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, YearMonth, };
35
58
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["model/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAY3C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAE3E,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAA;AAI7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAYvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAO/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAIrE,OAAO,EAAE,oBAA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EAad,YAAY,EAGZ,SAAS,GACT,CAAA"}
package/index.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  import { Client } from "./Client"
2
2
  import {
3
+ AccountBankResponse,
3
4
  AccountCreationRequest,
5
+ AccountIdentifierResponse,
4
6
  AccountResponse,
5
7
  AccountSearchRequest,
6
8
  AccountState,
9
+ AccountSummary,
7
10
  AccountType,
8
11
  AddressInfo,
9
12
  AgentBookingInfo,
@@ -11,6 +14,7 @@ import {
11
14
  AmountPair,
12
15
  BeneficiaryRequest,
13
16
  BeneficiaryResponse,
17
+ BeneficiaryStatus,
14
18
  BillingTransactionAmountPair,
15
19
  BookedProductInfo,
16
20
  BookingInfo,
@@ -55,6 +59,7 @@ import {
55
59
  FlightBookingInfoRequest,
56
60
  FlightBookingInfoResponse,
57
61
  FlightInfo,
62
+ FundingAccountIdentifierType,
58
63
  FundingAccountInboundTransferNotificationConfig,
59
64
  FundingAccountResponseV2,
60
65
  FundingAccountSearchRequest,
@@ -96,6 +101,7 @@ import {
96
101
  Room,
97
102
  ScheduledTaskRequest,
98
103
  SearchRolesetsRequest,
104
+ Segment,
99
105
  Sorting,
100
106
  StatementReportRequest,
101
107
  StatementReportResponse,
@@ -111,6 +117,7 @@ import {
111
117
  TransferRequest,
112
118
  TransferResponse,
113
119
  TransferSearch,
120
+ TransferStatus,
114
121
  TravelPartyInfo,
115
122
  TwoFactorAuthenticationDetails,
116
123
  TwoFactorAuthenticationRegistrationResponse,
@@ -131,10 +138,13 @@ import {
131
138
 
132
139
  export {
133
140
  Client,
141
+ AccountBankResponse,
134
142
  AccountCreationRequest,
143
+ AccountIdentifierResponse,
135
144
  AccountResponse,
136
145
  AccountSearchRequest,
137
146
  AccountState,
147
+ AccountSummary,
138
148
  AccountType,
139
149
  AddressInfo,
140
150
  AgentBookingInfo,
@@ -142,6 +152,7 @@ export {
142
152
  AmountPair,
143
153
  BeneficiaryRequest,
144
154
  BeneficiaryResponse,
155
+ BeneficiaryStatus,
145
156
  BillingTransactionAmountPair,
146
157
  BookedProductInfo,
147
158
  BookingInfo,
@@ -186,6 +197,7 @@ export {
186
197
  FlightBookingInfoRequest,
187
198
  FlightBookingInfoResponse,
188
199
  FlightInfo,
200
+ FundingAccountIdentifierType,
189
201
  FundingAccountInboundTransferNotificationConfig,
190
202
  FundingAccountResponseV2,
191
203
  FundingAccountSearchRequest,
@@ -227,6 +239,7 @@ export {
227
239
  Room,
228
240
  ScheduledTaskRequest,
229
241
  SearchRolesetsRequest,
242
+ Segment,
230
243
  Sorting,
231
244
  StatementReportRequest,
232
245
  StatementReportResponse,
@@ -242,6 +255,7 @@ export {
242
255
  TransferRequest,
243
256
  TransferResponse,
244
257
  TransferSearch,
258
+ TransferStatus,
245
259
  TravelPartyInfo,
246
260
  TwoFactorAuthenticationDetails,
247
261
  TwoFactorAuthenticationRegistrationResponse,
@@ -0,0 +1,18 @@
1
+ export interface AccountBankResponse {
2
+ bankEntity?: string
3
+ address?: string
4
+ city?: string
5
+ country?: string
6
+ }
7
+
8
+ export namespace AccountBankResponse {
9
+ export function is(value: AccountBankResponse | any): value is AccountBankResponse {
10
+ return (
11
+ typeof value == "object" &&
12
+ (value.bankEntity == undefined || typeof value.bankEntity == "string") &&
13
+ (value.address == undefined || typeof value.address == "string") &&
14
+ (value.city == undefined || typeof value.city == "string") &&
15
+ (value.country == undefined || typeof value.country == "string")
16
+ )
17
+ }
18
+ }
@@ -0,0 +1,22 @@
1
+ import { FundingAccountIdentifierType } from "./FundingAccountIdentifierType"
2
+
3
+ export interface AccountIdentifierResponse {
4
+ type?: FundingAccountIdentifierType
5
+ accountNumber?: string
6
+ bic?: string
7
+ iban?: string
8
+ sortCode?: string
9
+ }
10
+
11
+ export namespace AccountIdentifierResponse {
12
+ export function is(value: AccountIdentifierResponse | any): value is AccountIdentifierResponse {
13
+ return (
14
+ typeof value == "object" &&
15
+ (value.type == undefined || FundingAccountIdentifierType.is(value.type)) &&
16
+ (value.accountNumber == undefined || typeof value.accountNumber == "string") &&
17
+ (value.bic == undefined || typeof value.bic == "string") &&
18
+ (value.iban == undefined || typeof value.iban == "string") &&
19
+ (value.sortCode == undefined || typeof value.sortCode == "string")
20
+ )
21
+ }
22
+ }
@@ -8,7 +8,7 @@ import { ProviderResponse } from "./ProviderResponse"
8
8
  * The funding accounts created
9
9
  */
10
10
  export interface AccountResponse {
11
- id?: number
11
+ id: number
12
12
  providerAccountId: string
13
13
  provider: ProviderResponse
14
14
  organisation: OrganisationResponse
@@ -27,7 +27,7 @@ export namespace AccountResponse {
27
27
  export function is(value: AccountResponse | any): value is AccountResponse {
28
28
  return (
29
29
  typeof value == "object" &&
30
- (value.id == undefined || typeof value.id == "number") &&
30
+ typeof value.id == "number" &&
31
31
  typeof value.providerAccountId == "string" &&
32
32
  ProviderResponse.is(value.provider) &&
33
33
  OrganisationResponse.is(value.organisation) &&