flexinet-api 0.0.491-prerelease0 → 0.0.494-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 +110 -0
- package/dist/api.d.ts +63 -0
- package/dist/api.js +89 -3
- package/dist/esm/api.d.ts +63 -0
- package/dist/esm/api.js +86 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.494-prerelease0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install flexinet-api@0.0.
|
|
39
|
+
npm install flexinet-api@0.0.494-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -2647,6 +2647,18 @@ export interface Transaction {
|
|
|
2647
2647
|
* @memberof Transaction
|
|
2648
2648
|
*/
|
|
2649
2649
|
'kind': TransactionKind;
|
|
2650
|
+
/**
|
|
2651
|
+
*
|
|
2652
|
+
* @type {TransactionSource}
|
|
2653
|
+
* @memberof Transaction
|
|
2654
|
+
*/
|
|
2655
|
+
'source': TransactionSource;
|
|
2656
|
+
/**
|
|
2657
|
+
*
|
|
2658
|
+
* @type {string}
|
|
2659
|
+
* @memberof Transaction
|
|
2660
|
+
*/
|
|
2661
|
+
'sourceReference'?: string;
|
|
2650
2662
|
/**
|
|
2651
2663
|
*
|
|
2652
2664
|
* @type {number}
|
|
@@ -2771,6 +2783,24 @@ export const TransactionKind = {
|
|
|
2771
2783
|
export type TransactionKind = typeof TransactionKind[keyof typeof TransactionKind];
|
|
2772
2784
|
|
|
2773
2785
|
|
|
2786
|
+
/**
|
|
2787
|
+
*
|
|
2788
|
+
* @export
|
|
2789
|
+
* @enum {string}
|
|
2790
|
+
*/
|
|
2791
|
+
|
|
2792
|
+
export const TransactionSource = {
|
|
2793
|
+
SalesEvent: 'sales_event',
|
|
2794
|
+
Webshop: 'webshop',
|
|
2795
|
+
Promotion: 'promotion',
|
|
2796
|
+
Manual: 'manual',
|
|
2797
|
+
Expiry: 'expiry',
|
|
2798
|
+
Transfer: 'transfer'
|
|
2799
|
+
} as const;
|
|
2800
|
+
|
|
2801
|
+
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
|
2802
|
+
|
|
2803
|
+
|
|
2774
2804
|
/**
|
|
2775
2805
|
*
|
|
2776
2806
|
* @export
|
|
@@ -8792,6 +8822,50 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
|
|
|
8792
8822
|
|
|
8793
8823
|
|
|
8794
8824
|
|
|
8825
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8827
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8828
|
+
|
|
8829
|
+
return {
|
|
8830
|
+
url: toPathString(localVarUrlObj),
|
|
8831
|
+
options: localVarRequestOptions,
|
|
8832
|
+
};
|
|
8833
|
+
},
|
|
8834
|
+
/**
|
|
8835
|
+
* List existing transactions
|
|
8836
|
+
* @summary List existing transactions for users
|
|
8837
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
8838
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
8839
|
+
* @param {*} [options] Override http request option.
|
|
8840
|
+
* @throws {RequiredError}
|
|
8841
|
+
*/
|
|
8842
|
+
listUserTransactions: async (paginationToken?: string, userIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8843
|
+
const localVarPath = `/users/transactions`;
|
|
8844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8845
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8846
|
+
let baseOptions;
|
|
8847
|
+
if (configuration) {
|
|
8848
|
+
baseOptions = configuration.baseOptions;
|
|
8849
|
+
}
|
|
8850
|
+
|
|
8851
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8852
|
+
const localVarHeaderParameter = {} as any;
|
|
8853
|
+
const localVarQueryParameter = {} as any;
|
|
8854
|
+
|
|
8855
|
+
// authentication customerJWT required
|
|
8856
|
+
// http bearer authentication required
|
|
8857
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8858
|
+
|
|
8859
|
+
if (paginationToken !== undefined) {
|
|
8860
|
+
localVarQueryParameter['paginationToken'] = paginationToken;
|
|
8861
|
+
}
|
|
8862
|
+
|
|
8863
|
+
if (userIDs) {
|
|
8864
|
+
localVarQueryParameter['userIDs'] = userIDs;
|
|
8865
|
+
}
|
|
8866
|
+
|
|
8867
|
+
|
|
8868
|
+
|
|
8795
8869
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8796
8870
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8797
8871
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8824,6 +8898,18 @@ export const TransactionApiFp = function(configuration?: Configuration) {
|
|
|
8824
8898
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(paginationToken, clientIDs, userIDs, options);
|
|
8825
8899
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8826
8900
|
},
|
|
8901
|
+
/**
|
|
8902
|
+
* List existing transactions
|
|
8903
|
+
* @summary List existing transactions for users
|
|
8904
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
8905
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
8906
|
+
* @param {*} [options] Override http request option.
|
|
8907
|
+
* @throws {RequiredError}
|
|
8908
|
+
*/
|
|
8909
|
+
async listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>> {
|
|
8910
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserTransactions(paginationToken, userIDs, options);
|
|
8911
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8912
|
+
},
|
|
8827
8913
|
}
|
|
8828
8914
|
};
|
|
8829
8915
|
|
|
@@ -8846,6 +8932,17 @@ export const TransactionApiFactory = function (configuration?: Configuration, ba
|
|
|
8846
8932
|
listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse> {
|
|
8847
8933
|
return localVarFp.listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(axios, basePath));
|
|
8848
8934
|
},
|
|
8935
|
+
/**
|
|
8936
|
+
* List existing transactions
|
|
8937
|
+
* @summary List existing transactions for users
|
|
8938
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
8939
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
8940
|
+
* @param {*} [options] Override http request option.
|
|
8941
|
+
* @throws {RequiredError}
|
|
8942
|
+
*/
|
|
8943
|
+
listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse> {
|
|
8944
|
+
return localVarFp.listUserTransactions(paginationToken, userIDs, options).then((request) => request(axios, basePath));
|
|
8945
|
+
},
|
|
8849
8946
|
};
|
|
8850
8947
|
};
|
|
8851
8948
|
|
|
@@ -8869,6 +8966,19 @@ export class TransactionApi extends BaseAPI {
|
|
|
8869
8966
|
public listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig) {
|
|
8870
8967
|
return TransactionApiFp(this.configuration).listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(this.axios, this.basePath));
|
|
8871
8968
|
}
|
|
8969
|
+
|
|
8970
|
+
/**
|
|
8971
|
+
* List existing transactions
|
|
8972
|
+
* @summary List existing transactions for users
|
|
8973
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
8974
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
8975
|
+
* @param {*} [options] Override http request option.
|
|
8976
|
+
* @throws {RequiredError}
|
|
8977
|
+
* @memberof TransactionApi
|
|
8978
|
+
*/
|
|
8979
|
+
public listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig) {
|
|
8980
|
+
return TransactionApiFp(this.configuration).listUserTransactions(paginationToken, userIDs, options).then((request) => request(this.axios, this.basePath));
|
|
8981
|
+
}
|
|
8872
8982
|
}
|
|
8873
8983
|
|
|
8874
8984
|
|
package/dist/api.d.ts
CHANGED
|
@@ -2505,6 +2505,18 @@ export interface Transaction {
|
|
|
2505
2505
|
* @memberof Transaction
|
|
2506
2506
|
*/
|
|
2507
2507
|
'kind': TransactionKind;
|
|
2508
|
+
/**
|
|
2509
|
+
*
|
|
2510
|
+
* @type {TransactionSource}
|
|
2511
|
+
* @memberof Transaction
|
|
2512
|
+
*/
|
|
2513
|
+
'source': TransactionSource;
|
|
2514
|
+
/**
|
|
2515
|
+
*
|
|
2516
|
+
* @type {string}
|
|
2517
|
+
* @memberof Transaction
|
|
2518
|
+
*/
|
|
2519
|
+
'sourceReference'?: string;
|
|
2508
2520
|
/**
|
|
2509
2521
|
*
|
|
2510
2522
|
* @type {number}
|
|
@@ -2621,6 +2633,20 @@ export declare const TransactionKind: {
|
|
|
2621
2633
|
readonly Debit: "debit";
|
|
2622
2634
|
};
|
|
2623
2635
|
export type TransactionKind = typeof TransactionKind[keyof typeof TransactionKind];
|
|
2636
|
+
/**
|
|
2637
|
+
*
|
|
2638
|
+
* @export
|
|
2639
|
+
* @enum {string}
|
|
2640
|
+
*/
|
|
2641
|
+
export declare const TransactionSource: {
|
|
2642
|
+
readonly SalesEvent: "sales_event";
|
|
2643
|
+
readonly Webshop: "webshop";
|
|
2644
|
+
readonly Promotion: "promotion";
|
|
2645
|
+
readonly Manual: "manual";
|
|
2646
|
+
readonly Expiry: "expiry";
|
|
2647
|
+
readonly Transfer: "transfer";
|
|
2648
|
+
};
|
|
2649
|
+
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
|
2624
2650
|
/**
|
|
2625
2651
|
*
|
|
2626
2652
|
* @export
|
|
@@ -5746,6 +5772,15 @@ export declare const TransactionApiAxiosParamCreator: (configuration?: Configura
|
|
|
5746
5772
|
* @throws {RequiredError}
|
|
5747
5773
|
*/
|
|
5748
5774
|
listTransactions: (paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5775
|
+
/**
|
|
5776
|
+
* List existing transactions
|
|
5777
|
+
* @summary List existing transactions for users
|
|
5778
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5779
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5780
|
+
* @param {*} [options] Override http request option.
|
|
5781
|
+
* @throws {RequiredError}
|
|
5782
|
+
*/
|
|
5783
|
+
listUserTransactions: (paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5749
5784
|
};
|
|
5750
5785
|
/**
|
|
5751
5786
|
* TransactionApi - functional programming interface
|
|
@@ -5762,6 +5797,15 @@ export declare const TransactionApiFp: (configuration?: Configuration) => {
|
|
|
5762
5797
|
* @throws {RequiredError}
|
|
5763
5798
|
*/
|
|
5764
5799
|
listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>>;
|
|
5800
|
+
/**
|
|
5801
|
+
* List existing transactions
|
|
5802
|
+
* @summary List existing transactions for users
|
|
5803
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5804
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5805
|
+
* @param {*} [options] Override http request option.
|
|
5806
|
+
* @throws {RequiredError}
|
|
5807
|
+
*/
|
|
5808
|
+
listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>>;
|
|
5765
5809
|
};
|
|
5766
5810
|
/**
|
|
5767
5811
|
* TransactionApi - factory interface
|
|
@@ -5778,6 +5822,15 @@ export declare const TransactionApiFactory: (configuration?: Configuration, base
|
|
|
5778
5822
|
* @throws {RequiredError}
|
|
5779
5823
|
*/
|
|
5780
5824
|
listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse>;
|
|
5825
|
+
/**
|
|
5826
|
+
* List existing transactions
|
|
5827
|
+
* @summary List existing transactions for users
|
|
5828
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5829
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5830
|
+
* @param {*} [options] Override http request option.
|
|
5831
|
+
* @throws {RequiredError}
|
|
5832
|
+
*/
|
|
5833
|
+
listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse>;
|
|
5781
5834
|
};
|
|
5782
5835
|
/**
|
|
5783
5836
|
* TransactionApi - object-oriented interface
|
|
@@ -5797,6 +5850,16 @@ export declare class TransactionApi extends BaseAPI {
|
|
|
5797
5850
|
* @memberof TransactionApi
|
|
5798
5851
|
*/
|
|
5799
5852
|
listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransactionsResponse, any>>;
|
|
5853
|
+
/**
|
|
5854
|
+
* List existing transactions
|
|
5855
|
+
* @summary List existing transactions for users
|
|
5856
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5857
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5858
|
+
* @param {*} [options] Override http request option.
|
|
5859
|
+
* @throws {RequiredError}
|
|
5860
|
+
* @memberof TransactionApi
|
|
5861
|
+
*/
|
|
5862
|
+
listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransactionsResponse, any>>;
|
|
5800
5863
|
}
|
|
5801
5864
|
/**
|
|
5802
5865
|
* UserApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.UserApi = void 0;
|
|
25
|
+
exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
|
|
26
|
+
exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = void 0;
|
|
27
|
+
exports.UserApi = exports.UserApiFactory = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -280,6 +280,19 @@ exports.TransactionKind = {
|
|
|
280
280
|
Credit: 'credit',
|
|
281
281
|
Debit: 'debit'
|
|
282
282
|
};
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @export
|
|
286
|
+
* @enum {string}
|
|
287
|
+
*/
|
|
288
|
+
exports.TransactionSource = {
|
|
289
|
+
SalesEvent: 'sales_event',
|
|
290
|
+
Webshop: 'webshop',
|
|
291
|
+
Promotion: 'promotion',
|
|
292
|
+
Manual: 'manual',
|
|
293
|
+
Expiry: 'expiry',
|
|
294
|
+
Transfer: 'transfer'
|
|
295
|
+
};
|
|
283
296
|
/**
|
|
284
297
|
*
|
|
285
298
|
* @export
|
|
@@ -5454,6 +5467,42 @@ const TransactionApiAxiosParamCreator = function (configuration) {
|
|
|
5454
5467
|
options: localVarRequestOptions,
|
|
5455
5468
|
};
|
|
5456
5469
|
}),
|
|
5470
|
+
/**
|
|
5471
|
+
* List existing transactions
|
|
5472
|
+
* @summary List existing transactions for users
|
|
5473
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5474
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5475
|
+
* @param {*} [options] Override http request option.
|
|
5476
|
+
* @throws {RequiredError}
|
|
5477
|
+
*/
|
|
5478
|
+
listUserTransactions: (paginationToken, userIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5479
|
+
const localVarPath = `/users/transactions`;
|
|
5480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5481
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5482
|
+
let baseOptions;
|
|
5483
|
+
if (configuration) {
|
|
5484
|
+
baseOptions = configuration.baseOptions;
|
|
5485
|
+
}
|
|
5486
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5487
|
+
const localVarHeaderParameter = {};
|
|
5488
|
+
const localVarQueryParameter = {};
|
|
5489
|
+
// authentication customerJWT required
|
|
5490
|
+
// http bearer authentication required
|
|
5491
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5492
|
+
if (paginationToken !== undefined) {
|
|
5493
|
+
localVarQueryParameter['paginationToken'] = paginationToken;
|
|
5494
|
+
}
|
|
5495
|
+
if (userIDs) {
|
|
5496
|
+
localVarQueryParameter['userIDs'] = userIDs;
|
|
5497
|
+
}
|
|
5498
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5500
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5501
|
+
return {
|
|
5502
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5503
|
+
options: localVarRequestOptions,
|
|
5504
|
+
};
|
|
5505
|
+
}),
|
|
5457
5506
|
};
|
|
5458
5507
|
};
|
|
5459
5508
|
exports.TransactionApiAxiosParamCreator = TransactionApiAxiosParamCreator;
|
|
@@ -5479,6 +5528,20 @@ const TransactionApiFp = function (configuration) {
|
|
|
5479
5528
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5480
5529
|
});
|
|
5481
5530
|
},
|
|
5531
|
+
/**
|
|
5532
|
+
* List existing transactions
|
|
5533
|
+
* @summary List existing transactions for users
|
|
5534
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5535
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5536
|
+
* @param {*} [options] Override http request option.
|
|
5537
|
+
* @throws {RequiredError}
|
|
5538
|
+
*/
|
|
5539
|
+
listUserTransactions(paginationToken, userIDs, options) {
|
|
5540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5541
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserTransactions(paginationToken, userIDs, options);
|
|
5542
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5543
|
+
});
|
|
5544
|
+
},
|
|
5482
5545
|
};
|
|
5483
5546
|
};
|
|
5484
5547
|
exports.TransactionApiFp = TransactionApiFp;
|
|
@@ -5501,6 +5564,17 @@ const TransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
5501
5564
|
listTransactions(paginationToken, clientIDs, userIDs, options) {
|
|
5502
5565
|
return localVarFp.listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(axios, basePath));
|
|
5503
5566
|
},
|
|
5567
|
+
/**
|
|
5568
|
+
* List existing transactions
|
|
5569
|
+
* @summary List existing transactions for users
|
|
5570
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5571
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5572
|
+
* @param {*} [options] Override http request option.
|
|
5573
|
+
* @throws {RequiredError}
|
|
5574
|
+
*/
|
|
5575
|
+
listUserTransactions(paginationToken, userIDs, options) {
|
|
5576
|
+
return localVarFp.listUserTransactions(paginationToken, userIDs, options).then((request) => request(axios, basePath));
|
|
5577
|
+
},
|
|
5504
5578
|
};
|
|
5505
5579
|
};
|
|
5506
5580
|
exports.TransactionApiFactory = TransactionApiFactory;
|
|
@@ -5524,6 +5598,18 @@ class TransactionApi extends base_1.BaseAPI {
|
|
|
5524
5598
|
listTransactions(paginationToken, clientIDs, userIDs, options) {
|
|
5525
5599
|
return (0, exports.TransactionApiFp)(this.configuration).listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(this.axios, this.basePath));
|
|
5526
5600
|
}
|
|
5601
|
+
/**
|
|
5602
|
+
* List existing transactions
|
|
5603
|
+
* @summary List existing transactions for users
|
|
5604
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5605
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5606
|
+
* @param {*} [options] Override http request option.
|
|
5607
|
+
* @throws {RequiredError}
|
|
5608
|
+
* @memberof TransactionApi
|
|
5609
|
+
*/
|
|
5610
|
+
listUserTransactions(paginationToken, userIDs, options) {
|
|
5611
|
+
return (0, exports.TransactionApiFp)(this.configuration).listUserTransactions(paginationToken, userIDs, options).then((request) => request(this.axios, this.basePath));
|
|
5612
|
+
}
|
|
5527
5613
|
}
|
|
5528
5614
|
exports.TransactionApi = TransactionApi;
|
|
5529
5615
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2505,6 +2505,18 @@ export interface Transaction {
|
|
|
2505
2505
|
* @memberof Transaction
|
|
2506
2506
|
*/
|
|
2507
2507
|
'kind': TransactionKind;
|
|
2508
|
+
/**
|
|
2509
|
+
*
|
|
2510
|
+
* @type {TransactionSource}
|
|
2511
|
+
* @memberof Transaction
|
|
2512
|
+
*/
|
|
2513
|
+
'source': TransactionSource;
|
|
2514
|
+
/**
|
|
2515
|
+
*
|
|
2516
|
+
* @type {string}
|
|
2517
|
+
* @memberof Transaction
|
|
2518
|
+
*/
|
|
2519
|
+
'sourceReference'?: string;
|
|
2508
2520
|
/**
|
|
2509
2521
|
*
|
|
2510
2522
|
* @type {number}
|
|
@@ -2621,6 +2633,20 @@ export declare const TransactionKind: {
|
|
|
2621
2633
|
readonly Debit: "debit";
|
|
2622
2634
|
};
|
|
2623
2635
|
export type TransactionKind = typeof TransactionKind[keyof typeof TransactionKind];
|
|
2636
|
+
/**
|
|
2637
|
+
*
|
|
2638
|
+
* @export
|
|
2639
|
+
* @enum {string}
|
|
2640
|
+
*/
|
|
2641
|
+
export declare const TransactionSource: {
|
|
2642
|
+
readonly SalesEvent: "sales_event";
|
|
2643
|
+
readonly Webshop: "webshop";
|
|
2644
|
+
readonly Promotion: "promotion";
|
|
2645
|
+
readonly Manual: "manual";
|
|
2646
|
+
readonly Expiry: "expiry";
|
|
2647
|
+
readonly Transfer: "transfer";
|
|
2648
|
+
};
|
|
2649
|
+
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
|
2624
2650
|
/**
|
|
2625
2651
|
*
|
|
2626
2652
|
* @export
|
|
@@ -5746,6 +5772,15 @@ export declare const TransactionApiAxiosParamCreator: (configuration?: Configura
|
|
|
5746
5772
|
* @throws {RequiredError}
|
|
5747
5773
|
*/
|
|
5748
5774
|
listTransactions: (paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5775
|
+
/**
|
|
5776
|
+
* List existing transactions
|
|
5777
|
+
* @summary List existing transactions for users
|
|
5778
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5779
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5780
|
+
* @param {*} [options] Override http request option.
|
|
5781
|
+
* @throws {RequiredError}
|
|
5782
|
+
*/
|
|
5783
|
+
listUserTransactions: (paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5749
5784
|
};
|
|
5750
5785
|
/**
|
|
5751
5786
|
* TransactionApi - functional programming interface
|
|
@@ -5762,6 +5797,15 @@ export declare const TransactionApiFp: (configuration?: Configuration) => {
|
|
|
5762
5797
|
* @throws {RequiredError}
|
|
5763
5798
|
*/
|
|
5764
5799
|
listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>>;
|
|
5800
|
+
/**
|
|
5801
|
+
* List existing transactions
|
|
5802
|
+
* @summary List existing transactions for users
|
|
5803
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5804
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5805
|
+
* @param {*} [options] Override http request option.
|
|
5806
|
+
* @throws {RequiredError}
|
|
5807
|
+
*/
|
|
5808
|
+
listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>>;
|
|
5765
5809
|
};
|
|
5766
5810
|
/**
|
|
5767
5811
|
* TransactionApi - factory interface
|
|
@@ -5778,6 +5822,15 @@ export declare const TransactionApiFactory: (configuration?: Configuration, base
|
|
|
5778
5822
|
* @throws {RequiredError}
|
|
5779
5823
|
*/
|
|
5780
5824
|
listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse>;
|
|
5825
|
+
/**
|
|
5826
|
+
* List existing transactions
|
|
5827
|
+
* @summary List existing transactions for users
|
|
5828
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5829
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5830
|
+
* @param {*} [options] Override http request option.
|
|
5831
|
+
* @throws {RequiredError}
|
|
5832
|
+
*/
|
|
5833
|
+
listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse>;
|
|
5781
5834
|
};
|
|
5782
5835
|
/**
|
|
5783
5836
|
* TransactionApi - object-oriented interface
|
|
@@ -5797,6 +5850,16 @@ export declare class TransactionApi extends BaseAPI {
|
|
|
5797
5850
|
* @memberof TransactionApi
|
|
5798
5851
|
*/
|
|
5799
5852
|
listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransactionsResponse, any>>;
|
|
5853
|
+
/**
|
|
5854
|
+
* List existing transactions
|
|
5855
|
+
* @summary List existing transactions for users
|
|
5856
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5857
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5858
|
+
* @param {*} [options] Override http request option.
|
|
5859
|
+
* @throws {RequiredError}
|
|
5860
|
+
* @memberof TransactionApi
|
|
5861
|
+
*/
|
|
5862
|
+
listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransactionsResponse, any>>;
|
|
5800
5863
|
}
|
|
5801
5864
|
/**
|
|
5802
5865
|
* UserApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -275,6 +275,19 @@ export const TransactionKind = {
|
|
|
275
275
|
Credit: 'credit',
|
|
276
276
|
Debit: 'debit'
|
|
277
277
|
};
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @export
|
|
281
|
+
* @enum {string}
|
|
282
|
+
*/
|
|
283
|
+
export const TransactionSource = {
|
|
284
|
+
SalesEvent: 'sales_event',
|
|
285
|
+
Webshop: 'webshop',
|
|
286
|
+
Promotion: 'promotion',
|
|
287
|
+
Manual: 'manual',
|
|
288
|
+
Expiry: 'expiry',
|
|
289
|
+
Transfer: 'transfer'
|
|
290
|
+
};
|
|
278
291
|
/**
|
|
279
292
|
*
|
|
280
293
|
* @export
|
|
@@ -5389,6 +5402,42 @@ export const TransactionApiAxiosParamCreator = function (configuration) {
|
|
|
5389
5402
|
options: localVarRequestOptions,
|
|
5390
5403
|
};
|
|
5391
5404
|
}),
|
|
5405
|
+
/**
|
|
5406
|
+
* List existing transactions
|
|
5407
|
+
* @summary List existing transactions for users
|
|
5408
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5409
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5410
|
+
* @param {*} [options] Override http request option.
|
|
5411
|
+
* @throws {RequiredError}
|
|
5412
|
+
*/
|
|
5413
|
+
listUserTransactions: (paginationToken, userIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5414
|
+
const localVarPath = `/users/transactions`;
|
|
5415
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5416
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5417
|
+
let baseOptions;
|
|
5418
|
+
if (configuration) {
|
|
5419
|
+
baseOptions = configuration.baseOptions;
|
|
5420
|
+
}
|
|
5421
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5422
|
+
const localVarHeaderParameter = {};
|
|
5423
|
+
const localVarQueryParameter = {};
|
|
5424
|
+
// authentication customerJWT required
|
|
5425
|
+
// http bearer authentication required
|
|
5426
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5427
|
+
if (paginationToken !== undefined) {
|
|
5428
|
+
localVarQueryParameter['paginationToken'] = paginationToken;
|
|
5429
|
+
}
|
|
5430
|
+
if (userIDs) {
|
|
5431
|
+
localVarQueryParameter['userIDs'] = userIDs;
|
|
5432
|
+
}
|
|
5433
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5434
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5435
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5436
|
+
return {
|
|
5437
|
+
url: toPathString(localVarUrlObj),
|
|
5438
|
+
options: localVarRequestOptions,
|
|
5439
|
+
};
|
|
5440
|
+
}),
|
|
5392
5441
|
};
|
|
5393
5442
|
};
|
|
5394
5443
|
/**
|
|
@@ -5413,6 +5462,20 @@ export const TransactionApiFp = function (configuration) {
|
|
|
5413
5462
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5414
5463
|
});
|
|
5415
5464
|
},
|
|
5465
|
+
/**
|
|
5466
|
+
* List existing transactions
|
|
5467
|
+
* @summary List existing transactions for users
|
|
5468
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5469
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5470
|
+
* @param {*} [options] Override http request option.
|
|
5471
|
+
* @throws {RequiredError}
|
|
5472
|
+
*/
|
|
5473
|
+
listUserTransactions(paginationToken, userIDs, options) {
|
|
5474
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5475
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserTransactions(paginationToken, userIDs, options);
|
|
5476
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5477
|
+
});
|
|
5478
|
+
},
|
|
5416
5479
|
};
|
|
5417
5480
|
};
|
|
5418
5481
|
/**
|
|
@@ -5434,6 +5497,17 @@ export const TransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
5434
5497
|
listTransactions(paginationToken, clientIDs, userIDs, options) {
|
|
5435
5498
|
return localVarFp.listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(axios, basePath));
|
|
5436
5499
|
},
|
|
5500
|
+
/**
|
|
5501
|
+
* List existing transactions
|
|
5502
|
+
* @summary List existing transactions for users
|
|
5503
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5504
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5505
|
+
* @param {*} [options] Override http request option.
|
|
5506
|
+
* @throws {RequiredError}
|
|
5507
|
+
*/
|
|
5508
|
+
listUserTransactions(paginationToken, userIDs, options) {
|
|
5509
|
+
return localVarFp.listUserTransactions(paginationToken, userIDs, options).then((request) => request(axios, basePath));
|
|
5510
|
+
},
|
|
5437
5511
|
};
|
|
5438
5512
|
};
|
|
5439
5513
|
/**
|
|
@@ -5456,6 +5530,18 @@ export class TransactionApi extends BaseAPI {
|
|
|
5456
5530
|
listTransactions(paginationToken, clientIDs, userIDs, options) {
|
|
5457
5531
|
return TransactionApiFp(this.configuration).listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(this.axios, this.basePath));
|
|
5458
5532
|
}
|
|
5533
|
+
/**
|
|
5534
|
+
* List existing transactions
|
|
5535
|
+
* @summary List existing transactions for users
|
|
5536
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5537
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
5538
|
+
* @param {*} [options] Override http request option.
|
|
5539
|
+
* @throws {RequiredError}
|
|
5540
|
+
* @memberof TransactionApi
|
|
5541
|
+
*/
|
|
5542
|
+
listUserTransactions(paginationToken, userIDs, options) {
|
|
5543
|
+
return TransactionApiFp(this.configuration).listUserTransactions(paginationToken, userIDs, options).then((request) => request(this.axios, this.basePath));
|
|
5544
|
+
}
|
|
5459
5545
|
}
|
|
5460
5546
|
/**
|
|
5461
5547
|
* UserApi - axios parameter creator
|