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.
@@ -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