@vality/swag-wallets 0.1.3 → 0.1.4-7137795.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.
Files changed (69) hide show
  1. package/README.md +73 -124
  2. package/api/api.d.ts +1 -7
  3. package/api/deposits.service.d.ts +0 -109
  4. package/api/reports.service.d.ts +0 -6
  5. package/api/wallets.service.d.ts +28 -52
  6. package/api/webhooks.service.d.ts +6 -6
  7. package/api/withdrawals.service.d.ts +0 -36
  8. package/api.base.service.d.ts +11 -2
  9. package/configuration.d.ts +1 -1
  10. package/fesm2022/vality-swag-wallets.mjs +285 -1158
  11. package/fesm2022/vality-swag-wallets.mjs.map +1 -1
  12. package/index.d.ts +1 -0
  13. package/model/badRequest.d.ts +11 -11
  14. package/model/{depositAdjustmentFailure.d.ts → cashLimitBound.d.ts} +6 -7
  15. package/model/deposit.d.ts +4 -4
  16. package/model/depositStatus.d.ts +4 -4
  17. package/model/destination.d.ts +10 -14
  18. package/model/destinationAuthData.d.ts +2 -2
  19. package/model/destinationResource.d.ts +4 -4
  20. package/model/destinationsTopic.d.ts +4 -4
  21. package/model/models.d.ts +3 -24
  22. package/model/quoteParameters.d.ts +2 -2
  23. package/model/receiverResource.d.ts +2 -2
  24. package/model/receiverResourceParams.d.ts +2 -2
  25. package/model/report.d.ts +6 -6
  26. package/model/reportParams.d.ts +2 -2
  27. package/model/senderResource.d.ts +2 -2
  28. package/model/senderResourceParams.d.ts +2 -2
  29. package/model/userInteractionChange.d.ts +3 -3
  30. package/model/wallet.d.ts +2 -14
  31. package/model/{w2WTransferParametersBody.d.ts → walletCashLimit.d.ts} +6 -8
  32. package/model/webhook.d.ts +2 -2
  33. package/model/webhookScope.d.ts +3 -3
  34. package/model/withdrawal.d.ts +10 -4
  35. package/model/withdrawalAllOfContactInfo.d.ts +22 -0
  36. package/model/withdrawalEventChange.d.ts +2 -2
  37. package/model/withdrawalMethod.d.ts +4 -4
  38. package/model/withdrawalParameters.d.ts +10 -12
  39. package/model/withdrawalQuoteParams.d.ts +4 -8
  40. package/model/withdrawalStatus.d.ts +4 -4
  41. package/model/withdrawalStatusChanged.d.ts +4 -4
  42. package/model/withdrawalsTopic.d.ts +4 -4
  43. package/package.json +2 -2
  44. package/provide-api.d.ts +3 -0
  45. package/api/identities.service.d.ts +0 -134
  46. package/api/providers.service.d.ts +0 -70
  47. package/api/w2W.service.d.ts +0 -71
  48. package/model/depositAdjustment.d.ts +0 -40
  49. package/model/depositAdjustmentStatus.d.ts +0 -25
  50. package/model/depositAdjustmentStatusFailure.d.ts +0 -20
  51. package/model/depositRevert.d.ts +0 -51
  52. package/model/depositRevertAllOfBody.d.ts +0 -22
  53. package/model/depositRevertFailure.d.ts +0 -17
  54. package/model/depositRevertStatus.d.ts +0 -25
  55. package/model/depositRevertStatusFailure.d.ts +0 -20
  56. package/model/destinationGrantRequest.d.ts +0 -22
  57. package/model/destinationStatus.d.ts +0 -26
  58. package/model/identity.d.ts +0 -46
  59. package/model/listDepositAdjustments200Response.d.ts +0 -20
  60. package/model/listDepositReverts200Response.d.ts +0 -20
  61. package/model/listIdentities200Response.d.ts +0 -20
  62. package/model/provider.d.ts +0 -26
  63. package/model/w2WTransfer.d.ts +0 -38
  64. package/model/w2WTransferFailure.d.ts +0 -20
  65. package/model/w2WTransferParameters.d.ts +0 -28
  66. package/model/w2WTransferStatus.d.ts +0 -25
  67. package/model/w2WTransferStatusFailure.d.ts +0 -20
  68. package/model/walletGrantRequest.d.ts +0 -24
  69. package/model/walletGrantRequestAsset.d.ts +0 -22
