flexinet-api 0.0.259-prerelease0 → 0.0.263-prerelease0
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 +2 -2
- package/api.ts +1095 -379
- package/dist/api.d.ts +624 -185
- package/dist/api.js +779 -278
- package/dist/esm/api.d.ts +624 -185
- package/dist/esm/api.js +773 -272
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -127,12 +127,6 @@ export interface Balance {
|
|
|
127
127
|
* @memberof Balance
|
|
128
128
|
*/
|
|
129
129
|
'id': string;
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof Balance
|
|
134
|
-
*/
|
|
135
|
-
'kind': string;
|
|
136
130
|
/**
|
|
137
131
|
*
|
|
138
132
|
* @type {number}
|
|
@@ -141,10 +135,10 @@ export interface Balance {
|
|
|
141
135
|
'amount': number;
|
|
142
136
|
/**
|
|
143
137
|
*
|
|
144
|
-
* @type {
|
|
138
|
+
* @type {Beneficiary}
|
|
145
139
|
* @memberof Balance
|
|
146
140
|
*/
|
|
147
|
-
'
|
|
141
|
+
'beneficiary': Beneficiary;
|
|
148
142
|
}
|
|
149
143
|
/**
|
|
150
144
|
*
|
|
@@ -160,21 +154,40 @@ export interface BalanceUpdateRequest {
|
|
|
160
154
|
'amount': number;
|
|
161
155
|
/**
|
|
162
156
|
*
|
|
163
|
-
* @type {
|
|
157
|
+
* @type {BeneficiaryKind}
|
|
164
158
|
* @memberof BalanceUpdateRequest
|
|
165
159
|
*/
|
|
166
|
-
'
|
|
160
|
+
'beneficiaryKind': BeneficiaryKind;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @export
|
|
165
|
+
* @interface Beneficiary
|
|
166
|
+
*/
|
|
167
|
+
export interface Beneficiary {
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof Beneficiary
|
|
172
|
+
*/
|
|
173
|
+
'value': string;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {BeneficiaryKind}
|
|
177
|
+
* @memberof Beneficiary
|
|
178
|
+
*/
|
|
179
|
+
'kind': BeneficiaryKind;
|
|
167
180
|
}
|
|
168
181
|
/**
|
|
169
182
|
*
|
|
170
183
|
* @export
|
|
171
184
|
* @enum {string}
|
|
172
185
|
*/
|
|
173
|
-
export declare const
|
|
186
|
+
export declare const BeneficiaryKind: {
|
|
174
187
|
readonly User: "user";
|
|
175
188
|
readonly Client: "client";
|
|
176
189
|
};
|
|
177
|
-
export type
|
|
190
|
+
export type BeneficiaryKind = typeof BeneficiaryKind[keyof typeof BeneficiaryKind];
|
|
178
191
|
/**
|
|
179
192
|
*
|
|
180
193
|
* @export
|
|
@@ -223,6 +236,31 @@ export interface BulkNotificationsReadRequest {
|
|
|
223
236
|
*/
|
|
224
237
|
'notificationIds': Array<string>;
|
|
225
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @export
|
|
242
|
+
* @interface CallbackOrder
|
|
243
|
+
*/
|
|
244
|
+
export interface CallbackOrder {
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @type {Order}
|
|
248
|
+
* @memberof CallbackOrder
|
|
249
|
+
*/
|
|
250
|
+
'order'?: Order;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @type {string}
|
|
254
|
+
* @memberof CallbackOrder
|
|
255
|
+
*/
|
|
256
|
+
'id'?: string;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @type {string}
|
|
260
|
+
* @memberof CallbackOrder
|
|
261
|
+
*/
|
|
262
|
+
'status'?: string;
|
|
263
|
+
}
|
|
226
264
|
/**
|
|
227
265
|
*
|
|
228
266
|
* @export
|
|
@@ -331,6 +369,19 @@ export declare const Condition: {
|
|
|
331
369
|
readonly Contains: "contains";
|
|
332
370
|
};
|
|
333
371
|
export type Condition = typeof Condition[keyof typeof Condition];
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @export
|
|
375
|
+
* @interface CreateOrderRequest
|
|
376
|
+
*/
|
|
377
|
+
export interface CreateOrderRequest {
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @type {OrderCreationRequest}
|
|
381
|
+
* @memberof CreateOrderRequest
|
|
382
|
+
*/
|
|
383
|
+
'tag'?: OrderCreationRequest;
|
|
384
|
+
}
|
|
334
385
|
/**
|
|
335
386
|
*
|
|
336
387
|
* @export
|
|
@@ -520,6 +571,25 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
|
|
|
520
571
|
* @export
|
|
521
572
|
*/
|
|
522
573
|
export type EventCreationRequestDetails = object;
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @export
|
|
577
|
+
* @interface Item
|
|
578
|
+
*/
|
|
579
|
+
export interface Item {
|
|
580
|
+
/**
|
|
581
|
+
*
|
|
582
|
+
* @type {number}
|
|
583
|
+
* @memberof Item
|
|
584
|
+
*/
|
|
585
|
+
'qty': number;
|
|
586
|
+
/**
|
|
587
|
+
*
|
|
588
|
+
* @type {Product}
|
|
589
|
+
* @memberof Item
|
|
590
|
+
*/
|
|
591
|
+
'product': Product;
|
|
592
|
+
}
|
|
523
593
|
/**
|
|
524
594
|
*
|
|
525
595
|
* @export
|
|
@@ -730,6 +800,111 @@ export declare const NotificationStatus: {
|
|
|
730
800
|
readonly Read: "read";
|
|
731
801
|
};
|
|
732
802
|
export type NotificationStatus = typeof NotificationStatus[keyof typeof NotificationStatus];
|
|
803
|
+
/**
|
|
804
|
+
*
|
|
805
|
+
* @export
|
|
806
|
+
* @interface Order
|
|
807
|
+
*/
|
|
808
|
+
export interface Order {
|
|
809
|
+
/**
|
|
810
|
+
*
|
|
811
|
+
* @type {Balance}
|
|
812
|
+
* @memberof Order
|
|
813
|
+
*/
|
|
814
|
+
'balance': Balance;
|
|
815
|
+
/**
|
|
816
|
+
*
|
|
817
|
+
* @type {Array<Item>}
|
|
818
|
+
* @memberof Order
|
|
819
|
+
*/
|
|
820
|
+
'items': Array<Item>;
|
|
821
|
+
/**
|
|
822
|
+
*
|
|
823
|
+
* @type {string}
|
|
824
|
+
* @memberof Order
|
|
825
|
+
*/
|
|
826
|
+
'id'?: string;
|
|
827
|
+
/**
|
|
828
|
+
*
|
|
829
|
+
* @type {string}
|
|
830
|
+
* @memberof Order
|
|
831
|
+
*/
|
|
832
|
+
'createdAt'?: string;
|
|
833
|
+
/**
|
|
834
|
+
*
|
|
835
|
+
* @type {string}
|
|
836
|
+
* @memberof Order
|
|
837
|
+
*/
|
|
838
|
+
'kind'?: OrderKindEnum;
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @type {string}
|
|
842
|
+
* @memberof Order
|
|
843
|
+
*/
|
|
844
|
+
'source'?: string;
|
|
845
|
+
}
|
|
846
|
+
export declare const OrderKindEnum: {
|
|
847
|
+
readonly Webshop: "webshop";
|
|
848
|
+
readonly Promotions: "promotions";
|
|
849
|
+
};
|
|
850
|
+
export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @export
|
|
854
|
+
* @interface OrderCreationRequest
|
|
855
|
+
*/
|
|
856
|
+
export interface OrderCreationRequest {
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @type {string}
|
|
860
|
+
* @memberof OrderCreationRequest
|
|
861
|
+
*/
|
|
862
|
+
'balanceID': string;
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* @type {Array<OrderItemCreationRequest>}
|
|
866
|
+
* @memberof OrderCreationRequest
|
|
867
|
+
*/
|
|
868
|
+
'items': Array<OrderItemCreationRequest>;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* @export
|
|
873
|
+
* @interface OrderItemCreationRequest
|
|
874
|
+
*/
|
|
875
|
+
export interface OrderItemCreationRequest {
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @type {number}
|
|
879
|
+
* @memberof OrderItemCreationRequest
|
|
880
|
+
*/
|
|
881
|
+
'qty': number;
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @type {string}
|
|
885
|
+
* @memberof OrderItemCreationRequest
|
|
886
|
+
*/
|
|
887
|
+
'productId': string;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
*
|
|
891
|
+
* @export
|
|
892
|
+
* @interface OrderListResponse
|
|
893
|
+
*/
|
|
894
|
+
export interface OrderListResponse {
|
|
895
|
+
/**
|
|
896
|
+
*
|
|
897
|
+
* @type {Array<Order>}
|
|
898
|
+
* @memberof OrderListResponse
|
|
899
|
+
*/
|
|
900
|
+
'orders': Array<Order>;
|
|
901
|
+
/**
|
|
902
|
+
* This is the pagination token
|
|
903
|
+
* @type {string}
|
|
904
|
+
* @memberof OrderListResponse
|
|
905
|
+
*/
|
|
906
|
+
'nextToken'?: string;
|
|
907
|
+
}
|
|
733
908
|
/**
|
|
734
909
|
*
|
|
735
910
|
* @export
|
|
@@ -817,10 +992,10 @@ export interface Product {
|
|
|
817
992
|
'source': string;
|
|
818
993
|
/**
|
|
819
994
|
*
|
|
820
|
-
* @type {Array<
|
|
995
|
+
* @type {Array<Segment>}
|
|
821
996
|
* @memberof Product
|
|
822
997
|
*/
|
|
823
|
-
'segments': Array<
|
|
998
|
+
'segments': Array<Segment>;
|
|
824
999
|
/**
|
|
825
1000
|
*
|
|
826
1001
|
* @type {ProductKind}
|
|
@@ -943,10 +1118,10 @@ export interface ProductCreationRequest {
|
|
|
943
1118
|
'source': string;
|
|
944
1119
|
/**
|
|
945
1120
|
*
|
|
946
|
-
* @type {Array<
|
|
1121
|
+
* @type {Array<Segment>}
|
|
947
1122
|
* @memberof ProductCreationRequest
|
|
948
1123
|
*/
|
|
949
|
-
'segments': Array<
|
|
1124
|
+
'segments': Array<Segment>;
|
|
950
1125
|
/**
|
|
951
1126
|
*
|
|
952
1127
|
* @type {ProductKind}
|
|
@@ -1208,10 +1383,10 @@ export interface Progress {
|
|
|
1208
1383
|
'state': ProgressState;
|
|
1209
1384
|
/**
|
|
1210
1385
|
*
|
|
1211
|
-
* @type {
|
|
1386
|
+
* @type {Beneficiary}
|
|
1212
1387
|
* @memberof Progress
|
|
1213
1388
|
*/
|
|
1214
|
-
'beneficiary':
|
|
1389
|
+
'beneficiary': Beneficiary;
|
|
1215
1390
|
/**
|
|
1216
1391
|
*
|
|
1217
1392
|
* @type {number}
|
|
@@ -1274,10 +1449,10 @@ export interface Promotion {
|
|
|
1274
1449
|
'description': string;
|
|
1275
1450
|
/**
|
|
1276
1451
|
*
|
|
1277
|
-
* @type {
|
|
1452
|
+
* @type {BeneficiaryKind}
|
|
1278
1453
|
* @memberof Promotion
|
|
1279
1454
|
*/
|
|
1280
|
-
'
|
|
1455
|
+
'beneficiaryKind'?: BeneficiaryKind;
|
|
1281
1456
|
/**
|
|
1282
1457
|
*
|
|
1283
1458
|
* @type {Array<string>}
|
|
@@ -1395,6 +1570,19 @@ export interface Promotion {
|
|
|
1395
1570
|
*/
|
|
1396
1571
|
'type': PromotionType;
|
|
1397
1572
|
}
|
|
1573
|
+
/**
|
|
1574
|
+
*
|
|
1575
|
+
* @export
|
|
1576
|
+
* @interface PromotionClaimRequest
|
|
1577
|
+
*/
|
|
1578
|
+
export interface PromotionClaimRequest {
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @type {string}
|
|
1582
|
+
* @memberof PromotionClaimRequest
|
|
1583
|
+
*/
|
|
1584
|
+
'userId': string;
|
|
1585
|
+
}
|
|
1398
1586
|
/**
|
|
1399
1587
|
*
|
|
1400
1588
|
* @export
|
|
@@ -1415,10 +1603,10 @@ export interface PromotionRequest {
|
|
|
1415
1603
|
'description': string;
|
|
1416
1604
|
/**
|
|
1417
1605
|
*
|
|
1418
|
-
* @type {
|
|
1606
|
+
* @type {BeneficiaryKind}
|
|
1419
1607
|
* @memberof PromotionRequest
|
|
1420
1608
|
*/
|
|
1421
|
-
'
|
|
1609
|
+
'beneficiaryKind': BeneficiaryKind;
|
|
1422
1610
|
/**
|
|
1423
1611
|
*
|
|
1424
1612
|
* @type {Target}
|
|
@@ -1523,16 +1711,6 @@ export interface PromotionsResponse {
|
|
|
1523
1711
|
*/
|
|
1524
1712
|
'nextToken'?: string;
|
|
1525
1713
|
}
|
|
1526
|
-
/**
|
|
1527
|
-
*
|
|
1528
|
-
* @export
|
|
1529
|
-
* @enum {string}
|
|
1530
|
-
*/
|
|
1531
|
-
export declare const ReceiverKind: {
|
|
1532
|
-
readonly User: "user";
|
|
1533
|
-
readonly Client: "client";
|
|
1534
|
-
};
|
|
1535
|
-
export type ReceiverKind = typeof ReceiverKind[keyof typeof ReceiverKind];
|
|
1536
1714
|
/**
|
|
1537
1715
|
*
|
|
1538
1716
|
* @export
|
|
@@ -2127,10 +2305,10 @@ export interface Transaction {
|
|
|
2127
2305
|
'amount': number;
|
|
2128
2306
|
/**
|
|
2129
2307
|
*
|
|
2130
|
-
* @type {
|
|
2308
|
+
* @type {Beneficiary}
|
|
2131
2309
|
* @memberof Transaction
|
|
2132
2310
|
*/
|
|
2133
|
-
'
|
|
2311
|
+
'beneficiary': Beneficiary;
|
|
2134
2312
|
/**
|
|
2135
2313
|
*
|
|
2136
2314
|
* @type {string}
|
|
@@ -2160,12 +2338,6 @@ export interface TransactionsResponse {
|
|
|
2160
2338
|
* @memberof TransactionsResponse
|
|
2161
2339
|
*/
|
|
2162
2340
|
'transactions': Array<Transaction>;
|
|
2163
|
-
/**
|
|
2164
|
-
* This is the previous pagination token
|
|
2165
|
-
* @type {string}
|
|
2166
|
-
* @memberof TransactionsResponse
|
|
2167
|
-
*/
|
|
2168
|
-
'previousToken'?: string;
|
|
2169
2341
|
/**
|
|
2170
2342
|
* This is the pagination token
|
|
2171
2343
|
* @type {string}
|
|
@@ -2425,7 +2597,7 @@ export interface Webhook {
|
|
|
2425
2597
|
* @enum {string}
|
|
2426
2598
|
*/
|
|
2427
2599
|
export declare const WebhookKind: {
|
|
2428
|
-
readonly
|
|
2600
|
+
readonly Order: "order";
|
|
2429
2601
|
};
|
|
2430
2602
|
export type WebhookKind = typeof WebhookKind[keyof typeof WebhookKind];
|
|
2431
2603
|
/**
|
|
@@ -2555,29 +2727,30 @@ export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2555
2727
|
/**
|
|
2556
2728
|
* Get balance
|
|
2557
2729
|
* @summary Get balance
|
|
2558
|
-
* @param {string}
|
|
2730
|
+
* @param {string} beneficiaryValue This is the beneficiary value
|
|
2731
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
|
2559
2732
|
* @param {*} [options] Override http request option.
|
|
2560
2733
|
* @throws {RequiredError}
|
|
2561
2734
|
*/
|
|
2562
|
-
getBalance: (
|
|
2735
|
+
getBalance: (beneficiaryValue: string, kind: BeneficiaryKind, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2563
2736
|
/**
|
|
2564
2737
|
* Transfer balance
|
|
2565
2738
|
* @summary Transfer balance
|
|
2566
|
-
* @param {string}
|
|
2739
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
|
2567
2740
|
* @param {BalanceUpdateRequest} [balanceUpdateRequest]
|
|
2568
2741
|
* @param {*} [options] Override http request option.
|
|
2569
2742
|
* @throws {RequiredError}
|
|
2570
2743
|
*/
|
|
2571
|
-
transferBalance: (
|
|
2744
|
+
transferBalance: (beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2572
2745
|
/**
|
|
2573
2746
|
* Manually update balance. Used as manual compensation for out of stock products.
|
|
2574
2747
|
* @summary Manually update balance
|
|
2575
|
-
* @param {string}
|
|
2748
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
|
2576
2749
|
* @param {BalanceUpdateRequest} [balanceUpdateRequest]
|
|
2577
2750
|
* @param {*} [options] Override http request option.
|
|
2578
2751
|
* @throws {RequiredError}
|
|
2579
2752
|
*/
|
|
2580
|
-
updateBalance: (
|
|
2753
|
+
updateBalance: (beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2581
2754
|
};
|
|
2582
2755
|
/**
|
|
2583
2756
|
* BalanceApi - functional programming interface
|
|
@@ -2587,29 +2760,30 @@ export declare const BalanceApiFp: (configuration?: Configuration) => {
|
|
|
2587
2760
|
/**
|
|
2588
2761
|
* Get balance
|
|
2589
2762
|
* @summary Get balance
|
|
2590
|
-
* @param {string}
|
|
2763
|
+
* @param {string} beneficiaryValue This is the beneficiary value
|
|
2764
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
|
2591
2765
|
* @param {*} [options] Override http request option.
|
|
2592
2766
|
* @throws {RequiredError}
|
|
2593
2767
|
*/
|
|
2594
|
-
getBalance(
|
|
2768
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>>;
|
|
2595
2769
|
/**
|
|
2596
2770
|
* Transfer balance
|
|
2597
2771
|
* @summary Transfer balance
|
|
2598
|
-
* @param {string}
|
|
2772
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
|
2599
2773
|
* @param {BalanceUpdateRequest} [balanceUpdateRequest]
|
|
2600
2774
|
* @param {*} [options] Override http request option.
|
|
2601
2775
|
* @throws {RequiredError}
|
|
2602
2776
|
*/
|
|
2603
|
-
transferBalance(
|
|
2777
|
+
transferBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2604
2778
|
/**
|
|
2605
2779
|
* Manually update balance. Used as manual compensation for out of stock products.
|
|
2606
2780
|
* @summary Manually update balance
|
|
2607
|
-
* @param {string}
|
|
2781
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
|
2608
2782
|
* @param {BalanceUpdateRequest} [balanceUpdateRequest]
|
|
2609
2783
|
* @param {*} [options] Override http request option.
|
|
2610
2784
|
* @throws {RequiredError}
|
|
2611
2785
|
*/
|
|
2612
|
-
updateBalance(
|
|
2786
|
+
updateBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2613
2787
|
};
|
|
2614
2788
|
/**
|
|
2615
2789
|
* BalanceApi - factory interface
|
|
@@ -2619,29 +2793,30 @@ export declare const BalanceApiFactory: (configuration?: Configuration, basePath
|
|
|
2619
2793
|
/**
|
|
2620
2794
|
* Get balance
|
|
2621
2795
|
* @summary Get balance
|
|
2622
|
-
* @param {string}
|
|
2796
|
+
* @param {string} beneficiaryValue This is the beneficiary value
|
|
2797
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
|
2623
2798
|
* @param {*} [options] Override http request option.
|
|
2624
2799
|
* @throws {RequiredError}
|
|
2625
2800
|
*/
|
|
2626
|
-
getBalance(
|
|
2801
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: any): AxiosPromise<Balance>;
|
|
2627
2802
|
/**
|
|
2628
2803
|
* Transfer balance
|
|
2629
2804
|
* @summary Transfer balance
|
|
2630
|
-
* @param {string}
|
|
2805
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
|
2631
2806
|
* @param {BalanceUpdateRequest} [balanceUpdateRequest]
|
|
2632
2807
|
* @param {*} [options] Override http request option.
|
|
2633
2808
|
* @throws {RequiredError}
|
|
2634
2809
|
*/
|
|
2635
|
-
transferBalance(
|
|
2810
|
+
transferBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: any): AxiosPromise<void>;
|
|
2636
2811
|
/**
|
|
2637
2812
|
* Manually update balance. Used as manual compensation for out of stock products.
|
|
2638
2813
|
* @summary Manually update balance
|
|
2639
|
-
* @param {string}
|
|
2814
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
|
2640
2815
|
* @param {BalanceUpdateRequest} [balanceUpdateRequest]
|
|
2641
2816
|
* @param {*} [options] Override http request option.
|
|
2642
2817
|
* @throws {RequiredError}
|
|
2643
2818
|
*/
|
|
2644
|
-
updateBalance(
|
|
2819
|
+
updateBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: any): AxiosPromise<void>;
|
|
2645
2820
|
};
|
|
2646
2821
|
/**
|
|
2647
2822
|
* BalanceApi - object-oriented interface
|
|
@@ -2653,32 +2828,33 @@ export declare class BalanceApi extends BaseAPI {
|
|
|
2653
2828
|
/**
|
|
2654
2829
|
* Get balance
|
|
2655
2830
|
* @summary Get balance
|
|
2656
|
-
* @param {string}
|
|
2831
|
+
* @param {string} beneficiaryValue This is the beneficiary value
|
|
2832
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
|
2657
2833
|
* @param {*} [options] Override http request option.
|
|
2658
2834
|
* @throws {RequiredError}
|
|
2659
2835
|
* @memberof BalanceApi
|
|
2660
2836
|
*/
|
|
2661
|
-
getBalance(
|
|
2837
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Balance, any>>;
|
|
2662
2838
|
/**
|
|
2663
2839
|
* Transfer balance
|
|
2664
2840
|
* @summary Transfer balance
|
|
2665
|
-
* @param {string}
|
|
2841
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
|
2666
2842
|
* @param {BalanceUpdateRequest} [balanceUpdateRequest]
|
|
2667
2843
|
* @param {*} [options] Override http request option.
|
|
2668
2844
|
* @throws {RequiredError}
|
|
2669
2845
|
* @memberof BalanceApi
|
|
2670
2846
|
*/
|
|
2671
|
-
transferBalance(
|
|
2847
|
+
transferBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2672
2848
|
/**
|
|
2673
2849
|
* Manually update balance. Used as manual compensation for out of stock products.
|
|
2674
2850
|
* @summary Manually update balance
|
|
2675
|
-
* @param {string}
|
|
2851
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
|
2676
2852
|
* @param {BalanceUpdateRequest} [balanceUpdateRequest]
|
|
2677
2853
|
* @param {*} [options] Override http request option.
|
|
2678
2854
|
* @throws {RequiredError}
|
|
2679
2855
|
* @memberof BalanceApi
|
|
2680
2856
|
*/
|
|
2681
|
-
updateBalance(
|
|
2857
|
+
updateBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2682
2858
|
}
|
|
2683
2859
|
/**
|
|
2684
2860
|
* ClientApi - axios parameter creator
|
|
@@ -3334,6 +3510,151 @@ export declare class NotificationApi extends BaseAPI {
|
|
|
3334
3510
|
*/
|
|
3335
3511
|
markNotificationAsRead(notificationID: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3336
3512
|
}
|
|
3513
|
+
/**
|
|
3514
|
+
* OrderApi - axios parameter creator
|
|
3515
|
+
* @export
|
|
3516
|
+
*/
|
|
3517
|
+
export declare const OrderApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3518
|
+
/**
|
|
3519
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
3520
|
+
* @summary Create an order for a product
|
|
3521
|
+
* @param {CreateOrderRequest} [createOrderRequest]
|
|
3522
|
+
* @param {*} [options] Override http request option.
|
|
3523
|
+
* @throws {RequiredError}
|
|
3524
|
+
*/
|
|
3525
|
+
createOrder: (createOrderRequest?: CreateOrderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3526
|
+
/**
|
|
3527
|
+
* Get order details
|
|
3528
|
+
* @summary Get order details
|
|
3529
|
+
* @param {string} id Order id
|
|
3530
|
+
* @param {*} [options] Override http request option.
|
|
3531
|
+
* @throws {RequiredError}
|
|
3532
|
+
*/
|
|
3533
|
+
getOrder: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3534
|
+
/**
|
|
3535
|
+
* List existing orders
|
|
3536
|
+
* @summary List existing orders
|
|
3537
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
3538
|
+
* @param {string} [search] Search for product or order
|
|
3539
|
+
* @param {string} [productId] Filter by token
|
|
3540
|
+
* @param {string} [balanceId] Filter by balance
|
|
3541
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
3542
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
3543
|
+
* @param {*} [options] Override http request option.
|
|
3544
|
+
* @throws {RequiredError}
|
|
3545
|
+
*/
|
|
3546
|
+
listOrders: (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3547
|
+
};
|
|
3548
|
+
/**
|
|
3549
|
+
* OrderApi - functional programming interface
|
|
3550
|
+
* @export
|
|
3551
|
+
*/
|
|
3552
|
+
export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
3553
|
+
/**
|
|
3554
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
3555
|
+
* @summary Create an order for a product
|
|
3556
|
+
* @param {CreateOrderRequest} [createOrderRequest]
|
|
3557
|
+
* @param {*} [options] Override http request option.
|
|
3558
|
+
* @throws {RequiredError}
|
|
3559
|
+
*/
|
|
3560
|
+
createOrder(createOrderRequest?: CreateOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
3561
|
+
/**
|
|
3562
|
+
* Get order details
|
|
3563
|
+
* @summary Get order details
|
|
3564
|
+
* @param {string} id Order id
|
|
3565
|
+
* @param {*} [options] Override http request option.
|
|
3566
|
+
* @throws {RequiredError}
|
|
3567
|
+
*/
|
|
3568
|
+
getOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
3569
|
+
/**
|
|
3570
|
+
* List existing orders
|
|
3571
|
+
* @summary List existing orders
|
|
3572
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
3573
|
+
* @param {string} [search] Search for product or order
|
|
3574
|
+
* @param {string} [productId] Filter by token
|
|
3575
|
+
* @param {string} [balanceId] Filter by balance
|
|
3576
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
3577
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
3578
|
+
* @param {*} [options] Override http request option.
|
|
3579
|
+
* @throws {RequiredError}
|
|
3580
|
+
*/
|
|
3581
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
|
3582
|
+
};
|
|
3583
|
+
/**
|
|
3584
|
+
* OrderApi - factory interface
|
|
3585
|
+
* @export
|
|
3586
|
+
*/
|
|
3587
|
+
export declare const OrderApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3588
|
+
/**
|
|
3589
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
3590
|
+
* @summary Create an order for a product
|
|
3591
|
+
* @param {CreateOrderRequest} [createOrderRequest]
|
|
3592
|
+
* @param {*} [options] Override http request option.
|
|
3593
|
+
* @throws {RequiredError}
|
|
3594
|
+
*/
|
|
3595
|
+
createOrder(createOrderRequest?: CreateOrderRequest, options?: any): AxiosPromise<Order>;
|
|
3596
|
+
/**
|
|
3597
|
+
* Get order details
|
|
3598
|
+
* @summary Get order details
|
|
3599
|
+
* @param {string} id Order id
|
|
3600
|
+
* @param {*} [options] Override http request option.
|
|
3601
|
+
* @throws {RequiredError}
|
|
3602
|
+
*/
|
|
3603
|
+
getOrder(id: string, options?: any): AxiosPromise<Order>;
|
|
3604
|
+
/**
|
|
3605
|
+
* List existing orders
|
|
3606
|
+
* @summary List existing orders
|
|
3607
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
3608
|
+
* @param {string} [search] Search for product or order
|
|
3609
|
+
* @param {string} [productId] Filter by token
|
|
3610
|
+
* @param {string} [balanceId] Filter by balance
|
|
3611
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
3612
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
3613
|
+
* @param {*} [options] Override http request option.
|
|
3614
|
+
* @throws {RequiredError}
|
|
3615
|
+
*/
|
|
3616
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse>;
|
|
3617
|
+
};
|
|
3618
|
+
/**
|
|
3619
|
+
* OrderApi - object-oriented interface
|
|
3620
|
+
* @export
|
|
3621
|
+
* @class OrderApi
|
|
3622
|
+
* @extends {BaseAPI}
|
|
3623
|
+
*/
|
|
3624
|
+
export declare class OrderApi extends BaseAPI {
|
|
3625
|
+
/**
|
|
3626
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
3627
|
+
* @summary Create an order for a product
|
|
3628
|
+
* @param {CreateOrderRequest} [createOrderRequest]
|
|
3629
|
+
* @param {*} [options] Override http request option.
|
|
3630
|
+
* @throws {RequiredError}
|
|
3631
|
+
* @memberof OrderApi
|
|
3632
|
+
*/
|
|
3633
|
+
createOrder(createOrderRequest?: CreateOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
3634
|
+
/**
|
|
3635
|
+
* Get order details
|
|
3636
|
+
* @summary Get order details
|
|
3637
|
+
* @param {string} id Order id
|
|
3638
|
+
* @param {*} [options] Override http request option.
|
|
3639
|
+
* @throws {RequiredError}
|
|
3640
|
+
* @memberof OrderApi
|
|
3641
|
+
*/
|
|
3642
|
+
getOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
3643
|
+
/**
|
|
3644
|
+
* List existing orders
|
|
3645
|
+
* @summary List existing orders
|
|
3646
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
3647
|
+
* @param {string} [search] Search for product or order
|
|
3648
|
+
* @param {string} [productId] Filter by token
|
|
3649
|
+
* @param {string} [balanceId] Filter by balance
|
|
3650
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
3651
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
3652
|
+
* @param {*} [options] Override http request option.
|
|
3653
|
+
* @throws {RequiredError}
|
|
3654
|
+
* @memberof OrderApi
|
|
3655
|
+
*/
|
|
3656
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
|
3657
|
+
}
|
|
3337
3658
|
/**
|
|
3338
3659
|
* ProductApi - axios parameter creator
|
|
3339
3660
|
* @export
|
|
@@ -3364,6 +3685,13 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3364
3685
|
* @throws {RequiredError}
|
|
3365
3686
|
*/
|
|
3366
3687
|
createProductRequest: (productRequestCreationRequest?: ProductRequestCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3688
|
+
/**
|
|
3689
|
+
* Create upload URL for product
|
|
3690
|
+
* @summary Create upload URL for product
|
|
3691
|
+
* @param {*} [options] Override http request option.
|
|
3692
|
+
* @throws {RequiredError}
|
|
3693
|
+
*/
|
|
3694
|
+
createUploadURL: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3367
3695
|
/**
|
|
3368
3696
|
* Get a product by id
|
|
3369
3697
|
* @summary Get a product by id
|
|
@@ -3389,6 +3717,20 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3389
3717
|
* @throws {RequiredError}
|
|
3390
3718
|
*/
|
|
3391
3719
|
listProductRequests: (status?: ProductRequestStatus, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3720
|
+
/**
|
|
3721
|
+
* List existing products
|
|
3722
|
+
* @summary List existing products
|
|
3723
|
+
* @param {ProductKind} [kind] The product kind
|
|
3724
|
+
* @param {string} [search] search string
|
|
3725
|
+
* @param {ProductUsage} [usage] The product usage
|
|
3726
|
+
* @param {ProductStatus} [status] The product status
|
|
3727
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
3728
|
+
* @param {string} [segmentID] The segment ID
|
|
3729
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3730
|
+
* @param {*} [options] Override http request option.
|
|
3731
|
+
* @throws {RequiredError}
|
|
3732
|
+
*/
|
|
3733
|
+
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3392
3734
|
/**
|
|
3393
3735
|
* Update a product by id
|
|
3394
3736
|
* @summary Update a product by id
|
|
@@ -3429,6 +3771,13 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3429
3771
|
* @throws {RequiredError}
|
|
3430
3772
|
*/
|
|
3431
3773
|
createProductRequest(productRequestCreationRequest?: ProductRequestCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequest>>;
|
|
3774
|
+
/**
|
|
3775
|
+
* Create upload URL for product
|
|
3776
|
+
* @summary Create upload URL for product
|
|
3777
|
+
* @param {*} [options] Override http request option.
|
|
3778
|
+
* @throws {RequiredError}
|
|
3779
|
+
*/
|
|
3780
|
+
createUploadURL(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadURLResponse>>;
|
|
3432
3781
|
/**
|
|
3433
3782
|
* Get a product by id
|
|
3434
3783
|
* @summary Get a product by id
|
|
@@ -3454,6 +3803,20 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3454
3803
|
* @throws {RequiredError}
|
|
3455
3804
|
*/
|
|
3456
3805
|
listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>>;
|
|
3806
|
+
/**
|
|
3807
|
+
* List existing products
|
|
3808
|
+
* @summary List existing products
|
|
3809
|
+
* @param {ProductKind} [kind] The product kind
|
|
3810
|
+
* @param {string} [search] search string
|
|
3811
|
+
* @param {ProductUsage} [usage] The product usage
|
|
3812
|
+
* @param {ProductStatus} [status] The product status
|
|
3813
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
3814
|
+
* @param {string} [segmentID] The segment ID
|
|
3815
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3816
|
+
* @param {*} [options] Override http request option.
|
|
3817
|
+
* @throws {RequiredError}
|
|
3818
|
+
*/
|
|
3819
|
+
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
3457
3820
|
/**
|
|
3458
3821
|
* Update a product by id
|
|
3459
3822
|
* @summary Update a product by id
|
|
@@ -3494,6 +3857,13 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3494
3857
|
* @throws {RequiredError}
|
|
3495
3858
|
*/
|
|
3496
3859
|
createProductRequest(productRequestCreationRequest?: ProductRequestCreationRequest, options?: any): AxiosPromise<ProductRequest>;
|
|
3860
|
+
/**
|
|
3861
|
+
* Create upload URL for product
|
|
3862
|
+
* @summary Create upload URL for product
|
|
3863
|
+
* @param {*} [options] Override http request option.
|
|
3864
|
+
* @throws {RequiredError}
|
|
3865
|
+
*/
|
|
3866
|
+
createUploadURL(options?: any): AxiosPromise<UploadURLResponse>;
|
|
3497
3867
|
/**
|
|
3498
3868
|
* Get a product by id
|
|
3499
3869
|
* @summary Get a product by id
|
|
@@ -3519,6 +3889,20 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3519
3889
|
* @throws {RequiredError}
|
|
3520
3890
|
*/
|
|
3521
3891
|
listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse>;
|
|
3892
|
+
/**
|
|
3893
|
+
* List existing products
|
|
3894
|
+
* @summary List existing products
|
|
3895
|
+
* @param {ProductKind} [kind] The product kind
|
|
3896
|
+
* @param {string} [search] search string
|
|
3897
|
+
* @param {ProductUsage} [usage] The product usage
|
|
3898
|
+
* @param {ProductStatus} [status] The product status
|
|
3899
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
3900
|
+
* @param {string} [segmentID] The segment ID
|
|
3901
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3902
|
+
* @param {*} [options] Override http request option.
|
|
3903
|
+
* @throws {RequiredError}
|
|
3904
|
+
*/
|
|
3905
|
+
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
|
|
3522
3906
|
/**
|
|
3523
3907
|
* Update a product by id
|
|
3524
3908
|
* @summary Update a product by id
|
|
@@ -3564,6 +3948,14 @@ export declare class ProductApi extends BaseAPI {
|
|
|
3564
3948
|
* @memberof ProductApi
|
|
3565
3949
|
*/
|
|
3566
3950
|
createProductRequest(productRequestCreationRequest?: ProductRequestCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequest, any>>;
|
|
3951
|
+
/**
|
|
3952
|
+
* Create upload URL for product
|
|
3953
|
+
* @summary Create upload URL for product
|
|
3954
|
+
* @param {*} [options] Override http request option.
|
|
3955
|
+
* @throws {RequiredError}
|
|
3956
|
+
* @memberof ProductApi
|
|
3957
|
+
*/
|
|
3958
|
+
createUploadURL(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadURLResponse, any>>;
|
|
3567
3959
|
/**
|
|
3568
3960
|
* Get a product by id
|
|
3569
3961
|
* @summary Get a product by id
|
|
@@ -3592,6 +3984,21 @@ export declare class ProductApi extends BaseAPI {
|
|
|
3592
3984
|
* @memberof ProductApi
|
|
3593
3985
|
*/
|
|
3594
3986
|
listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestsResponse, any>>;
|
|
3987
|
+
/**
|
|
3988
|
+
* List existing products
|
|
3989
|
+
* @summary List existing products
|
|
3990
|
+
* @param {ProductKind} [kind] The product kind
|
|
3991
|
+
* @param {string} [search] search string
|
|
3992
|
+
* @param {ProductUsage} [usage] The product usage
|
|
3993
|
+
* @param {ProductStatus} [status] The product status
|
|
3994
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
3995
|
+
* @param {string} [segmentID] The segment ID
|
|
3996
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3997
|
+
* @param {*} [options] Override http request option.
|
|
3998
|
+
* @throws {RequiredError}
|
|
3999
|
+
* @memberof ProductApi
|
|
4000
|
+
*/
|
|
4001
|
+
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
3595
4002
|
/**
|
|
3596
4003
|
* Update a product by id
|
|
3597
4004
|
* @summary Update a product by id
|
|
@@ -3697,6 +4104,41 @@ export type ListProgressIntervalEnum = typeof ListProgressIntervalEnum[keyof typ
|
|
|
3697
4104
|
* @export
|
|
3698
4105
|
*/
|
|
3699
4106
|
export declare const PromotionApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4107
|
+
/**
|
|
4108
|
+
* Claim a promotion by admins
|
|
4109
|
+
* @summary Claim a promotion
|
|
4110
|
+
* @param {string} id Promotion ID
|
|
4111
|
+
* @param {PromotionClaimRequest} [promotionClaimRequest]
|
|
4112
|
+
* @param {*} [options] Override http request option.
|
|
4113
|
+
* @throws {RequiredError}
|
|
4114
|
+
*/
|
|
4115
|
+
claimPromotion: (id: string, promotionClaimRequest?: PromotionClaimRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4116
|
+
/**
|
|
4117
|
+
* Claim a promotion by admins
|
|
4118
|
+
* @summary Claim a promotion
|
|
4119
|
+
* @param {string} id Promotion ID
|
|
4120
|
+
* @param {string} progressID Promotion Progress ID
|
|
4121
|
+
* @param {*} [options] Override http request option.
|
|
4122
|
+
* @throws {RequiredError}
|
|
4123
|
+
*/
|
|
4124
|
+
claimPromotionProgress: (id: string, progressID: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4125
|
+
/**
|
|
4126
|
+
* Claim a promotion
|
|
4127
|
+
* @summary Claim a promotion
|
|
4128
|
+
* @param {string} id Promotion ID
|
|
4129
|
+
* @param {string} progressID Promotion Progress ID
|
|
4130
|
+
* @param {*} [options] Override http request option.
|
|
4131
|
+
* @throws {RequiredError}
|
|
4132
|
+
*/
|
|
4133
|
+
claimPromotionUser: (id: string, progressID: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4134
|
+
/**
|
|
4135
|
+
* Claim a promotion for all periods
|
|
4136
|
+
* @summary Claim a promotion
|
|
4137
|
+
* @param {string} id Promotion ID
|
|
4138
|
+
* @param {*} [options] Override http request option.
|
|
4139
|
+
* @throws {RequiredError}
|
|
4140
|
+
*/
|
|
4141
|
+
claimPromotionUserAll: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3700
4142
|
/**
|
|
3701
4143
|
* Configure a promotion
|
|
3702
4144
|
* @summary Create promotion
|
|
@@ -3752,6 +4194,41 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
3752
4194
|
* @export
|
|
3753
4195
|
*/
|
|
3754
4196
|
export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
4197
|
+
/**
|
|
4198
|
+
* Claim a promotion by admins
|
|
4199
|
+
* @summary Claim a promotion
|
|
4200
|
+
* @param {string} id Promotion ID
|
|
4201
|
+
* @param {PromotionClaimRequest} [promotionClaimRequest]
|
|
4202
|
+
* @param {*} [options] Override http request option.
|
|
4203
|
+
* @throws {RequiredError}
|
|
4204
|
+
*/
|
|
4205
|
+
claimPromotion(id: string, promotionClaimRequest?: PromotionClaimRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4206
|
+
/**
|
|
4207
|
+
* Claim a promotion by admins
|
|
4208
|
+
* @summary Claim a promotion
|
|
4209
|
+
* @param {string} id Promotion ID
|
|
4210
|
+
* @param {string} progressID Promotion Progress ID
|
|
4211
|
+
* @param {*} [options] Override http request option.
|
|
4212
|
+
* @throws {RequiredError}
|
|
4213
|
+
*/
|
|
4214
|
+
claimPromotionProgress(id: string, progressID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4215
|
+
/**
|
|
4216
|
+
* Claim a promotion
|
|
4217
|
+
* @summary Claim a promotion
|
|
4218
|
+
* @param {string} id Promotion ID
|
|
4219
|
+
* @param {string} progressID Promotion Progress ID
|
|
4220
|
+
* @param {*} [options] Override http request option.
|
|
4221
|
+
* @throws {RequiredError}
|
|
4222
|
+
*/
|
|
4223
|
+
claimPromotionUser(id: string, progressID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4224
|
+
/**
|
|
4225
|
+
* Claim a promotion for all periods
|
|
4226
|
+
* @summary Claim a promotion
|
|
4227
|
+
* @param {string} id Promotion ID
|
|
4228
|
+
* @param {*} [options] Override http request option.
|
|
4229
|
+
* @throws {RequiredError}
|
|
4230
|
+
*/
|
|
4231
|
+
claimPromotionUserAll(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
3755
4232
|
/**
|
|
3756
4233
|
* Configure a promotion
|
|
3757
4234
|
* @summary Create promotion
|
|
@@ -3807,6 +4284,41 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
3807
4284
|
* @export
|
|
3808
4285
|
*/
|
|
3809
4286
|
export declare const PromotionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4287
|
+
/**
|
|
4288
|
+
* Claim a promotion by admins
|
|
4289
|
+
* @summary Claim a promotion
|
|
4290
|
+
* @param {string} id Promotion ID
|
|
4291
|
+
* @param {PromotionClaimRequest} [promotionClaimRequest]
|
|
4292
|
+
* @param {*} [options] Override http request option.
|
|
4293
|
+
* @throws {RequiredError}
|
|
4294
|
+
*/
|
|
4295
|
+
claimPromotion(id: string, promotionClaimRequest?: PromotionClaimRequest, options?: any): AxiosPromise<void>;
|
|
4296
|
+
/**
|
|
4297
|
+
* Claim a promotion by admins
|
|
4298
|
+
* @summary Claim a promotion
|
|
4299
|
+
* @param {string} id Promotion ID
|
|
4300
|
+
* @param {string} progressID Promotion Progress ID
|
|
4301
|
+
* @param {*} [options] Override http request option.
|
|
4302
|
+
* @throws {RequiredError}
|
|
4303
|
+
*/
|
|
4304
|
+
claimPromotionProgress(id: string, progressID: string, options?: any): AxiosPromise<void>;
|
|
4305
|
+
/**
|
|
4306
|
+
* Claim a promotion
|
|
4307
|
+
* @summary Claim a promotion
|
|
4308
|
+
* @param {string} id Promotion ID
|
|
4309
|
+
* @param {string} progressID Promotion Progress ID
|
|
4310
|
+
* @param {*} [options] Override http request option.
|
|
4311
|
+
* @throws {RequiredError}
|
|
4312
|
+
*/
|
|
4313
|
+
claimPromotionUser(id: string, progressID: string, options?: any): AxiosPromise<void>;
|
|
4314
|
+
/**
|
|
4315
|
+
* Claim a promotion for all periods
|
|
4316
|
+
* @summary Claim a promotion
|
|
4317
|
+
* @param {string} id Promotion ID
|
|
4318
|
+
* @param {*} [options] Override http request option.
|
|
4319
|
+
* @throws {RequiredError}
|
|
4320
|
+
*/
|
|
4321
|
+
claimPromotionUserAll(id: string, options?: any): AxiosPromise<void>;
|
|
3810
4322
|
/**
|
|
3811
4323
|
* Configure a promotion
|
|
3812
4324
|
* @summary Create promotion
|
|
@@ -3864,6 +4376,45 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
3864
4376
|
* @extends {BaseAPI}
|
|
3865
4377
|
*/
|
|
3866
4378
|
export declare class PromotionApi extends BaseAPI {
|
|
4379
|
+
/**
|
|
4380
|
+
* Claim a promotion by admins
|
|
4381
|
+
* @summary Claim a promotion
|
|
4382
|
+
* @param {string} id Promotion ID
|
|
4383
|
+
* @param {PromotionClaimRequest} [promotionClaimRequest]
|
|
4384
|
+
* @param {*} [options] Override http request option.
|
|
4385
|
+
* @throws {RequiredError}
|
|
4386
|
+
* @memberof PromotionApi
|
|
4387
|
+
*/
|
|
4388
|
+
claimPromotion(id: string, promotionClaimRequest?: PromotionClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4389
|
+
/**
|
|
4390
|
+
* Claim a promotion by admins
|
|
4391
|
+
* @summary Claim a promotion
|
|
4392
|
+
* @param {string} id Promotion ID
|
|
4393
|
+
* @param {string} progressID Promotion Progress ID
|
|
4394
|
+
* @param {*} [options] Override http request option.
|
|
4395
|
+
* @throws {RequiredError}
|
|
4396
|
+
* @memberof PromotionApi
|
|
4397
|
+
*/
|
|
4398
|
+
claimPromotionProgress(id: string, progressID: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4399
|
+
/**
|
|
4400
|
+
* Claim a promotion
|
|
4401
|
+
* @summary Claim a promotion
|
|
4402
|
+
* @param {string} id Promotion ID
|
|
4403
|
+
* @param {string} progressID Promotion Progress ID
|
|
4404
|
+
* @param {*} [options] Override http request option.
|
|
4405
|
+
* @throws {RequiredError}
|
|
4406
|
+
* @memberof PromotionApi
|
|
4407
|
+
*/
|
|
4408
|
+
claimPromotionUser(id: string, progressID: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4409
|
+
/**
|
|
4410
|
+
* Claim a promotion for all periods
|
|
4411
|
+
* @summary Claim a promotion
|
|
4412
|
+
* @param {string} id Promotion ID
|
|
4413
|
+
* @param {*} [options] Override http request option.
|
|
4414
|
+
* @throws {RequiredError}
|
|
4415
|
+
* @memberof PromotionApi
|
|
4416
|
+
*/
|
|
4417
|
+
claimPromotionUserAll(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3867
4418
|
/**
|
|
3868
4419
|
* Configure a promotion
|
|
3869
4420
|
* @summary Create promotion
|
|
@@ -3919,118 +4470,6 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
3919
4470
|
*/
|
|
3920
4471
|
updatePromotion(id: string, updatePromotionRequest: UpdatePromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
|
|
3921
4472
|
}
|
|
3922
|
-
/**
|
|
3923
|
-
* RewardApi - axios parameter creator
|
|
3924
|
-
* @export
|
|
3925
|
-
*/
|
|
3926
|
-
export declare const RewardApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3927
|
-
/**
|
|
3928
|
-
* Create upload URL for reward
|
|
3929
|
-
* @summary Create upload URL for reward
|
|
3930
|
-
* @param {*} [options] Override http request option.
|
|
3931
|
-
* @throws {RequiredError}
|
|
3932
|
-
*/
|
|
3933
|
-
createUploadURL: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3934
|
-
/**
|
|
3935
|
-
* List existing products
|
|
3936
|
-
* @summary List existing products
|
|
3937
|
-
* @param {ProductKind} [kind] The product kind
|
|
3938
|
-
* @param {string} [search] search string
|
|
3939
|
-
* @param {ProductUsage} [usage] The product usage
|
|
3940
|
-
* @param {ProductStatus} [status] The product status
|
|
3941
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
3942
|
-
* @param {string} [segmentID] The segment ID
|
|
3943
|
-
* @param {string} [nextToken] This is the pagination token
|
|
3944
|
-
* @param {*} [options] Override http request option.
|
|
3945
|
-
* @throws {RequiredError}
|
|
3946
|
-
*/
|
|
3947
|
-
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3948
|
-
};
|
|
3949
|
-
/**
|
|
3950
|
-
* RewardApi - functional programming interface
|
|
3951
|
-
* @export
|
|
3952
|
-
*/
|
|
3953
|
-
export declare const RewardApiFp: (configuration?: Configuration) => {
|
|
3954
|
-
/**
|
|
3955
|
-
* Create upload URL for reward
|
|
3956
|
-
* @summary Create upload URL for reward
|
|
3957
|
-
* @param {*} [options] Override http request option.
|
|
3958
|
-
* @throws {RequiredError}
|
|
3959
|
-
*/
|
|
3960
|
-
createUploadURL(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadURLResponse>>;
|
|
3961
|
-
/**
|
|
3962
|
-
* List existing products
|
|
3963
|
-
* @summary List existing products
|
|
3964
|
-
* @param {ProductKind} [kind] The product kind
|
|
3965
|
-
* @param {string} [search] search string
|
|
3966
|
-
* @param {ProductUsage} [usage] The product usage
|
|
3967
|
-
* @param {ProductStatus} [status] The product status
|
|
3968
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
3969
|
-
* @param {string} [segmentID] The segment ID
|
|
3970
|
-
* @param {string} [nextToken] This is the pagination token
|
|
3971
|
-
* @param {*} [options] Override http request option.
|
|
3972
|
-
* @throws {RequiredError}
|
|
3973
|
-
*/
|
|
3974
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
3975
|
-
};
|
|
3976
|
-
/**
|
|
3977
|
-
* RewardApi - factory interface
|
|
3978
|
-
* @export
|
|
3979
|
-
*/
|
|
3980
|
-
export declare const RewardApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3981
|
-
/**
|
|
3982
|
-
* Create upload URL for reward
|
|
3983
|
-
* @summary Create upload URL for reward
|
|
3984
|
-
* @param {*} [options] Override http request option.
|
|
3985
|
-
* @throws {RequiredError}
|
|
3986
|
-
*/
|
|
3987
|
-
createUploadURL(options?: any): AxiosPromise<UploadURLResponse>;
|
|
3988
|
-
/**
|
|
3989
|
-
* List existing products
|
|
3990
|
-
* @summary List existing products
|
|
3991
|
-
* @param {ProductKind} [kind] The product kind
|
|
3992
|
-
* @param {string} [search] search string
|
|
3993
|
-
* @param {ProductUsage} [usage] The product usage
|
|
3994
|
-
* @param {ProductStatus} [status] The product status
|
|
3995
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
3996
|
-
* @param {string} [segmentID] The segment ID
|
|
3997
|
-
* @param {string} [nextToken] This is the pagination token
|
|
3998
|
-
* @param {*} [options] Override http request option.
|
|
3999
|
-
* @throws {RequiredError}
|
|
4000
|
-
*/
|
|
4001
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
|
|
4002
|
-
};
|
|
4003
|
-
/**
|
|
4004
|
-
* RewardApi - object-oriented interface
|
|
4005
|
-
* @export
|
|
4006
|
-
* @class RewardApi
|
|
4007
|
-
* @extends {BaseAPI}
|
|
4008
|
-
*/
|
|
4009
|
-
export declare class RewardApi extends BaseAPI {
|
|
4010
|
-
/**
|
|
4011
|
-
* Create upload URL for reward
|
|
4012
|
-
* @summary Create upload URL for reward
|
|
4013
|
-
* @param {*} [options] Override http request option.
|
|
4014
|
-
* @throws {RequiredError}
|
|
4015
|
-
* @memberof RewardApi
|
|
4016
|
-
*/
|
|
4017
|
-
createUploadURL(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadURLResponse, any>>;
|
|
4018
|
-
/**
|
|
4019
|
-
* List existing products
|
|
4020
|
-
* @summary List existing products
|
|
4021
|
-
* @param {ProductKind} [kind] The product kind
|
|
4022
|
-
* @param {string} [search] search string
|
|
4023
|
-
* @param {ProductUsage} [usage] The product usage
|
|
4024
|
-
* @param {ProductStatus} [status] The product status
|
|
4025
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
4026
|
-
* @param {string} [segmentID] The segment ID
|
|
4027
|
-
* @param {string} [nextToken] This is the pagination token
|
|
4028
|
-
* @param {*} [options] Override http request option.
|
|
4029
|
-
* @throws {RequiredError}
|
|
4030
|
-
* @memberof RewardApi
|
|
4031
|
-
*/
|
|
4032
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
4033
|
-
}
|
|
4034
4473
|
/**
|
|
4035
4474
|
* SegmentApi - axios parameter creator
|
|
4036
4475
|
* @export
|
|
@@ -4363,12 +4802,12 @@ export declare const TransactionApiAxiosParamCreator: (configuration?: Configura
|
|
|
4363
4802
|
/**
|
|
4364
4803
|
* List existing transactions
|
|
4365
4804
|
* @summary List existing transactions
|
|
4366
|
-
* @param {string} clientID This is the client ID
|
|
4367
4805
|
* @param {string} [paginationToken] This is the pagination token
|
|
4806
|
+
* @param {string} [clientID] This is the client ID
|
|
4368
4807
|
* @param {*} [options] Override http request option.
|
|
4369
4808
|
* @throws {RequiredError}
|
|
4370
4809
|
*/
|
|
4371
|
-
listTransactions: (
|
|
4810
|
+
listTransactions: (paginationToken?: string, clientID?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4372
4811
|
};
|
|
4373
4812
|
/**
|
|
4374
4813
|
* TransactionApi - functional programming interface
|
|
@@ -4378,12 +4817,12 @@ export declare const TransactionApiFp: (configuration?: Configuration) => {
|
|
|
4378
4817
|
/**
|
|
4379
4818
|
* List existing transactions
|
|
4380
4819
|
* @summary List existing transactions
|
|
4381
|
-
* @param {string} clientID This is the client ID
|
|
4382
4820
|
* @param {string} [paginationToken] This is the pagination token
|
|
4821
|
+
* @param {string} [clientID] This is the client ID
|
|
4383
4822
|
* @param {*} [options] Override http request option.
|
|
4384
4823
|
* @throws {RequiredError}
|
|
4385
4824
|
*/
|
|
4386
|
-
listTransactions(
|
|
4825
|
+
listTransactions(paginationToken?: string, clientID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>>;
|
|
4387
4826
|
};
|
|
4388
4827
|
/**
|
|
4389
4828
|
* TransactionApi - factory interface
|
|
@@ -4393,12 +4832,12 @@ export declare const TransactionApiFactory: (configuration?: Configuration, base
|
|
|
4393
4832
|
/**
|
|
4394
4833
|
* List existing transactions
|
|
4395
4834
|
* @summary List existing transactions
|
|
4396
|
-
* @param {string} clientID This is the client ID
|
|
4397
4835
|
* @param {string} [paginationToken] This is the pagination token
|
|
4836
|
+
* @param {string} [clientID] This is the client ID
|
|
4398
4837
|
* @param {*} [options] Override http request option.
|
|
4399
4838
|
* @throws {RequiredError}
|
|
4400
4839
|
*/
|
|
4401
|
-
listTransactions(
|
|
4840
|
+
listTransactions(paginationToken?: string, clientID?: string, options?: any): AxiosPromise<TransactionsResponse>;
|
|
4402
4841
|
};
|
|
4403
4842
|
/**
|
|
4404
4843
|
* TransactionApi - object-oriented interface
|
|
@@ -4410,13 +4849,13 @@ export declare class TransactionApi extends BaseAPI {
|
|
|
4410
4849
|
/**
|
|
4411
4850
|
* List existing transactions
|
|
4412
4851
|
* @summary List existing transactions
|
|
4413
|
-
* @param {string} clientID This is the client ID
|
|
4414
4852
|
* @param {string} [paginationToken] This is the pagination token
|
|
4853
|
+
* @param {string} [clientID] This is the client ID
|
|
4415
4854
|
* @param {*} [options] Override http request option.
|
|
4416
4855
|
* @throws {RequiredError}
|
|
4417
4856
|
* @memberof TransactionApi
|
|
4418
4857
|
*/
|
|
4419
|
-
listTransactions(
|
|
4858
|
+
listTransactions(paginationToken?: string, clientID?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransactionsResponse, any>>;
|
|
4420
4859
|
}
|
|
4421
4860
|
/**
|
|
4422
4861
|
* UserApi - axios parameter creator
|