reach-api-sdk 1.0.225 → 1.0.228
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/README.md +49 -7
- package/dist/reach-sdk.d.ts +159 -7
- package/dist/reach-sdk.js +42 -2
- package/package.json +5 -1
- package/scripts/sync-swagger.mjs +33 -0
- package/src/definition/swagger.yaml +238 -1
- package/src/index.ts +3 -0
- package/src/models/AttendeePost.ts +17 -0
- package/src/models/DatabaseState.ts +4 -0
- package/src/models/TenantSetting.ts +5 -0
- package/src/models/Wallet.ts +10 -0
- package/src/models/WalletCreditPeriod.ts +59 -0
- package/src/models/WalletCreditPeriodReassessPost.ts +22 -0
- package/src/models/WalletCreditPeriodStatus.ts +12 -0
- package/src/services/UsersService.ts +36 -0
- package/src/services/WalletsService.ts +35 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
|
|
6
6
|
import type { Wallet } from '../models/Wallet';
|
|
7
|
+
import type { WalletCreditPeriodReassessPost } from '../models/WalletCreditPeriodReassessPost';
|
|
7
8
|
import type { WalletPage } from '../models/WalletPage';
|
|
8
9
|
import type { WalletPatch } from '../models/WalletPatch';
|
|
9
10
|
import type { WalletPost } from '../models/WalletPost';
|
|
@@ -71,6 +72,40 @@ export class WalletsService {
|
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Reassesses the active credit period for a wallet and sets balance to the new allocation.
|
|
77
|
+
* @returns Wallet OK
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
public reassessCreditPeriod({
|
|
81
|
+
id,
|
|
82
|
+
requestBody,
|
|
83
|
+
}: {
|
|
84
|
+
/**
|
|
85
|
+
* The wallet id.
|
|
86
|
+
*/
|
|
87
|
+
id: string;
|
|
88
|
+
/**
|
|
89
|
+
* The reassessment request.
|
|
90
|
+
*/
|
|
91
|
+
requestBody?: WalletCreditPeriodReassessPost;
|
|
92
|
+
}): CancelablePromise<Wallet> {
|
|
93
|
+
return this.httpRequest.request({
|
|
94
|
+
method: 'POST',
|
|
95
|
+
url: '/api/wallets/{id}/credit-periods/reassess',
|
|
96
|
+
path: {
|
|
97
|
+
id: id,
|
|
98
|
+
},
|
|
99
|
+
body: requestBody,
|
|
100
|
+
mediaType: 'application/json',
|
|
101
|
+
errors: {
|
|
102
|
+
400: `Bad Request`,
|
|
103
|
+
422: `Unprocessable Content`,
|
|
104
|
+
500: `Internal Server Error`,
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
74
109
|
/**
|
|
75
110
|
* Gets the transaction history for a wallet.
|
|
76
111
|
* @returns WalletTransaction OK
|