package/README.md CHANGED
@@ -58,157 +58,106 @@ Published packages are not effected by this issue.
58
58
  In your Angular project:
59
59
 
60
60
  ```typescript
61
- // without configuring providers
62
- import { ApiModule } from '@vality/swag-wallets';
63
- import { HttpClientModule } from '@angular/common/http';
64
-
65
- @NgModule({
66
- imports: [
67
- ApiModule,
68
- // make sure to import the HttpClientModule in the AppModule only,
69
- // see https://github.com/angular/angular/issues/20575
70
- HttpClientModule
71
- ],
72
- declarations: [ AppComponent ],
73
- providers: [],
74
- bootstrap: [ AppComponent ]
75
- })
76
- export class AppModule {}
77
- ```
78
61
 
79
- ```typescript
80
- // configuring providers
81
- import { ApiModule, Configuration, ConfigurationParameters } from '@vality/swag-wallets';
82
-
83
- export function apiConfigFactory (): Configuration {
84
- const params: ConfigurationParameters = {
85
- // set configuration parameters here.
86
- }
87
- return new Configuration(params);
88
- }
89
-
90
- @NgModule({
91
- imports: [ ApiModule.forRoot(apiConfigFactory) ],
92
- declarations: [ AppComponent ],
93
- providers: [],
94
- bootstrap: [ AppComponent ]
95
- })
96
- export class AppModule {}
97
- ```
62
+ import { ApplicationConfig } from '@angular/core';
63
+ import { provideHttpClient } from '@angular/common/http';
64
+ import { provideApi } from '@vality/swag-wallets';
98
65
 
99
- ```typescript
100
- // configuring providers with an authentication service that manages your access tokens
101
- import { ApiModule, Configuration } from '@vality/swag-wallets';
102
-
103
- @NgModule({
104
- imports: [ ApiModule ],
105
- declarations: [ AppComponent ],
66
+ export const appConfig: ApplicationConfig = {
106
67
  providers: [
107
- {
108
- provide: Configuration,
109
- useFactory: (authService: AuthService) => new Configuration(
110
- {
111
- basePath: environment.apiUrl,
112
- accessToken: authService.getAccessToken.bind(authService)
113
- }
114
- ),
115
- deps: [AuthService],
116
- multi: false
117
- }
68
+ // ...
69
+ provideHttpClient(),
70
+ provideApi()
118
71
  ],
119
- bootstrap: [ AppComponent ]
120
- })
121
- export class AppModule {}
72
+ };
122
73
  ```
123
74
 
75
+ **NOTE**
76
+ If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
124
77
  ```typescript
125
- import { DefaultApi } from '@vality/swag-wallets';
126
-
127
- export class AppComponent {
128
- constructor(private apiGateway: DefaultApi) { }
129
- }
78
+ import { ApiModule } from '@vality/swag-wallets';
130
79
  ```
131
80
 
132
- Note: The ApiModule is restricted to being instantiated once app wide.
133
- This is to ensure that all services are treated as singletons.
134
-
135
- ### Using multiple OpenAPI files / APIs / ApiModules
136
-
137
- In order to use multiple `ApiModules` generated from different OpenAPI files,
138
- you can create an alias name when importing the modules
139
- in order to avoid naming conflicts:
81
+ If different from the generated base path, during app bootstrap, you can provide the base path to your service.
140
82
 
