@wix/auto_sdk_benefit-programs_balances 1.0.8 → 1.0.9
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/build/{internal/cjs/src/benefit-programs-v1-balance-balances.universal.d.ts → benefit-programs-v1-balance-balances.universal-qcbBfXdg.d.mts} +66 -169
- package/build/{cjs/src/benefit-programs-v1-balance-balances.universal.d.ts → benefit-programs-v1-balance-balances.universal-qcbBfXdg.d.ts} +66 -169
- package/build/index.d.mts +72 -0
- package/build/index.d.ts +72 -0
- package/build/index.js +573 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +538 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/benefit-programs-v1-balance-balances.universal.d.ts → internal/benefit-programs-v1-balance-balances.universal-qcbBfXdg.d.mts} +66 -169
- package/build/internal/{es/src/benefit-programs-v1-balance-balances.universal.d.ts → benefit-programs-v1-balance-balances.universal-qcbBfXdg.d.ts} +66 -169
- package/build/internal/index.d.mts +72 -0
- package/build/internal/index.d.ts +72 -0
- package/build/internal/index.js +573 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +538 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +431 -0
- package/build/internal/meta.d.ts +431 -0
- package/build/internal/meta.js +391 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +360 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +431 -0
- package/build/meta.d.ts +431 -0
- package/build/meta.js +391 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +360 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.context.d.ts +0 -9
- package/build/cjs/src/benefit-programs-v1-balance-balances.context.js +0 -19
- package/build/cjs/src/benefit-programs-v1-balance-balances.context.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.http.d.ts +0 -34
- package/build/cjs/src/benefit-programs-v1-balance-balances.http.js +0 -296
- package/build/cjs/src/benefit-programs-v1-balance-balances.http.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.meta.d.ts +0 -23
- package/build/cjs/src/benefit-programs-v1-balance-balances.meta.js +0 -123
- package/build/cjs/src/benefit-programs-v1-balance-balances.meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.public.d.ts +0 -66
- package/build/cjs/src/benefit-programs-v1-balance-balances.public.js +0 -44
- package/build/cjs/src/benefit-programs-v1-balance-balances.public.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.types.d.ts +0 -719
- package/build/cjs/src/benefit-programs-v1-balance-balances.types.js +0 -63
- package/build/cjs/src/benefit-programs-v1-balance-balances.types.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.universal.js +0 -345
- package/build/cjs/src/benefit-programs-v1-balance-balances.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/benefit-programs-v1-balance-balances.context.d.ts +0 -9
- package/build/es/src/benefit-programs-v1-balance-balances.context.js +0 -9
- package/build/es/src/benefit-programs-v1-balance-balances.context.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.http.d.ts +0 -34
- package/build/es/src/benefit-programs-v1-balance-balances.http.js +0 -288
- package/build/es/src/benefit-programs-v1-balance-balances.http.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.meta.d.ts +0 -23
- package/build/es/src/benefit-programs-v1-balance-balances.meta.js +0 -92
- package/build/es/src/benefit-programs-v1-balance-balances.meta.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.public.d.ts +0 -66
- package/build/es/src/benefit-programs-v1-balance-balances.public.js +0 -29
- package/build/es/src/benefit-programs-v1-balance-balances.public.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.types.d.ts +0 -719
- package/build/es/src/benefit-programs-v1-balance-balances.types.js +0 -60
- package/build/es/src/benefit-programs-v1-balance-balances.types.js.map +0 -1
- package/build/es/src/benefit-programs-v1-balance-balances.universal.js +0 -314
- package/build/es/src/benefit-programs-v1-balance-balances.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.context.d.ts +0 -9
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.context.js +0 -19
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.context.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.http.d.ts +0 -34
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.http.js +0 -296
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.http.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.meta.d.ts +0 -23
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.meta.js +0 -123
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.public.d.ts +0 -66
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.public.js +0 -44
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.public.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.types.d.ts +0 -719
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.types.js +0 -63
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.types.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.universal.js +0 -345
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.context.d.ts +0 -9
- package/build/internal/es/src/benefit-programs-v1-balance-balances.context.js +0 -9
- package/build/internal/es/src/benefit-programs-v1-balance-balances.context.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.http.d.ts +0 -34
- package/build/internal/es/src/benefit-programs-v1-balance-balances.http.js +0 -288
- package/build/internal/es/src/benefit-programs-v1-balance-balances.http.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.meta.d.ts +0 -23
- package/build/internal/es/src/benefit-programs-v1-balance-balances.meta.js +0 -92
- package/build/internal/es/src/benefit-programs-v1-balance-balances.meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.public.d.ts +0 -66
- package/build/internal/es/src/benefit-programs-v1-balance-balances.public.js +0 -29
- package/build/internal/es/src/benefit-programs-v1-balance-balances.public.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.types.d.ts +0 -719
- package/build/internal/es/src/benefit-programs-v1-balance-balances.types.js +0 -60
- package/build/internal/es/src/benefit-programs-v1-balance-balances.types.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.universal.js +0 -314
- package/build/internal/es/src/benefit-programs-v1-balance-balances.universal.js.map +0 -1
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import { G as GetBalanceRequest$1, k as GetBalanceResponse$1, l as ListBalancesRequest$1, a as ListBalancesResponse$1, Q as QueryBalancesRequest$1, s as QueryBalancesResponse$1, t as BalanceChangeBalanceRequest$1, c as ChangeBalanceResponse$1, U as RevertBalanceChangeRequest$1, d as RevertBalanceChangeResponse$1 } from './benefit-programs-v1-balance-balances.universal-qcbBfXdg.mjs';
|
|
2
|
+
|
|
3
|
+
interface Balance {
|
|
4
|
+
/**
|
|
5
|
+
* Balance ID. This is the same as the associated pool's ID.
|
|
6
|
+
* @format GUID
|
|
7
|
+
* @immutable
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Revision number, which increments by 1 each time the balance is updated.
|
|
13
|
+
* To prevent conflicting changes, the current revision must be passed when updating the balance.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
revision?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Date and time the balance was created.
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
createdDate?: Date | null;
|
|
22
|
+
/**
|
|
23
|
+
* Date and time the balance was updated.
|
|
24
|
+
* @readonly
|
|
25
|
+
*/
|
|
26
|
+
updatedDate?: Date | null;
|
|
27
|
+
/**
|
|
28
|
+
* Beneficiary of the associated pool.
|
|
29
|
+
* @readonly
|
|
30
|
+
* @immutable
|
|
31
|
+
*/
|
|
32
|
+
beneficiary?: CommonIdentificationData;
|
|
33
|
+
/**
|
|
34
|
+
* Available credits.
|
|
35
|
+
* @readonly
|
|
36
|
+
*/
|
|
37
|
+
amount?: BalanceAmount;
|
|
38
|
+
/**
|
|
39
|
+
* Associated pool information.
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
poolInfo?: PoolInfo;
|
|
43
|
+
/**
|
|
44
|
+
* Custom field data for the balance object.
|
|
45
|
+
* [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
|
|
46
|
+
*/
|
|
47
|
+
extendedFields?: ExtendedFields;
|
|
48
|
+
/**
|
|
49
|
+
* ID of the transaction associated with the most recent change to the balance.
|
|
50
|
+
* @format GUID
|
|
51
|
+
* @readonly
|
|
52
|
+
*/
|
|
53
|
+
lastTransactionId?: string | null;
|
|
54
|
+
}
|
|
55
|
+
interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
56
|
+
/**
|
|
57
|
+
* ID of a site visitor that hasn't logged in to the site.
|
|
58
|
+
* @format GUID
|
|
59
|
+
*/
|
|
60
|
+
anonymousVisitorId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* ID of a site member.
|
|
63
|
+
* @format GUID
|
|
64
|
+
*/
|
|
65
|
+
memberId?: string;
|
|
66
|
+
/**
|
|
67
|
+
* ID of a Wix user.
|
|
68
|
+
* @format GUID
|
|
69
|
+
*/
|
|
70
|
+
wixUserId?: string;
|
|
71
|
+
}
|
|
72
|
+
/** @oneof */
|
|
73
|
+
interface CommonIdentificationDataIdOneOf {
|
|
74
|
+
/**
|
|
75
|
+
* ID of a site visitor that hasn't logged in to the site.
|
|
76
|
+
* @format GUID
|
|
77
|
+
*/
|
|
78
|
+
anonymousVisitorId?: string;
|
|
79
|
+
/**
|
|
80
|
+
* ID of a site member.
|
|
81
|
+
* @format GUID
|
|
82
|
+
*/
|
|
83
|
+
memberId?: string;
|
|
84
|
+
/**
|
|
85
|
+
* ID of a Wix user.
|
|
86
|
+
* @format GUID
|
|
87
|
+
*/
|
|
88
|
+
wixUserId?: string;
|
|
89
|
+
}
|
|
90
|
+
interface BalanceAmount {
|
|
91
|
+
/**
|
|
92
|
+
* number of available credits.
|
|
93
|
+
* @decimalValue options { maxScale:4 }
|
|
94
|
+
* @readonly
|
|
95
|
+
*/
|
|
96
|
+
available?: string;
|
|
97
|
+
}
|
|
98
|
+
interface PoolInfo {
|
|
99
|
+
/**
|
|
100
|
+
* Pool ID.
|
|
101
|
+
* @format GUID
|
|
102
|
+
* @readonly
|
|
103
|
+
*/
|
|
104
|
+
id?: string;
|
|
105
|
+
/**
|
|
106
|
+
* ID of the pool definition the pool was created from.
|
|
107
|
+
* @format GUID
|
|
108
|
+
* @readonly
|
|
109
|
+
*/
|
|
110
|
+
poolDefinitionId?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* ID of the program definition the pool was created from.
|
|
113
|
+
* @format GUID
|
|
114
|
+
* @readonly
|
|
115
|
+
*/
|
|
116
|
+
programDefinitionId?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* ID of the program that contains the pool.
|
|
119
|
+
* @format GUID
|
|
120
|
+
* @readonly
|
|
121
|
+
*/
|
|
122
|
+
programId?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Available credits.
|
|
125
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
126
|
+
*/
|
|
127
|
+
creditAmount?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
130
|
+
* @minLength 1
|
|
131
|
+
* @maxLength 50
|
|
132
|
+
*/
|
|
133
|
+
namespace?: string | null;
|
|
134
|
+
}
|
|
135
|
+
interface ExtendedFields {
|
|
136
|
+
/**
|
|
137
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
138
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
139
|
+
*
|
|
140
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
141
|
+
*
|
|
142
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
143
|
+
*/
|
|
144
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
145
|
+
}
|
|
146
|
+
interface GetBalanceRequest {
|
|
147
|
+
/**
|
|
148
|
+
* ID of the pool associated with the balance to retrieve. This is also the ID of the balance.
|
|
149
|
+
* @format GUID
|
|
150
|
+
*/
|
|
151
|
+
poolId: string;
|
|
152
|
+
}
|
|
153
|
+
interface GetBalanceResponse {
|
|
154
|
+
/** Retrieved balance. */
|
|
155
|
+
balance?: Balance;
|
|
156
|
+
}
|
|
157
|
+
interface ListBalancesRequest {
|
|
158
|
+
/**
|
|
159
|
+
* List of IDs of the pools associated with the balances to retrieve. These are also the IDs of the balances.
|
|
160
|
+
* @format GUID
|
|
161
|
+
* @maxSize 100
|
|
162
|
+
*/
|
|
163
|
+
poolIds?: string[];
|
|
164
|
+
/** Cursor paging. */
|
|
165
|
+
cursorPaging?: CursorPaging;
|
|
166
|
+
}
|
|
167
|
+
interface CursorPaging {
|
|
168
|
+
/**
|
|
169
|
+
* Maximum number of items to return.
|
|
170
|
+
* @max 100
|
|
171
|
+
*/
|
|
172
|
+
limit?: number | null;
|
|
173
|
+
/**
|
|
174
|
+
* Pointer to the next or previous page in the list of results.
|
|
175
|
+
*
|
|
176
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
177
|
+
* Not relevant for the first request.
|
|
178
|
+
* @maxLength 16000
|
|
179
|
+
*/
|
|
180
|
+
cursor?: string | null;
|
|
181
|
+
}
|
|
182
|
+
interface ListBalancesResponse {
|
|
183
|
+
/**
|
|
184
|
+
* Retrieved balances.
|
|
185
|
+
* @maxSize 100
|
|
186
|
+
*/
|
|
187
|
+
balances?: Balance[];
|
|
188
|
+
/** Metadata for paginated results. */
|
|
189
|
+
metadata?: CursorPagingMetadata;
|
|
190
|
+
}
|
|
191
|
+
interface CursorPagingMetadata {
|
|
192
|
+
/** Number of items returned in the response. */
|
|
193
|
+
count?: number | null;
|
|
194
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
195
|
+
cursors?: Cursors;
|
|
196
|
+
/**
|
|
197
|
+
* Whether there are more pages to retrieve following the current page.
|
|
198
|
+
*
|
|
199
|
+
* + `true`: Another page of results can be retrieved.
|
|
200
|
+
* + `false`: This is the last page.
|
|
201
|
+
*/
|
|
202
|
+
hasNext?: boolean | null;
|
|
203
|
+
}
|
|
204
|
+
interface Cursors {
|
|
205
|
+
/**
|
|
206
|
+
* Cursor string pointing to the next page in the list of results.
|
|
207
|
+
* @maxLength 16000
|
|
208
|
+
*/
|
|
209
|
+
next?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* Cursor pointing to the previous page in the list of results.
|
|
212
|
+
* @maxLength 16000
|
|
213
|
+
*/
|
|
214
|
+
prev?: string | null;
|
|
215
|
+
}
|
|
216
|
+
interface QueryBalancesRequest {
|
|
217
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
218
|
+
query?: CursorQuery;
|
|
219
|
+
}
|
|
220
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
221
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
222
|
+
cursorPaging?: CursorPaging;
|
|
223
|
+
/**
|
|
224
|
+
* Filter object.
|
|
225
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
226
|
+
* for more information.
|
|
227
|
+
*/
|
|
228
|
+
filter?: Record<string, any> | null;
|
|
229
|
+
/**
|
|
230
|
+
* List of sort objects.
|
|
231
|
+
* @maxSize 5
|
|
232
|
+
*/
|
|
233
|
+
sort?: Sorting[];
|
|
234
|
+
}
|
|
235
|
+
/** @oneof */
|
|
236
|
+
interface CursorQueryPagingMethodOneOf {
|
|
237
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
238
|
+
cursorPaging?: CursorPaging;
|
|
239
|
+
}
|
|
240
|
+
interface Sorting {
|
|
241
|
+
/**
|
|
242
|
+
* Field to sort by.
|
|
243
|
+
* @maxLength 512
|
|
244
|
+
*/
|
|
245
|
+
fieldName?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
248
|
+
*
|
|
249
|
+
* Default: `ASC`
|
|
250
|
+
*/
|
|
251
|
+
order?: SortOrder;
|
|
252
|
+
}
|
|
253
|
+
declare enum SortOrder {
|
|
254
|
+
/** Ascending sort order. */
|
|
255
|
+
ASC = "ASC",
|
|
256
|
+
/** Descending sort order. */
|
|
257
|
+
DESC = "DESC"
|
|
258
|
+
}
|
|
259
|
+
interface QueryBalancesResponse {
|
|
260
|
+
/** List of retrieved balances. */
|
|
261
|
+
balances?: Balance[];
|
|
262
|
+
/** Metadata for the paginated results. */
|
|
263
|
+
metadata?: CursorPagingMetadata;
|
|
264
|
+
}
|
|
265
|
+
interface BalanceChangeBalanceRequest extends BalanceChangeBalanceRequestOperationOneOf {
|
|
266
|
+
/** Adjust the balance by a specific number of credits. */
|
|
267
|
+
adjustOptions?: AdjustOptions;
|
|
268
|
+
/** Set the balance to a specific number of credits. */
|
|
269
|
+
setOptions?: SetOptions;
|
|
270
|
+
/**
|
|
271
|
+
* ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
272
|
+
* @format GUID
|
|
273
|
+
*/
|
|
274
|
+
poolId: string;
|
|
275
|
+
/**
|
|
276
|
+
* Unique identifier, generated by the client.
|
|
277
|
+
* Used to recognize repeated attempts to make the same request.
|
|
278
|
+
* @maxLength 200
|
|
279
|
+
*/
|
|
280
|
+
idempotencyKey: string;
|
|
281
|
+
/** Identity changing the balance. */
|
|
282
|
+
instructingParty?: CommonIdentificationData;
|
|
283
|
+
/** Balance change type. */
|
|
284
|
+
type?: ChangeBalanceRequestType;
|
|
285
|
+
/** Details to send to the transaction created from this balance change. */
|
|
286
|
+
transactionDetails?: TransactionDetails;
|
|
287
|
+
}
|
|
288
|
+
/** @oneof */
|
|
289
|
+
interface BalanceChangeBalanceRequestOperationOneOf {
|
|
290
|
+
/** Adjust the balance by a specific number of credits. */
|
|
291
|
+
adjustOptions?: AdjustOptions;
|
|
292
|
+
/** Set the balance to a specific number of credits. */
|
|
293
|
+
setOptions?: SetOptions;
|
|
294
|
+
}
|
|
295
|
+
declare enum ChangeBalanceRequestType {
|
|
296
|
+
/** Unknown balance change type. */
|
|
297
|
+
UNKNOWN_OPERATION = "UNKNOWN_OPERATION",
|
|
298
|
+
/** Use with `adjustOptions`. */
|
|
299
|
+
ADJUST = "ADJUST",
|
|
300
|
+
/** Use with `setOptions`. */
|
|
301
|
+
SET = "SET"
|
|
302
|
+
}
|
|
303
|
+
interface AdjustOptions {
|
|
304
|
+
/**
|
|
305
|
+
* Amount to change the balance's available credits by.
|
|
306
|
+
* - To increase the balance, specify a positive number.
|
|
307
|
+
* - To decrease the balance, specify a negative number.
|
|
308
|
+
* @decimalValue options { maxScale:4 }
|
|
309
|
+
*/
|
|
310
|
+
value?: string;
|
|
311
|
+
/** Beneficiary of the associated pool. */
|
|
312
|
+
beneficiary?: CommonIdentificationData;
|
|
313
|
+
}
|
|
314
|
+
interface SetOptions {
|
|
315
|
+
/**
|
|
316
|
+
* Amount to set the balance's available credits to.
|
|
317
|
+
*
|
|
318
|
+
* If this is the same as the current value, no transaction is created.
|
|
319
|
+
* @decimalValue options { maxScale:4 }
|
|
320
|
+
*/
|
|
321
|
+
value?: string;
|
|
322
|
+
/** Beneficiary of the associated pool. */
|
|
323
|
+
beneficiary?: CommonIdentificationData;
|
|
324
|
+
}
|
|
325
|
+
interface TransactionDetails {
|
|
326
|
+
/**
|
|
327
|
+
* Item associated with the transaction.
|
|
328
|
+
* @readonly
|
|
329
|
+
*/
|
|
330
|
+
item?: Item;
|
|
331
|
+
/** Amount of items associated with the transaction. */
|
|
332
|
+
itemCount?: number | null;
|
|
333
|
+
/**
|
|
334
|
+
* Date and time the transaction was created.
|
|
335
|
+
* @readonly
|
|
336
|
+
*/
|
|
337
|
+
effectiveDate?: Date | null;
|
|
338
|
+
/**
|
|
339
|
+
* Reason for the transaction. For example, `Redemption`.
|
|
340
|
+
* @readonly
|
|
341
|
+
* @maxLength 256
|
|
342
|
+
*/
|
|
343
|
+
reason?: string | null;
|
|
344
|
+
}
|
|
345
|
+
interface Item {
|
|
346
|
+
/**
|
|
347
|
+
* Item ID.
|
|
348
|
+
* @format GUID
|
|
349
|
+
* @readonly
|
|
350
|
+
*/
|
|
351
|
+
id?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* Item external ID.
|
|
354
|
+
* @format GUID
|
|
355
|
+
* @readonly
|
|
356
|
+
*/
|
|
357
|
+
externalId?: string | null;
|
|
358
|
+
/**
|
|
359
|
+
* Item category.
|
|
360
|
+
* @maxLength 20
|
|
361
|
+
* @readonly
|
|
362
|
+
*/
|
|
363
|
+
category?: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* Item set ID.
|
|
366
|
+
* @format GUID
|
|
367
|
+
* @readonly
|
|
368
|
+
*/
|
|
369
|
+
itemSetId?: string | null;
|
|
370
|
+
/**
|
|
371
|
+
* Item name.
|
|
372
|
+
* @maxLength 64
|
|
373
|
+
* @readonly
|
|
374
|
+
*/
|
|
375
|
+
displayName?: string | null;
|
|
376
|
+
}
|
|
377
|
+
interface ChangeBalanceResponse {
|
|
378
|
+
/** Updated balance. */
|
|
379
|
+
balance?: Balance;
|
|
380
|
+
/**
|
|
381
|
+
* ID of the transaction associated with this change in balance.
|
|
382
|
+
* @format GUID
|
|
383
|
+
*/
|
|
384
|
+
transactionId?: string | null;
|
|
385
|
+
}
|
|
386
|
+
interface RevertBalanceChangeRequest {
|
|
387
|
+
/**
|
|
388
|
+
* ID of the transaction associated with the balance change to revert.
|
|
389
|
+
* @format GUID
|
|
390
|
+
*/
|
|
391
|
+
transactionId: string;
|
|
392
|
+
/**
|
|
393
|
+
* Unique identifier, generated by the client.
|
|
394
|
+
* Used to recognize repeated attempts to make the same request.
|
|
395
|
+
* @maxLength 200
|
|
396
|
+
*/
|
|
397
|
+
idempotencyKey: string;
|
|
398
|
+
/** Identity reverting the balance change. */
|
|
399
|
+
instructingParty?: CommonIdentificationData;
|
|
400
|
+
}
|
|
401
|
+
interface RevertBalanceChangeResponse {
|
|
402
|
+
/**
|
|
403
|
+
* ID of the transaction associated with the balance reversion.
|
|
404
|
+
* @format GUID
|
|
405
|
+
*/
|
|
406
|
+
transactionId?: string | null;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
410
|
+
getUrl: (context: any) => string;
|
|
411
|
+
httpMethod: K;
|
|
412
|
+
path: string;
|
|
413
|
+
pathParams: M;
|
|
414
|
+
__requestType: T;
|
|
415
|
+
__originalRequestType: S;
|
|
416
|
+
__responseType: Q;
|
|
417
|
+
__originalResponseType: R;
|
|
418
|
+
};
|
|
419
|
+
declare function getBalance(): __PublicMethodMetaInfo<'GET', {
|
|
420
|
+
poolId: string;
|
|
421
|
+
}, GetBalanceRequest$1, GetBalanceRequest, GetBalanceResponse$1, GetBalanceResponse>;
|
|
422
|
+
declare function listBalances(): __PublicMethodMetaInfo<'GET', {}, ListBalancesRequest$1, ListBalancesRequest, ListBalancesResponse$1, ListBalancesResponse>;
|
|
423
|
+
declare function queryBalances(): __PublicMethodMetaInfo<'POST', {}, QueryBalancesRequest$1, QueryBalancesRequest, QueryBalancesResponse$1, QueryBalancesResponse>;
|
|
424
|
+
declare function changeBalance(): __PublicMethodMetaInfo<'POST', {
|
|
425
|
+
poolId: string;
|
|
426
|
+
}, BalanceChangeBalanceRequest$1, BalanceChangeBalanceRequest, ChangeBalanceResponse$1, ChangeBalanceResponse>;
|
|
427
|
+
declare function revertBalanceChange(): __PublicMethodMetaInfo<'POST', {
|
|
428
|
+
transactionId: string;
|
|
429
|
+
}, RevertBalanceChangeRequest$1, RevertBalanceChangeRequest, RevertBalanceChangeResponse$1, RevertBalanceChangeResponse>;
|
|
430
|
+
|
|
431
|
+
export { type __PublicMethodMetaInfo, changeBalance, getBalance, listBalances, queryBalances, revertBalanceChange };
|