@pax2pay/client 0.0.100 → 0.0.103
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/Cards/index.ts +51 -2
- package/Client/Users/index.ts +32 -0
- package/dist/Client/Cards/index.d.ts +27 -3
- package/dist/Client/Cards/index.js +39 -2
- package/dist/Client/Cards/index.js.map +1 -1
- package/dist/Client/Users/index.d.ts +8 -0
- package/dist/Client/Users/index.js +32 -0
- package/dist/Client/Users/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/AmendCardRequest.d.ts +1 -0
- package/dist/model/CardDeliveryResponse.d.ts +1 -1
- package/dist/model/CardDeliveryResponse.js +1 -1
- package/dist/model/CardDeliveryResponse.js.map +1 -1
- package/dist/model/CardProcessedTransaction.d.ts +19 -0
- package/dist/model/CardProcessedTransaction.js +2 -0
- package/dist/model/CardProcessedTransaction.js.map +1 -0
- package/dist/model/CardTransaction.d.ts +25 -0
- package/dist/model/CardTransaction.js +2 -0
- package/dist/model/CardTransaction.js.map +1 -0
- package/dist/model/CardType.d.ts +8 -0
- package/dist/model/CardType.js +11 -0
- package/dist/model/CardType.js.map +1 -0
- package/dist/model/CardTypeResponse.d.ts +2 -11
- package/dist/model/CardTypeResponseV2.d.ts +13 -0
- package/dist/model/CardTypeResponseV2.js +2 -0
- package/dist/model/CardTypeResponseV2.js.map +1 -0
- package/dist/model/FiveFieldsBookingInfoRequest.d.ts +3 -0
- package/dist/model/FiveFieldsBookingInfoRequest.js +12 -1
- package/dist/model/FiveFieldsBookingInfoRequest.js.map +1 -1
- package/dist/model/HotelBookingInfoRequest.js +4 -4
- package/dist/model/HotelBookingInfoRequest.js.map +1 -1
- package/dist/model/InvoiceBookingInfoRequest.d.ts +3 -0
- package/dist/model/InvoiceBookingInfoRequest.js +13 -1
- package/dist/model/InvoiceBookingInfoRequest.js.map +1 -1
- package/dist/model/Passengers.js +5 -1
- package/dist/model/Passengers.js.map +1 -1
- package/dist/model/PasswordResetResponse.d.ts +6 -0
- package/dist/model/PasswordResetResponse.js +2 -0
- package/dist/model/PasswordResetResponse.js.map +1 -0
- package/dist/model/References.js +5 -1
- package/dist/model/References.js.map +1 -1
- package/dist/model/ScheduleEntry.d.ts +9 -0
- package/dist/model/ScheduleEntry.js +2 -0
- package/dist/model/ScheduleEntry.js.map +1 -0
- package/dist/model/ScheduledTaskRequest.d.ts +2 -1
- package/dist/model/TransactionStatus.d.ts +6 -0
- package/dist/model/TransactionStatus.js +18 -0
- package/dist/model/TransactionStatus.js.map +1 -0
- package/dist/model/TransactionType.d.ts +1 -1
- package/dist/model/UserLimit.d.ts +3 -2
- package/dist/model/UserRequest.d.ts +3 -0
- package/dist/model/index.d.ts +7 -1
- package/dist/model/index.js +4 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +12 -0
- package/model/AmendCardRequest.ts +1 -0
- package/model/CardDeliveryResponse.ts +2 -2
- package/model/CardProcessedTransaction.ts +20 -0
- package/model/CardTransaction.ts +25 -0
- package/model/CardType.ts +15 -0
- package/model/CardTypeResponse.ts +2 -12
- package/model/CardTypeResponseV2.ts +14 -0
- package/model/FiveFieldsBookingInfoRequest.ts +13 -0
- package/model/HotelBookingInfoRequest.ts +4 -4
- package/model/InvoiceBookingInfoRequest.ts +13 -0
- package/model/Passengers.ts +7 -1
- package/model/PasswordResetResponse.ts +7 -0
- package/model/References.ts +5 -1
- package/model/ScheduleEntry.ts +10 -0
- package/model/ScheduledTaskRequest.ts +2 -1
- package/model/TransactionStatus.ts +18 -0
- package/model/TransactionType.ts +4 -0
- package/model/UserLimit.ts +4 -2
- package/model/UserRequest.ts +4 -0
- package/model/index.ts +12 -0
- package/package.json +1 -1
package/Client/Cards/index.ts
CHANGED
|
@@ -42,8 +42,22 @@ export class Cards extends List<
|
|
|
42
42
|
`)
|
|
43
43
|
return model.ErrorResponse.is(result) ? result : this.mapLegacy(result)
|
|
44
44
|
}
|
|
45
|
+
async createCard(request: model.CreateCardRequest) {
|
|
46
|
+
const result = await this.connection.post<model.CardResponse>(`cards/virtual`, request)
|
|
47
|
+
return model.ErrorResponse.is(result) ? result : this.mapLegacy(result)
|
|
48
|
+
}
|
|
49
|
+
async cancelCard(providerCardId: string, providerCode: model.ProviderCode) {
|
|
50
|
+
const result = await this.connection.remove<model.CardResponse>(
|
|
51
|
+
`cards/virtual/${providerCode}/${providerCardId}/cancel`
|
|
52
|
+
)
|
|
53
|
+
return result
|
|
54
|
+
}
|
|
55
|
+
async getCardTypesV2(providerCode: model.ProviderCode) {
|
|
56
|
+
const result = await this.connection.get<model.CardTypeResponseV2[]>(`v2/cards/types/${providerCode}`)
|
|
57
|
+
return result
|
|
58
|
+
}
|
|
45
59
|
async getCardTypes(providerCode: model.ProviderCode) {
|
|
46
|
-
const result = await this.connection.get<model.CardTypeResponse
|
|
60
|
+
const result = await this.connection.get<model.CardTypeResponse>(`cards/types/${providerCode}`)
|
|
47
61
|
return result
|
|
48
62
|
}
|
|
49
63
|
async getFundingAccounts(searchRequest: model.FundingAccountSearchRequest) {
|
|
@@ -53,8 +67,15 @@ export class Cards extends List<
|
|
|
53
67
|
)
|
|
54
68
|
return result
|
|
55
69
|
}
|
|
70
|
+
async getAllFundingAccounts(providerCode: model.ProviderCode) {
|
|
71
|
+
const result = await this.connection.get<model.CardFundingAccountResponse[]>(
|
|
72
|
+
`funding-accounts?provider=${providerCode}&size=500`
|
|
73
|
+
)
|
|
74
|
+
return result
|
|
75
|
+
}
|
|
56
76
|
async getCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode) {
|
|
57
|
-
const result = await this.connection
|
|
77
|
+
const result = await this.connection
|
|
78
|
+
.get<model.BookingInfoResponse>(`booking-info/cards/${providerCode}/${providerCardId}
|
|
58
79
|
`)
|
|
59
80
|
return result
|
|
60
81
|
}
|
|
@@ -65,4 +86,32 @@ export class Cards extends List<
|
|
|
65
86
|
)
|
|
66
87
|
return result
|
|
67
88
|
}
|
|
89
|
+
async getCardTransaction(providerCardId: string, providerCode: model.ProviderCode) {
|
|
90
|
+
const result = await this.connection.get<model.CardProcessedTransaction[]>(
|
|
91
|
+
`cards/virtual/${providerCode}/${providerCardId}/statements`
|
|
92
|
+
)
|
|
93
|
+
return result
|
|
94
|
+
}
|
|
95
|
+
async searchTransaction(accountId: number) {
|
|
96
|
+
const result = await this.connection.post<model.CardTransaction[]>(`transactions/searches`, {
|
|
97
|
+
accountId: accountId,
|
|
98
|
+
})
|
|
99
|
+
return result
|
|
100
|
+
}
|
|
101
|
+
async editSchedule(providerCardId: string, providerCode: model.ProviderCode, request: model.ScheduleEntry[]) {
|
|
102
|
+
const result = await this.connection.put<model.CardResponse>(
|
|
103
|
+
`cards/virtual/${providerCode}/${providerCardId}/schedule`,
|
|
104
|
+
{
|
|
105
|
+
schedule: request,
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
return result
|
|
109
|
+
}
|
|
110
|
+
async amendExistingCard(providerCardId: string, providerCode: model.ProviderCode, request: model.AmendCardRequest) {
|
|
111
|
+
const result = await this.connection.post<model.CardResponse>(
|
|
112
|
+
`cards/virtual/${providerCode}/${providerCardId}/amend`,
|
|
113
|
+
request
|
|
114
|
+
)
|
|
115
|
+
return result
|
|
116
|
+
}
|
|
68
117
|
}
|
package/Client/Users/index.ts
CHANGED
|
@@ -15,9 +15,41 @@ export class Users extends Collection<model.UserResponse, model.UserSearchReques
|
|
|
15
15
|
static create(connection: Connection) {
|
|
16
16
|
return new Users(connection)
|
|
17
17
|
}
|
|
18
|
+
async deleteUser(username: string): Promise<model.UserResponse | model.ErrorResponse> {
|
|
19
|
+
const result = await this.connection.remove<model.UserResponse>(`users/${username}`)
|
|
20
|
+
return result
|
|
21
|
+
}
|
|
22
|
+
async getAllUsers(): Promise<model.UserResponse[] | model.ErrorResponse> {
|
|
23
|
+
const result = await this.connection.get<model.UserResponse[]>(`users?size=500`)
|
|
24
|
+
return result
|
|
25
|
+
}
|
|
26
|
+
async getCategory(): Promise<string[] | model.ErrorResponse> {
|
|
27
|
+
const result = await this.connection.get<string[]>(`users/category`)
|
|
28
|
+
return result
|
|
29
|
+
}
|
|
30
|
+
async getRolesets(): Promise<model.RolesetResponse[] | model.ErrorResponse> {
|
|
31
|
+
const result = await this.connection.get<model.RolesetResponse[]>(`rolesets`)
|
|
32
|
+
return result
|
|
33
|
+
}
|
|
34
|
+
async getUser(username: string): Promise<model.UserResponse | model.ErrorResponse> {
|
|
35
|
+
const result = await this.connection.get<model.UserResponse>(`users/${username}`)
|
|
36
|
+
return result
|
|
37
|
+
}
|
|
18
38
|
async getUsersActiveRoles(username: string, token: string): Promise<string[] | model.ErrorResponse> {
|
|
19
39
|
this.connection.token = token
|
|
20
40
|
const result = await this.connection.get<string[]>(`users/${username}/roles/minified`)
|
|
21
41
|
return result
|
|
22
42
|
}
|
|
43
|
+
async resetPassword(username: string): Promise<model.PasswordResetResponse | model.ErrorResponse> {
|
|
44
|
+
const result = await this.connection.post<model.PasswordResetResponse>(`auth/passwordreset`, { username: username })
|
|
45
|
+
return result
|
|
46
|
+
}
|
|
47
|
+
async updateRolesetOnUser(username: string, roleset: string): Promise<model.UserRoleResponse | model.ErrorResponse> {
|
|
48
|
+
const result = await this.connection.put<model.UserRoleResponse>(`users/${username}/rolesets/${roleset}`, undefined)
|
|
49
|
+
return result
|
|
50
|
+
}
|
|
51
|
+
async updateUser(username: string, request: model.UserRequest): Promise<model.UserResponse | model.ErrorResponse> {
|
|
52
|
+
const result = await this.connection.put<model.UserResponse>(`users/${username}`, request)
|
|
53
|
+
return result
|
|
54
|
+
}
|
|
23
55
|
}
|
|
@@ -19,16 +19,40 @@ export declare class Cards extends List<model.CardResponseV2 | model.CardRespons
|
|
|
19
19
|
getCard(providerCardId: string, providerCode: model.ProviderCode): Promise<(model.ErrorResponse & {
|
|
20
20
|
status: 400 | 404 | 500 | 403 | 503;
|
|
21
21
|
}) | (Card & model.CardResponse)>;
|
|
22
|
-
|
|
22
|
+
createCard(request: model.CreateCardRequest): Promise<(model.ErrorResponse & {
|
|
23
23
|
status: 400 | 404 | 500 | 403 | 503;
|
|
24
|
-
}) | model.
|
|
24
|
+
}) | (Card & model.CardResponse)>;
|
|
25
|
+
cancelCard(providerCardId: string, providerCode: model.ProviderCode): Promise<model.CardResponse | (model.ErrorResponse & {
|
|
26
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
27
|
+
})>;
|
|
28
|
+
getCardTypesV2(providerCode: model.ProviderCode): Promise<(model.ErrorResponse & {
|
|
29
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
30
|
+
}) | model.CardTypeResponseV2[]>;
|
|
31
|
+
getCardTypes(providerCode: model.ProviderCode): Promise<model.CardTypeResponse | (model.ErrorResponse & {
|
|
32
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
33
|
+
})>;
|
|
25
34
|
getFundingAccounts(searchRequest: model.FundingAccountSearchRequest): Promise<(model.ErrorResponse & {
|
|
26
35
|
status: 400 | 404 | 500 | 403 | 503;
|
|
27
36
|
}) | model.CardFundingAccountResponse[]>;
|
|
28
|
-
|
|
37
|
+
getAllFundingAccounts(providerCode: model.ProviderCode): Promise<(model.ErrorResponse & {
|
|
38
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
39
|
+
}) | model.CardFundingAccountResponse[]>;
|
|
40
|
+
getCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode): Promise<model.BookingInfoResponse | (model.ErrorResponse & {
|
|
29
41
|
status: 400 | 404 | 500 | 403 | 503;
|
|
30
42
|
})>;
|
|
31
43
|
editCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode, request: Record<string, any>): Promise<model.BookingInfoResponse | (model.ErrorResponse & {
|
|
32
44
|
status: 400 | 404 | 500 | 403 | 503;
|
|
33
45
|
})>;
|
|
46
|
+
getCardTransaction(providerCardId: string, providerCode: model.ProviderCode): Promise<(model.ErrorResponse & {
|
|
47
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
48
|
+
}) | model.CardProcessedTransaction[]>;
|
|
49
|
+
searchTransaction(accountId: number): Promise<(model.ErrorResponse & {
|
|
50
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
51
|
+
}) | model.CardTransaction[]>;
|
|
52
|
+
editSchedule(providerCardId: string, providerCode: model.ProviderCode, request: model.ScheduleEntry[]): Promise<model.CardResponse | (model.ErrorResponse & {
|
|
53
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
54
|
+
})>;
|
|
55
|
+
amendExistingCard(providerCardId: string, providerCode: model.ProviderCode, request: model.AmendCardRequest): Promise<model.CardResponse | (model.ErrorResponse & {
|
|
56
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
57
|
+
})>;
|
|
34
58
|
}
|
|
@@ -35,16 +35,33 @@ export class Cards extends List {
|
|
|
35
35
|
`);
|
|
36
36
|
return model.ErrorResponse.is(result) ? result : this.mapLegacy(result);
|
|
37
37
|
}
|
|
38
|
-
async
|
|
38
|
+
async createCard(request) {
|
|
39
|
+
const result = await this.connection.post(`cards/virtual`, request);
|
|
40
|
+
return model.ErrorResponse.is(result) ? result : this.mapLegacy(result);
|
|
41
|
+
}
|
|
42
|
+
async cancelCard(providerCardId, providerCode) {
|
|
43
|
+
const result = await this.connection.remove(`cards/virtual/${providerCode}/${providerCardId}/cancel`);
|
|
44
|
+
return result;
|
|
45
|
+
}
|
|
46
|
+
async getCardTypesV2(providerCode) {
|
|
39
47
|
const result = await this.connection.get(`v2/cards/types/${providerCode}`);
|
|
40
48
|
return result;
|
|
41
49
|
}
|
|
50
|
+
async getCardTypes(providerCode) {
|
|
51
|
+
const result = await this.connection.get(`cards/types/${providerCode}`);
|
|
52
|
+
return result;
|
|
53
|
+
}
|
|
42
54
|
async getFundingAccounts(searchRequest) {
|
|
43
55
|
const result = await this.connection.post("funding-accounts/searches", searchRequest);
|
|
44
56
|
return result;
|
|
45
57
|
}
|
|
58
|
+
async getAllFundingAccounts(providerCode) {
|
|
59
|
+
const result = await this.connection.get(`funding-accounts?provider=${providerCode}&size=500`);
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
46
62
|
async getCardBookingInfo(providerCardId, providerCode) {
|
|
47
|
-
const result = await this.connection
|
|
63
|
+
const result = await this.connection
|
|
64
|
+
.get(`booking-info/cards/${providerCode}/${providerCardId}
|
|
48
65
|
`);
|
|
49
66
|
return result;
|
|
50
67
|
}
|
|
@@ -52,5 +69,25 @@ export class Cards extends List {
|
|
|
52
69
|
const result = await this.connection.put(`booking-info/cards/${providerCode}/${providerCardId}`, request);
|
|
53
70
|
return result;
|
|
54
71
|
}
|
|
72
|
+
async getCardTransaction(providerCardId, providerCode) {
|
|
73
|
+
const result = await this.connection.get(`cards/virtual/${providerCode}/${providerCardId}/statements`);
|
|
74
|
+
return result;
|
|
75
|
+
}
|
|
76
|
+
async searchTransaction(accountId) {
|
|
77
|
+
const result = await this.connection.post(`transactions/searches`, {
|
|
78
|
+
accountId: accountId,
|
|
79
|
+
});
|
|
80
|
+
return result;
|
|
81
|
+
}
|
|
82
|
+
async editSchedule(providerCardId, providerCode, request) {
|
|
83
|
+
const result = await this.connection.put(`cards/virtual/${providerCode}/${providerCardId}/schedule`, {
|
|
84
|
+
schedule: request,
|
|
85
|
+
});
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
async amendExistingCard(providerCardId, providerCode, request) {
|
|
89
|
+
const result = await this.connection.post(`cards/virtual/${providerCode}/${providerCardId}/amend`, request);
|
|
90
|
+
return result;
|
|
91
|
+
}
|
|
55
92
|
}
|
|
56
93
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OA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AM,IAAI,CAAC,UAAU,CAAC,GAAG,CACvC,iBAAiB,YAAY,IAAI,cAAc,WAAW,EAC1D;YACC,QAAQ,EAAE,OAAO;SACjB,CACD,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,cAAsB,EAAE,YAAgC,EAAE,OAA+B;QAChH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CACxC,iBAAiB,YAAY,IAAI,cAAc,QAAQ,EACvD,OAAO,CACP,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;CACD"}
|
|
@@ -9,5 +9,13 @@ export declare class Users extends Collection<model.UserResponse, model.UserSear
|
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}>;
|
|
11
11
|
static create(connection: Connection): Users;
|
|
12
|
+
deleteUser(username: string): Promise<model.UserResponse | model.ErrorResponse>;
|
|
13
|
+
getAllUsers(): Promise<model.UserResponse[] | model.ErrorResponse>;
|
|
14
|
+
getCategory(): Promise<string[] | model.ErrorResponse>;
|
|
15
|
+
getRolesets(): Promise<model.RolesetResponse[] | model.ErrorResponse>;
|
|
16
|
+
getUser(username: string): Promise<model.UserResponse | model.ErrorResponse>;
|
|
12
17
|
getUsersActiveRoles(username: string, token: string): Promise<string[] | model.ErrorResponse>;
|
|
18
|
+
resetPassword(username: string): Promise<model.PasswordResetResponse | model.ErrorResponse>;
|
|
19
|
+
updateRolesetOnUser(username: string, roleset: string): Promise<model.UserRoleResponse | model.ErrorResponse>;
|
|
20
|
+
updateUser(username: string, request: model.UserRequest): Promise<model.UserResponse | model.ErrorResponse>;
|
|
13
21
|
}
|
|
@@ -11,10 +11,42 @@ export class Users extends Collection {
|
|
|
11
11
|
static create(connection) {
|
|
12
12
|
return new Users(connection);
|
|
13
13
|
}
|
|
14
|
+
async deleteUser(username) {
|
|
15
|
+
const result = await this.connection.remove(`users/${username}`);
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
async getAllUsers() {
|
|
19
|
+
const result = await this.connection.get(`users?size=500`);
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
async getCategory() {
|
|
23
|
+
const result = await this.connection.get(`users/category`);
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
async getRolesets() {
|
|
27
|
+
const result = await this.connection.get(`rolesets`);
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
async getUser(username) {
|
|
31
|
+
const result = await this.connection.get(`users/${username}`);
|
|
32
|
+
return result;
|
|
33
|
+
}
|
|
14
34
|
async getUsersActiveRoles(username, token) {
|
|
15
35
|
this.connection.token = token;
|
|
16
36
|
const result = await this.connection.get(`users/${username}/roles/minified`);
|
|
17
37
|
return result;
|
|
18
38
|
}
|
|
39
|
+
async resetPassword(username) {
|
|
40
|
+
const result = await this.connection.post(`auth/passwordreset`, { username: username });
|
|
41
|
+
return result;
|
|
42
|
+
}
|
|
43
|
+
async updateRolesetOnUser(username, roleset) {
|
|
44
|
+
const result = await this.connection.put(`users/${username}/rolesets/${roleset}`, undefined);
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
async updateUser(username, request) {
|
|
48
|
+
const result = await this.connection.put(`users/${username}`, request);
|
|
49
|
+
return result;
|
|
50
|
+
}
|
|
19
51
|
}
|
|
20
52
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Users/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,KAAM,SAAQ,UAA0E;IAEpG,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,OAAO,CAAA;IAG1B,CAAC;IACS,cAAc,CAAC,QAA4B;QACpD,OAAO,IAAI,IAAI,CAAC,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E,EAAE,SAAS,CAAC,CAAA;QACpH,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,UAAU,CAAC,QAAgB,EAAE,OAA0B;QAC5D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,SAAS,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAA;QAC1F,OAAO,MAAM,CAAA;IACd,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, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth } 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, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
|
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, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, 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, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, 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, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, 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, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, YearMonth, } from "./model";
|
|
3
|
-
export { Client, AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, YearMonth, };
|
|
2
|
+
import { AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardType, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, YearMonth, } from "./model";
|
|
3
|
+
export { Client, AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardType, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, 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,yBAAyB,EACzB,eAAe,EAEf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EAGX,UAAU,EAEV,mBAAmB,EACnB,iBAAiB,EACjB,4BAA4B,EAI5B,mBAAmB,EACnB,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,
|
|
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,cAAc,EACd,WAAW,EACX,WAAW,EAGX,UAAU,EAEV,mBAAmB,EACnB,iBAAiB,EACjB,4BAA4B,EAI5B,mBAAmB,EACnB,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAI1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAEpC,QAAQ,EAKR,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EACb,4BAA4B,EAC5B,6BAA6B,EAE7B,yBAAyB,EACzB,UAAU,EACV,4BAA4B,EAE5B,wBAAwB,EAIxB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EAGT,yBAAyB,EACzB,0BAA0B,EAC1B,KAAK,EAGL,aAA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: "SUCCESS" | "FAILURE" | "TODO";
|
|
8
|
+
status: "SUCCESS" | "FAILURE" | "TODO" | "PENDING";
|
|
9
9
|
statusText?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare namespace CardDeliveryResponse {
|
|
@@ -9,7 +9,7 @@ export var CardDeliveryResponse;
|
|
|
9
9
|
isoly.Date.is(value.linkExpiry) &&
|
|
10
10
|
typeof value.sent == "string" &&
|
|
11
11
|
(typeof value.statusText == "string" || value.statusText == undefined) &&
|
|
12
|
-
(value.status == "SUCCESS" || value.status == "FAILURE" || value.status == "TODO"));
|
|
12
|
+
(value.status == "SUCCESS" || value.status == "FAILURE" || value.status == "TODO" || value.status == "PENDING"));
|
|
13
13
|
}
|
|
14
14
|
CardDeliveryResponse.is = is;
|
|
15
15
|
})(CardDeliveryResponse || (CardDeliveryResponse = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardDeliveryResponse.js","sourceRoot":"../","sources":["model/CardDeliveryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,MAAM,KAAW,oBAAoB,CAapC;AAbD,WAAiB,oBAAoB;IACpC,SAAgB,EAAE,CAAC,KAAiC;QACnD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,KAAK,CAAC,IAAI,IAAI,OAAO;YACrB,CAAC,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,CAAC;YAC5D,OAAO,KAAK,CAAC,gBAAgB,IAAI,QAAQ;YACzC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YAC/B,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,CAAC,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC,UAAU,IAAI,SAAS,CAAC;YACtE,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"CardDeliveryResponse.js","sourceRoot":"../","sources":["model/CardDeliveryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,MAAM,KAAW,oBAAoB,CAapC;AAbD,WAAiB,oBAAoB;IACpC,SAAgB,EAAE,CAAC,KAAiC;QACnD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,KAAK,CAAC,IAAI,IAAI,OAAO;YACrB,CAAC,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,CAAC;YAC5D,OAAO,KAAK,CAAC,gBAAgB,IAAI,QAAQ;YACzC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YAC/B,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,CAAC,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC,UAAU,IAAI,SAAS,CAAC;YACtE,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,MAAM,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC,CAC/G,CAAA;IACF,CAAC;IAXe,uBAAE,KAWjB,CAAA;AACF,CAAC,EAbgB,oBAAoB,KAApB,oBAAoB,QAapC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as isoly from "isoly";
|
|
2
|
+
import { ProviderCode } from "./ProviderCode";
|
|
3
|
+
import { TransactionStatus } from "./TransactionStatus";
|
|
4
|
+
import { TransactionType } from "./TransactionType";
|
|
5
|
+
export interface CardProcessedTransaction {
|
|
6
|
+
timestamp: isoly.DateTime;
|
|
7
|
+
provider: ProviderCode;
|
|
8
|
+
description: string;
|
|
9
|
+
type: TransactionType;
|
|
10
|
+
reference?: string;
|
|
11
|
+
status?: TransactionStatus;
|
|
12
|
+
balance?: number;
|
|
13
|
+
fundsChanged?: number;
|
|
14
|
+
currency?: isoly.Currency;
|
|
15
|
+
reason?: string;
|
|
16
|
+
additionalInformation?: {
|
|
17
|
+
orderId?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardProcessedTransaction.js","sourceRoot":"../","sources":["model/CardProcessedTransaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Currency } from "isoly";
|
|
2
|
+
import * as isoly from "isoly";
|
|
3
|
+
import { BookingInfo } from "./BookingInfo";
|
|
4
|
+
import { ProviderCode } from "./ProviderCode";
|
|
5
|
+
import { TransactionType } from "./TransactionType";
|
|
6
|
+
export interface CardTransaction {
|
|
7
|
+
id: number;
|
|
8
|
+
providerTransactionId: string;
|
|
9
|
+
organisationCode: string;
|
|
10
|
+
organisationName: string;
|
|
11
|
+
transactionType: TransactionType;
|
|
12
|
+
provider: ProviderCode;
|
|
13
|
+
prvTimestamp: string;
|
|
14
|
+
associatedAccount: number;
|
|
15
|
+
issuedAmount: number;
|
|
16
|
+
issuedCurrency: Currency;
|
|
17
|
+
createdOn: string;
|
|
18
|
+
createdBy: string;
|
|
19
|
+
groupId?: number;
|
|
20
|
+
exchangeRate?: number;
|
|
21
|
+
description?: string;
|
|
22
|
+
bookingInfo?: BookingInfo;
|
|
23
|
+
friendlyName?: string;
|
|
24
|
+
expectedFundingTimestamp?: isoly.DateTime;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardTransaction.js","sourceRoot":"../","sources":["model/CardTransaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var CardType;
|
|
2
|
+
(function (CardType) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return (typeof value == "object" &&
|
|
5
|
+
typeof value.cardType == "string" &&
|
|
6
|
+
typeof value.representAs == "string" &&
|
|
7
|
+
(typeof value.cardName == "string" || value.cardName == undefined));
|
|
8
|
+
}
|
|
9
|
+
CardType.is = is;
|
|
10
|
+
})(CardType || (CardType = {}));
|
|
11
|
+
//# sourceMappingURL=CardType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardType.js","sourceRoot":"../","sources":["model/CardType.ts"],"names":[],"mappings":"AAKA,MAAM,KAAW,QAAQ,CASxB;AATD,WAAiB,QAAQ;IACxB,SAAgB,EAAE,CAAC,KAAqB;QACvC,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ;YACjC,OAAO,KAAK,CAAC,WAAW,IAAI,QAAQ;YACpC,CAAC,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,IAAI,KAAK,CAAC,QAAQ,IAAI,SAAS,CAAC,CAClE,CAAA;IACF,CAAC;IAPe,WAAE,KAOjB,CAAA;AACF,CAAC,EATgB,QAAQ,KAAR,QAAQ,QASxB"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CardType } from "./CardType";
|
|
2
2
|
export interface CardTypeResponse {
|
|
3
|
-
|
|
4
|
-
cardTypeId?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
scheme?: "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS";
|
|
7
|
-
funding?: "DEBIT" | "CREDIT" | "PREPAID";
|
|
8
|
-
currencies?: string[];
|
|
9
|
-
flags?: ("CORPORATE" | "BUSINESS" | "CONSUMER")[];
|
|
10
|
-
bins?: string[];
|
|
11
|
-
preActive?: boolean;
|
|
12
|
-
discontinued?: boolean;
|
|
3
|
+
cardTypes: CardType[];
|
|
13
4
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ProviderCode } from "./ProviderCode";
|
|
2
|
+
export interface CardTypeResponseV2 {
|
|
3
|
+
providerCode?: ProviderCode;
|
|
4
|
+
cardTypeId?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
scheme?: "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS";
|
|
7
|
+
funding?: "DEBIT" | "CREDIT" | "PREPAID";
|
|
8
|
+
currencies?: string[];
|
|
9
|
+
flags?: ("CORPORATE" | "BUSINESS" | "CONSUMER")[];
|
|
10
|
+
bins?: string[];
|
|
11
|
+
preActive?: boolean;
|
|
12
|
+
discontinued?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardTypeResponseV2.js","sourceRoot":"../","sources":["model/CardTypeResponseV2.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var FiveFieldsBookingInfoRequest;
|
|
2
|
+
(function (FiveFieldsBookingInfoRequest) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return (typeof value == "object" &&
|
|
5
|
+
(value.agentBookingReference == undefined || typeof value.agentBookingReference == "string") &&
|
|
6
|
+
(value.departureDate == undefined || typeof value.departureDate == "string") &&
|
|
7
|
+
(value.supplierBookingReference == undefined || typeof value.supplierBookingReference == "string") &&
|
|
8
|
+
(value.leadPassengerName == undefined || typeof value.leadPassengerName == "string") &&
|
|
9
|
+
(value.supplierCode == undefined || typeof value.supplierCode == "string"));
|
|
10
|
+
}
|
|
11
|
+
FiveFieldsBookingInfoRequest.is = is;
|
|
12
|
+
})(FiveFieldsBookingInfoRequest || (FiveFieldsBookingInfoRequest = {}));
|
|
2
13
|
//# sourceMappingURL=FiveFieldsBookingInfoRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiveFieldsBookingInfoRequest.js","sourceRoot":"../","sources":["model/FiveFieldsBookingInfoRequest.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"FiveFieldsBookingInfoRequest.js","sourceRoot":"../","sources":["model/FiveFieldsBookingInfoRequest.ts"],"names":[],"mappings":"AAQA,MAAM,KAAW,4BAA4B,CAW5C;AAXD,WAAiB,4BAA4B;IAC5C,SAAgB,EAAE,CAAC,KAAyC;QAC3D,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,qBAAqB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,qBAAqB,IAAI,QAAQ,CAAC;YAC5F,CAAC,KAAK,CAAC,aAAa,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,aAAa,IAAI,QAAQ,CAAC;YAC5E,CAAC,KAAK,CAAC,wBAAwB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,wBAAwB,IAAI,QAAQ,CAAC;YAClG,CAAC,KAAK,CAAC,iBAAiB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ,CAAC;YACpF,CAAC,KAAK,CAAC,YAAY,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ,CAAC,CAC1E,CAAA;IACF,CAAC;IATe,+BAAE,KASjB,CAAA;AACF,CAAC,EAXgB,4BAA4B,KAA5B,4BAA4B,QAW5C"}
|
|
@@ -6,10 +6,10 @@ export var HotelBookingInfoRequest;
|
|
|
6
6
|
(function (HotelBookingInfoRequest) {
|
|
7
7
|
function is(value) {
|
|
8
8
|
return (typeof value == "object" &&
|
|
9
|
-
HotelInfo.is(value.hotel) &&
|
|
10
|
-
References.is(value.references) &&
|
|
11
|
-
Passengers.is(value.passengers) &&
|
|
12
|
-
isoly.DateTime.is(value.timestamp));
|
|
9
|
+
(value.hotel == undefined || HotelInfo.is(value.hotel)) &&
|
|
10
|
+
(value.references == undefined || References.is(value.references)) &&
|
|
11
|
+
(value.passengers == undefined || Passengers.is(value.passengers)) &&
|
|
12
|
+
(value.timestamp == undefined || isoly.DateTime.is(value.timestamp)));
|
|
13
13
|
}
|
|
14
14
|
HotelBookingInfoRequest.is = is;
|
|
15
15
|
})(HotelBookingInfoRequest || (HotelBookingInfoRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HotelBookingInfoRequest.js","sourceRoot":"../","sources":["model/HotelBookingInfoRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAUzC,MAAM,KAAW,uBAAuB,CAUvC;AAVD,WAAiB,uBAAuB;IACvC,SAAgB,EAAE,CAAC,KAAoC;QACtD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"HotelBookingInfoRequest.js","sourceRoot":"../","sources":["model/HotelBookingInfoRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAUzC,MAAM,KAAW,uBAAuB,CAUvC;AAVD,WAAiB,uBAAuB;IACvC,SAAgB,EAAE,CAAC,KAAoC;QACtD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACvD,CAAC,KAAK,CAAC,UAAU,IAAI,SAAS,IAAI,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAClE,CAAC,KAAK,CAAC,UAAU,IAAI,SAAS,IAAI,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAClE,CAAC,KAAK,CAAC,SAAS,IAAI,SAAS,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CACpE,CAAA;IACF,CAAC;IARe,0BAAE,KAQjB,CAAA;AACF,CAAC,EAVgB,uBAAuB,KAAvB,uBAAuB,QAUvC"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import * as isoly from "isoly";
|
|
2
|
+
export var InvoiceBookingInfoRequest;
|
|
3
|
+
(function (InvoiceBookingInfoRequest) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return (typeof value == "object" &&
|
|
6
|
+
(value.supplierName == undefined || typeof value.supplierName == "string") &&
|
|
7
|
+
(value.date == undefined || isoly.Date.is(value.date)) &&
|
|
8
|
+
(value.supplierReferenceNumber == undefined || typeof value.supplierReferenceNumber == "string") &&
|
|
9
|
+
(value.value == undefined || typeof value.value == "number") &&
|
|
10
|
+
(value.taxElement == undefined || typeof value.taxElement == "string"));
|
|
11
|
+
}
|
|
12
|
+
InvoiceBookingInfoRequest.is = is;
|
|
13
|
+
})(InvoiceBookingInfoRequest || (InvoiceBookingInfoRequest = {}));
|
|
2
14
|
//# sourceMappingURL=InvoiceBookingInfoRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceBookingInfoRequest.js","sourceRoot":"../","sources":["model/InvoiceBookingInfoRequest.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"InvoiceBookingInfoRequest.js","sourceRoot":"../","sources":["model/InvoiceBookingInfoRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAU9B,MAAM,KAAW,yBAAyB,CAWzC;AAXD,WAAiB,yBAAyB;IACzC,SAAgB,EAAE,CAAC,KAAsC;QACxD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,YAAY,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ,CAAC;YAC1E,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC,KAAK,CAAC,uBAAuB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,uBAAuB,IAAI,QAAQ,CAAC;YAChG,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;YAC5D,CAAC,KAAK,CAAC,UAAU,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,CAAC,CACtE,CAAA;IACF,CAAC;IATe,4BAAE,KASjB,CAAA;AACF,CAAC,EAXgB,yBAAyB,KAAzB,yBAAyB,QAWzC"}
|