141
83
  ```typescript
142
- import { ApiModule } from 'my-api-path';
143
- import { ApiModule as OtherApiModule } from 'my-other-api-path';
144
- import { HttpClientModule } from '@angular/common/http';
145
-
146
- @NgModule({
147
- imports: [
148
- ApiModule,
149
- OtherApiModule,
150
- // make sure to import the HttpClientModule in the AppModule only,
151
- // see https://github.com/angular/angular/issues/20575
152
- HttpClientModule
153
- ]
154
- })
155
- export class AppModule {
84
+ import { ApplicationConfig } from '@angular/core';
85
+ import { provideHttpClient } from '@angular/common/http';
86
+ import { provideApi } from '@vality/swag-wallets';
156
87
 
157
- }
88
+ export const appConfig: ApplicationConfig = {
89
+ providers: [
90
+ // ...
91
+ provideHttpClient(),
92
+ provideApi('http://localhost:9999')
93
+ ],
94
+ };
158
95
  ```
159
96
 
160
- ### Set service base path
161
-
162
- If different than the generated base path, during app bootstrap, you can provide the base path to your service.
163
-
164
97
  ```typescript
165
- import { BASE_PATH } from '@vality/swag-wallets';
98
+ // with a custom configuration
99
+ import { ApplicationConfig } from '@angular/core';
100
+ import { provideHttpClient } from '@angular/common/http';
101
+ import { provideApi } from '@vality/swag-wallets';
166
102
 
167
- bootstrap(AppComponent, [
168
- { provide: BASE_PATH, useValue: 'https://your-web-service.com' },
169
- ]);
103
+ export const appConfig: ApplicationConfig = {
104
+ providers: [
105
+ // ...
106
+ provideHttpClient(),
107
+ provideApi({
108
+ withCredentials: true,
109
+ username: 'user',
110
+ password: 'password'
111
+ })
112
+ ],
113
+ };
170
114
  ```
171
115
 
172
- or
173
-
174
116
  ```typescript
175
- import { BASE_PATH } from '@vality/swag-wallets';
176
-
177
- @NgModule({
178
- imports: [],
179
- declarations: [ AppComponent ],
180
- providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],
181
- bootstrap: [ AppComponent ]
182
- })
183
- export class AppModule {}
184
- ```
185
-
186
- ### Using @angular/cli
187
-
188
- First extend your `src/environments/*.ts` files by adding the corresponding base path:
117
+ // with factory building a custom configuration
118
+ import { ApplicationConfig } from '@angular/core';
119
+ import { provideHttpClient } from '@angular/common/http';
120
+ import { provideApi, Configuration } from '@vality/swag-wallets';
189
121
 
190
- ```typescript
191
- export const environment = {
192
- production: false,
193
- API_BASE_PATH: 'http://127.0.0.1:8080'
122
+ export const appConfig: ApplicationConfig = {
123
+ providers: [
124
+ // ...
125
+ provideHttpClient(),
126
+ {
127
+ provide: Configuration,
128
+ useFactory: (authService: AuthService) => new Configuration({
129
+ basePath: 'http://localhost:9999',
130
+ withCredentials: true,
131
+ username: authService.getUsername(),
132
+ password: authService.getPassword(),
133
+ }),
134
+ deps: [AuthService],
135
+ multi: false
136
+ }
137
+ ],
194
138
  };
195
139
  ```
196
140
 
197
- In the src/app/app.module.ts:
141
+ ### Using multiple OpenAPI files / APIs
142
+
143
+ In order to use multiple APIs generated from different OpenAPI files,
144
+ you can create an alias name when importing the modules
145
+ in order to avoid naming conflicts:
198
146
 
