@tammsyr/admin-api-client 1.0.0
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/ActivityLogs.ts +41 -0
- package/Admins.ts +154 -0
- package/AgentBranches.ts +152 -0
- package/AgentSettlements.ts +204 -0
- package/Agents.ts +359 -0
- package/Auth.ts +100 -0
- package/Kyc.ts +107 -0
- package/Notifications.ts +101 -0
- package/Permissions.ts +130 -0
- package/README.md +150 -0
- package/Roles.ts +199 -0
- package/Seed.ts +48 -0
- package/data-contracts.ts +1283 -0
- package/http-client.ts +186 -0
- package/index.ts +157 -0
- package/package.json +56 -0
package/ActivityLogs.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { FindAllOutput1, FindAllParams6 } from "./data-contracts";
|
|
14
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
15
|
+
|
|
16
|
+
export class ActivityLogs<SecurityDataType = unknown> {
|
|
17
|
+
http: HttpClient<SecurityDataType>;
|
|
18
|
+
|
|
19
|
+
constructor(http: HttpClient<SecurityDataType>) {
|
|
20
|
+
this.http = http;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @description Get a paginated list of admin activity logs with filtering
|
|
25
|
+
*
|
|
26
|
+
* @tags Admin Activity Logs
|
|
27
|
+
* @name FindAll
|
|
28
|
+
* @summary List activity logs
|
|
29
|
+
* @request GET:/activity-logs
|
|
30
|
+
* @secure
|
|
31
|
+
*/
|
|
32
|
+
findAll = (query: FindAllParams6, params: RequestParams = {}) =>
|
|
33
|
+
this.http.request<FindAllOutput1, any>({
|
|
34
|
+
path: `/activity-logs`,
|
|
35
|
+
method: "GET",
|
|
36
|
+
query: query,
|
|
37
|
+
secure: true,
|
|
38
|
+
format: "json",
|
|
39
|
+
...params,
|
|
40
|
+
});
|
|
41
|
+
}
|
package/Admins.ts
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
CreateAdminDto,
|
|
15
|
+
CreateOutput,
|
|
16
|
+
DeleteOutput,
|
|
17
|
+
DeleteParams4,
|
|
18
|
+
FindAllOutput,
|
|
19
|
+
FindAllParams4,
|
|
20
|
+
FindByIdOutput,
|
|
21
|
+
FindByIdParams4,
|
|
22
|
+
UpdateAdminDto,
|
|
23
|
+
UpdateAdminStatusDto,
|
|
24
|
+
UpdateOutput,
|
|
25
|
+
UpdateParams4,
|
|
26
|
+
UpdateStatusData,
|
|
27
|
+
UpdateStatusParams,
|
|
28
|
+
} from "./data-contracts";
|
|
29
|
+
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
|
30
|
+
|
|
31
|
+
export class Admins<SecurityDataType = unknown> {
|
|
32
|
+
http: HttpClient<SecurityDataType>;
|
|
33
|
+
|
|
34
|
+
constructor(http: HttpClient<SecurityDataType>) {
|
|
35
|
+
this.http = http;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @description Get a paginated list of all admin users
|
|
40
|
+
*
|
|
41
|
+
* @tags Admin Users
|
|
42
|
+
* @name FindAll
|
|
43
|
+
* @summary List all admin users
|
|
44
|
+
* @request GET:/admins
|
|
45
|
+
* @secure
|
|
46
|
+
*/
|
|
47
|
+
findAll = (query: FindAllParams4, params: RequestParams = {}) =>
|
|
48
|
+
this.http.request<FindAllOutput, any>({
|
|
49
|
+
path: `/admins`,
|
|
50
|
+
method: "GET",
|
|
51
|
+
query: query,
|
|
52
|
+
secure: true,
|
|
53
|
+
format: "json",
|
|
54
|
+
...params,
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* @description Create a new admin user
|
|
58
|
+
*
|
|
59
|
+
* @tags Admin Users
|
|
60
|
+
* @name Create
|
|
61
|
+
* @summary Create admin user
|
|
62
|
+
* @request POST:/admins
|
|
63
|
+
* @secure
|
|
64
|
+
*/
|
|
65
|
+
create = (data: CreateAdminDto, params: RequestParams = {}) =>
|
|
66
|
+
this.http.request<CreateOutput, void>({
|
|
67
|
+
path: `/admins`,
|
|
68
|
+
method: "POST",
|
|
69
|
+
body: data,
|
|
70
|
+
secure: true,
|
|
71
|
+
type: ContentType.Json,
|
|
72
|
+
format: "json",
|
|
73
|
+
...params,
|
|
74
|
+
});
|
|
75
|
+
/**
|
|
76
|
+
* @description Get a specific admin user by their ID with permissions
|
|
77
|
+
*
|
|
78
|
+
* @tags Admin Users
|
|
79
|
+
* @name FindById
|
|
80
|
+
* @summary Get admin user by ID
|
|
81
|
+
* @request GET:/admins/{id}
|
|
82
|
+
* @secure
|
|
83
|
+
*/
|
|
84
|
+
findById = ({ id, ...query }: FindByIdParams4, params: RequestParams = {}) =>
|
|
85
|
+
this.http.request<FindByIdOutput, void>({
|
|
86
|
+
path: `/admins/${id}`,
|
|
87
|
+
method: "GET",
|
|
88
|
+
secure: true,
|
|
89
|
+
format: "json",
|
|
90
|
+
...params,
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* @description Update an existing admin user
|
|
94
|
+
*
|
|
95
|
+
* @tags Admin Users
|
|
96
|
+
* @name Update
|
|
97
|
+
* @summary Update admin user
|
|
98
|
+
* @request PATCH:/admins/{id}
|
|
99
|
+
* @secure
|
|
100
|
+
*/
|
|
101
|
+
update = (
|
|
102
|
+
{ id, ...query }: UpdateParams4,
|
|
103
|
+
data: UpdateAdminDto,
|
|
104
|
+
params: RequestParams = {},
|
|
105
|
+
) =>
|
|
106
|
+
this.http.request<UpdateOutput, void>({
|
|
107
|
+
path: `/admins/${id}`,
|
|
108
|
+
method: "PATCH",
|
|
109
|
+
body: data,
|
|
110
|
+
secure: true,
|
|
111
|
+
type: ContentType.Json,
|
|
112
|
+
format: "json",
|
|
113
|
+
...params,
|
|
114
|
+
});
|
|
115
|
+
/**
|
|
116
|
+
* @description Delete an admin user (super_admin users cannot be deleted)
|
|
117
|
+
*
|
|
118
|
+
* @tags Admin Users
|
|
119
|
+
* @name Delete
|
|
120
|
+
* @summary Delete admin user
|
|
121
|
+
* @request DELETE:/admins/{id}
|
|
122
|
+
* @secure
|
|
123
|
+
*/
|
|
124
|
+
delete = ({ id, ...query }: DeleteParams4, params: RequestParams = {}) =>
|
|
125
|
+
this.http.request<DeleteOutput, void>({
|
|
126
|
+
path: `/admins/${id}`,
|
|
127
|
+
method: "DELETE",
|
|
128
|
+
secure: true,
|
|
129
|
+
...params,
|
|
130
|
+
});
|
|
131
|
+
/**
|
|
132
|
+
* @description Activate or suspend an admin user
|
|
133
|
+
*
|
|
134
|
+
* @tags Admin Users
|
|
135
|
+
* @name UpdateStatus
|
|
136
|
+
* @summary Update admin status
|
|
137
|
+
* @request PATCH:/admins/{id}/status
|
|
138
|
+
* @secure
|
|
139
|
+
*/
|
|
140
|
+
updateStatus = (
|
|
141
|
+
{ id, ...query }: UpdateStatusParams,
|
|
142
|
+
data: UpdateAdminStatusDto,
|
|
143
|
+
params: RequestParams = {},
|
|
144
|
+
) =>
|
|
145
|
+
this.http.request<UpdateStatusData, void>({
|
|
146
|
+
path: `/admins/${id}/status`,
|
|
147
|
+
method: "PATCH",
|
|
148
|
+
body: data,
|
|
149
|
+
secure: true,
|
|
150
|
+
type: ContentType.Json,
|
|
151
|
+
format: "json",
|
|
152
|
+
...params,
|
|
153
|
+
});
|
|
154
|
+
}
|
package/AgentBranches.ts
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
CreateBranchData,
|
|
15
|
+
CreateBranchDto,
|
|
16
|
+
DeleteBranchData,
|
|
17
|
+
DeleteBranchParams,
|
|
18
|
+
GetBranchData,
|
|
19
|
+
GetBranchParams,
|
|
20
|
+
ListBranchesData,
|
|
21
|
+
ListBranchesParams,
|
|
22
|
+
UpdateBranchData,
|
|
23
|
+
UpdateBranchDto,
|
|
24
|
+
UpdateBranchParams,
|
|
25
|
+
UpdateBranchStatusData,
|
|
26
|
+
UpdateBranchStatusDto,
|
|
27
|
+
UpdateBranchStatusParams,
|
|
28
|
+
} from "./data-contracts";
|
|
29
|
+
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
|
30
|
+
|
|
31
|
+
export class AgentBranches<SecurityDataType = unknown> {
|
|
32
|
+
http: HttpClient<SecurityDataType>;
|
|
33
|
+
|
|
34
|
+
constructor(http: HttpClient<SecurityDataType>) {
|
|
35
|
+
this.http = http;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* No description
|
|
40
|
+
*
|
|
41
|
+
* @tags Admin Agent Branches
|
|
42
|
+
* @name ListBranches
|
|
43
|
+
* @summary List all branches
|
|
44
|
+
* @request GET:/agent-branches
|
|
45
|
+
* @secure
|
|
46
|
+
*/
|
|
47
|
+
listBranches = (query: ListBranchesParams, params: RequestParams = {}) =>
|
|
48
|
+
this.http.request<ListBranchesData, any>({
|
|
49
|
+
path: `/agent-branches`,
|
|
50
|
+
method: "GET",
|
|
51
|
+
query: query,
|
|
52
|
+
secure: true,
|
|
53
|
+
...params,
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* No description
|
|
57
|
+
*
|
|
58
|
+
* @tags Admin Agent Branches
|
|
59
|
+
* @name CreateBranch
|
|
60
|
+
* @summary Create a new branch
|
|
61
|
+
* @request POST:/agent-branches
|
|
62
|
+
* @secure
|
|
63
|
+
*/
|
|
64
|
+
createBranch = (data: CreateBranchDto, params: RequestParams = {}) =>
|
|
65
|
+
this.http.request<CreateBranchData, any>({
|
|
66
|
+
path: `/agent-branches`,
|
|
67
|
+
method: "POST",
|
|
68
|
+
body: data,
|
|
69
|
+
secure: true,
|
|
70
|
+
type: ContentType.Json,
|
|
71
|
+
...params,
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* No description
|
|
75
|
+
*
|
|
76
|
+
* @tags Admin Agent Branches
|
|
77
|
+
* @name GetBranch
|
|
78
|
+
* @summary Get branch by ID
|
|
79
|
+
* @request GET:/agent-branches/{id}
|
|
80
|
+
* @secure
|
|
81
|
+
*/
|
|
82
|
+
getBranch = ({ id, ...query }: GetBranchParams, params: RequestParams = {}) =>
|
|
83
|
+
this.http.request<GetBranchData, any>({
|
|
84
|
+
path: `/agent-branches/${id}`,
|
|
85
|
+
method: "GET",
|
|
86
|
+
secure: true,
|
|
87
|
+
...params,
|
|
88
|
+
});
|
|
89
|
+
/**
|
|
90
|
+
* No description
|
|
91
|
+
*
|
|
92
|
+
* @tags Admin Agent Branches
|
|
93
|
+
* @name UpdateBranch
|
|
94
|
+
* @summary Update a branch
|
|
95
|
+
* @request PATCH:/agent-branches/{id}
|
|
96
|
+
* @secure
|
|
97
|
+
*/
|
|
98
|
+
updateBranch = (
|
|
99
|
+
{ id, ...query }: UpdateBranchParams,
|
|
100
|
+
data: UpdateBranchDto,
|
|
101
|
+
params: RequestParams = {},
|
|
102
|
+
) =>
|
|
103
|
+
this.http.request<UpdateBranchData, any>({
|
|
104
|
+
path: `/agent-branches/${id}`,
|
|
105
|
+
method: "PATCH",
|
|
106
|
+
body: data,
|
|
107
|
+
secure: true,
|
|
108
|
+
type: ContentType.Json,
|
|
109
|
+
...params,
|
|
110
|
+
});
|
|
111
|
+
/**
|
|
112
|
+
* No description
|
|
113
|
+
*
|
|
114
|
+
* @tags Admin Agent Branches
|
|
115
|
+
* @name DeleteBranch
|
|
116
|
+
* @summary Delete a branch
|
|
117
|
+
* @request DELETE:/agent-branches/{id}
|
|
118
|
+
* @secure
|
|
119
|
+
*/
|
|
120
|
+
deleteBranch = (
|
|
121
|
+
{ id, ...query }: DeleteBranchParams,
|
|
122
|
+
params: RequestParams = {},
|
|
123
|
+
) =>
|
|
124
|
+
this.http.request<DeleteBranchData, any>({
|
|
125
|
+
path: `/agent-branches/${id}`,
|
|
126
|
+
method: "DELETE",
|
|
127
|
+
secure: true,
|
|
128
|
+
...params,
|
|
129
|
+
});
|
|
130
|
+
/**
|
|
131
|
+
* No description
|
|
132
|
+
*
|
|
133
|
+
* @tags Admin Agent Branches
|
|
134
|
+
* @name UpdateBranchStatus
|
|
135
|
+
* @summary Update branch status
|
|
136
|
+
* @request PATCH:/agent-branches/{id}/status
|
|
137
|
+
* @secure
|
|
138
|
+
*/
|
|
139
|
+
updateBranchStatus = (
|
|
140
|
+
{ id, ...query }: UpdateBranchStatusParams,
|
|
141
|
+
data: UpdateBranchStatusDto,
|
|
142
|
+
params: RequestParams = {},
|
|
143
|
+
) =>
|
|
144
|
+
this.http.request<UpdateBranchStatusData, any>({
|
|
145
|
+
path: `/agent-branches/${id}/status`,
|
|
146
|
+
method: "PATCH",
|
|
147
|
+
body: data,
|
|
148
|
+
secure: true,
|
|
149
|
+
type: ContentType.Json,
|
|
150
|
+
...params,
|
|
151
|
+
});
|
|
152
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
AddAdjustmentDto,
|
|
15
|
+
AddSettlementAdjustmentData,
|
|
16
|
+
AddSettlementAdjustmentParams,
|
|
17
|
+
ApproveAdjustmentData,
|
|
18
|
+
ApproveAdjustmentParams,
|
|
19
|
+
CreateSettlementData,
|
|
20
|
+
CreateSettlementDto,
|
|
21
|
+
GetSettlementAdjustmentsData,
|
|
22
|
+
GetSettlementAdjustmentsParams,
|
|
23
|
+
GetSettlementData,
|
|
24
|
+
GetSettlementParams,
|
|
25
|
+
ListSettlementsData,
|
|
26
|
+
ListSettlementsParams,
|
|
27
|
+
UpdateSettlementAmountsData,
|
|
28
|
+
UpdateSettlementAmountsDto,
|
|
29
|
+
UpdateSettlementAmountsParams,
|
|
30
|
+
UpdateSettlementStatusData,
|
|
31
|
+
UpdateSettlementStatusDto,
|
|
32
|
+
UpdateSettlementStatusParams,
|
|
33
|
+
} from "./data-contracts";
|
|
34
|
+
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
|
35
|
+
|
|
36
|
+
export class AgentSettlements<SecurityDataType = unknown> {
|
|
37
|
+
http: HttpClient<SecurityDataType>;
|
|
38
|
+
|
|
39
|
+
constructor(http: HttpClient<SecurityDataType>) {
|
|
40
|
+
this.http = http;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* No description
|
|
45
|
+
*
|
|
46
|
+
* @tags Admin Agent Settlements
|
|
47
|
+
* @name ListSettlements
|
|
48
|
+
* @summary List all settlements
|
|
49
|
+
* @request GET:/agent-settlements
|
|
50
|
+
* @secure
|
|
51
|
+
*/
|
|
52
|
+
listSettlements = (
|
|
53
|
+
query: ListSettlementsParams,
|
|
54
|
+
params: RequestParams = {},
|
|
55
|
+
) =>
|
|
56
|
+
this.http.request<ListSettlementsData, any>({
|
|
57
|
+
path: `/agent-settlements`,
|
|
58
|
+
method: "GET",
|
|
59
|
+
query: query,
|
|
60
|
+
secure: true,
|
|
61
|
+
...params,
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* No description
|
|
65
|
+
*
|
|
66
|
+
* @tags Admin Agent Settlements
|
|
67
|
+
* @name CreateSettlement
|
|
68
|
+
* @summary Create a new settlement
|
|
69
|
+
* @request POST:/agent-settlements
|
|
70
|
+
* @secure
|
|
71
|
+
*/
|
|
72
|
+
createSettlement = (data: CreateSettlementDto, params: RequestParams = {}) =>
|
|
73
|
+
this.http.request<CreateSettlementData, any>({
|
|
74
|
+
path: `/agent-settlements`,
|
|
75
|
+
method: "POST",
|
|
76
|
+
body: data,
|
|
77
|
+
secure: true,
|
|
78
|
+
type: ContentType.Json,
|
|
79
|
+
...params,
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* No description
|
|
83
|
+
*
|
|
84
|
+
* @tags Admin Agent Settlements
|
|
85
|
+
* @name GetSettlement
|
|
86
|
+
* @summary Get settlement by ID
|
|
87
|
+
* @request GET:/agent-settlements/{id}
|
|
88
|
+
* @secure
|
|
89
|
+
*/
|
|
90
|
+
getSettlement = (
|
|
91
|
+
{ id, ...query }: GetSettlementParams,
|
|
92
|
+
params: RequestParams = {},
|
|
93
|
+
) =>
|
|
94
|
+
this.http.request<GetSettlementData, any>({
|
|
95
|
+
path: `/agent-settlements/${id}`,
|
|
96
|
+
method: "GET",
|
|
97
|
+
secure: true,
|
|
98
|
+
...params,
|
|
99
|
+
});
|
|
100
|
+
/**
|
|
101
|
+
* No description
|
|
102
|
+
*
|
|
103
|
+
* @tags Admin Agent Settlements
|
|
104
|
+
* @name UpdateSettlementStatus
|
|
105
|
+
* @summary Update settlement status
|
|
106
|
+
* @request PATCH:/agent-settlements/{id}/status
|
|
107
|
+
* @secure
|
|
108
|
+
*/
|
|
109
|
+
updateSettlementStatus = (
|
|
110
|
+
{ id, ...query }: UpdateSettlementStatusParams,
|
|
111
|
+
data: UpdateSettlementStatusDto,
|
|
112
|
+
params: RequestParams = {},
|
|
113
|
+
) =>
|
|
114
|
+
this.http.request<UpdateSettlementStatusData, any>({
|
|
115
|
+
path: `/agent-settlements/${id}/status`,
|
|
116
|
+
method: "PATCH",
|
|
117
|
+
body: data,
|
|
118
|
+
secure: true,
|
|
119
|
+
type: ContentType.Json,
|
|
120
|
+
...params,
|
|
121
|
+
});
|
|
122
|
+
/**
|
|
123
|
+
* No description
|
|
124
|
+
*
|
|
125
|
+
* @tags Admin Agent Settlements
|
|
126
|
+
* @name UpdateSettlementAmounts
|
|
127
|
+
* @summary Update settlement amounts
|
|
128
|
+
* @request PATCH:/agent-settlements/{id}/amounts
|
|
129
|
+
* @secure
|
|
130
|
+
*/
|
|
131
|
+
updateSettlementAmounts = (
|
|
132
|
+
{ id, ...query }: UpdateSettlementAmountsParams,
|
|
133
|
+
data: UpdateSettlementAmountsDto,
|
|
134
|
+
params: RequestParams = {},
|
|
135
|
+
) =>
|
|
136
|
+
this.http.request<UpdateSettlementAmountsData, any>({
|
|
137
|
+
path: `/agent-settlements/${id}/amounts`,
|
|
138
|
+
method: "PATCH",
|
|
139
|
+
body: data,
|
|
140
|
+
secure: true,
|
|
141
|
+
type: ContentType.Json,
|
|
142
|
+
...params,
|
|
143
|
+
});
|
|
144
|
+
/**
|
|
145
|
+
* No description
|
|
146
|
+
*
|
|
147
|
+
* @tags Admin Agent Settlements
|
|
148
|
+
* @name GetSettlementAdjustments
|
|
149
|
+
* @summary Get settlement adjustments
|
|
150
|
+
* @request GET:/agent-settlements/{id}/adjustments
|
|
151
|
+
* @secure
|
|
152
|
+
*/
|
|
153
|
+
getSettlementAdjustments = (
|
|
154
|
+
{ id, ...query }: GetSettlementAdjustmentsParams,
|
|
155
|
+
params: RequestParams = {},
|
|
156
|
+
) =>
|
|
157
|
+
this.http.request<GetSettlementAdjustmentsData, any>({
|
|
158
|
+
path: `/agent-settlements/${id}/adjustments`,
|
|
159
|
+
method: "GET",
|
|
160
|
+
secure: true,
|
|
161
|
+
...params,
|
|
162
|
+
});
|
|
163
|
+
/**
|
|
164
|
+
* No description
|
|
165
|
+
*
|
|
166
|
+
* @tags Admin Agent Settlements
|
|
167
|
+
* @name AddSettlementAdjustment
|
|
168
|
+
* @summary Add adjustment to settlement
|
|
169
|
+
* @request POST:/agent-settlements/{id}/adjustments
|
|
170
|
+
* @secure
|
|
171
|
+
*/
|
|
172
|
+
addSettlementAdjustment = (
|
|
173
|
+
{ id, ...query }: AddSettlementAdjustmentParams,
|
|
174
|
+
data: AddAdjustmentDto,
|
|
175
|
+
params: RequestParams = {},
|
|
176
|
+
) =>
|
|
177
|
+
this.http.request<AddSettlementAdjustmentData, any>({
|
|
178
|
+
path: `/agent-settlements/${id}/adjustments`,
|
|
179
|
+
method: "POST",
|
|
180
|
+
body: data,
|
|
181
|
+
secure: true,
|
|
182
|
+
type: ContentType.Json,
|
|
183
|
+
...params,
|
|
184
|
+
});
|
|
185
|
+
/**
|
|
186
|
+
* No description
|
|
187
|
+
*
|
|
188
|
+
* @tags Admin Agent Settlements
|
|
189
|
+
* @name ApproveAdjustment
|
|
190
|
+
* @summary Approve settlement adjustment
|
|
191
|
+
* @request POST:/agent-settlements/adjustments/{adjustmentId}/approve
|
|
192
|
+
* @secure
|
|
193
|
+
*/
|
|
194
|
+
approveAdjustment = (
|
|
195
|
+
{ adjustmentId, ...query }: ApproveAdjustmentParams,
|
|
196
|
+
params: RequestParams = {},
|
|
197
|
+
) =>
|
|
198
|
+
this.http.request<ApproveAdjustmentData, any>({
|
|
199
|
+
path: `/agent-settlements/adjustments/${adjustmentId}/approve`,
|
|
200
|
+
method: "POST",
|
|
201
|
+
secure: true,
|
|
202
|
+
...params,
|
|
203
|
+
});
|
|
204
|
+
}
|