@pax2pay/client 0.3.56 → 0.3.58
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/Client/Merchants/index.ts +33 -0
- package/Client/Payments/index.ts +22 -0
- package/Client/index.ts +7 -1
- package/dist/Client/Merchants/index.d.ts +13 -0
- package/dist/Client/Merchants/index.js +28 -0
- package/dist/Client/Merchants/index.js.map +1 -0
- package/dist/Client/Payments/index.d.ts +15 -0
- package/dist/Client/Payments/index.js +33 -0
- package/dist/Client/Payments/index.js.map +1 -0
- package/dist/Client/index.d.ts +7 -1
- package/dist/Client/index.js +5 -1
- package/dist/Client/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model/MerchantRequest.d.ts +9 -0
- package/dist/model/MerchantRequest.js +12 -0
- package/dist/model/MerchantRequest.js.map +1 -0
- package/dist/model/MerchantResponse.d.ts +10 -0
- package/dist/model/MerchantResponse.js +13 -0
- package/dist/model/MerchantResponse.js.map +1 -0
- package/dist/model/MerchantType.d.ts +6 -0
- package/dist/model/MerchantType.js +9 -0
- package/dist/model/MerchantType.js.map +1 -0
- package/dist/model/PaymentMethodType.d.ts +6 -0
- package/dist/model/PaymentMethodType.js +9 -0
- package/dist/model/PaymentMethodType.js.map +1 -0
- package/dist/model/PaymentResponse.d.ts +10 -0
- package/dist/model/PaymentResponse.js +2 -0
- package/dist/model/PaymentResponse.js.map +1 -0
- package/dist/model/SuggestedCardPaymentMethodResponse.d.ts +7 -0
- package/dist/model/SuggestedCardPaymentMethodResponse.js +2 -0
- package/dist/model/SuggestedCardPaymentMethodResponse.js.map +1 -0
- package/dist/model/SuggestedCardTypeOptions.d.ts +3 -0
- package/dist/model/SuggestedCardTypeOptions.js +2 -0
- package/dist/model/SuggestedCardTypeOptions.js.map +1 -0
- package/dist/model/SuggestedFundingAccountOptions.d.ts +3 -0
- package/dist/model/SuggestedFundingAccountOptions.js +2 -0
- package/dist/model/SuggestedFundingAccountOptions.js.map +1 -0
- package/dist/model/SuggestedOptions.d.ts +6 -0
- package/dist/model/SuggestedOptions.js +2 -0
- package/dist/model/SuggestedOptions.js.map +1 -0
- package/dist/model/SuggestedPaymentMethodResponse.d.ts +6 -0
- package/dist/model/SuggestedPaymentMethodResponse.js +2 -0
- package/dist/model/SuggestedPaymentMethodResponse.js.map +1 -0
- package/dist/model/SuggestedPaymentMethodResponses.d.ts +8 -0
- package/dist/model/SuggestedPaymentMethodResponses.js +2 -0
- package/dist/model/SuggestedPaymentMethodResponses.js.map +1 -0
- package/dist/model/SuggestedUsageOptions.d.ts +4 -0
- package/dist/model/SuggestedUsageOptions.js +2 -0
- package/dist/model/SuggestedUsageOptions.js.map +1 -0
- package/dist/model/SuggestionCardPaymentMethodRequest.d.ts +9 -0
- package/dist/model/SuggestionCardPaymentMethodRequest.js +13 -0
- package/dist/model/SuggestionCardPaymentMethodRequest.js.map +1 -0
- package/dist/model/SuggestionMerchantRequest.d.ts +10 -0
- package/dist/model/SuggestionMerchantRequest.js +14 -0
- package/dist/model/SuggestionMerchantRequest.js.map +1 -0
- package/dist/model/SuggestionPaymentMethodRequest.d.ts +8 -0
- package/dist/model/SuggestionPaymentMethodRequest.js +11 -0
- package/dist/model/SuggestionPaymentMethodRequest.js.map +1 -0
- package/dist/model/SuggestionRequest.d.ts +12 -0
- package/dist/model/SuggestionRequest.js +15 -0
- package/dist/model/SuggestionRequest.js.map +1 -0
- package/dist/model/SuggestionResponse.d.ts +9 -0
- package/dist/model/SuggestionResponse.js +2 -0
- package/dist/model/SuggestionResponse.js.map +1 -0
- package/dist/model/index.d.ts +17 -1
- package/dist/model/index.js +8 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +32 -0
- package/model/MerchantRequest.ts +18 -0
- package/model/MerchantResponse.ts +20 -0
- package/model/MerchantType.ts +8 -0
- package/model/PaymentMethodType.ts +8 -0
- package/model/PaymentResponse.ts +11 -0
- package/model/SuggestedCardPaymentMethodResponse.ts +8 -0
- package/model/SuggestedCardTypeOptions.ts +3 -0
- package/model/SuggestedFundingAccountOptions.ts +3 -0
- package/model/SuggestedOptions.ts +6 -0
- package/model/SuggestedPaymentMethodResponse.ts +7 -0
- package/model/SuggestedPaymentMethodResponses.ts +9 -0
- package/model/SuggestedUsageOptions.ts +4 -0
- package/model/SuggestionCardPaymentMethodRequest.ts +18 -0
- package/model/SuggestionMerchantRequest.ts +21 -0
- package/model/SuggestionPaymentMethodRequest.ts +16 -0
- package/model/SuggestionRequest.ts +23 -0
- package/model/SuggestionResponse.ts +10 -0
- package/model/index.ts +33 -1
- package/package.json +2 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as model from "../../model"
|
|
2
|
+
import { Connection } from "../Connection"
|
|
3
|
+
import { List } from "../List"
|
|
4
|
+
|
|
5
|
+
export class Merchants extends List<model.MerchantResponse> {
|
|
6
|
+
protected folder = "merchants"
|
|
7
|
+
constructor(connection: Connection) {
|
|
8
|
+
super(connection)
|
|
9
|
+
}
|
|
10
|
+
static create(connection: Connection): Merchants {
|
|
11
|
+
return new Merchants(connection)
|
|
12
|
+
}
|
|
13
|
+
async create(request: model.MerchantRequest) {
|
|
14
|
+
return await this.connection.post<model.MerchantResponse>(this.folder, request)
|
|
15
|
+
}
|
|
16
|
+
async searchByName(searchString: string) {
|
|
17
|
+
const response = await this.connection.get<model.ErrorResponse | model.MerchantResponse[]>(
|
|
18
|
+
`${this.folder}/searches/${searchString}`,
|
|
19
|
+
{
|
|
20
|
+
page: 0,
|
|
21
|
+
size: 1500,
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
return this.extractResponse(response)
|
|
25
|
+
}
|
|
26
|
+
async getAll() {
|
|
27
|
+
const response = await this.connection.get<model.ErrorResponse | model.MerchantResponse[]>(this.folder, {
|
|
28
|
+
page: 0,
|
|
29
|
+
size: 5000,
|
|
30
|
+
})
|
|
31
|
+
return this.extractResponse(response)
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as model from "../../model"
|
|
2
|
+
import { Connection } from "../Connection"
|
|
3
|
+
|
|
4
|
+
export class Payments {
|
|
5
|
+
protected folder = "payments"
|
|
6
|
+
#connection: Connection
|
|
7
|
+
protected get connection() {
|
|
8
|
+
return this.#connection
|
|
9
|
+
}
|
|
10
|
+
constructor(connection: Connection) {
|
|
11
|
+
this.#connection = connection
|
|
12
|
+
}
|
|
13
|
+
static create(connection: Connection): Payments {
|
|
14
|
+
return new Payments(connection)
|
|
15
|
+
}
|
|
16
|
+
async plan(request: model.SuggestionRequest) {
|
|
17
|
+
return await this.connection.post<model.ErrorResponse | model.SuggestionResponse>(`${this.folder}/plan`, request)
|
|
18
|
+
}
|
|
19
|
+
async create(request: model.SuggestionRequest) {
|
|
20
|
+
return await this.connection.post<model.ErrorResponse | model.PaymentResponse>(this.folder, request)
|
|
21
|
+
}
|
|
22
|
+
}
|
package/Client/index.ts
CHANGED
|
@@ -7,9 +7,11 @@ import { Configuration as ClientConfiguration } from "./Configuration"
|
|
|
7
7
|
import { Connection } from "./Connection"
|
|
8
8
|
import { Email as ClientEmail } from "./Email"
|
|
9
9
|
import { List as ClientList } from "./List"
|
|
10
|
+
import { Merchants as ClientMerchants } from "./Merchants"
|
|
10
11
|
import { Omnisetup as ClientOmnisetup } from "./Omnisetup"
|
|
11
12
|
import { Organisations as ClientOrganisations } from "./Organisations"
|
|
12
13
|
import { Paginated as ClientPaginated } from "./Paginated"
|
|
14
|
+
import { Payments as ClientPayments } from "./Payments"
|
|
13
15
|
import { Reports as ClientReports } from "./Reports"
|
|
14
16
|
import { Transfers as ClientTransfers } from "./Transfers"
|
|
15
17
|
import { Users as ClientUsers } from "./Users"
|
|
@@ -27,11 +29,13 @@ export class Client {
|
|
|
27
29
|
categories = ClientCategories.create(this.connection)
|
|
28
30
|
configuration = ClientConfiguration.create(this.connection)
|
|
29
31
|
email = ClientEmail.create(this.connection)
|
|
30
|
-
|
|
32
|
+
merchants = ClientMerchants.create(this.connection)
|
|
31
33
|
omnisetup = ClientOmnisetup.create(this.connection)
|
|
32
34
|
organisations = ClientOrganisations.create(this.connection)
|
|
35
|
+
payments = ClientPayments.create(this.connection)
|
|
33
36
|
reports = ClientReports.create(this.connection)
|
|
34
37
|
transfers = ClientTransfers.create(this.connection)
|
|
38
|
+
users = ClientUsers.create(this.connection)
|
|
35
39
|
constructor(private connection: Connection, private $authenticate?: Authenticate) {
|
|
36
40
|
connection.unauthorized = async () => (await this.$authenticate?.(this)) ?? false
|
|
37
41
|
}
|
|
@@ -54,8 +58,10 @@ export namespace Client {
|
|
|
54
58
|
export type Categories = ClientCategories
|
|
55
59
|
export type Configuration = ClientConfiguration
|
|
56
60
|
export type Email = ClientEmail
|
|
61
|
+
export type Merchants = ClientMerchants
|
|
57
62
|
export type Omnisetup = ClientOmnisetup
|
|
58
63
|
export type Organisations = ClientOrganisations
|
|
64
|
+
export type Payments = ClientPayments
|
|
59
65
|
export type Reports = ClientReports
|
|
60
66
|
export type Transfers = ClientTransfers
|
|
61
67
|
export type Users = ClientUsers
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as model from "../../model";
|
|
2
|
+
import { Connection } from "../Connection";
|
|
3
|
+
import { List } from "../List";
|
|
4
|
+
export declare class Merchants extends List<model.MerchantResponse> {
|
|
5
|
+
protected folder: string;
|
|
6
|
+
constructor(connection: Connection);
|
|
7
|
+
static create(connection: Connection): Merchants;
|
|
8
|
+
create(request: model.MerchantRequest): Promise<model.MerchantResponse | (model.ErrorResponse & {
|
|
9
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
10
|
+
})>;
|
|
11
|
+
searchByName(searchString: string): Promise<model.ErrorResponse | model.MerchantResponse[]>;
|
|
12
|
+
getAll(): Promise<model.ErrorResponse | model.MerchantResponse[]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { List } from "../List";
|
|
2
|
+
export class Merchants extends List {
|
|
3
|
+
constructor(connection) {
|
|
4
|
+
super(connection);
|
|
5
|
+
this.folder = "merchants";
|
|
6
|
+
}
|
|
7
|
+
static create(connection) {
|
|
8
|
+
return new Merchants(connection);
|
|
9
|
+
}
|
|
10
|
+
async create(request) {
|
|
11
|
+
return await this.connection.post(this.folder, request);
|
|
12
|
+
}
|
|
13
|
+
async searchByName(searchString) {
|
|
14
|
+
const response = await this.connection.get(`${this.folder}/searches/${searchString}`, {
|
|
15
|
+
page: 0,
|
|
16
|
+
size: 1500,
|
|
17
|
+
});
|
|
18
|
+
return this.extractResponse(response);
|
|
19
|
+
}
|
|
20
|
+
async getAll() {
|
|
21
|
+
const response = await this.connection.get(this.folder, {
|
|
22
|
+
page: 0,
|
|
23
|
+
size: 5000,
|
|
24
|
+
});
|
|
25
|
+
return this.extractResponse(response);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Merchants/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,SAAU,SAAQ,IAA4B;IAE1D,YAAY,UAAsB;QACjC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,WAAW,CAAA;IAG9B,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,CAAA;IACjC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA8B;QAC1C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAyB,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChF,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,YAAoB;QACtC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACzC,GAAG,IAAI,CAAC,MAAM,aAAa,YAAY,EAAE,EACzC;YACC,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;SACV,CACD,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;IACD,KAAK,CAAC,MAAM;QACX,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAiD,IAAI,CAAC,MAAM,EAAE;YACvG,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;SACV,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;CACD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as model from "../../model";
|
|
2
|
+
import { Connection } from "../Connection";
|
|
3
|
+
export declare class Payments {
|
|
4
|
+
#private;
|
|
5
|
+
protected folder: string;
|
|
6
|
+
protected get connection(): Connection;
|
|
7
|
+
constructor(connection: Connection);
|
|
8
|
+
static create(connection: Connection): Payments;
|
|
9
|
+
plan(request: model.SuggestionRequest): Promise<model.ErrorResponse | model.SuggestionResponse | (model.ErrorResponse & {
|
|
10
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
11
|
+
})>;
|
|
12
|
+
create(request: model.SuggestionRequest): Promise<model.ErrorResponse | model.PaymentResponse | (model.ErrorResponse & {
|
|
13
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
14
|
+
})>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
+
};
|
|
6
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
7
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
|
+
};
|
|
12
|
+
var _Payments_connection;
|
|
13
|
+
export class Payments {
|
|
14
|
+
get connection() {
|
|
15
|
+
return __classPrivateFieldGet(this, _Payments_connection, "f");
|
|
16
|
+
}
|
|
17
|
+
constructor(connection) {
|
|
18
|
+
this.folder = "payments";
|
|
19
|
+
_Payments_connection.set(this, void 0);
|
|
20
|
+
__classPrivateFieldSet(this, _Payments_connection, connection, "f");
|
|
21
|
+
}
|
|
22
|
+
static create(connection) {
|
|
23
|
+
return new Payments(connection);
|
|
24
|
+
}
|
|
25
|
+
async plan(request) {
|
|
26
|
+
return await this.connection.post(`${this.folder}/plan`, request);
|
|
27
|
+
}
|
|
28
|
+
async create(request) {
|
|
29
|
+
return await this.connection.post(this.folder, request);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
_Payments_connection = new WeakMap();
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Payments/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,MAAM,OAAO,QAAQ;IAGpB,IAAc,UAAU;QACvB,OAAO,uBAAA,IAAI,4BAAY,CAAA;IACxB,CAAC;IACD,YAAY,UAAsB;QALxB,WAAM,GAAG,UAAU,CAAA;QAC7B,uCAAuB;QAKtB,uBAAA,IAAI,wBAAe,UAAU,MAAA,CAAA;IAC9B,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAA;IAChC,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAAgC;QAC1C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAiD,GAAG,IAAI,CAAC,MAAM,OAAO,EAAE,OAAO,CAAC,CAAA;IAClH,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAgC;QAC5C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA8C,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACrG,CAAC;CACD"}
|
package/dist/Client/index.d.ts
CHANGED
|
@@ -7,9 +7,11 @@ import { Configuration as ClientConfiguration } from "./Configuration";
|
|
|
7
7
|
import { Connection } from "./Connection";
|
|
8
8
|
import { Email as ClientEmail } from "./Email";
|
|
9
9
|
import { List as ClientList } from "./List";
|
|
10
|
+
import { Merchants as ClientMerchants } from "./Merchants";
|
|
10
11
|
import { Omnisetup as ClientOmnisetup } from "./Omnisetup";
|
|
11
12
|
import { Organisations as ClientOrganisations } from "./Organisations";
|
|
12
13
|
import { Paginated as ClientPaginated } from "./Paginated";
|
|
14
|
+
import { Payments as ClientPayments } from "./Payments";
|
|
13
15
|
import { Reports as ClientReports } from "./Reports";
|
|
14
16
|
import { Transfers as ClientTransfers } from "./Transfers";
|
|
15
17
|
import { Users as ClientUsers } from "./Users";
|
|
@@ -25,11 +27,13 @@ export declare class Client {
|
|
|
25
27
|
categories: ClientCategories;
|
|
26
28
|
configuration: ClientConfiguration;
|
|
27
29
|
email: ClientEmail;
|
|
28
|
-
|
|
30
|
+
merchants: ClientMerchants;
|
|
29
31
|
omnisetup: ClientOmnisetup;
|
|
30
32
|
organisations: ClientOrganisations;
|
|
33
|
+
payments: ClientPayments;
|
|
31
34
|
reports: ClientReports;
|
|
32
35
|
transfers: ClientTransfers;
|
|
36
|
+
users: ClientUsers;
|
|
33
37
|
constructor(connection: Connection, $authenticate?: Authenticate | undefined);
|
|
34
38
|
static create(url: string, token?: string | Authenticate): Client;
|
|
35
39
|
assumeNew(orgCode: string): Client;
|
|
@@ -42,8 +46,10 @@ export declare namespace Client {
|
|
|
42
46
|
type Categories = ClientCategories;
|
|
43
47
|
type Configuration = ClientConfiguration;
|
|
44
48
|
type Email = ClientEmail;
|
|
49
|
+
type Merchants = ClientMerchants;
|
|
45
50
|
type Omnisetup = ClientOmnisetup;
|
|
46
51
|
type Organisations = ClientOrganisations;
|
|
52
|
+
type Payments = ClientPayments;
|
|
47
53
|
type Reports = ClientReports;
|
|
48
54
|
type Transfers = ClientTransfers;
|
|
49
55
|
type Users = ClientUsers;
|
package/dist/Client/index.js
CHANGED
|
@@ -6,8 +6,10 @@ import { Categories as ClientCategories } from "./Categories";
|
|
|
6
6
|
import { Configuration as ClientConfiguration } from "./Configuration";
|
|
7
7
|
import { Connection } from "./Connection";
|
|
8
8
|
import { Email as ClientEmail } from "./Email";
|
|
9
|
+
import { Merchants as ClientMerchants } from "./Merchants";
|
|
9
10
|
import { Omnisetup as ClientOmnisetup } from "./Omnisetup";
|
|
10
11
|
import { Organisations as ClientOrganisations } from "./Organisations";
|
|
12
|
+
import { Payments as ClientPayments } from "./Payments";
|
|
11
13
|
import { Reports as ClientReports } from "./Reports";
|
|
12
14
|
import { Transfers as ClientTransfers } from "./Transfers";
|
|
13
15
|
import { Users as ClientUsers } from "./Users";
|
|
@@ -25,11 +27,13 @@ export class Client {
|
|
|
25
27
|
this.categories = ClientCategories.create(this.connection);
|
|
26
28
|
this.configuration = ClientConfiguration.create(this.connection);
|
|
27
29
|
this.email = ClientEmail.create(this.connection);
|
|
28
|
-
this.
|
|
30
|
+
this.merchants = ClientMerchants.create(this.connection);
|
|
29
31
|
this.omnisetup = ClientOmnisetup.create(this.connection);
|
|
30
32
|
this.organisations = ClientOrganisations.create(this.connection);
|
|
33
|
+
this.payments = ClientPayments.create(this.connection);
|
|
31
34
|
this.reports = ClientReports.create(this.connection);
|
|
32
35
|
this.transfers = ClientTransfers.create(this.connection);
|
|
36
|
+
this.users = ClientUsers.create(this.connection);
|
|
33
37
|
connection.unauthorized = async () => { var _a, _b; return (_b = (await ((_a = this.$authenticate) === null || _a === void 0 ? void 0 : _a.call(this, this)))) !== null && _b !== void 0 ? _b : false; };
|
|
34
38
|
}
|
|
35
39
|
static create(url, token) {
|
package/dist/Client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAEtE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,SAAS,CAAA;AAI9C,MAAM,OAAO,MAAM;IAClB,IAAI,YAAY,CAAC,KAAmB;QACnC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAA;IAC3B,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,KAA6B;QACvD,MAAM,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;QACrF,OAAO,UAAU,IAAI,IAAI,MAAM,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;IAC1F,CAAC;IACD,SAAS,CAAC,OAAe;QACxB,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAC3E,SAAS,CAAC,UAAU,CAAC,UAAU,GAAG,OAAO,CAAA;QACzC,OAAO,SAAS,CAAA;IACjB,CAAC;CACD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryEmailConfig, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardSearchRequest, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, ReconciliationReportUrlRequest, References, RelogWithNewSessionDetailsRequest, Report, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, ScheduleEntry, SearchBeneficiaryRequest, SearchRolesetsRequest, SecurityConfig, Segment, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementReportUrlRequest, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateCategoryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth } from "./model";
|
|
3
|
-
export { Client, AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardDeliveryEmailConfig, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, UpdateCategoryRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, References, RelogWithNewSessionDetailsRequest, Report, ReconciliationReportUrlRequest, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduleEntry, CardSearchRequest, ScheduledTaskRequest, SearchRolesetsRequest, Segment, SecurityConfig, SearchBeneficiaryRequest, StatementReportUrlRequest, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
|
2
|
+
import { AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryEmailConfig, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardSearchRequest, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentMethodType, PaymentOption, PaymentResponse, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, ReconciliationReportUrlRequest, References, RelogWithNewSessionDetailsRequest, Report, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, ScheduleEntry, SearchBeneficiaryRequest, SearchRolesetsRequest, SecurityConfig, Segment, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementReportUrlRequest, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SuggestedCardPaymentMethodResponse, SuggestedCardTypeOptions, SuggestedFundingAccountOptions, SuggestedOptions, SuggestedPaymentMethodResponse, SuggestedPaymentMethodResponses, SuggestedUsageOptions, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SuggestionResponse, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateCategoryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth } from "./model";
|
|
3
|
+
export { Client, AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardDeliveryEmailConfig, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, UpdateCategoryRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentMethodType, PaymentOption, PaymentResponse, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, References, RelogWithNewSessionDetailsRequest, Report, ReconciliationReportUrlRequest, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduleEntry, CardSearchRequest, ScheduledTaskRequest, SearchRolesetsRequest, Segment, SecurityConfig, SearchBeneficiaryRequest, StatementReportUrlRequest, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SuggestedCardPaymentMethodResponse, SuggestedCardTypeOptions, SuggestedFundingAccountOptions, SuggestedOptions, SuggestedPaymentMethodResponse, SuggestedPaymentMethodResponses, SuggestedUsageOptions, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SuggestionResponse, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { AccountBankResponse, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryEmailConfig, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardType, CardTypeSpecification, CardTypeSpecificationFlag, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LoginResponse, MerchantDetails, OmnisetupFlags, OrganisationBalanceLimitResponse, OrganisationFlag, OrganisationResponse, Passengers, PaxpayFeature, ProductType, ProviderCode, ProviderResponse, References, SecurityConfig, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, StatementTransferSpecificType, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferStatus, TravelPartyInfo, UserChangeRequest, UserLimitsRequest, UsernameAvailabilityResponse, UserRequest, UserResponse, UserStatus, YearMonth, } from "./model";
|
|
3
|
-
export { Client, AccountBankResponse, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoResponse, BookingInfoType, CardDeliveryEmailConfig, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardType, CardTypeSpecification, CardTypeSpecificationFlag, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LoginResponse, MerchantDetails, OmnisetupFlags, OrganisationBalanceLimitResponse, OrganisationFlag, OrganisationResponse, Passengers, PaxpayFeature, ProductType, ProviderCode, ProviderResponse, References, Segment, SecurityConfig, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, StatementTransferSpecificType, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferStatus, TravelPartyInfo, UserChangeRequest, UserLimitsRequest, UsernameAvailabilityResponse, UserRequest, UserResponse, UserStatus, YearMonth, };
|
|
2
|
+
import { AccountBankResponse, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryEmailConfig, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardType, CardTypeSpecification, CardTypeSpecificationFlag, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, OmnisetupFlags, OrganisationBalanceLimitResponse, OrganisationFlag, OrganisationResponse, Passengers, PaxpayFeature, PaymentMethodType, ProductType, ProviderCode, ProviderResponse, References, SecurityConfig, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, StatementTransferSpecificType, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferStatus, TravelPartyInfo, UserChangeRequest, UserLimitsRequest, UsernameAvailabilityResponse, UserRequest, UserResponse, UserStatus, YearMonth, } from "./model";
|
|
3
|
+
export { Client, AccountBankResponse, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoResponse, BookingInfoType, CardDeliveryEmailConfig, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardType, CardTypeSpecification, CardTypeSpecificationFlag, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, OmnisetupFlags, OrganisationBalanceLimitResponse, OrganisationFlag, OrganisationResponse, Passengers, PaxpayFeature, PaymentMethodType, ProductType, ProviderCode, ProviderResponse, References, Segment, SecurityConfig, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, StatementTransferSpecificType, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferStatus, TravelPartyInfo, UserChangeRequest, UserLimitsRequest, UsernameAvailabilityResponse, UserRequest, UserResponse, UserStatus, YearMonth, };
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EACN,mBAAmB,EAEnB,yCAAyC,EACzC,yBAAyB,EACzB,eAAe,EAEf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,EAGhB,UAAU,EAEV,mBAAmB,EACnB,iBAAiB,EACjB,sCAAsC,EACtC,4BAA4B,EAC5B,iBAAiB,EACjB,WAAW,EAEX,mBAAmB,EACnB,eAAe,EAEf,kCAAkC,EAClC,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,0BAA0B,EAG1B,YAAY,EACZ,cAAc,EACd,wBAAwB,EACxB,s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EACb,eAAe,EAEf,QAAQ,EAMR,qBAAqB,EACrB,yBAAyB,EAiBzB,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,4BAA4B,EAE5B,6BAA6B,EAC7B,4BAA4B,EAG5B,6BAA6B,EAC7B,kBAAkB,EAElB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EAKT,yBAAyB,EACzB,0BAA0B,EAC1B,cAAc,EACd,KAAK,EAGL,aAAa,EACb,eAAe,EACf,eAAe,EACf,gBAAgB,EAGhB,cAAc,EAId,gCAAgC,EAGhC,gBAAgB,EAEhB,oBAAoB,EAEpB,UAAU,EAKV,aAAa,EAGb,iBAAiB,EAIjB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAEhB,UAAU,EAYV,OAAO,EACP,cAAc,EAKd,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EAIf,6BAA6B,EAQ7B,kCAAkC,EAClC,yBAAyB,EACzB,8BAA8B,EAC9B,iBAAiB,EAEjB,0BAA0B,EAC1B,mBAAmB,EAInB,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAE3B,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EAEzB,cAAc,EACd,eAAe,EAMf,iBAAiB,EAGjB,iBAAiB,EAEjB,4BAA4B,EAE5B,WAAW,EACX,YAAY,EAGZ,UAAU,EACV,SAAS,GACT,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MerchantType } from "./MerchantType";
|
|
2
|
+
export var MerchantRequest;
|
|
3
|
+
(function (MerchantRequest) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return (typeof value == "object" &&
|
|
6
|
+
(typeof value.name == "string" || value.name == undefined) &&
|
|
7
|
+
(typeof value.mcc == "string" || value.mcc == undefined) &&
|
|
8
|
+
(MerchantType.is(value.type) || value.type == undefined));
|
|
9
|
+
}
|
|
10
|
+
MerchantRequest.is = is;
|
|
11
|
+
})(MerchantRequest || (MerchantRequest = {}));
|
|
12
|
+
//# sourceMappingURL=MerchantRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MerchantRequest.js","sourceRoot":"../","sources":["model/MerchantRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAQ7C,MAAM,KAAW,eAAe,CAS/B;AATD,WAAiB,eAAe;IAC/B,SAAgB,EAAE,CAAC,KAA4B;QAC9C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ,IAAI,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC;YAC1D,CAAC,OAAO,KAAK,CAAC,GAAG,IAAI,QAAQ,IAAI,KAAK,CAAC,GAAG,IAAI,SAAS,CAAC;YACxD,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,CACxD,CAAA;IACF,CAAC;IAPe,kBAAE,KAOjB,CAAA;AACF,CAAC,EATgB,eAAe,KAAf,eAAe,QAS/B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MerchantType } from "./MerchantType";
|
|
2
|
+
export interface MerchantResponse {
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
mcc?: string;
|
|
6
|
+
type?: MerchantType;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace MerchantResponse {
|
|
9
|
+
function is(value: MerchantResponse | any): value is MerchantResponse;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MerchantType } from "./MerchantType";
|
|
2
|
+
export var MerchantResponse;
|
|
3
|
+
(function (MerchantResponse) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return (typeof value == "object" &&
|
|
6
|
+
(typeof value.id == "string" || value.id == undefined) &&
|
|
7
|
+
(typeof value.name == "string" || value.name == undefined) &&
|
|
8
|
+
(typeof value.mcc == "string" || value.mcc == undefined) &&
|
|
9
|
+
(MerchantType.is(value.type) || value.type == undefined));
|
|
10
|
+
}
|
|
11
|
+
MerchantResponse.is = is;
|
|
12
|
+
})(MerchantResponse || (MerchantResponse = {}));
|
|
13
|
+
//# sourceMappingURL=MerchantResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MerchantResponse.js","sourceRoot":"../","sources":["model/MerchantResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAS7C,MAAM,KAAW,gBAAgB,CAUhC;AAVD,WAAiB,gBAAgB;IAChC,SAAgB,EAAE,CAAC,KAA6B;QAC/C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,IAAI,KAAK,CAAC,EAAE,IAAI,SAAS,CAAC;YACtD,CAAC,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ,IAAI,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC;YAC1D,CAAC,OAAO,KAAK,CAAC,GAAG,IAAI,QAAQ,IAAI,KAAK,CAAC,GAAG,IAAI,SAAS,CAAC;YACxD,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,CACxD,CAAA;IACF,CAAC;IARe,mBAAE,KAQjB,CAAA;AACF,CAAC,EAVgB,gBAAgB,KAAhB,gBAAgB,QAUhC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const merchantTypes = ["flight", "hotel"];
|
|
2
|
+
export var MerchantType;
|
|
3
|
+
(function (MerchantType) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return typeof value == "string" && merchantTypes.includes(value);
|
|
6
|
+
}
|
|
7
|
+
MerchantType.is = is;
|
|
8
|
+
})(MerchantType || (MerchantType = {}));
|
|
9
|
+
//# sourceMappingURL=MerchantType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MerchantType.js","sourceRoot":"../","sources":["model/MerchantType.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAA;AAGlD,MAAM,KAAW,YAAY,CAI5B;AAJD,WAAiB,YAAY;IAC5B,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,aAAa,CAAC,QAAQ,CAAC,KAAqB,CAAC,CAAA;IACjF,CAAC;IAFe,eAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,YAAY,KAAZ,YAAY,QAI5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const paymentMethodTypes = ["card", "transfer"];
|
|
2
|
+
export var PaymentMethodType;
|
|
3
|
+
(function (PaymentMethodType) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return typeof value == "string" && paymentMethodTypes.includes(value);
|
|
6
|
+
}
|
|
7
|
+
PaymentMethodType.is = is;
|
|
8
|
+
})(PaymentMethodType || (PaymentMethodType = {}));
|
|
9
|
+
//# sourceMappingURL=PaymentMethodType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMethodType.js","sourceRoot":"../","sources":["model/PaymentMethodType.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,UAAU,CAAU,CAAA;AAGxD,MAAM,KAAW,iBAAiB,CAIjC;AAJD,WAAiB,iBAAiB;IACjC,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,kBAAkB,CAAC,QAAQ,CAAC,KAA0B,CAAC,CAAA;IAC3F,CAAC;IAFe,oBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,iBAAiB,KAAjB,iBAAiB,QAIjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Currency } from "isoly";
|
|
2
|
+
import { CardResponseV2 } from "./CardResponseV2";
|
|
3
|
+
import { MerchantResponse } from "./MerchantResponse";
|
|
4
|
+
export interface PaymentResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
merchant: MerchantResponse;
|
|
7
|
+
amount: number;
|
|
8
|
+
currency: Currency;
|
|
9
|
+
card?: CardResponseV2;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentResponse.js","sourceRoot":"../","sources":["model/PaymentResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SuggestedCardTypeOptions } from "./SuggestedCardTypeOptions";
|
|
2
|
+
import { SuggestedPaymentMethodResponse } from "./SuggestedPaymentMethodResponse";
|
|
3
|
+
import { SuggestedUsageOptions } from "./SuggestedUsageOptions";
|
|
4
|
+
export interface SuggestedCardPaymentMethodResponse extends SuggestedPaymentMethodResponse {
|
|
5
|
+
cardType: SuggestedCardTypeOptions;
|
|
6
|
+
usage: SuggestedUsageOptions;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuggestedCardPaymentMethodResponse.js","sourceRoot":"../","sources":["model/SuggestedCardPaymentMethodResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuggestedCardTypeOptions.js","sourceRoot":"../","sources":["model/SuggestedCardTypeOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuggestedFundingAccountOptions.js","sourceRoot":"../","sources":["model/SuggestedFundingAccountOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuggestedOptions.js","sourceRoot":"../","sources":["model/SuggestedOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuggestedPaymentMethodResponse.js","sourceRoot":"../","sources":["model/SuggestedPaymentMethodResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PaymentMethodType } from "./PaymentMethodType";
|
|
2
|
+
import { SuggestedCardPaymentMethodResponse } from "./SuggestedCardPaymentMethodResponse";
|
|
3
|
+
export interface SuggestedPaymentMethodResponses {
|
|
4
|
+
suggested?: PaymentMethodType;
|
|
5
|
+
chosen?: SuggestedCardPaymentMethodResponse;
|
|
6
|
+
required?: PaymentMethodType;
|
|
7
|
+
options: SuggestedCardPaymentMethodResponse[];
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuggestedPaymentMethodResponses.js","sourceRoot":"../","sources":["model/SuggestedPaymentMethodResponses.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuggestedUsageOptions.js","sourceRoot":"../","sources":["model/SuggestedUsageOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CardUsage } from "./CardUsage";
|
|
2
|
+
import { SuggestionPaymentMethodRequest } from "./SuggestionPaymentMethodRequest";
|
|
3
|
+
export interface SuggestionCardPaymentMethodRequest extends SuggestionPaymentMethodRequest {
|
|
4
|
+
cardType?: string;
|
|
5
|
+
usage?: CardUsage;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace SuggestionCardPaymentMethodRequest {
|
|
8
|
+
function is(value: SuggestionCardPaymentMethodRequest | any): value is SuggestionCardPaymentMethodRequest;
|
|
9
|
+
}
|