199
147
  ```typescript
200
- import { BASE_PATH } from '@vality/swag-wallets';
148
+ import { provideApi as provideUserApi } from 'my-user-api-path';
149
+ import { provideApi as provideAdminApi } from 'my-admin-api-path';
150
+ import { HttpClientModule } from '@angular/common/http';
201
151
  import { environment } from '../environments/environment';
202
152
 
203
- @NgModule({
204
- declarations: [
205
- AppComponent
206
- ],
207
- imports: [ ],
208
- providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],
209
- bootstrap: [ AppComponent ]
210
- })
211
- export class AppModule { }
153
+ export const appConfig: ApplicationConfig = {
154
+ providers: [
155
+ // ...
156
+ provideHttpClient(),
157
+ provideUserApi(environment.basePath),
158
+ provideAdminApi(environment.basePath),
159
+ ],
160
+ };
212
161
  ```
213
162
 
214
163
  ### Customizing path parameter encoding
package/api/api.d.ts CHANGED
@@ -4,20 +4,14 @@ export * from './deposits.service';
4
4
  import { DepositsService } from './deposits.service';
5
5
  export * from './downloads.service';
6
6
  import { DownloadsService } from './downloads.service';
7
- export * from './identities.service';
8
- import { IdentitiesService } from './identities.service';
9
- export * from './providers.service';
10
- import { ProvidersService } from './providers.service';
11
7
  export * from './reports.service';
12
8
  import { ReportsService } from './reports.service';
13
9
  export * from './residences.service';
14
10
  import { ResidencesService } from './residences.service';
15
- export * from './w2W.service';
16
- import { W2WService } from './w2W.service';
17
11
  export * from './wallets.service';
18
12
  import { WalletsService } from './wallets.service';
19
13
  export * from './webhooks.service';
20
14
  import { WebhooksService } from './webhooks.service';
21
15
  export * from './withdrawals.service';
22
16
  import { WithdrawalsService } from './withdrawals.service';
23
- export declare const APIS: (typeof CurrenciesService | typeof DepositsService | typeof DownloadsService | typeof IdentitiesService | typeof ProvidersService | typeof ReportsService | typeof ResidencesService | typeof W2WService | typeof WalletsService | typeof WebhooksService | typeof WithdrawalsService)[];
17
+ export declare const APIS: (typeof CurrenciesService | typeof DepositsService | typeof DownloadsService | typeof ReportsService | typeof ResidencesService | typeof WalletsService | typeof WebhooksService | typeof WithdrawalsService)[];
@@ -1,73 +1,9 @@
1
1
  import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { ListDepositAdjustments200Response } from '../model/listDepositAdjustments200Response';
4
- import { ListDepositReverts200Response } from '../model/listDepositReverts200Response';
5
3
  import { ListDeposits200Response } from '../model/listDeposits200Response';
6
4
  import { Configuration } from '../configuration';
7
5
  import { BaseService } from '../api.base.service';
8
6
  import * as i0 from "@angular/core";
