@pax2pay/client 0.1.10 → 0.1.12
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/Auth/login.spec.ignore.ts +18 -0
- package/Client/Cards/actions/fake.spec.ignore.ts +38 -0
- package/Client/Cards/actions/ixaris.spec.ignore.ts +40 -0
- package/Client/Cards/actions/modulr.spec.ignore.ts +40 -0
- package/Client/Cards/actions/pax2pay.spec.ignore.ts +40 -0
- package/Client/Cards/create/fake.spec.ignore.ts +44 -0
- package/Client/Cards/create/ixaris.spec.ignore.ts +42 -0
- package/Client/Cards/create/modulr.spec.ignore.ts +42 -0
- package/Client/Cards/create/pax2pay.spec.ignore.ts +43 -0
- package/Client/Cards/list.spec.ignore.ts +65 -0
- package/Client/Organisations/fetch.spec.ignore.ts +24 -0
- package/Client/Organisations/list.spec.ignore.ts +28 -0
- package/Client/Reports/index.spec.ignore.ts +42 -0
- package/Client/Reports/index.ts +4 -1
- package/Client/Transfers/create.spec.ignore.ts +105 -0
- package/Client/Transfers/list.spec.ignore.ts +42 -0
- package/Client/Users/fetch.spec.ignore.ts +32 -0
- package/Client/Users/list.spec.ignore.ts +41 -0
- package/dist/Client/Reports/index.d.ts +3 -0
- package/dist/Client/Reports/index.js +4 -0
- package/dist/Client/Reports/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model/BillingTransactionAmountPair.d.ts +2 -0
- package/dist/model/BillingTransactionAmountPair.js +3 -1
- package/dist/model/BillingTransactionAmountPair.js.map +1 -1
- package/dist/model/CardResponseV2.js +1 -1
- package/dist/model/CardResponseV2.js.map +1 -1
- package/dist/model/StatementReportUrlRequest.d.ts +5 -0
- package/dist/model/StatementReportUrlRequest.js +2 -0
- package/dist/model/StatementReportUrlRequest.js.map +1 -0
- package/dist/model/StatementReportUrlResponse.d.ts +4 -0
- package/dist/model/StatementReportUrlResponse.js +2 -0
- package/dist/model/StatementReportUrlResponse.js.map +1 -0
- package/dist/model/index.d.ts +3 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +4 -0
- package/model/BillingTransactionAmountPair.ts +5 -1
- package/model/CardResponseV2.ts +1 -1
- package/model/StatementReportUrlRequest.ts +5 -0
- package/model/StatementReportUrlResponse.ts +4 -0
- package/model/index.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../../index"
|
|
3
|
+
dotenv.config()
|
|
4
|
+
jest.setTimeout(100000)
|
|
5
|
+
|
|
6
|
+
describe("pax2pay.auth.login", () => {
|
|
7
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
8
|
+
it("simple", async () => {
|
|
9
|
+
expect(
|
|
10
|
+
await client?.auth.login({
|
|
11
|
+
username: process.env.username ?? "user",
|
|
12
|
+
password: process.env.password ?? "password",
|
|
13
|
+
})
|
|
14
|
+
).toMatchObject({
|
|
15
|
+
effectiveOrganisation: { code: expect.any(String), name: expect.any(String) },
|
|
16
|
+
})
|
|
17
|
+
})
|
|
18
|
+
})
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import assert from "assert"
|
|
2
|
+
import * as dotenv from "dotenv"
|
|
3
|
+
import * as pax2pay from "../../../index"
|
|
4
|
+
import { ErrorResponse } from "../../../model"
|
|
5
|
+
import { actionTest } from "./actionTest"
|
|
6
|
+
import { factory } from "./factory"
|
|
7
|
+
|
|
8
|
+
dotenv.config()
|
|
9
|
+
jest.setTimeout(200000)
|
|
10
|
+
|
|
11
|
+
describe("pax2pay.cards.actions fake", () => {
|
|
12
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
13
|
+
beforeAll(
|
|
14
|
+
async () =>
|
|
15
|
+
await client?.auth.login({
|
|
16
|
+
username: process.env.username ?? "user",
|
|
17
|
+
password: process.env.password ?? "password",
|
|
18
|
+
})
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
it("card EUR VISA_CREDIT", async () => {
|
|
22
|
+
const request = factory({
|
|
23
|
+
cardType: {
|
|
24
|
+
cardTypeId: "VISA_CREDIT",
|
|
25
|
+
},
|
|
26
|
+
currency: "EUR",
|
|
27
|
+
providerAccountId: process.env["accountFakeEur"],
|
|
28
|
+
providerCode: "fake",
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const cardLegacy = await client?.cards.createLegacy(request)
|
|
32
|
+
|
|
33
|
+
assert(!ErrorResponse.is(cardLegacy))
|
|
34
|
+
assert(cardLegacy != undefined)
|
|
35
|
+
assert(client != undefined)
|
|
36
|
+
await actionTest(cardLegacy, client)
|
|
37
|
+
})
|
|
38
|
+
})
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import assert from "assert"
|
|
2
|
+
import * as dotenv from "dotenv"
|
|
3
|
+
import * as pax2pay from "../../../index"
|
|
4
|
+
import { ErrorResponse } from "../../../model"
|
|
5
|
+
import { actionTest } from "./actionTest"
|
|
6
|
+
import { factory } from "./factory"
|
|
7
|
+
|
|
8
|
+
dotenv.config()
|
|
9
|
+
jest.setTimeout(200000)
|
|
10
|
+
|
|
11
|
+
describe("pax2pay.cards.actions ixaris", () => {
|
|
12
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
13
|
+
beforeAll(
|
|
14
|
+
async () =>
|
|
15
|
+
await client?.auth.login({
|
|
16
|
+
username: process.env.username ?? "user",
|
|
17
|
+
password: process.env.password ?? "password",
|
|
18
|
+
})
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
it("card GBP MASTERCARD", async () => {
|
|
22
|
+
const request = factory({
|
|
23
|
+
cardType: {
|
|
24
|
+
cardTypeId: "MASTERCARD",
|
|
25
|
+
},
|
|
26
|
+
currency: "GBP",
|
|
27
|
+
providerAccountId: process.env["accountIxarisGbp"],
|
|
28
|
+
providerCode: "ixaris",
|
|
29
|
+
balance: 0,
|
|
30
|
+
friendlyName: new Date().toISOString().slice(0, 20) + "ixaris" + "MASTERCARDGBP",
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const cardLegacy = await client?.cards.createLegacy(request)
|
|
34
|
+
|
|
35
|
+
assert(!ErrorResponse.is(cardLegacy))
|
|
36
|
+
assert(cardLegacy != undefined)
|
|
37
|
+
assert(client != undefined)
|
|
38
|
+
await actionTest(cardLegacy, client)
|
|
39
|
+
})
|
|
40
|
+
})
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import assert from "assert"
|
|
2
|
+
import * as dotenv from "dotenv"
|
|
3
|
+
import { mathExact } from "math-exact"
|
|
4
|
+
import * as pax2pay from "../../../index"
|
|
5
|
+
import { ErrorResponse } from "../../../model"
|
|
6
|
+
import { actionTest } from "./actionTest"
|
|
7
|
+
import { factory } from "./factory"
|
|
8
|
+
|
|
9
|
+
dotenv.config()
|
|
10
|
+
jest.setTimeout(200000)
|
|
11
|
+
|
|
12
|
+
describe("pax2pay.cards.actions modulr", () => {
|
|
13
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
14
|
+
beforeAll(
|
|
15
|
+
async () =>
|
|
16
|
+
await client?.auth.login({
|
|
17
|
+
username: process.env.username ?? "user",
|
|
18
|
+
password: process.env.password ?? "password",
|
|
19
|
+
})
|
|
20
|
+
)
|
|
21
|
+
it("card USD VISA", async () => {
|
|
22
|
+
const request = factory({
|
|
23
|
+
cardType: {
|
|
24
|
+
cardTypeId: "VISA",
|
|
25
|
+
},
|
|
26
|
+
currency: "USD",
|
|
27
|
+
providerAccountId: process.env["accountModulrUsd"],
|
|
28
|
+
providerCode: "modulr",
|
|
29
|
+
balance: mathExact("Divide", Math.round((Math.random() * 4 + 1) * 100), 100),
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
const cardLegacy = await client?.cards.createLegacy(request)
|
|
33
|
+
|
|
34
|
+
assert(!ErrorResponse.is(cardLegacy))
|
|
35
|
+
assert(cardLegacy != undefined)
|
|
36
|
+
assert(client != undefined)
|
|
37
|
+
|
|
38
|
+
await actionTest(cardLegacy, client)
|
|
39
|
+
})
|
|
40
|
+
})
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import assert from "assert"
|
|
2
|
+
import * as dotenv from "dotenv"
|
|
3
|
+
import * as pax2pay from "../../../index"
|
|
4
|
+
import { ErrorResponse } from "../../../model"
|
|
5
|
+
import { actionTest } from "./actionTest"
|
|
6
|
+
import { factory } from "./factory"
|
|
7
|
+
|
|
8
|
+
dotenv.config()
|
|
9
|
+
jest.setTimeout(200000)
|
|
10
|
+
|
|
11
|
+
describe("pax2pay.cards.actions pax2pay", () => {
|
|
12
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
13
|
+
beforeAll(
|
|
14
|
+
async () =>
|
|
15
|
+
await client?.auth.login({
|
|
16
|
+
username: process.env.username ?? "user",
|
|
17
|
+
password: process.env.password ?? "password",
|
|
18
|
+
})
|
|
19
|
+
)
|
|
20
|
+
for (const currency of ["GBP"])
|
|
21
|
+
for (const cardType of ["jittest"])
|
|
22
|
+
it(`card ${currency} ${cardType}`, async () => {
|
|
23
|
+
const request = factory({
|
|
24
|
+
cardType: {
|
|
25
|
+
cardTypeId: cardType,
|
|
26
|
+
},
|
|
27
|
+
currency: currency,
|
|
28
|
+
providerAccountId: process.env[`accountPax2pay${currency.charAt(0)}${currency.toLowerCase().slice(1)}`],
|
|
29
|
+
providerCode: "pax2pay",
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
const cardLegacy = await client?.cards.createLegacy(request)
|
|
33
|
+
|
|
34
|
+
assert(!ErrorResponse.is(cardLegacy))
|
|
35
|
+
assert(cardLegacy != undefined)
|
|
36
|
+
assert(client != undefined)
|
|
37
|
+
|
|
38
|
+
await actionTest(cardLegacy, client)
|
|
39
|
+
})
|
|
40
|
+
})
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../../../index"
|
|
3
|
+
import { ErrorResponse } from "../../../model"
|
|
4
|
+
import { factory } from "./factory"
|
|
5
|
+
|
|
6
|
+
dotenv.config()
|
|
7
|
+
jest.setTimeout(200000)
|
|
8
|
+
|
|
9
|
+
describe("pax2pay.cards.create fake", () => {
|
|
10
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
11
|
+
beforeAll(
|
|
12
|
+
async () =>
|
|
13
|
+
await client?.auth.login({
|
|
14
|
+
username: process.env.username ?? "user",
|
|
15
|
+
password: process.env.password ?? "password",
|
|
16
|
+
})
|
|
17
|
+
)
|
|
18
|
+
for (const currency of ["EUR", "GBP", "SEK", "JPY", "BRL"])
|
|
19
|
+
for (const cardType of ["VISA_CREDIT", "MASTERCARD"])
|
|
20
|
+
it(`card ${currency} ${cardType}`, async () => {
|
|
21
|
+
const [request, expectedV2, expectedLegacy] = factory({
|
|
22
|
+
cardType: {
|
|
23
|
+
cardTypeId: cardType,
|
|
24
|
+
},
|
|
25
|
+
currency: currency,
|
|
26
|
+
providerAccountId: process.env[`accountFake${currency.charAt(0)}${currency.toLowerCase().slice(1)}`],
|
|
27
|
+
providerCode: "fake",
|
|
28
|
+
})
|
|
29
|
+
const cardV2 = await client?.cards.create(request)
|
|
30
|
+
const cardLegacy = await client?.cards.createLegacy(request)
|
|
31
|
+
|
|
32
|
+
if (ErrorResponse.is(cardV2))
|
|
33
|
+
throw Error(cardV2.errors?.[0].message)
|
|
34
|
+
else if (ErrorResponse.is(cardLegacy))
|
|
35
|
+
throw Error(cardLegacy.errors?.[0].message)
|
|
36
|
+
else {
|
|
37
|
+
expect(cardV2).toBeTruthy()
|
|
38
|
+
expect(cardLegacy).toBeTruthy()
|
|
39
|
+
|
|
40
|
+
expect(cardV2).toMatchObject(expectedV2)
|
|
41
|
+
expect(cardLegacy).toMatchObject(expectedLegacy)
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
})
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../../../index"
|
|
3
|
+
import { factory } from "./factory"
|
|
4
|
+
|
|
5
|
+
dotenv.config()
|
|
6
|
+
jest.setTimeout(200000)
|
|
7
|
+
|
|
8
|
+
describe("pax2pay.cards.create ixaris", () => {
|
|
9
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
10
|
+
beforeAll(
|
|
11
|
+
async () =>
|
|
12
|
+
await client?.auth.login({
|
|
13
|
+
username: process.env.username ?? "user",
|
|
14
|
+
password: process.env.password ?? "password",
|
|
15
|
+
})
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
for (const currency of ["EUR", "GBP", "USD"])
|
|
19
|
+
for (const cardType of ["VISA_DEBIT", "VISA_CREDIT", "MASTERCARD"])
|
|
20
|
+
it(`card ${currency} ${cardType}`, async () => {
|
|
21
|
+
const [request, expectedV2, expectedLegacy] = factory({
|
|
22
|
+
cardType: {
|
|
23
|
+
cardTypeId: cardType,
|
|
24
|
+
},
|
|
25
|
+
currency: currency,
|
|
26
|
+
providerAccountId: process.env[`accountIxaris${currency.charAt(0)}${currency.toLowerCase().slice(1)}`],
|
|
27
|
+
providerCode: "ixaris",
|
|
28
|
+
friendlyName: new Date().toISOString().slice(0, 20) + "ixaris" + cardType + currency,
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const cardV2 = await client?.cards.create({
|
|
32
|
+
...request,
|
|
33
|
+
friendlyName: request.friendlyName + "V2",
|
|
34
|
+
})
|
|
35
|
+
const cardLegacy = await client?.cards.createLegacy({
|
|
36
|
+
...request,
|
|
37
|
+
friendlyName: request.friendlyName + "Legacy",
|
|
38
|
+
})
|
|
39
|
+
expect(cardV2).toMatchObject(expectedV2)
|
|
40
|
+
expect(cardLegacy).toMatchObject(expectedLegacy)
|
|
41
|
+
})
|
|
42
|
+
})
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import { mathExact } from "math-exact"
|
|
3
|
+
import * as pax2pay from "../../../index"
|
|
4
|
+
import { factory } from "./factory"
|
|
5
|
+
|
|
6
|
+
dotenv.config()
|
|
7
|
+
jest.setTimeout(200000)
|
|
8
|
+
|
|
9
|
+
describe("pax2pay.cards.create modulr", () => {
|
|
10
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
11
|
+
beforeAll(
|
|
12
|
+
async () =>
|
|
13
|
+
await client?.auth.login({
|
|
14
|
+
username: process.env.username ?? "user",
|
|
15
|
+
password: process.env.password ?? "password",
|
|
16
|
+
})
|
|
17
|
+
)
|
|
18
|
+
for (const currency of ["EUR", "GBP", "PLN", "USD"])
|
|
19
|
+
for (const cardType of ["VISA_DEBIT_CORPORATE", "VISA", "VISA_CREDIT_CORPORATE", "VISA_DEBIT"])
|
|
20
|
+
it(`card ${currency} ${cardType}`, async () => {
|
|
21
|
+
const [request, expectedV2, expectedLegacy] = factory({
|
|
22
|
+
cardType: {
|
|
23
|
+
cardTypeId: cardType,
|
|
24
|
+
},
|
|
25
|
+
currency: currency,
|
|
26
|
+
providerAccountId: process.env[`accountModulr${currency.charAt(0)}${currency.toLowerCase().slice(1)}`],
|
|
27
|
+
providerCode: "modulr",
|
|
28
|
+
balance: mathExact("Divide", Math.round((Math.random() * 4 + 1) * 100), 100),
|
|
29
|
+
})
|
|
30
|
+
const cardV2 = await client?.cards.create({
|
|
31
|
+
...request,
|
|
32
|
+
balance: mathExact("Add", request.balance, 1),
|
|
33
|
+
})
|
|
34
|
+
const cardLegacy = await client?.cards.createLegacy({
|
|
35
|
+
...request,
|
|
36
|
+
balance: mathExact("Add", request.balance, 2),
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
expect(cardV2).toMatchObject(expectedV2)
|
|
40
|
+
expect(cardLegacy).toMatchObject(expectedLegacy)
|
|
41
|
+
})
|
|
42
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../../../index"
|
|
3
|
+
import { ErrorResponse } from "../../../model"
|
|
4
|
+
import { factory } from "./factory"
|
|
5
|
+
|
|
6
|
+
dotenv.config()
|
|
7
|
+
jest.setTimeout(200000)
|
|
8
|
+
|
|
9
|
+
describe("pax2pay.cards.create pax2pay", () => {
|
|
10
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
11
|
+
beforeAll(async () => {
|
|
12
|
+
await client?.auth.login({
|
|
13
|
+
username: process.env.username ?? "user",
|
|
14
|
+
password: process.env.password ?? "password",
|
|
15
|
+
})
|
|
16
|
+
})
|
|
17
|
+
for (const currency of ["GBP"])
|
|
18
|
+
for (const cardType of ["jittest"])
|
|
19
|
+
it(`card ${currency} ${cardType}`, async () => {
|
|
20
|
+
const [request, expectedV2, expectedLegacy] = factory({
|
|
21
|
+
cardType: {
|
|
22
|
+
cardTypeId: cardType,
|
|
23
|
+
},
|
|
24
|
+
currency: currency,
|
|
25
|
+
providerAccountId: process.env[`accountPax2pay${currency.charAt(0)}${currency.toLowerCase().slice(1)}`],
|
|
26
|
+
providerCode: "pax2pay",
|
|
27
|
+
})
|
|
28
|
+
const cardV2 = await client?.cards.create(request)
|
|
29
|
+
const cardLegacy = await client?.cards.createLegacy(request)
|
|
30
|
+
|
|
31
|
+
if (ErrorResponse.is(cardV2))
|
|
32
|
+
throw Error(cardV2.errors?.[0].message)
|
|
33
|
+
else if (ErrorResponse.is(cardLegacy))
|
|
34
|
+
throw Error(cardLegacy.errors?.[0].message)
|
|
35
|
+
else {
|
|
36
|
+
expect(cardV2).toBeTruthy()
|
|
37
|
+
expect(cardLegacy).toBeTruthy()
|
|
38
|
+
|
|
39
|
+
expect(cardV2).toMatchObject(expectedV2)
|
|
40
|
+
expect(cardLegacy).toMatchObject(expectedLegacy)
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
})
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../../index"
|
|
3
|
+
dotenv.config()
|
|
4
|
+
jest.setTimeout(200000)
|
|
5
|
+
|
|
6
|
+
describe("pax2pay.cards.list", () => {
|
|
7
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
8
|
+
beforeAll(
|
|
9
|
+
async () =>
|
|
10
|
+
await client?.auth.login({
|
|
11
|
+
username: process.env.username ?? "user",
|
|
12
|
+
password: process.env.password ?? "password",
|
|
13
|
+
})
|
|
14
|
+
)
|
|
15
|
+
it("first page", async () => {
|
|
16
|
+
const expected = {
|
|
17
|
+
balance: expect.any(Number),
|
|
18
|
+
cardAccount: {
|
|
19
|
+
accountType: "CARD",
|
|
20
|
+
balance: expect.any(Number),
|
|
21
|
+
createdOn: expect.any(String),
|
|
22
|
+
currency: expect.any(String),
|
|
23
|
+
friendlyName: expect.any(String),
|
|
24
|
+
id: expect.any(Number),
|
|
25
|
+
organisation: {
|
|
26
|
+
code: expect.any(String),
|
|
27
|
+
name: expect.any(String),
|
|
28
|
+
status: expect.stringMatching(/(ACTIVE)|(INACTIVE)/),
|
|
29
|
+
},
|
|
30
|
+
provider: {
|
|
31
|
+
code: expect.any(String),
|
|
32
|
+
id: expect.any(Number),
|
|
33
|
+
name: expect.any(String),
|
|
34
|
+
status: "ACTIVE",
|
|
35
|
+
},
|
|
36
|
+
providerAccountId: expect.any(String),
|
|
37
|
+
state: expect.stringMatching(/(DELETED)|(ACTIVE)|(EXPIRED)/),
|
|
38
|
+
updatedOn: expect.any(String),
|
|
39
|
+
},
|
|
40
|
+
cardForm: expect.any(String),
|
|
41
|
+
cardNumber: expect.any(String),
|
|
42
|
+
cardType: expect.any(String),
|
|
43
|
+
createdBy: expect.any(String),
|
|
44
|
+
creatingSystem: expect.any(String),
|
|
45
|
+
cvv: expect.any(String),
|
|
46
|
+
expiryDate: expect.any(String),
|
|
47
|
+
folder: expect.any(String),
|
|
48
|
+
issueDate: expect.any(String),
|
|
49
|
+
nameOnCard: expect.any(String),
|
|
50
|
+
providerCardId: expect.any(String),
|
|
51
|
+
providerCode: expect.any(String),
|
|
52
|
+
state: expect.any(String),
|
|
53
|
+
usage: expect.any(String),
|
|
54
|
+
useAs: expect.any(String),
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const list = await client?.cards.list()
|
|
58
|
+
if (Array.isArray(list))
|
|
59
|
+
for (const card of list)
|
|
60
|
+
expect(card).toMatchObject(expected)
|
|
61
|
+
//if list only returns one card.
|
|
62
|
+
else
|
|
63
|
+
expect(list).toMatchObject(expected)
|
|
64
|
+
})
|
|
65
|
+
})
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../../index"
|
|
3
|
+
dotenv.config()
|
|
4
|
+
jest.setTimeout(100000)
|
|
5
|
+
|
|
6
|
+
describe("pax2pay.organisations.fetch", () => {
|
|
7
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
8
|
+
beforeAll(
|
|
9
|
+
async () =>
|
|
10
|
+
await client?.auth.login({
|
|
11
|
+
username: process.env.username ?? "user",
|
|
12
|
+
password: process.env.password ?? "password",
|
|
13
|
+
})
|
|
14
|
+
)
|
|
15
|
+
it("mcom", async () => {
|
|
16
|
+
const name = "mcom"
|
|
17
|
+
expect(await client?.organisations.fetch(name)).toEqual({
|
|
18
|
+
code: name,
|
|
19
|
+
folder: "organisations/" + name,
|
|
20
|
+
name: expect.any(String),
|
|
21
|
+
status: "ACTIVE",
|
|
22
|
+
})
|
|
23
|
+
})
|
|
24
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../index"
|
|
3
|
+
dotenv.config()
|
|
4
|
+
jest.setTimeout(100000)
|
|
5
|
+
|
|
6
|
+
describe("pax2pay.organisations.list", () => {
|
|
7
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
8
|
+
beforeAll(
|
|
9
|
+
async () =>
|
|
10
|
+
await client?.auth.login({
|
|
11
|
+
username: process.env.username ?? "user",
|
|
12
|
+
password: process.env.password ?? "password",
|
|
13
|
+
})
|
|
14
|
+
)
|
|
15
|
+
it("all orgs", async () => {
|
|
16
|
+
const organizations = await client?.organisations.list()
|
|
17
|
+
expect(Array.isArray(organizations)).toEqual(true)
|
|
18
|
+
if (Array.isArray(organizations))
|
|
19
|
+
for (const organization of organizations) {
|
|
20
|
+
expect(organization).toMatchObject({
|
|
21
|
+
code: expect.stringContaining(""),
|
|
22
|
+
folder: expect.stringContaining("organisations/"),
|
|
23
|
+
name: expect.stringContaining(""),
|
|
24
|
+
status: expect.stringMatching(/(ACTIVE)|(INACTIVE)/),
|
|
25
|
+
})
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
})
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../../index"
|
|
3
|
+
dotenv.config()
|
|
4
|
+
jest.setTimeout(100000)
|
|
5
|
+
|
|
6
|
+
describe("pax2pay.reports", () => {
|
|
7
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
8
|
+
beforeAll(
|
|
9
|
+
async () =>
|
|
10
|
+
await client?.auth.login({
|
|
11
|
+
username: process.env.username ?? "user",
|
|
12
|
+
password: process.env.password ?? "password",
|
|
13
|
+
})
|
|
14
|
+
)
|
|
15
|
+
it("reconciliation report", async () => {
|
|
16
|
+
const report = await client?.reports.reconciliation("2021-01-01T00:00:00.000Z", "2021-01-10T23:59:59.999Z")
|
|
17
|
+
expect(report).toMatchObject({
|
|
18
|
+
report: {
|
|
19
|
+
rows: expect.any(Array),
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
})
|
|
23
|
+
it("account statement", async () => {
|
|
24
|
+
const report = await client?.reports.statement("2021-01-01T00:00:00.000Z", "2021-06-14T23:59:59.999Z", "A120ABTA")
|
|
25
|
+
expect(report).toMatchObject({
|
|
26
|
+
report: {
|
|
27
|
+
accountIdentifier: expect.any(String),
|
|
28
|
+
closingBalance: expect.any(Number),
|
|
29
|
+
from: expect.any(String),
|
|
30
|
+
openingBalance: expect.any(Number),
|
|
31
|
+
statements: expect.any(Array),
|
|
32
|
+
},
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
it("attachPageable", async () => {
|
|
37
|
+
const result = await client?.reports.attachPageable("statement", 2, 10)
|
|
38
|
+
expect(result).toEqual("statement?page=2&size=10")
|
|
39
|
+
const result2 = await client?.reports.attachPageable("statement", 5, 30)
|
|
40
|
+
expect(result2).toEqual("statement?page=5&size=30")
|
|
41
|
+
})
|
|
42
|
+
})
|
package/Client/Reports/index.ts
CHANGED
|
@@ -61,7 +61,10 @@ export class Reports {
|
|
|
61
61
|
(pageSize && page ? `&size=${pageSize}` : pageSize ? `size=${pageSize}` : "")
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
async getStatementReportUrl(request: model.StatementReportUrlRequest) {
|
|
65
|
+
const result = await this.connection.post<model.StatementReportUrlResponse>(`statement/download`, request)
|
|
66
|
+
return result
|
|
67
|
+
}
|
|
65
68
|
static create(connection: Connection) {
|
|
66
69
|
return new Reports(connection)
|
|
67
70
|
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import assert from "assert"
|
|
2
|
+
import * as dotenv from "dotenv"
|
|
3
|
+
import * as pax2pay from "../../index"
|
|
4
|
+
import { ErrorResponse } from "../../model"
|
|
5
|
+
import * as model from "../../model"
|
|
6
|
+
import * as factory from "./factory"
|
|
7
|
+
dotenv.config()
|
|
8
|
+
jest.setTimeout(200000)
|
|
9
|
+
|
|
10
|
+
describe("pax2pay.transfers.create", () => {
|
|
11
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
12
|
+
beforeAll(
|
|
13
|
+
async () =>
|
|
14
|
+
await client?.auth.login({
|
|
15
|
+
username: process.env.username ?? "user",
|
|
16
|
+
password: process.env.password ?? "password",
|
|
17
|
+
})
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
it("with beneficiary", async () => {
|
|
21
|
+
const request: model.TransferRequest = factory.getRequestForBeneficiary()
|
|
22
|
+
const expected = factory.getExpectedForBeneficiary(request)
|
|
23
|
+
|
|
24
|
+
const transfer = await client?.transfers.create(request)
|
|
25
|
+
|
|
26
|
+
assert(!ErrorResponse.is(transfer))
|
|
27
|
+
assert(transfer != undefined)
|
|
28
|
+
|
|
29
|
+
expect(transfer).toMatchObject(expected)
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
it("with destination", async () => {
|
|
33
|
+
const request: model.TransferRequest = factory.getRequestForDestination()
|
|
34
|
+
const expected = factory.getExpectedForDestination(request)
|
|
35
|
+
|
|
36
|
+
const transfer = await client?.transfers.create(request)
|
|
37
|
+
|
|
38
|
+
assert(!ErrorResponse.is(transfer))
|
|
39
|
+
assert(transfer != undefined)
|
|
40
|
+
|
|
41
|
+
expect(transfer).toMatchObject(expected)
|
|
42
|
+
|
|
43
|
+
const saveBeneficiaryRequest = factory.getRequestForDestinationPlusBeneficiary()
|
|
44
|
+
const expectedWithBeneficiary = factory.getExpectedForDestinationPlusBeneficiary(saveBeneficiaryRequest)
|
|
45
|
+
|
|
46
|
+
const transferPlusNewBeneficiary = await client?.transfers.create(saveBeneficiaryRequest)
|
|
47
|
+
|
|
48
|
+
assert(!ErrorResponse.is(transferPlusNewBeneficiary))
|
|
49
|
+
assert(transferPlusNewBeneficiary != undefined)
|
|
50
|
+
|
|
51
|
+
expect(transferPlusNewBeneficiary).toMatchObject(expectedWithBeneficiary)
|
|
52
|
+
|
|
53
|
+
assert(transferPlusNewBeneficiary.beneficiary != undefined)
|
|
54
|
+
assert(transferPlusNewBeneficiary.beneficiary.beneficiaryId != undefined)
|
|
55
|
+
const beneficiary = await client?.beneficiaries.getBeneficiary(transferPlusNewBeneficiary.beneficiary.beneficiaryId)
|
|
56
|
+
|
|
57
|
+
assert(!ErrorResponse.is(beneficiary))
|
|
58
|
+
assert(beneficiary != undefined)
|
|
59
|
+
|
|
60
|
+
expect(beneficiary).toMatchObject({
|
|
61
|
+
transferDestination: transferPlusNewBeneficiary.beneficiary.transferDestination,
|
|
62
|
+
status: expect.stringMatching(/(ACTIVE)|(DELETED)|(OUTDATED)/),
|
|
63
|
+
fullName: expect.any(String),
|
|
64
|
+
beneficiaryId: transferPlusNewBeneficiary.beneficiary.beneficiaryId,
|
|
65
|
+
createdOn: expect.any(String),
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
it("with funding account", async () => {
|
|
70
|
+
const request: model.TransferRequest = factory.getRequestForFundingAccount()
|
|
71
|
+
const expected = factory.getExpectedForFundingAccount(request)
|
|
72
|
+
|
|
73
|
+
const transfer = await client?.transfers.create(request)
|
|
74
|
+
|
|
75
|
+
assert(!ErrorResponse.is(transfer))
|
|
76
|
+
assert(transfer != undefined)
|
|
77
|
+
|
|
78
|
+
expect(transfer).toMatchObject(expected)
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("invalid input, multiple options", async () => {
|
|
82
|
+
const beneficiaryRequest = factory.getRequestForBeneficiary()
|
|
83
|
+
const destinationRequest = factory.getRequestForDestination()
|
|
84
|
+
const fundingAccountRequest = factory.getRequestForFundingAccount()
|
|
85
|
+
|
|
86
|
+
const testRequestAll = {
|
|
87
|
+
...beneficiaryRequest,
|
|
88
|
+
...destinationRequest,
|
|
89
|
+
...fundingAccountRequest,
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const allOptionsResponse = await client?.transfers.create(testRequestAll)
|
|
93
|
+
|
|
94
|
+
expect(ErrorResponse.is(allOptionsResponse)).toBeTruthy()
|
|
95
|
+
|
|
96
|
+
const testRequestTwo = {
|
|
97
|
+
...beneficiaryRequest,
|
|
98
|
+
...destinationRequest,
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const twoOptionsResponse = await client?.transfers.create(testRequestTwo)
|
|
102
|
+
|
|
103
|
+
expect(ErrorResponse.is(twoOptionsResponse)).toBeTruthy()
|
|
104
|
+
})
|
|
105
|
+
})
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import assert from "assert"
|
|
2
|
+
import * as dotenv from "dotenv"
|
|
3
|
+
import * as pax2pay from "../../index"
|
|
4
|
+
import { ErrorResponse } from "../../model"
|
|
5
|
+
import * as factory from "./factory"
|
|
6
|
+
dotenv.config()
|
|
7
|
+
jest.setTimeout(200000)
|
|
8
|
+
|
|
9
|
+
describe("pax2pay.transfers.list", () => {
|
|
10
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
11
|
+
beforeAll(
|
|
12
|
+
async () =>
|
|
13
|
+
await client?.auth.login({
|
|
14
|
+
username: process.env.username ?? "user",
|
|
15
|
+
password: process.env.password ?? "password",
|
|
16
|
+
})
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
it("first page", async () => {
|
|
20
|
+
const expected = factory.getExpectedForGeneric()
|
|
21
|
+
|
|
22
|
+
const transfers = await client?.transfers.list()
|
|
23
|
+
|
|
24
|
+
assert(!ErrorResponse.is(transfers))
|
|
25
|
+
assert(transfers != undefined)
|
|
26
|
+
assert(Array.isArray(transfers))
|
|
27
|
+
|
|
28
|
+
expect(transfers).toHaveLength(20)
|
|
29
|
+
for (const transfer of transfers)
|
|
30
|
+
expect(transfer).toMatchObject(expected)
|
|
31
|
+
|
|
32
|
+
const transfers100 = await client?.transfers.list(1, 100)
|
|
33
|
+
|
|
34
|
+
assert(!ErrorResponse.is(transfers100))
|
|
35
|
+
assert(transfers100 != undefined)
|
|
36
|
+
assert(Array.isArray(transfers100))
|
|
37
|
+
|
|
38
|
+
expect(transfers100).toHaveLength(100)
|
|
39
|
+
for (const transfer of transfers100)
|
|
40
|
+
expect(transfer).toMatchObject(expected)
|
|
41
|
+
})
|
|
42
|
+
})
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../../index"
|
|
3
|
+
dotenv.config()
|
|
4
|
+
jest.setTimeout(100000)
|
|
5
|
+
|
|
6
|
+
describe("pax2pay.users.fetch", () => {
|
|
7
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
8
|
+
beforeAll(
|
|
9
|
+
async () =>
|
|
10
|
+
await client?.auth.login({
|
|
11
|
+
username: process.env.username ?? "user",
|
|
12
|
+
password: process.env.password ?? "password",
|
|
13
|
+
})
|
|
14
|
+
)
|
|
15
|
+
it("current user", async () => {
|
|
16
|
+
const user = await client?.users.fetch(process.env.username)
|
|
17
|
+
expect(user).toMatchObject({
|
|
18
|
+
"2fa": {
|
|
19
|
+
enabled: expect.any(Boolean),
|
|
20
|
+
},
|
|
21
|
+
email: expect.any(String),
|
|
22
|
+
firstName: expect.any(String),
|
|
23
|
+
folder: expect.stringMatching(/users\/.*/),
|
|
24
|
+
lastName: expect.any(String),
|
|
25
|
+
organisation: {
|
|
26
|
+
code: expect.any(String),
|
|
27
|
+
name: expect.any(String),
|
|
28
|
+
status: expect.stringMatching(/(ACTIVE)|(INACTIVE)/),
|
|
29
|
+
},
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as dotenv from "dotenv"
|
|
2
|
+
import * as pax2pay from "../../index"
|
|
3
|
+
dotenv.config()
|
|
4
|
+
jest.setTimeout(100000)
|
|
5
|
+
|
|
6
|
+
describe("pax2pay.users.list", () => {
|
|
7
|
+
const client = pax2pay.Client.create(process.env.url)
|
|
8
|
+
beforeAll(
|
|
9
|
+
async () =>
|
|
10
|
+
await client?.auth.login({
|
|
11
|
+
username: process.env.username ?? "user",
|
|
12
|
+
password: process.env.password ?? "password",
|
|
13
|
+
})
|
|
14
|
+
)
|
|
15
|
+
it("first page", async () => {
|
|
16
|
+
const users = await client?.users.list()
|
|
17
|
+
expect(Array.isArray(users)).toEqual(true)
|
|
18
|
+
if (Array.isArray(users))
|
|
19
|
+
for (const user of users)
|
|
20
|
+
expect(user).toMatchObject({
|
|
21
|
+
"2fa": {
|
|
22
|
+
enabled: expect.any(Boolean),
|
|
23
|
+
},
|
|
24
|
+
email: expect.any(String),
|
|
25
|
+
firstName: expect.any(String),
|
|
26
|
+
folder: expect.stringMatching(/users\/.*/),
|
|
27
|
+
lastName: expect.any(String),
|
|
28
|
+
organisation: {
|
|
29
|
+
code: expect.any(String),
|
|
30
|
+
name: expect.any(String),
|
|
31
|
+
status: expect.stringMatching(/(ACTIVE)|(INACTIVE)/),
|
|
32
|
+
},
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
it.skip("username asc, email desc", async () => {
|
|
36
|
+
const users = await client?.users.list(0, 20, ["username", { property: "email", direction: "descending" }])
|
|
37
|
+
expect(Array.isArray(users)).toEqual(true)
|
|
38
|
+
if (Array.isArray(users))
|
|
39
|
+
expect(users).toHaveLength(20)
|
|
40
|
+
})
|
|
41
|
+
})
|
|
@@ -17,5 +17,8 @@ export declare class Reports {
|
|
|
17
17
|
status: 400 | 404 | 500 | 403 | 503;
|
|
18
18
|
})>;
|
|
19
19
|
attachPageable(base: string, page?: number, pageSize?: number): string;
|
|
20
|
+
getStatementReportUrl(request: model.StatementReportUrlRequest): Promise<model.StatementReportUrlResponse | (model.ErrorResponse & {
|
|
21
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
22
|
+
})>;
|
|
20
23
|
static create(connection: Connection): Reports;
|
|
21
24
|
}
|
|
@@ -42,6 +42,10 @@ export class Reports {
|
|
|
42
42
|
(page ? `page=${page}` : "") +
|
|
43
43
|
(pageSize && page ? `&size=${pageSize}` : pageSize ? `size=${pageSize}` : ""));
|
|
44
44
|
}
|
|
45
|
+
async getStatementReportUrl(request) {
|
|
46
|
+
const result = await this.connection.post(`statement/download`, request);
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
45
49
|
static create(connection) {
|
|
46
50
|
return new Reports(connection);
|
|
47
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Reports/index.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,OAAO;IACnB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEvD,KAAK,CAAC,c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;YACnB,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;QAEjD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAgC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC1E,CAAC;IACD,KAAK,CAAC,oBAAoB,CAAC,KAAa;QACvC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAmC,aAAa,KAAK;CAC9F,CAAC,CAAA;QACA,OAAO,MAAM,CAAA;IACd,CAAC;IACD,cAAc,CAAC,IAAY,EAAE,IAAa,EAAE,QAAiB;QAC5D,OAAO,CACN,IAAI;YACJ,GAAG;YACH,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5B,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC7E,CAAA;IACF,CAAC;IACD,KAAK,CAAC,qBAAqB,CAAC,OAAwC;QACnE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAmC,oBAAoB,EAAE,OAAO,CAAC,CAAA;QAC1G,OAAO,MAAM,CAAA;IACd,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAA;IAC/B,CAAC;CACD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, ScheduleEntry, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth } from "./model";
|
|
3
|
-
export { Client, AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
|
2
|
+
import { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, ScheduleEntry, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementReportUrlRequest, StatementReportUrlResponse, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth } from "./model";
|
|
3
|
+
export { Client, AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportUrlRequest, StatementReportUrlResponse, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
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,yBAAyB,EACzB,eAAe,EAEf,YAAY,EACZ,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ACpB,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EAGT,yBAAyB,EACzB,0BAA0B,EAC1B,cAAc,EACd,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EACpB,UAAU,EASV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EASV,OAAO,EAMP,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,0BAA0B,EAC1B,mBAAmB,EAGnB,uBAAuB,EAEvB,gBAAgB,EAEhB,cAAc,EACd,eAAe,EASf,iBAAiB,EAEjB,4BAA4B,EAC5B,WAAW,EACX,YAAY,EAGZ,UAAU,EACV,SAAS,GACT,CAAA"}
|
|
@@ -3,6 +3,8 @@ export interface BillingTransactionAmountPair {
|
|
|
3
3
|
billing: AmountPair;
|
|
4
4
|
transaction: AmountPair;
|
|
5
5
|
fxRate: number;
|
|
6
|
+
rebate?: number;
|
|
7
|
+
rebateRate?: number;
|
|
6
8
|
}
|
|
7
9
|
export declare namespace BillingTransactionAmountPair {
|
|
8
10
|
function is(value: BillingTransactionAmountPair | any): value is BillingTransactionAmountPair;
|
|
@@ -5,7 +5,9 @@ export var BillingTransactionAmountPair;
|
|
|
5
5
|
return (typeof value == "object" &&
|
|
6
6
|
AmountPair.is(value.billing) &&
|
|
7
7
|
AmountPair.is(value.transaction) &&
|
|
8
|
-
typeof value.fxRate == "number"
|
|
8
|
+
typeof value.fxRate == "number" &&
|
|
9
|
+
(typeof value.rebate == "number" || value.rebate == undefined) &&
|
|
10
|
+
(typeof value.rebateRate == "number" || value.rebateRate == undefined));
|
|
9
11
|
}
|
|
10
12
|
BillingTransactionAmountPair.is = is;
|
|
11
13
|
})(BillingTransactionAmountPair || (BillingTransactionAmountPair = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BillingTransactionAmountPair.js","sourceRoot":"../","sources":["model/BillingTransactionAmountPair.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"BillingTransactionAmountPair.js","sourceRoot":"../","sources":["model/BillingTransactionAmountPair.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AASzC,MAAM,KAAW,4BAA4B,CAW5C;AAXD,WAAiB,4BAA4B;IAC5C,SAAgB,EAAE,CAAC,KAAyC;QAC3D,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;YAC5B,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;YAChC,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ;YAC/B,CAAC,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC;YAC9D,CAAC,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC,UAAU,IAAI,SAAS,CAAC,CACtE,CAAA;IACF,CAAC;IATe,+BAAE,KASjB,CAAA;AACF,CAAC,EAXgB,4BAA4B,KAA5B,4BAA4B,QAW5C"}
|
|
@@ -27,7 +27,7 @@ export var CardResponseV2;
|
|
|
27
27
|
return CardScheduleResponseItem.is(a);
|
|
28
28
|
}))) &&
|
|
29
29
|
typeof value.createdBy == "string" &&
|
|
30
|
-
CardDeliveryResponse.is(value.delivery) &&
|
|
30
|
+
(value.delivery == undefined || CardDeliveryResponse.is(value.delivery)) &&
|
|
31
31
|
(value.batchId == undefined || typeof value.batchId == "string") &&
|
|
32
32
|
(value.bookingInfo == undefined || BookingInfoResponse.is(value.bookingInfo)));
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,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Q;YAClC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YACnC,OAAO,KAAK,CAAC,cAAc,IAAI,QAAQ;YACvC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YACzB,wBAAwB,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;YACjD,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS;gBAC3B,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC;oBAC7B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE;wBAC/B,OAAO,wBAAwB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;oBACtC,CAAC,CAAC,CAAC,CAAC;YACN,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACxE,CAAC,KAAK,CAAC,OAAO,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC;YAChE,CAAC,KAAK,CAAC,WAAW,IAAI,SAAS,IAAI,mBAAmB,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAC7E,CAAA;IACF,CAAC;IAxBe,iBAAE,KAwBjB,CAAA;AACF,CAAC,EA1BgB,cAAc,KAAd,cAAc,QA0B9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementReportUrlRequest.js","sourceRoot":"../","sources":["model/StatementReportUrlRequest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementReportUrlResponse.js","sourceRoot":"../","sources":["model/StatementReportUrlResponse.ts"],"names":[],"mappings":""}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -119,6 +119,8 @@ import { StatementReportResponse } from "./StatementReportResponse";
|
|
|
119
119
|
import { StatementReportResponseRow } from "./StatementReportResponseRow";
|
|
120
120
|
import { StatementReportRowActionType } from "./StatementReportRowActionType";
|
|
121
121
|
import { StatementReportRowType } from "./StatementReportRowType";
|
|
122
|
+
import { StatementReportUrlRequest } from "./StatementReportUrlRequest";
|
|
123
|
+
import { StatementReportUrlResponse } from "./StatementReportUrlResponse";
|
|
122
124
|
import { StatementRowIds } from "./StatementRowIds";
|
|
123
125
|
import { SummaryBookingInfoResponse } from "./SummaryBookingInfoResponse";
|
|
124
126
|
import { SupplierBookingInfo } from "./SupplierBookingInfo";
|
|
@@ -147,4 +149,4 @@ import { UserRoleResponse } from "./UserRoleResponse";
|
|
|
147
149
|
import { UserSearchRequest } from "./UserSearchRequest";
|
|
148
150
|
import { UserStatus } from "./UserStatus";
|
|
149
151
|
import { YearMonth } from "./YearMonth";
|
|
150
|
-
export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardProcessedTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
|
152
|
+
export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardProcessedTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportUrlRequest, StatementReportUrlResponse, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
package/dist/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC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ActionType,
|
|
123
123
|
StatementReportRowType,
|
|
124
|
+
StatementReportUrlRequest,
|
|
125
|
+
StatementReportUrlResponse,
|
|
124
126
|
StatementRowIds,
|
|
125
127
|
SummaryBookingInfoResponse,
|
|
126
128
|
SupplierBookingInfo,
|
|
@@ -269,6 +271,8 @@ export {
|
|
|
269
271
|
SearchRolesetsRequest,
|
|
270
272
|
Segment,
|
|
271
273
|
Sorting,
|
|
274
|
+
StatementReportUrlRequest,
|
|
275
|
+
StatementReportUrlResponse,
|
|
272
276
|
StatementReportRequest,
|
|
273
277
|
StatementReportResponse,
|
|
274
278
|
StatementReportResponseRow,
|
|
@@ -4,6 +4,8 @@ export interface BillingTransactionAmountPair {
|
|
|
4
4
|
billing: AmountPair
|
|
5
5
|
transaction: AmountPair
|
|
6
6
|
fxRate: number
|
|
7
|
+
rebate?: number
|
|
8
|
+
rebateRate?: number
|
|
7
9
|
}
|
|
8
10
|
export namespace BillingTransactionAmountPair {
|
|
9
11
|
export function is(value: BillingTransactionAmountPair | any): value is BillingTransactionAmountPair {
|
|
@@ -11,7 +13,9 @@ export namespace BillingTransactionAmountPair {
|
|
|
11
13
|
typeof value == "object" &&
|
|
12
14
|
AmountPair.is(value.billing) &&
|
|
13
15
|
AmountPair.is(value.transaction) &&
|
|
14
|
-
typeof value.fxRate == "number"
|
|
16
|
+
typeof value.fxRate == "number" &&
|
|
17
|
+
(typeof value.rebate == "number" || value.rebate == undefined) &&
|
|
18
|
+
(typeof value.rebateRate == "number" || value.rebateRate == undefined)
|
|
15
19
|
)
|
|
16
20
|
}
|
|
17
21
|
}
|
package/model/CardResponseV2.ts
CHANGED
|
@@ -53,7 +53,7 @@ export namespace CardResponseV2 {
|
|
|
53
53
|
return CardScheduleResponseItem.is(a)
|
|
54
54
|
}))) &&
|
|
55
55
|
typeof value.createdBy == "string" &&
|
|
56
|
-
CardDeliveryResponse.is(value.delivery) &&
|
|
56
|
+
(value.delivery == undefined || CardDeliveryResponse.is(value.delivery)) &&
|
|
57
57
|
(value.batchId == undefined || typeof value.batchId == "string") &&
|
|
58
58
|
(value.bookingInfo == undefined || BookingInfoResponse.is(value.bookingInfo))
|
|
59
59
|
)
|
package/model/index.ts
CHANGED
|
@@ -119,6 +119,8 @@ import { StatementReportResponse } from "./StatementReportResponse"
|
|
|
119
119
|
import { StatementReportResponseRow } from "./StatementReportResponseRow"
|
|
120
120
|
import { StatementReportRowActionType } from "./StatementReportRowActionType"
|
|
121
121
|
import { StatementReportRowType } from "./StatementReportRowType"
|
|
122
|
+
import { StatementReportUrlRequest } from "./StatementReportUrlRequest"
|
|
123
|
+
import { StatementReportUrlResponse } from "./StatementReportUrlResponse"
|
|
122
124
|
import { StatementRowIds } from "./StatementRowIds"
|
|
123
125
|
import { SummaryBookingInfoResponse } from "./SummaryBookingInfoResponse"
|
|
124
126
|
import { SupplierBookingInfo } from "./SupplierBookingInfo"
|
|
@@ -265,6 +267,8 @@ export {
|
|
|
265
267
|
SearchRolesetsRequest,
|
|
266
268
|
Segment,
|
|
267
269
|
Sorting,
|
|
270
|
+
StatementReportUrlRequest,
|
|
271
|
+
StatementReportUrlResponse,
|
|
268
272
|
StatementReportRequest,
|
|
269
273
|
StatementReportResponse,
|
|
270
274
|
StatementReportResponseRow,
|