@pax2pay/client 0.3.55 → 0.3.57
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/Connection.ts +3 -2
- package/Client/Merchants/index.ts +30 -0
- package/Client/Payments/index.ts +22 -0
- package/Client/Users/index.ts +8 -2
- package/Client/index.ts +7 -1
- package/dist/Client/Connection.js +2 -0
- package/dist/Client/Connection.js.map +1 -1
- package/dist/Client/Merchants/index.d.ts +10 -0
- package/dist/Client/Merchants/index.js +25 -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/Users/index.d.ts +1 -1
- package/dist/Client/Users/index.js +7 -2
- package/dist/Client/Users/index.js.map +1 -1
- 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/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 +16 -1
- package/dist/model/index.js +7 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +30 -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 +31 -1
- package/package.json +2 -2
package/Client/Connection.ts
CHANGED
|
@@ -77,12 +77,13 @@ export class Connection {
|
|
|
77
77
|
caughtErrorResponse = { code: 500, errors: [{ message: error.message }] }
|
|
78
78
|
console.error(error)
|
|
79
79
|
})
|
|
80
|
-
|
|
81
80
|
if (caughtErrorResponse)
|
|
82
81
|
return caughtErrorResponse
|
|
83
|
-
|
|
84
82
|
if (response && response.headers.has("x-otp-cookie"))
|
|
85
83
|
window.sessionStorage.setItem("cookie", response.headers.get("x-otp-cookie") ?? "")
|
|
84
|
+
//get temp token to set up 2fa before login
|
|
85
|
+
if (response && response.status == 403 && response.url.includes("login") && response.headers.has("X-Auth-Token"))
|
|
86
|
+
window.sessionStorage.setItem("authData", JSON.stringify({ token: response.headers.get("X-Auth-Token") }))
|
|
86
87
|
|
|
87
88
|
return !response
|
|
88
89
|
? { code: 503, errors: [{ message: "Service unavailable" }] }
|
|
@@ -0,0 +1,30 @@
|
|
|
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 searchByName(searchString: string) {
|
|
14
|
+
const response = await this.connection.get<model.ErrorResponse | model.MerchantResponse[]>(
|
|
15
|
+
`${this.folder}/searches/${searchString}`,
|
|
16
|
+
{
|
|
17
|
+
page: 0,
|
|
18
|
+
size: 1500,
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
return this.extractResponse(response)
|
|
22
|
+
}
|
|
23
|
+
async getAll() {
|
|
24
|
+
const response = await this.connection.get<model.ErrorResponse | model.MerchantResponse[]>(this.folder, {
|
|
25
|
+
page: 0,
|
|
26
|
+
size: 5000,
|
|
27
|
+
})
|
|
28
|
+
return this.extractResponse(response)
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -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/Users/index.ts
CHANGED
|
@@ -83,13 +83,19 @@ export class Users extends List<model.UserResponse> {
|
|
|
83
83
|
}
|
|
84
84
|
async setUpTwoFactorAuthentication(
|
|
85
85
|
username: string,
|
|
86
|
-
otp?: string
|
|
86
|
+
otp?: string,
|
|
87
|
+
tempToken?: string
|
|
87
88
|
): Promise<model.TwoFactorAuthenticationRegistrationResponse | model.ErrorResponse> {
|
|
89
|
+
let header = {}
|
|
90
|
+
if (otp)
|
|
91
|
+
header = { ...header, "x-otp": otp }
|
|
92
|
+
if (tempToken)
|
|
93
|
+
header = { ...header, "X-Auth-Token": tempToken }
|
|
88
94
|
return await this.connection.post<model.TwoFactorAuthenticationRegistrationResponse>(
|
|
89
95
|
`${this.folder}/${username}/two-factor`,
|
|
90
96
|
{},
|
|
91
97
|
undefined,
|
|
92
|
-
|
|
98
|
+
header
|
|
93
99
|
)
|
|
94
100
|
}
|
|
95
101
|
async removeTwoFactorAuthentication(username: string, otp: string): Promise<void | model.ErrorResponse> {
|
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
|
|
@@ -81,6 +81,8 @@ export class Connection {
|
|
|
81
81
|
return caughtErrorResponse;
|
|
82
82
|
if (response && response.headers.has("x-otp-cookie"))
|
|
83
83
|
window.sessionStorage.setItem("cookie", (_b = response.headers.get("x-otp-cookie")) !== null && _b !== void 0 ? _b : "");
|
|
84
|
+
if (response && response.status == 403 && response.url.includes("login") && response.headers.has("X-Auth-Token"))
|
|
85
|
+
window.sessionStorage.setItem("authData", JSON.stringify({ token: response.headers.get("X-Auth-Token") }));
|
|
84
86
|
return !response
|
|
85
87
|
? { code: 503, errors: [{ message: "Service unavailable" }] }
|
|
86
88
|
: response.status == 401 && (await this.unauthorized(this))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connection.js","sourceRoot":"../","sources":["Client/Connection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAInD,MAAM,OAAO,UAAU;IAItB,IAAI,KAAK;QAC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AE,KAAyB;QACjD,OAAO,IAAI,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IAClC,CAAC;IACD,MAAM,CAAC,OAAO,CACb,KAAuD;QAEvD,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,GAAG,CAAA;IAC1F,CAAC;CACD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
searchByName(searchString: string): Promise<model.ErrorResponse | model.MerchantResponse[]>;
|
|
9
|
+
getAll(): Promise<model.ErrorResponse | model.MerchantResponse[]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 searchByName(searchString) {
|
|
11
|
+
const response = await this.connection.get(`${this.folder}/searches/${searchString}`, {
|
|
12
|
+
page: 0,
|
|
13
|
+
size: 1500,
|
|
14
|
+
});
|
|
15
|
+
return this.extractResponse(response);
|
|
16
|
+
}
|
|
17
|
+
async getAll() {
|
|
18
|
+
const response = await this.connection.get(this.folder, {
|
|
19
|
+
page: 0,
|
|
20
|
+
size: 5000,
|
|
21
|
+
});
|
|
22
|
+
return this.extractResponse(response);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# 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,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"}
|
|
@@ -21,7 +21,7 @@ export declare class Users extends List<model.UserResponse> {
|
|
|
21
21
|
checkUsernameAvailability(username: string): Promise<model.UsernameAvailabilityResponse | model.ErrorResponse>;
|
|
22
22
|
checkPassword(request: model.PasswordValidateRequest): Promise<model.PasswordValidateResponse | model.ErrorResponse>;
|
|
23
23
|
changePassword(request: model.PasswordChangeRequest, otp?: string): Promise<model.UserResponse | model.ErrorResponse>;
|
|
24
|
-
setUpTwoFactorAuthentication(username: string, otp?: string): Promise<model.TwoFactorAuthenticationRegistrationResponse | model.ErrorResponse>;
|
|
24
|
+
setUpTwoFactorAuthentication(username: string, otp?: string, tempToken?: string): Promise<model.TwoFactorAuthenticationRegistrationResponse | model.ErrorResponse>;
|
|
25
25
|
removeTwoFactorAuthentication(username: string, otp: string): Promise<void | model.ErrorResponse>;
|
|
26
26
|
searchUsers(request: model.UserSearchRequest, parameters?: Record<string, any>): Promise<model.UserResponse[] | model.ErrorResponse>;
|
|
27
27
|
searchUsersPaginated(request: model.UserSearchRequest, previous?: Paginated<model.UserResponse>, page?: number, size?: number, sort?: string): Promise<model.ErrorResponse | Paginated<model.UserResponse>>;
|
|
@@ -55,8 +55,13 @@ export class Users extends List {
|
|
|
55
55
|
async changePassword(request, otp) {
|
|
56
56
|
return await this.connection.put(`${this.folder}/password`, request, undefined, otp ? { "x-otp": otp } : {});
|
|
57
57
|
}
|
|
58
|
-
async setUpTwoFactorAuthentication(username, otp) {
|
|
59
|
-
|
|
58
|
+
async setUpTwoFactorAuthentication(username, otp, tempToken) {
|
|
59
|
+
let header = {};
|
|
60
|
+
if (otp)
|
|
61
|
+
header = { ...header, "x-otp": otp };
|
|
62
|
+
if (tempToken)
|
|
63
|
+
header = { ...header, "X-Auth-Token": tempToken };
|
|
64
|
+
return await this.connection.post(`${this.folder}/${username}/two-factor`, {}, undefined, header);
|
|
60
65
|
}
|
|
61
66
|
async removeTwoFactorAuthentication(username, otp) {
|
|
62
67
|
return await this.connection.remove(`${this.folder}/${username}/two-factor`, undefined, undefined, { "x-otp": otp });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Users/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B,MAAM,OAAO,KAAM,SAAQ,IAAwB;IAElD,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,OAAO,CAAA;IAG1B,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,KAAK,CAAC,UAAU,CA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AChC,UAAgC;QAEhC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CACxC,GAAG,IAAI,CAAC,MAAM,WAAW,EACzB,OAAO,EACP,UAAU,CACV,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;IACpC,CAAC;IACD,KAAK,CAAC,oBAAoB,CACzB,OAAgC,EAChC,QAAwC,EACxC,IAAa,EACb,IAAa,EACb,IAAI,GAAG,cAAc;QAErB,OAAO,MAAM,IAAI,CAAC,gBAAgB,CACjC,QAAQ,EACR,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,CACnB,GAAG,IAAI,CAAC,MAAM,WAAW,EACzB,OAAO,EACP;YACC,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACV,CACD,EACF,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,CACJ,CAAA;IACF,CAAC;IACD,KAAK,CAAC,oBAAoB,CACzB,QAAwC,EACxC,IAAa,EACb,IAAa,EACb,IAAI,GAAG,cAAc,EACrB,YAAY,GAAG,QAAQ;QAEvB,OAAO,MAAM,IAAI,CAAC,gBAAgB,CACjC,QAAQ,EACR,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CACpB,IAAI,CAAC,UAAU,CAAC,GAAG,CAA4E,IAAI,CAAC,MAAM,EAAE;YAC3G,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,YAAY;SACtB,CAAC,EACH,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,CACJ,CAAA;IACF,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,IAA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,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, 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, 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, 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, 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,sBAAsB,EACtB,oBAAoB,EAGpB,2BAA2B,EAE3B,oCAAoC,EACpC,aAAa,EACb,eAAe,EAEf,QAAQ,EAMR,qBAAqB,EACrB,yBAAyB,EAgBzB,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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":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,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,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" &&
|
|
7
|
+
typeof value.name == "string" &&
|
|
8
|
+
(typeof value.mcc == "string" || value.mcc == undefined) &&
|
|
9
|
+
MerchantType.is(value.type));
|
|
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,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ;YAC3B,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,CAAC,OAAO,KAAK,CAAC,GAAG,IAAI,QAAQ,IAAI,KAAK,CAAC,GAAG,IAAI,SAAS,CAAC;YACxD,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAC3B,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":""}
|