9
- export interface ListDepositAdjustmentsRequestParams {
10
- /** Unique identifier of the request to the system */
11
- xRequestID: string;
12
- /** Selection limit */
13
- limit: number;
14
- /** Maximum request processing time */
15
- xRequestDeadline?: string;
16
- /** The participant\'s unique identifier within the system. */
17
- partyID?: string;
18
- /** Wallet identifier */
19
- walletID?: string;
20
- /** Identifier of the owner\'s identity */
21
- identityID?: string;
22
- /** Identifier of the input of funds */
23
- depositID?: string;
24
- /** Identifier of the fund source */
25
- sourceID?: string;
26
- status?: 'Pending' | 'Succeeded' | 'Failed';
27
- /** Creation date from */
28
- createdAtFrom?: string;
29
- /** Creation date to */
30
- createdAtTo?: string;
31
- /** Amount of monetary funds in minor units */
32
- amountFrom?: number;
33
- /** Amount of monetary funds in minor units */
34
- amountTo?: number;
35
- /** Currency, character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm). */
36
- currencyID?: string;
37
- /** A token signalling that only part of the data has been transmitted in the response. To retrieve the next part, you need repeat the request to the service again, specifying the same set of conditions and the received token. If there is no token, the last piece of data is received. */
38
- continuationToken?: string;
39
- }
40
- export interface ListDepositRevertsRequestParams {
41
- /** Unique identifier of the request to the system */
42
- xRequestID: string;
43
- /** Selection limit */
44
- limit: number;
45
- /** Maximum request processing time */
46
- xRequestDeadline?: string;
47
- /** The participant\'s unique identifier within the system. */
48
- partyID?: string;
49
- /** Identifier of the wallet */
50
- walletID?: string;
51
- /** Identifier of the owner\'s identity */
52
- identityID?: string;
53
- /** Identifier of the input of funds */
54
- depositID?: string;
55
- /** Identifier of the source of funds */
56
- sourceID?: string;
57
- status?: 'Pending' | 'Succeeded' | 'Failed';
58
- /** Creation date from */
59
- createdAtFrom?: string;
60
- /** Creation date to */
61
- createdAtTo?: string;
62
- /** Amount of monetary funds in minor units */
63
- amountFrom?: number;
64
- /** Amount of monetary funds in minor units */
65
- amountTo?: number;
66
- /** Currency, character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm). */
67
- currencyID?: string;
68
- /** A token signalling that only part of the data has been transmitted in the response. To retrieve the next part, you need repeat the request to the service again, specifying the same set of conditions and the received token. If there is no token, the last piece of data is received. */
69
- continuationToken?: string;
70
- }
71
7
  export interface ListDepositsRequestParams {
72
8
  /** Unique identifier of the request to the system */
73
9
  xRequestID: string;
@@ -79,8 +15,6 @@ export interface ListDepositsRequestParams {
79
15
  partyID?: string;
80
16
  /** Identifier of the wallet */
81
17
  walletID?: string;
82
- /** Identifier of the owner\'s identity */
83
- identityID?: string;
84
18
  /** Identifier of the deposit */
85
19
  depositID?: string;
86
20
  /** Identifier of the funds source */
@@ -90,7 +24,6 @@ export interface ListDepositsRequestParams {
90
24
  createdAtFrom?: string;
91
25
  /** Creation date to */
92
26
  createdAtTo?: string;
93
- revertStatus?: 'None' | 'Partial' | 'Full';
94
27
  /** Amount of monetary funds in minor units */
95
28
  amountFrom?: number;
96
29
  /** Amount of monetary funds in minor units */
@@ -103,48 +36,6 @@ export interface ListDepositsRequestParams {
103
36
  export declare class DepositsService extends BaseService {
104
37
  protected httpClient: HttpClient;
105
38
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
106
- /**
107
- * Finding adjustments
108
- * @param requestParameters
109
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
110
- * @param reportProgress flag to report request and response progress.
111
- */
112
- listDepositAdjustments(requestParameters: ListDepositAdjustmentsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
113
- httpHeaderAccept?: 'application/json; charset=utf-8';
114
- context?: HttpContext;
115
- transferCache?: boolean;
116
- }): Observable<ListDepositAdjustments200Response>;
117
- listDepositAdjustments(requestParameters: ListDepositAdjustmentsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
118
- httpHeaderAccept?: 'application/json; charset=utf-8';
119
- context?: HttpContext;
120
- transferCache?: boolean;
121
- }): Observable<HttpResponse<ListDepositAdjustments200Response>>;
122
- listDepositAdjustments(requestParameters: ListDepositAdjustmentsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
123
- httpHeaderAccept?: 'application/json; charset=utf-8';
124
- context?: HttpContext;
125
- transferCache?: boolean;
126
- }): Observable<HttpEvent<ListDepositAdjustments200Response>>;
127
- /**
128
- * Search for reverts
129
- * @param requestParameters
130
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
131
- * @param reportProgress flag to report request and response progress.
132
- */
133
- listDepositReverts(requestParameters: ListDepositRevertsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
134
- httpHeaderAccept?: 'application/json; charset=utf-8';
135
- context?: HttpContext;
136
- transferCache?: boolean;
137
- }): Observable<ListDepositReverts200Response>;
138
- listDepositReverts(requestParameters: ListDepositRevertsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
139
- httpHeaderAccept?: 'application/json; charset=utf-8';
140
- context?: HttpContext;
141
- transferCache?: boolean;
142
- }): Observable<HttpResponse<ListDepositReverts200Response>>;
143
- listDepositReverts(requestParameters: ListDepositRevertsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
144
- httpHeaderAccept?: 'application/json; charset=utf-8';
145
- context?: HttpContext;
146
- transferCache?: boolean;
147
- }): Observable<HttpEvent<ListDepositReverts200Response>>;
148
39
  /**
149
40
  * Search for deposits
150
41
  * @param requestParameters
@@ -8,8 +8,6 @@ import * as i0 from "@angular/core";
8
8
  export interface CreateReportRequestParams {
9
9
  /** Unique identifier of the request to the system */
10
10
  xRequestID: string;
11
- /** Identifier of the owner\&#39;s identity */
12
- identityID: string;
13
11
  /** Report generation options */
14
12
  reportParams: ReportParams;
15
13
  /** Maximum request processing time */
@@ -20,8 +18,6 @@ export interface CreateReportRequestParams {
20
18
  export interface GetReportRequestParams {
21
19
  /** Unique identifier of the request to the system */
22
20
  xRequestID: string;
23
- /** Identifier of the owner\&#39;s identity */
24
- identityID: string;
25
21
  /** The report identifier */
26
22
  reportID: number;
27
23
  /** Maximum request processing time */
@@ -32,8 +28,6 @@ export interface GetReportRequestParams {
32
28
  export interface GetReportsRequestParams {
33
29
  /** Unique identifier of the request to the system */
34
30
  xRequestID: string;
35
- /** Identifier of the owner\&#39;s identity */
36
- identityID: string;
37
31
  /** Start of the time period */
38
32
  fromTime: string;
39
33
  /** End of the time period */
@@ -1,20 +1,13 @@
1
1
  import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
+ import { GetWithdrawalMethods200Response } from '../model/getWithdrawalMethods200Response';
3
4
  import { ListWallets200Response } from '../model/listWallets200Response';
4
5
  import { Wallet } from '../model/wallet';
5
6
  import { WalletAccount } from '../model/walletAccount';
6
- import { WalletGrantRequest } from '../model/walletGrantRequest';
7
+ import { WalletCashLimit } from '../model/walletCashLimit';
7
8
  import { Configuration } from '../configuration';
8
9
  import { BaseService } from '../api.base.service';
9
10
  import * as i0 from "@angular/core";
10
- export interface CreateWalletRequestParams {
11
- /** Unique identifier of the request to the system */
12
- xRequestID: string;
13
- /** Data of the created wallet */
14
- wallet: Wallet;
15
- /** Maximum request processing time */
16
- xRequestDeadline?: string;
17
- }
18
11
  export interface GetWalletRequestParams {
19
12
  /** Unique identifier of the request to the system */
20
13
  xRequestID: string;
@@ -22,6 +15,8 @@ export interface GetWalletRequestParams {
22
15
  walletID: string;
23
16
  /** Maximum request processing time */
24
17
  xRequestDeadline?: string;
18
+ /** The participant\&#39;s unique identifier within the system. */
19
+ partyID?: string;
25
20
  }
26
21
  export interface GetWalletAccountRequestParams {
27
22
  /** Unique identifier of the request to the system */
@@ -30,24 +25,28 @@ export interface GetWalletAccountRequestParams {
30
25
  walletID: string;
31
26
  /** Maximum request processing time */
32
27
  xRequestDeadline?: string;
28
+ /** The participant\&#39;s unique identifier within the system. */
29
+ partyID?: string;
33
30
  }
34
- export interface GetWalletByExternalIDRequestParams {
31
+ export interface GetWalletCashLimitsRequestParams {
35
32
  /** Unique identifier of the request to the system */
36
33
  xRequestID: string;
37
- /** External wallet identifier */
38
- externalID: string;
34
+ /** Identifier of the wallet */
35
+ walletID: string;
39
36
  /** Maximum request processing time */
40
37
  xRequestDeadline?: string;
38
+ /** The participant\&#39;s unique identifier within the system. */
39
+ partyID?: string;
41
40
  }
42
- export interface IssueWalletGrantRequestParams {
41
+ export interface GetWithdrawalMethodsRequestParams {
43
42
  /** Unique identifier of the request to the system */
44
43
  xRequestID: string;
45
44
  /** Identifier of the wallet */
46
45
  walletID: string;
47
- /** Request for the right to manage funds on the wallet */
48
- request: WalletGrantRequest;
49
46
  /** Maximum request processing time */
50
47
  xRequestDeadline?: string;
48
+ /** The participant\&#39;s unique identifier within the system. */
49
+ partyID?: string;
51
50
  }
52
51
  export interface ListWalletsRequestParams {
53
52
  /** Unique identifier of the request to the system */
@@ -58,8 +57,6 @@ export interface ListWalletsRequestParams {
58
57
  xRequestDeadline?: string;
59
58
  /** The participant\&#39;s unique identifier within the system. */
60
59
  partyID?: string;
61
- /** Identifier of owner\&#39;s identity */
62
- identityID?: string;
63
60
  /** Currency, character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm). */
64
61
  currencyID?: string;
65
62
  /** A token signalling that only part of the data has been transmitted in the response. To retrieve the next part, you need repeat the request to the service again, specifying the same set of conditions and the received token. If there is no token, the last piece of data is received. */
@@ -68,27 +65,6 @@ export interface ListWalletsRequestParams {
68
65
  export declare class WalletsService extends BaseService {
69
66
  protected httpClient: HttpClient;
70
67
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
71
- /**
72
- * Create a new wallet
73
- * @param requestParameters
74
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
75
- * @param reportProgress flag to report request and response progress.
76
- */
77
- createWallet(requestParameters: CreateWalletRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
78
- httpHeaderAccept?: 'application/json; charset=utf-8';
79
- context?: HttpContext;
80
- transferCache?: boolean;
81
- }): Observable<Wallet>;
82
- createWallet(requestParameters: CreateWalletRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
83
- httpHeaderAccept?: 'application/json; charset=utf-8';
84
- context?: HttpContext;
85
- transferCache?: boolean;
86
- }): Observable<HttpResponse<Wallet>>;
87
- createWallet(requestParameters: CreateWalletRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
88
- httpHeaderAccept?: 'application/json; charset=utf-8';
89
- context?: HttpContext;
90
- transferCache?: boolean;
91
- }): Observable<HttpEvent<Wallet>>;
92
68
  /**
93
69
  * Get wallet data
94
70
  * @param requestParameters
@@ -132,47 +108,47 @@ export declare class WalletsService extends BaseService {
132
108
  transferCache?: boolean;
133
109
  }): Observable<HttpEvent<WalletAccount>>;
134
110
  /**
135
- * Get wallet by specified external identifier
111
+ * Get wallet cash limits
136
112
  * @param requestParameters
137
113
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
138
114
  * @param reportProgress flag to report request and response progress.
139
115
  */
140
- getWalletByExternalID(requestParameters: GetWalletByExternalIDRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
116
+ getWalletCashLimits(requestParameters: GetWalletCashLimitsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
141
117
  httpHeaderAccept?: 'application/json; charset=utf-8';
142
118
  context?: HttpContext;
143
119
  transferCache?: boolean;
144
- }): Observable<Wallet>;
145
- getWalletByExternalID(requestParameters: GetWalletByExternalIDRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
120
+ }): Observable<Array<WalletCashLimit>>;
121
+ getWalletCashLimits(requestParameters: GetWalletCashLimitsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
146
122
  httpHeaderAccept?: 'application/json; charset=utf-8';
147
123
  context?: HttpContext;
148
124
  transferCache?: boolean;
149
- }): Observable<HttpResponse<Wallet>>;
150
- getWalletByExternalID(requestParameters: GetWalletByExternalIDRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
125
+ }): Observable<HttpResponse<Array<WalletCashLimit>>>;
126
+ getWalletCashLimits(requestParameters: GetWalletCashLimitsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
151
127
  httpHeaderAccept?: 'application/json; charset=utf-8';
152
128
  context?: HttpContext;
153
129
  transferCache?: boolean;
154
- }): Observable<HttpEvent<Wallet>>;
130
+ }): Observable<HttpEvent<Array<WalletCashLimit>>>;
155
131
  /**
156
- * Grant the right to manage funds
132
+ * Get withdrawal methods available for wallet
157
133
  * @param requestParameters
158
134
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
159
135
  * @param reportProgress flag to report request and response progress.
160
136
  */
161
- issueWalletGrant(requestParameters: IssueWalletGrantRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
137
+ getWithdrawalMethods(requestParameters: GetWithdrawalMethodsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
162
138
  httpHeaderAccept?: 'application/json; charset=utf-8';
163
139
  context?: HttpContext;
164
140
  transferCache?: boolean;
165
- }): Observable<WalletGrantRequest>;
166
- issueWalletGrant(requestParameters: IssueWalletGrantRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
141
+ }): Observable<GetWithdrawalMethods200Response>;
142
+ getWithdrawalMethods(requestParameters: GetWithdrawalMethodsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
167
143
  httpHeaderAccept?: 'application/json; charset=utf-8';
168
144
  context?: HttpContext;
169
145
  transferCache?: boolean;
170
- }): Observable<HttpResponse<WalletGrantRequest>>;
171
- issueWalletGrant(requestParameters: IssueWalletGrantRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
146
+ }): Observable<HttpResponse<GetWithdrawalMethods200Response>>;
147
+ getWithdrawalMethods(requestParameters: GetWithdrawalMethodsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
172
148
  httpHeaderAccept?: 'application/json; charset=utf-8';
173
149
  context?: HttpContext;
174
150
  transferCache?: boolean;
175
- }): Observable<HttpEvent<WalletGrantRequest>>;
151
+ }): Observable<HttpEvent<GetWithdrawalMethods200Response>>;
176
152
  /**
177
153
  * List the wallets
178
154
  * @param requestParameters
@@ -17,28 +17,28 @@ export interface DeleteWebhookByIDRequestParams {
17
17
  xRequestID: string;
18
18
  /** Webhook identifier */
19
19
  webhookID: string;
20
- /** Identifier of the owner\&#39;s identity */
21
- identityID: string;
22
20
  /** Maximum request processing time */
23
21
  xRequestDeadline?: string;
22
+ /** The participant\&#39;s unique identifier within the system. */
23
+ partyID?: string;
24
24
  }
25
25
  export interface GetWebhookByIDRequestParams {
26
26
  /** Unique identifier of the request to the system */
27
27
  xRequestID: string;
28
28
  /** Webhook identifier */
29
29
  webhookID: string;
30
- /** Identifier of the owner\&#39;s identity */
31
- identityID: string;
32
30
  /** Maximum request processing time */
33
31
  xRequestDeadline?: string;
32
+ /** The participant\&#39;s unique identifier within the system. */
33
+ partyID?: string;
34
34
  }
35
35
  export interface GetWebhooksRequestParams {
36
36
  /** Unique identifier of the request to the system */
37
37
  xRequestID: string;
38
- /** Identifier of the owner\&#39;s identity */
39
- identityID: string;
40
38
  /** Maximum request processing time */
41
39
  xRequestDeadline?: string;
40
+ /** The participant\&#39;s unique identifier within the system. */
41
+ partyID?: string;
42
42
  }
43
43
  export declare class WebhooksService extends BaseService {
44
44
  protected httpClient: HttpClient;