@gewis/sudosos-client 0.0.0-develop.e6519ec → 0.0.0-develop.ea8b1d1
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/dist/api.d.ts +514 -7
- package/dist/api.js +507 -7
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ export interface AcceptTosRequest {
|
|
|
25
25
|
* @memberof AcceptTosRequest
|
|
26
26
|
*/
|
|
27
27
|
'extensiveDataProcessing': boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The TOS version being accepted.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AcceptTosRequest
|
|
32
|
+
*/
|
|
33
|
+
'version': string;
|
|
28
34
|
}
|
|
29
35
|
/**
|
|
30
36
|
*
|
|
@@ -2112,6 +2118,19 @@ export interface CreateShiftRequest {
|
|
|
2112
2118
|
*/
|
|
2113
2119
|
'roles': Array<string>;
|
|
2114
2120
|
}
|
|
2121
|
+
/**
|
|
2122
|
+
*
|
|
2123
|
+
* @export
|
|
2124
|
+
* @interface CreateTerminalPaymentRequest
|
|
2125
|
+
*/
|
|
2126
|
+
export interface CreateTerminalPaymentRequest {
|
|
2127
|
+
/**
|
|
2128
|
+
*
|
|
2129
|
+
* @type {TransactionRequest}
|
|
2130
|
+
* @memberof CreateTerminalPaymentRequest
|
|
2131
|
+
*/
|
|
2132
|
+
'transaction': TransactionRequest;
|
|
2133
|
+
}
|
|
2115
2134
|
/**
|
|
2116
2135
|
*
|
|
2117
2136
|
* @export
|
|
@@ -4201,6 +4220,19 @@ export interface PointOfSaleWithContainersResponse {
|
|
|
4201
4220
|
*/
|
|
4202
4221
|
'containers': Array<ContainerWithProductsResponse>;
|
|
4203
4222
|
}
|
|
4223
|
+
/**
|
|
4224
|
+
*
|
|
4225
|
+
* @export
|
|
4226
|
+
* @interface ProcessTerminalPaymentRequest
|
|
4227
|
+
*/
|
|
4228
|
+
export interface ProcessTerminalPaymentRequest {
|
|
4229
|
+
/**
|
|
4230
|
+
* The ID of the Stripe terminal to perform the payment with
|
|
4231
|
+
* @type {string}
|
|
4232
|
+
* @memberof ProcessTerminalPaymentRequest
|
|
4233
|
+
*/
|
|
4234
|
+
'stripeTerminalId': string;
|
|
4235
|
+
}
|
|
4204
4236
|
/**
|
|
4205
4237
|
* API Request for creating or updating a `product category` entity.
|
|
4206
4238
|
* @export
|
|
@@ -5093,6 +5125,37 @@ export interface StripePaymentIntentStatusResponse {
|
|
|
5093
5125
|
*/
|
|
5094
5126
|
'state': number;
|
|
5095
5127
|
}
|
|
5128
|
+
/**
|
|
5129
|
+
*
|
|
5130
|
+
* @export
|
|
5131
|
+
* @interface StripePaymentTerminalResponse
|
|
5132
|
+
*/
|
|
5133
|
+
export interface StripePaymentTerminalResponse {
|
|
5134
|
+
/**
|
|
5135
|
+
* The ID of the payment terminal
|
|
5136
|
+
* @type {string}
|
|
5137
|
+
* @memberof StripePaymentTerminalResponse
|
|
5138
|
+
*/
|
|
5139
|
+
'id': string;
|
|
5140
|
+
/**
|
|
5141
|
+
* The name of the payment terminal
|
|
5142
|
+
* @type {string}
|
|
5143
|
+
* @memberof StripePaymentTerminalResponse
|
|
5144
|
+
*/
|
|
5145
|
+
'name': string;
|
|
5146
|
+
/**
|
|
5147
|
+
* When the terminal was last seen. If more than 1 minute ago, the terminal might be offline. If more than 5 minutes ago, it is definitely offline.
|
|
5148
|
+
* @type {string}
|
|
5149
|
+
* @memberof StripePaymentTerminalResponse
|
|
5150
|
+
*/
|
|
5151
|
+
'lastSeenAt': string;
|
|
5152
|
+
/**
|
|
5153
|
+
* Whether the terminal is available to start processing a payment
|
|
5154
|
+
* @type {boolean}
|
|
5155
|
+
* @memberof StripePaymentTerminalResponse
|
|
5156
|
+
*/
|
|
5157
|
+
'available': boolean;
|
|
5158
|
+
}
|
|
5096
5159
|
/**
|
|
5097
5160
|
*
|
|
5098
5161
|
* @export
|
|
@@ -5285,6 +5348,67 @@ export interface SubTransactionRowResponse {
|
|
|
5285
5348
|
*/
|
|
5286
5349
|
'totalPriceInclVat': DineroObjectResponse;
|
|
5287
5350
|
}
|
|
5351
|
+
/**
|
|
5352
|
+
*
|
|
5353
|
+
* @export
|
|
5354
|
+
* @interface TerminalPaymentResponse
|
|
5355
|
+
*/
|
|
5356
|
+
export interface TerminalPaymentResponse {
|
|
5357
|
+
/**
|
|
5358
|
+
* The unique id of the entity.
|
|
5359
|
+
* @type {number}
|
|
5360
|
+
* @memberof TerminalPaymentResponse
|
|
5361
|
+
*/
|
|
5362
|
+
'id': number;
|
|
5363
|
+
/**
|
|
5364
|
+
* The creation Date of the entity.
|
|
5365
|
+
* @type {string}
|
|
5366
|
+
* @memberof TerminalPaymentResponse
|
|
5367
|
+
*/
|
|
5368
|
+
'createdAt'?: string;
|
|
5369
|
+
/**
|
|
5370
|
+
* The last update Date of the entity.
|
|
5371
|
+
* @type {string}
|
|
5372
|
+
* @memberof TerminalPaymentResponse
|
|
5373
|
+
*/
|
|
5374
|
+
'updatedAt'?: string;
|
|
5375
|
+
/**
|
|
5376
|
+
* The version of the entity.
|
|
5377
|
+
* @type {number}
|
|
5378
|
+
* @memberof TerminalPaymentResponse
|
|
5379
|
+
*/
|
|
5380
|
+
'version'?: number;
|
|
5381
|
+
/**
|
|
5382
|
+
*
|
|
5383
|
+
* @type {TransactionResponse}
|
|
5384
|
+
* @memberof TerminalPaymentResponse
|
|
5385
|
+
*/
|
|
5386
|
+
'transaction'?: TransactionResponse;
|
|
5387
|
+
/**
|
|
5388
|
+
*
|
|
5389
|
+
* @type {TransferResponse}
|
|
5390
|
+
* @memberof TerminalPaymentResponse
|
|
5391
|
+
*/
|
|
5392
|
+
'transfer'?: TransferResponse;
|
|
5393
|
+
/**
|
|
5394
|
+
*
|
|
5395
|
+
* @type {BaseUserResponse}
|
|
5396
|
+
* @memberof TerminalPaymentResponse
|
|
5397
|
+
*/
|
|
5398
|
+
'createdBy': BaseUserResponse;
|
|
5399
|
+
/**
|
|
5400
|
+
* The state of the terminal payment. One of \'created\', \'processing\', \'paid\' or \'cancelled\'.
|
|
5401
|
+
* @type {string}
|
|
5402
|
+
* @memberof TerminalPaymentResponse
|
|
5403
|
+
*/
|
|
5404
|
+
'state': string;
|
|
5405
|
+
/**
|
|
5406
|
+
*
|
|
5407
|
+
* @type {DineroObjectResponse}
|
|
5408
|
+
* @memberof TerminalPaymentResponse
|
|
5409
|
+
*/
|
|
5410
|
+
'amount': DineroObjectResponse;
|
|
5411
|
+
}
|
|
5288
5412
|
/**
|
|
5289
5413
|
*
|
|
5290
5414
|
* @export
|
|
@@ -5297,6 +5421,12 @@ export interface TermsOfServiceResponse {
|
|
|
5297
5421
|
* @memberof TermsOfServiceResponse
|
|
5298
5422
|
*/
|
|
5299
5423
|
'versionNumber': string;
|
|
5424
|
+
/**
|
|
5425
|
+
* The date this version took effect.
|
|
5426
|
+
* @type {string}
|
|
5427
|
+
* @memberof TermsOfServiceResponse
|
|
5428
|
+
*/
|
|
5429
|
+
'date': string;
|
|
5300
5430
|
/**
|
|
5301
5431
|
* The terms of service content.
|
|
5302
5432
|
* @type {string}
|
|
@@ -5304,6 +5434,17 @@ export interface TermsOfServiceResponse {
|
|
|
5304
5434
|
*/
|
|
5305
5435
|
'content': string;
|
|
5306
5436
|
}
|
|
5437
|
+
/**
|
|
5438
|
+
* The terms of service status of a user
|
|
5439
|
+
* @export
|
|
5440
|
+
* @enum {string}
|
|
5441
|
+
*/
|
|
5442
|
+
export declare const TermsOfServiceStatus: {
|
|
5443
|
+
readonly Accepted: "ACCEPTED";
|
|
5444
|
+
readonly NotAccepted: "NOT_ACCEPTED";
|
|
5445
|
+
readonly NotRequired: "NOT_REQUIRED";
|
|
5446
|
+
};
|
|
5447
|
+
export type TermsOfServiceStatus = typeof TermsOfServiceStatus[keyof typeof TermsOfServiceStatus];
|
|
5307
5448
|
/**
|
|
5308
5449
|
*
|
|
5309
5450
|
* @export
|
|
@@ -6551,11 +6692,11 @@ export interface UserResponse {
|
|
|
6551
6692
|
*/
|
|
6552
6693
|
'email'?: string;
|
|
6553
6694
|
/**
|
|
6554
|
-
* Whether this user
|
|
6555
|
-
* @type {
|
|
6695
|
+
* Whether this user is required to accept the TOS
|
|
6696
|
+
* @type {boolean}
|
|
6556
6697
|
* @memberof UserResponse
|
|
6557
6698
|
*/
|
|
6558
|
-
'
|
|
6699
|
+
'tosRequired'?: boolean;
|
|
6559
6700
|
/**
|
|
6560
6701
|
* Whether data about this user can be used (non-anonymously) for more data science!
|
|
6561
6702
|
* @type {boolean}
|
|
@@ -6704,6 +6845,50 @@ export interface UserToInactiveAdministrativeCostResponse {
|
|
|
6704
6845
|
*/
|
|
6705
6846
|
'nickname'?: string;
|
|
6706
6847
|
}
|
|
6848
|
+
/**
|
|
6849
|
+
*
|
|
6850
|
+
* @export
|
|
6851
|
+
* @interface UserTosAcceptanceResponse
|
|
6852
|
+
*/
|
|
6853
|
+
export interface UserTosAcceptanceResponse {
|
|
6854
|
+
/**
|
|
6855
|
+
* The accepted terms of service version number.
|
|
6856
|
+
* @type {string}
|
|
6857
|
+
* @memberof UserTosAcceptanceResponse
|
|
6858
|
+
*/
|
|
6859
|
+
'versionNumber': string;
|
|
6860
|
+
/**
|
|
6861
|
+
* The date at which this version was accepted.
|
|
6862
|
+
* @type {string}
|
|
6863
|
+
* @memberof UserTosAcceptanceResponse
|
|
6864
|
+
*/
|
|
6865
|
+
'acceptedAt': string;
|
|
6866
|
+
}
|
|
6867
|
+
/**
|
|
6868
|
+
*
|
|
6869
|
+
* @export
|
|
6870
|
+
* @interface UserTosResponse
|
|
6871
|
+
*/
|
|
6872
|
+
export interface UserTosResponse {
|
|
6873
|
+
/**
|
|
6874
|
+
*
|
|
6875
|
+
* @type {TermsOfServiceStatus}
|
|
6876
|
+
* @memberof UserTosResponse
|
|
6877
|
+
*/
|
|
6878
|
+
'status': TermsOfServiceStatus;
|
|
6879
|
+
/**
|
|
6880
|
+
* The current terms of service version number.
|
|
6881
|
+
* @type {string}
|
|
6882
|
+
* @memberof UserTosResponse
|
|
6883
|
+
*/
|
|
6884
|
+
'currentVersion': string;
|
|
6885
|
+
/**
|
|
6886
|
+
* All TOS versions the user has accepted.
|
|
6887
|
+
* @type {Array<UserTosAcceptanceResponse>}
|
|
6888
|
+
* @memberof UserTosResponse
|
|
6889
|
+
*/
|
|
6890
|
+
'acceptances': Array<UserTosAcceptanceResponse>;
|
|
6891
|
+
}
|
|
6707
6892
|
/**
|
|
6708
6893
|
* The type of a user
|
|
6709
6894
|
* @export
|
|
@@ -14725,6 +14910,13 @@ export declare const StripeApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
14725
14910
|
* @throws {RequiredError}
|
|
14726
14911
|
*/
|
|
14727
14912
|
getStripePublicKey: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14913
|
+
/**
|
|
14914
|
+
*
|
|
14915
|
+
* @summary Webhook for Stripe event updates
|
|
14916
|
+
* @param {*} [options] Override http request option.
|
|
14917
|
+
* @throws {RequiredError}
|
|
14918
|
+
*/
|
|
14919
|
+
webhook: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14728
14920
|
};
|
|
14729
14921
|
/**
|
|
14730
14922
|
* StripeApi - functional programming interface
|
|
@@ -14746,6 +14938,13 @@ export declare const StripeApiFp: (configuration?: Configuration) => {
|
|
|
14746
14938
|
* @throws {RequiredError}
|
|
14747
14939
|
*/
|
|
14748
14940
|
getStripePublicKey(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
14941
|
+
/**
|
|
14942
|
+
*
|
|
14943
|
+
* @summary Webhook for Stripe event updates
|
|
14944
|
+
* @param {*} [options] Override http request option.
|
|
14945
|
+
* @throws {RequiredError}
|
|
14946
|
+
*/
|
|
14947
|
+
webhook(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
14749
14948
|
};
|
|
14750
14949
|
/**
|
|
14751
14950
|
* StripeApi - factory interface
|
|
@@ -14767,6 +14966,13 @@ export declare const StripeApiFactory: (configuration?: Configuration, basePath?
|
|
|
14767
14966
|
* @throws {RequiredError}
|
|
14768
14967
|
*/
|
|
14769
14968
|
getStripePublicKey(options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
14969
|
+
/**
|
|
14970
|
+
*
|
|
14971
|
+
* @summary Webhook for Stripe event updates
|
|
14972
|
+
* @param {*} [options] Override http request option.
|
|
14973
|
+
* @throws {RequiredError}
|
|
14974
|
+
*/
|
|
14975
|
+
webhook(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
14770
14976
|
};
|
|
14771
14977
|
/**
|
|
14772
14978
|
* Request parameters for deposit operation in StripeApi.
|
|
@@ -14805,6 +15011,14 @@ export declare class StripeApi extends BaseAPI {
|
|
|
14805
15011
|
* @memberof StripeApi
|
|
14806
15012
|
*/
|
|
14807
15013
|
getStripePublicKey(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
15014
|
+
/**
|
|
15015
|
+
*
|
|
15016
|
+
* @summary Webhook for Stripe event updates
|
|
15017
|
+
* @param {*} [options] Override http request option.
|
|
15018
|
+
* @throws {RequiredError}
|
|
15019
|
+
* @memberof StripeApi
|
|
15020
|
+
*/
|
|
15021
|
+
webhook(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14808
15022
|
}
|
|
14809
15023
|
/**
|
|
14810
15024
|
* SyncApi - axios parameter creator
|
|
@@ -14886,6 +15100,253 @@ export declare const GetUserSyncResultsServiceEnum: {
|
|
|
14886
15100
|
readonly Gewisdb: "GEWISDB";
|
|
14887
15101
|
};
|
|
14888
15102
|
export type GetUserSyncResultsServiceEnum = typeof GetUserSyncResultsServiceEnum[keyof typeof GetUserSyncResultsServiceEnum];
|
|
15103
|
+
/**
|
|
15104
|
+
* TerminalPaymentsApi - axios parameter creator
|
|
15105
|
+
* @export
|
|
15106
|
+
*/
|
|
15107
|
+
export declare const TerminalPaymentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
15108
|
+
/**
|
|
15109
|
+
*
|
|
15110
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
15111
|
+
* @param {number} id The ID of the terminal payment
|
|
15112
|
+
* @param {*} [options] Override http request option.
|
|
15113
|
+
* @throws {RequiredError}
|
|
15114
|
+
*/
|
|
15115
|
+
cancelTerminalPayment: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15116
|
+
/**
|
|
15117
|
+
*
|
|
15118
|
+
* @summary Create a terminal payment before executing.
|
|
15119
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
15120
|
+
* @param {*} [options] Override http request option.
|
|
15121
|
+
* @throws {RequiredError}
|
|
15122
|
+
*/
|
|
15123
|
+
createTerminalPayment: (createTerminalPaymentRequest: CreateTerminalPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15124
|
+
/**
|
|
15125
|
+
*
|
|
15126
|
+
* @summary Get single terminal payment by ID
|
|
15127
|
+
* @param {number} id The ID of the terminal payment
|
|
15128
|
+
* @param {*} [options] Override http request option.
|
|
15129
|
+
* @throws {RequiredError}
|
|
15130
|
+
*/
|
|
15131
|
+
getSingleTerminalPayment: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15132
|
+
/**
|
|
15133
|
+
*
|
|
15134
|
+
* @summary Get all Stripe terminals
|
|
15135
|
+
* @param {*} [options] Override http request option.
|
|
15136
|
+
* @throws {RequiredError}
|
|
15137
|
+
*/
|
|
15138
|
+
getStripeTerminals: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15139
|
+
/**
|
|
15140
|
+
*
|
|
15141
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
15142
|
+
* @param {number} id The ID of the terminal payment
|
|
15143
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
15144
|
+
* @param {*} [options] Override http request option.
|
|
15145
|
+
* @throws {RequiredError}
|
|
15146
|
+
*/
|
|
15147
|
+
startTerminalPayment: (id: number, processTerminalPaymentRequest: ProcessTerminalPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15148
|
+
};
|
|
15149
|
+
/**
|
|
15150
|
+
* TerminalPaymentsApi - functional programming interface
|
|
15151
|
+
* @export
|
|
15152
|
+
*/
|
|
15153
|
+
export declare const TerminalPaymentsApiFp: (configuration?: Configuration) => {
|
|
15154
|
+
/**
|
|
15155
|
+
*
|
|
15156
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
15157
|
+
* @param {number} id The ID of the terminal payment
|
|
15158
|
+
* @param {*} [options] Override http request option.
|
|
15159
|
+
* @throws {RequiredError}
|
|
15160
|
+
*/
|
|
15161
|
+
cancelTerminalPayment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalPaymentResponse>>;
|
|
15162
|
+
/**
|
|
15163
|
+
*
|
|
15164
|
+
* @summary Create a terminal payment before executing.
|
|
15165
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
15166
|
+
* @param {*} [options] Override http request option.
|
|
15167
|
+
* @throws {RequiredError}
|
|
15168
|
+
*/
|
|
15169
|
+
createTerminalPayment(createTerminalPaymentRequest: CreateTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalPaymentResponse>>;
|
|
15170
|
+
/**
|
|
15171
|
+
*
|
|
15172
|
+
* @summary Get single terminal payment by ID
|
|
15173
|
+
* @param {number} id The ID of the terminal payment
|
|
15174
|
+
* @param {*} [options] Override http request option.
|
|
15175
|
+
* @throws {RequiredError}
|
|
15176
|
+
*/
|
|
15177
|
+
getSingleTerminalPayment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalPaymentResponse>>;
|
|
15178
|
+
/**
|
|
15179
|
+
*
|
|
15180
|
+
* @summary Get all Stripe terminals
|
|
15181
|
+
* @param {*} [options] Override http request option.
|
|
15182
|
+
* @throws {RequiredError}
|
|
15183
|
+
*/
|
|
15184
|
+
getStripeTerminals(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<StripePaymentTerminalResponse>>>;
|
|
15185
|
+
/**
|
|
15186
|
+
*
|
|
15187
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
15188
|
+
* @param {number} id The ID of the terminal payment
|
|
15189
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
15190
|
+
* @param {*} [options] Override http request option.
|
|
15191
|
+
* @throws {RequiredError}
|
|
15192
|
+
*/
|
|
15193
|
+
startTerminalPayment(id: number, processTerminalPaymentRequest: ProcessTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15194
|
+
};
|
|
15195
|
+
/**
|
|
15196
|
+
* TerminalPaymentsApi - factory interface
|
|
15197
|
+
* @export
|
|
15198
|
+
*/
|
|
15199
|
+
export declare const TerminalPaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
15200
|
+
/**
|
|
15201
|
+
*
|
|
15202
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
15203
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
15204
|
+
* @param {*} [options] Override http request option.
|
|
15205
|
+
* @throws {RequiredError}
|
|
15206
|
+
*/
|
|
15207
|
+
cancelTerminalPayment(requestParameters: TerminalPaymentsApiCancelTerminalPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerminalPaymentResponse>;
|
|
15208
|
+
/**
|
|
15209
|
+
*
|
|
15210
|
+
* @summary Create a terminal payment before executing.
|
|
15211
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
15212
|
+
* @param {*} [options] Override http request option.
|
|
15213
|
+
* @throws {RequiredError}
|
|
15214
|
+
*/
|
|
15215
|
+
createTerminalPayment(requestParameters: TerminalPaymentsApiCreateTerminalPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerminalPaymentResponse>;
|
|
15216
|
+
/**
|
|
15217
|
+
*
|
|
15218
|
+
* @summary Get single terminal payment by ID
|
|
15219
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
15220
|
+
* @param {*} [options] Override http request option.
|
|
15221
|
+
* @throws {RequiredError}
|
|
15222
|
+
*/
|
|
15223
|
+
getSingleTerminalPayment(requestParameters: TerminalPaymentsApiGetSingleTerminalPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerminalPaymentResponse>;
|
|
15224
|
+
/**
|
|
15225
|
+
*
|
|
15226
|
+
* @summary Get all Stripe terminals
|
|
15227
|
+
* @param {*} [options] Override http request option.
|
|
15228
|
+
* @throws {RequiredError}
|
|
15229
|
+
*/
|
|
15230
|
+
getStripeTerminals(options?: RawAxiosRequestConfig): AxiosPromise<Array<StripePaymentTerminalResponse>>;
|
|
15231
|
+
/**
|
|
15232
|
+
*
|
|
15233
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
15234
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
15235
|
+
* @param {*} [options] Override http request option.
|
|
15236
|
+
* @throws {RequiredError}
|
|
15237
|
+
*/
|
|
15238
|
+
startTerminalPayment(requestParameters: TerminalPaymentsApiStartTerminalPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
15239
|
+
};
|
|
15240
|
+
/**
|
|
15241
|
+
* Request parameters for cancelTerminalPayment operation in TerminalPaymentsApi.
|
|
15242
|
+
* @export
|
|
15243
|
+
* @interface TerminalPaymentsApiCancelTerminalPaymentRequest
|
|
15244
|
+
*/
|
|
15245
|
+
export interface TerminalPaymentsApiCancelTerminalPaymentRequest {
|
|
15246
|
+
/**
|
|
15247
|
+
* The ID of the terminal payment
|
|
15248
|
+
* @type {number}
|
|
15249
|
+
* @memberof TerminalPaymentsApiCancelTerminalPayment
|
|
15250
|
+
*/
|
|
15251
|
+
readonly id: number;
|
|
15252
|
+
}
|
|
15253
|
+
/**
|
|
15254
|
+
* Request parameters for createTerminalPayment operation in TerminalPaymentsApi.
|
|
15255
|
+
* @export
|
|
15256
|
+
* @interface TerminalPaymentsApiCreateTerminalPaymentRequest
|
|
15257
|
+
*/
|
|
15258
|
+
export interface TerminalPaymentsApiCreateTerminalPaymentRequest {
|
|
15259
|
+
/**
|
|
15260
|
+
* The terminal payment that should be created.
|
|
15261
|
+
* @type {CreateTerminalPaymentRequest}
|
|
15262
|
+
* @memberof TerminalPaymentsApiCreateTerminalPayment
|
|
15263
|
+
*/
|
|
15264
|
+
readonly createTerminalPaymentRequest: CreateTerminalPaymentRequest;
|
|
15265
|
+
}
|
|
15266
|
+
/**
|
|
15267
|
+
* Request parameters for getSingleTerminalPayment operation in TerminalPaymentsApi.
|
|
15268
|
+
* @export
|
|
15269
|
+
* @interface TerminalPaymentsApiGetSingleTerminalPaymentRequest
|
|
15270
|
+
*/
|
|
15271
|
+
export interface TerminalPaymentsApiGetSingleTerminalPaymentRequest {
|
|
15272
|
+
/**
|
|
15273
|
+
* The ID of the terminal payment
|
|
15274
|
+
* @type {number}
|
|
15275
|
+
* @memberof TerminalPaymentsApiGetSingleTerminalPayment
|
|
15276
|
+
*/
|
|
15277
|
+
readonly id: number;
|
|
15278
|
+
}
|
|
15279
|
+
/**
|
|
15280
|
+
* Request parameters for startTerminalPayment operation in TerminalPaymentsApi.
|
|
15281
|
+
* @export
|
|
15282
|
+
* @interface TerminalPaymentsApiStartTerminalPaymentRequest
|
|
15283
|
+
*/
|
|
15284
|
+
export interface TerminalPaymentsApiStartTerminalPaymentRequest {
|
|
15285
|
+
/**
|
|
15286
|
+
* The ID of the terminal payment
|
|
15287
|
+
* @type {number}
|
|
15288
|
+
* @memberof TerminalPaymentsApiStartTerminalPayment
|
|
15289
|
+
*/
|
|
15290
|
+
readonly id: number;
|
|
15291
|
+
/**
|
|
15292
|
+
* Payment options
|
|
15293
|
+
* @type {ProcessTerminalPaymentRequest}
|
|
15294
|
+
* @memberof TerminalPaymentsApiStartTerminalPayment
|
|
15295
|
+
*/
|
|
15296
|
+
readonly processTerminalPaymentRequest: ProcessTerminalPaymentRequest;
|
|
15297
|
+
}
|
|
15298
|
+
/**
|
|
15299
|
+
* TerminalPaymentsApi - object-oriented interface
|
|
15300
|
+
* @export
|
|
15301
|
+
* @class TerminalPaymentsApi
|
|
15302
|
+
* @extends {BaseAPI}
|
|
15303
|
+
*/
|
|
15304
|
+
export declare class TerminalPaymentsApi extends BaseAPI {
|
|
15305
|
+
/**
|
|
15306
|
+
*
|
|
15307
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
15308
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
15309
|
+
* @param {*} [options] Override http request option.
|
|
15310
|
+
* @throws {RequiredError}
|
|
15311
|
+
* @memberof TerminalPaymentsApi
|
|
15312
|
+
*/
|
|
15313
|
+
cancelTerminalPayment(requestParameters: TerminalPaymentsApiCancelTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminalPaymentResponse, any, {}>>;
|
|
15314
|
+
/**
|
|
15315
|
+
*
|
|
15316
|
+
* @summary Create a terminal payment before executing.
|
|
15317
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
15318
|
+
* @param {*} [options] Override http request option.
|
|
15319
|
+
* @throws {RequiredError}
|
|
15320
|
+
* @memberof TerminalPaymentsApi
|
|
15321
|
+
*/
|
|
15322
|
+
createTerminalPayment(requestParameters: TerminalPaymentsApiCreateTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminalPaymentResponse, any, {}>>;
|
|
15323
|
+
/**
|
|
15324
|
+
*
|
|
15325
|
+
* @summary Get single terminal payment by ID
|
|
15326
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
15327
|
+
* @param {*} [options] Override http request option.
|
|
15328
|
+
* @throws {RequiredError}
|
|
15329
|
+
* @memberof TerminalPaymentsApi
|
|
15330
|
+
*/
|
|
15331
|
+
getSingleTerminalPayment(requestParameters: TerminalPaymentsApiGetSingleTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminalPaymentResponse, any, {}>>;
|
|
15332
|
+
/**
|
|
15333
|
+
*
|
|
15334
|
+
* @summary Get all Stripe terminals
|
|
15335
|
+
* @param {*} [options] Override http request option.
|
|
15336
|
+
* @throws {RequiredError}
|
|
15337
|
+
* @memberof TerminalPaymentsApi
|
|
15338
|
+
*/
|
|
15339
|
+
getStripeTerminals(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StripePaymentTerminalResponse[], any, {}>>;
|
|
15340
|
+
/**
|
|
15341
|
+
*
|
|
15342
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
15343
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
15344
|
+
* @param {*} [options] Override http request option.
|
|
15345
|
+
* @throws {RequiredError}
|
|
15346
|
+
* @memberof TerminalPaymentsApi
|
|
15347
|
+
*/
|
|
15348
|
+
startTerminalPayment(requestParameters: TerminalPaymentsApiStartTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
15349
|
+
}
|
|
14889
15350
|
/**
|
|
14890
15351
|
* TermsOfServiceApi - axios parameter creator
|
|
14891
15352
|
* @export
|
|
@@ -16271,7 +16732,7 @@ export declare class UserNotificationPreferencesApi extends BaseAPI {
|
|
|
16271
16732
|
export declare const UsersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
16272
16733
|
/**
|
|
16273
16734
|
*
|
|
16274
|
-
* @summary Accept the Terms of Service
|
|
16735
|
+
* @summary Accept the current Terms of Service version
|
|
16275
16736
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
16276
16737
|
* @param {*} [options] Override http request option.
|
|
16277
16738
|
* @throws {RequiredError}
|
|
@@ -16401,6 +16862,14 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
16401
16862
|
* @throws {RequiredError}
|
|
16402
16863
|
*/
|
|
16403
16864
|
getUserSettings: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16865
|
+
/**
|
|
16866
|
+
*
|
|
16867
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
16868
|
+
* @param {number} id The id of the user
|
|
16869
|
+
* @param {*} [options] Override http request option.
|
|
16870
|
+
* @throws {RequiredError}
|
|
16871
|
+
*/
|
|
16872
|
+
getUserTos: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16404
16873
|
/**
|
|
16405
16874
|
*
|
|
16406
16875
|
* @summary Returns the user\'s containers
|
|
@@ -16647,7 +17116,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
16647
17116
|
export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
16648
17117
|
/**
|
|
16649
17118
|
*
|
|
16650
|
-
* @summary Accept the Terms of Service
|
|
17119
|
+
* @summary Accept the current Terms of Service version
|
|
16651
17120
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
16652
17121
|
* @param {*} [options] Override http request option.
|
|
16653
17122
|
* @throws {RequiredError}
|
|
@@ -16777,6 +17246,14 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
16777
17246
|
* @throws {RequiredError}
|
|
16778
17247
|
*/
|
|
16779
17248
|
getUserSettings(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserSettingsResponse>>;
|
|
17249
|
+
/**
|
|
17250
|
+
*
|
|
17251
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
17252
|
+
* @param {number} id The id of the user
|
|
17253
|
+
* @param {*} [options] Override http request option.
|
|
17254
|
+
* @throws {RequiredError}
|
|
17255
|
+
*/
|
|
17256
|
+
getUserTos(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserTosResponse>>;
|
|
16780
17257
|
/**
|
|
16781
17258
|
*
|
|
16782
17259
|
* @summary Returns the user\'s containers
|
|
@@ -17023,7 +17500,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
17023
17500
|
export declare const UsersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
17024
17501
|
/**
|
|
17025
17502
|
*
|
|
17026
|
-
* @summary Accept the Terms of Service
|
|
17503
|
+
* @summary Accept the current Terms of Service version
|
|
17027
17504
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
17028
17505
|
* @param {*} [options] Override http request option.
|
|
17029
17506
|
* @throws {RequiredError}
|
|
@@ -17141,6 +17618,14 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
17141
17618
|
* @throws {RequiredError}
|
|
17142
17619
|
*/
|
|
17143
17620
|
getUserSettings(requestParameters: UsersApiGetUserSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserSettingsResponse>;
|
|
17621
|
+
/**
|
|
17622
|
+
*
|
|
17623
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
17624
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
17625
|
+
* @param {*} [options] Override http request option.
|
|
17626
|
+
* @throws {RequiredError}
|
|
17627
|
+
*/
|
|
17628
|
+
getUserTos(requestParameters: UsersApiGetUserTosRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserTosResponse>;
|
|
17144
17629
|
/**
|
|
17145
17630
|
*
|
|
17146
17631
|
* @summary Returns the user\'s containers
|
|
@@ -17594,6 +18079,19 @@ export interface UsersApiGetUserSettingsRequest {
|
|
|
17594
18079
|
*/
|
|
17595
18080
|
readonly id: number;
|
|
17596
18081
|
}
|
|
18082
|
+
/**
|
|
18083
|
+
* Request parameters for getUserTos operation in UsersApi.
|
|
18084
|
+
* @export
|
|
18085
|
+
* @interface UsersApiGetUserTosRequest
|
|
18086
|
+
*/
|
|
18087
|
+
export interface UsersApiGetUserTosRequest {
|
|
18088
|
+
/**
|
|
18089
|
+
* The id of the user
|
|
18090
|
+
* @type {number}
|
|
18091
|
+
* @memberof UsersApiGetUserTos
|
|
18092
|
+
*/
|
|
18093
|
+
readonly id: number;
|
|
18094
|
+
}
|
|
17597
18095
|
/**
|
|
17598
18096
|
* Request parameters for getUsersContainers operation in UsersApi.
|
|
17599
18097
|
* @export
|
|
@@ -18220,7 +18718,7 @@ export interface UsersApiWaiveUserFinesRequest {
|
|
|
18220
18718
|
export declare class UsersApi extends BaseAPI {
|
|
18221
18719
|
/**
|
|
18222
18720
|
*
|
|
18223
|
-
* @summary Accept the Terms of Service
|
|
18721
|
+
* @summary Accept the current Terms of Service version
|
|
18224
18722
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
18225
18723
|
* @param {*} [options] Override http request option.
|
|
18226
18724
|
* @throws {RequiredError}
|
|
@@ -18353,6 +18851,15 @@ export declare class UsersApi extends BaseAPI {
|
|
|
18353
18851
|
* @memberof UsersApi
|
|
18354
18852
|
*/
|
|
18355
18853
|
getUserSettings(requestParameters: UsersApiGetUserSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserSettingsResponse, any, {}>>;
|
|
18854
|
+
/**
|
|
18855
|
+
*
|
|
18856
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
18857
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
18858
|
+
* @param {*} [options] Override http request option.
|
|
18859
|
+
* @throws {RequiredError}
|
|
18860
|
+
* @memberof UsersApi
|
|
18861
|
+
*/
|
|
18862
|
+
getUserTos(requestParameters: UsersApiGetUserTosRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserTosResponse, any, {}>>;
|
|
18356
18863
|
/**
|
|
18357
18864
|
*
|
|
18358
18865
|
* @summary Returns the user\'s containers
|
package/dist/api.js
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.WriteoffsApi = exports.WriteoffsApiFactory = exports.WriteoffsApiFp = exports.WriteoffsApiAxiosParamCreator = exports.VouchergroupsApi = exports.VouchergroupsApiFactory = exports.VouchergroupsApiFp = exports.VouchergroupsApiAxiosParamCreator = exports.VatGroupsApi = exports.VatGroupsApiFactory = exports.VatGroupsApiFp = exports.VatGroupsApiAxiosParamCreator = exports.GetUsersSalesReportPdfFileTypeEnum = exports.GetUsersPurchaseReportPdfFileTypeEnum = exports.GetUsersPaymentRequestsStatusEnum = exports.GetAllUsersTypeEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserNotificationPreferencesApi = exports.UserNotificationPreferencesApiFactory = exports.UserNotificationPreferencesApiFp = exports.UserNotificationPreferencesApiAxiosParamCreator = exports.TransfersApi = exports.TransfersApiFactory = exports.TransfersApiFp = exports.TransfersApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TransactionSummariesApi = exports.TransactionSummariesApiFactory = exports.TransactionSummariesApiFp = exports.TransactionSummariesApiAxiosParamCreator = exports.TestOperationsOfTheTestControllerApi = exports.TestOperationsOfTheTestControllerApiFactory = exports.TestOperationsOfTheTestControllerApiFp = exports.TestOperationsOfTheTestControllerApiAxiosParamCreator = exports.TermsOfServiceApi = exports.TermsOfServiceApiFactory = exports.TermsOfServiceApiFp = exports.TermsOfServiceApiAxiosParamCreator = exports.GetUserSyncResultsServiceEnum = void 0;
|
|
16
|
+
exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.InactiveAdministrativeCostsApi = exports.InactiveAdministrativeCostsApiFactory = exports.InactiveAdministrativeCostsApiFp = exports.InactiveAdministrativeCostsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.GetFineReportPdfFileTypeEnum = exports.DebtorsApi = exports.DebtorsApiFactory = exports.DebtorsApiFp = exports.DebtorsApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.BannersApi = exports.BannersApiFactory = exports.BannersApiFp = exports.BannersApiAxiosParamCreator = exports.GetAllBalanceOrderDirectionEnum = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuthenticateApi = exports.AuthenticateApiFactory = exports.AuthenticateApiFp = exports.AuthenticateApiAxiosParamCreator = exports.UserType = exports.UserSettingsResponseLanguageEnum = exports.UpdateInvoiceRequestStateEnum = exports.TermsOfServiceStatus = exports.QRStatusResponseStatusEnum = exports.PublicPaymentRequestResponseStatusEnum = exports.PayoutRequestStatusRequestStateEnum = exports.PayoutRequestResponseStatusEnum = exports.PatchUserSettingsRequestLanguageEnum = exports.InvoiceStatusResponseStateEnum = exports.GetAllInvoicesCurrentStateParameterInner = exports.FinancialMutationResponseTypeEnum = exports.BasePayoutRequestResponseStatusEnum = exports.BasePaymentRequestResponseStatusEnum = void 0;
|
|
17
|
+
exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.StripeApi = exports.StripeApiFactory = exports.StripeApiFp = exports.StripeApiAxiosParamCreator = exports.ServerSettingsApi = exports.ServerSettingsApiFactory = exports.ServerSettingsApiFp = exports.ServerSettingsApiAxiosParamCreator = exports.SellerPayoutsApi = exports.SellerPayoutsApiFactory = exports.SellerPayoutsApiFp = exports.SellerPayoutsApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.RbacApi = exports.RbacApiFactory = exports.RbacApiFp = exports.RbacApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ProductCategoriesApi = exports.ProductCategoriesApiFactory = exports.ProductCategoriesApiFp = exports.ProductCategoriesApiAxiosParamCreator = exports.PointofsaleApi = exports.PointofsaleApiFactory = exports.PointofsaleApiFp = exports.PointofsaleApiAxiosParamCreator = exports.PayoutRequestsApi = exports.PayoutRequestsApiFactory = exports.PayoutRequestsApiFp = exports.PayoutRequestsApiAxiosParamCreator = exports.PaymentRequestsPublicApi = exports.PaymentRequestsPublicApiFactory = exports.PaymentRequestsPublicApiFp = exports.PaymentRequestsPublicApiAxiosParamCreator = exports.GetAllPaymentRequestsStatusEnum = exports.PaymentRequestsApi = exports.PaymentRequestsApiFactory = exports.PaymentRequestsApiFp = exports.PaymentRequestsApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = void 0;
|
|
18
|
+
exports.WriteoffsApi = exports.WriteoffsApiFactory = exports.WriteoffsApiFp = exports.WriteoffsApiAxiosParamCreator = exports.VouchergroupsApi = exports.VouchergroupsApiFactory = exports.VouchergroupsApiFp = exports.VouchergroupsApiAxiosParamCreator = exports.VatGroupsApi = exports.VatGroupsApiFactory = exports.VatGroupsApiFp = exports.VatGroupsApiAxiosParamCreator = exports.GetUsersSalesReportPdfFileTypeEnum = exports.GetUsersPurchaseReportPdfFileTypeEnum = exports.GetUsersPaymentRequestsStatusEnum = exports.GetAllUsersTypeEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserNotificationPreferencesApi = exports.UserNotificationPreferencesApiFactory = exports.UserNotificationPreferencesApiFp = exports.UserNotificationPreferencesApiAxiosParamCreator = exports.TransfersApi = exports.TransfersApiFactory = exports.TransfersApiFp = exports.TransfersApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TransactionSummariesApi = exports.TransactionSummariesApiFactory = exports.TransactionSummariesApiFp = exports.TransactionSummariesApiAxiosParamCreator = exports.TestOperationsOfTheTestControllerApi = exports.TestOperationsOfTheTestControllerApiFactory = exports.TestOperationsOfTheTestControllerApiFp = exports.TestOperationsOfTheTestControllerApiAxiosParamCreator = exports.TermsOfServiceApi = exports.TermsOfServiceApiFactory = exports.TermsOfServiceApiFp = exports.TermsOfServiceApiAxiosParamCreator = exports.TerminalPaymentsApi = exports.TerminalPaymentsApiFactory = exports.TerminalPaymentsApiFp = exports.TerminalPaymentsApiAxiosParamCreator = exports.GetUserSyncResultsServiceEnum = exports.SyncApi = void 0;
|
|
19
19
|
const axios_1 = require("axios");
|
|
20
20
|
// Some imports not used depending on template conditions
|
|
21
21
|
// @ts-ignore
|
|
@@ -84,6 +84,16 @@ exports.QRStatusResponseStatusEnum = {
|
|
|
84
84
|
Expired: 'EXPIRED',
|
|
85
85
|
Cancelled: 'CANCELLED'
|
|
86
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* The terms of service status of a user
|
|
89
|
+
* @export
|
|
90
|
+
* @enum {string}
|
|
91
|
+
*/
|
|
92
|
+
exports.TermsOfServiceStatus = {
|
|
93
|
+
Accepted: 'ACCEPTED',
|
|
94
|
+
NotAccepted: 'NOT_ACCEPTED',
|
|
95
|
+
NotRequired: 'NOT_REQUIRED'
|
|
96
|
+
};
|
|
87
97
|
exports.UpdateInvoiceRequestStateEnum = {
|
|
88
98
|
Created: 'CREATED',
|
|
89
99
|
Sent: 'SENT',
|
|
@@ -10371,6 +10381,31 @@ const StripeApiAxiosParamCreator = function (configuration) {
|
|
|
10371
10381
|
options: localVarRequestOptions,
|
|
10372
10382
|
};
|
|
10373
10383
|
},
|
|
10384
|
+
/**
|
|
10385
|
+
*
|
|
10386
|
+
* @summary Webhook for Stripe event updates
|
|
10387
|
+
* @param {*} [options] Override http request option.
|
|
10388
|
+
* @throws {RequiredError}
|
|
10389
|
+
*/
|
|
10390
|
+
webhook: async (options = {}) => {
|
|
10391
|
+
const localVarPath = `/stripe/webhook`;
|
|
10392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10393
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10394
|
+
let baseOptions;
|
|
10395
|
+
if (configuration) {
|
|
10396
|
+
baseOptions = configuration.baseOptions;
|
|
10397
|
+
}
|
|
10398
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10399
|
+
const localVarHeaderParameter = {};
|
|
10400
|
+
const localVarQueryParameter = {};
|
|
10401
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10403
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10404
|
+
return {
|
|
10405
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10406
|
+
options: localVarRequestOptions,
|
|
10407
|
+
};
|
|
10408
|
+
},
|
|
10374
10409
|
};
|
|
10375
10410
|
};
|
|
10376
10411
|
exports.StripeApiAxiosParamCreator = StripeApiAxiosParamCreator;
|
|
@@ -10406,6 +10441,18 @@ const StripeApiFp = function (configuration) {
|
|
|
10406
10441
|
const operationBasePath = base_1.operationServerMap['StripeApi.getStripePublicKey']?.[index]?.url;
|
|
10407
10442
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10408
10443
|
},
|
|
10444
|
+
/**
|
|
10445
|
+
*
|
|
10446
|
+
* @summary Webhook for Stripe event updates
|
|
10447
|
+
* @param {*} [options] Override http request option.
|
|
10448
|
+
* @throws {RequiredError}
|
|
10449
|
+
*/
|
|
10450
|
+
async webhook(options) {
|
|
10451
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(options);
|
|
10452
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10453
|
+
const operationBasePath = base_1.operationServerMap['StripeApi.webhook']?.[index]?.url;
|
|
10454
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10455
|
+
},
|
|
10409
10456
|
};
|
|
10410
10457
|
};
|
|
10411
10458
|
exports.StripeApiFp = StripeApiFp;
|
|
@@ -10435,6 +10482,15 @@ const StripeApiFactory = function (configuration, basePath, axios) {
|
|
|
10435
10482
|
getStripePublicKey(options) {
|
|
10436
10483
|
return localVarFp.getStripePublicKey(options).then((request) => request(axios, basePath));
|
|
10437
10484
|
},
|
|
10485
|
+
/**
|
|
10486
|
+
*
|
|
10487
|
+
* @summary Webhook for Stripe event updates
|
|
10488
|
+
* @param {*} [options] Override http request option.
|
|
10489
|
+
* @throws {RequiredError}
|
|
10490
|
+
*/
|
|
10491
|
+
webhook(options) {
|
|
10492
|
+
return localVarFp.webhook(options).then((request) => request(axios, basePath));
|
|
10493
|
+
},
|
|
10438
10494
|
};
|
|
10439
10495
|
};
|
|
10440
10496
|
exports.StripeApiFactory = StripeApiFactory;
|
|
@@ -10466,6 +10522,16 @@ class StripeApi extends base_1.BaseAPI {
|
|
|
10466
10522
|
getStripePublicKey(options) {
|
|
10467
10523
|
return (0, exports.StripeApiFp)(this.configuration).getStripePublicKey(options).then((request) => request(this.axios, this.basePath));
|
|
10468
10524
|
}
|
|
10525
|
+
/**
|
|
10526
|
+
*
|
|
10527
|
+
* @summary Webhook for Stripe event updates
|
|
10528
|
+
* @param {*} [options] Override http request option.
|
|
10529
|
+
* @throws {RequiredError}
|
|
10530
|
+
* @memberof StripeApi
|
|
10531
|
+
*/
|
|
10532
|
+
webhook(options) {
|
|
10533
|
+
return (0, exports.StripeApiFp)(this.configuration).webhook(options).then((request) => request(this.axios, this.basePath));
|
|
10534
|
+
}
|
|
10469
10535
|
}
|
|
10470
10536
|
exports.StripeApi = StripeApi;
|
|
10471
10537
|
/**
|
|
@@ -10579,6 +10645,374 @@ exports.GetUserSyncResultsServiceEnum = {
|
|
|
10579
10645
|
Ldap: 'LDAP',
|
|
10580
10646
|
Gewisdb: 'GEWISDB'
|
|
10581
10647
|
};
|
|
10648
|
+
/**
|
|
10649
|
+
* TerminalPaymentsApi - axios parameter creator
|
|
10650
|
+
* @export
|
|
10651
|
+
*/
|
|
10652
|
+
const TerminalPaymentsApiAxiosParamCreator = function (configuration) {
|
|
10653
|
+
return {
|
|
10654
|
+
/**
|
|
10655
|
+
*
|
|
10656
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10657
|
+
* @param {number} id The ID of the terminal payment
|
|
10658
|
+
* @param {*} [options] Override http request option.
|
|
10659
|
+
* @throws {RequiredError}
|
|
10660
|
+
*/
|
|
10661
|
+
cancelTerminalPayment: async (id, options = {}) => {
|
|
10662
|
+
// verify required parameter 'id' is not null or undefined
|
|
10663
|
+
(0, common_1.assertParamExists)('cancelTerminalPayment', 'id', id);
|
|
10664
|
+
const localVarPath = `/terminal-payments/{id}`
|
|
10665
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10667
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10668
|
+
let baseOptions;
|
|
10669
|
+
if (configuration) {
|
|
10670
|
+
baseOptions = configuration.baseOptions;
|
|
10671
|
+
}
|
|
10672
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
10673
|
+
const localVarHeaderParameter = {};
|
|
10674
|
+
const localVarQueryParameter = {};
|
|
10675
|
+
// authentication JWT required
|
|
10676
|
+
// http bearer authentication required
|
|
10677
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10678
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10679
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10680
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10681
|
+
return {
|
|
10682
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10683
|
+
options: localVarRequestOptions,
|
|
10684
|
+
};
|
|
10685
|
+
},
|
|
10686
|
+
/**
|
|
10687
|
+
*
|
|
10688
|
+
* @summary Create a terminal payment before executing.
|
|
10689
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
10690
|
+
* @param {*} [options] Override http request option.
|
|
10691
|
+
* @throws {RequiredError}
|
|
10692
|
+
*/
|
|
10693
|
+
createTerminalPayment: async (createTerminalPaymentRequest, options = {}) => {
|
|
10694
|
+
// verify required parameter 'createTerminalPaymentRequest' is not null or undefined
|
|
10695
|
+
(0, common_1.assertParamExists)('createTerminalPayment', 'createTerminalPaymentRequest', createTerminalPaymentRequest);
|
|
10696
|
+
const localVarPath = `/terminal-payments`;
|
|
10697
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10698
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10699
|
+
let baseOptions;
|
|
10700
|
+
if (configuration) {
|
|
10701
|
+
baseOptions = configuration.baseOptions;
|
|
10702
|
+
}
|
|
10703
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10704
|
+
const localVarHeaderParameter = {};
|
|
10705
|
+
const localVarQueryParameter = {};
|
|
10706
|
+
// authentication JWT required
|
|
10707
|
+
// http bearer authentication required
|
|
10708
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10709
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10710
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10711
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10712
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10713
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTerminalPaymentRequest, localVarRequestOptions, configuration);
|
|
10714
|
+
return {
|
|
10715
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10716
|
+
options: localVarRequestOptions,
|
|
10717
|
+
};
|
|
10718
|
+
},
|
|
10719
|
+
/**
|
|
10720
|
+
*
|
|
10721
|
+
* @summary Get single terminal payment by ID
|
|
10722
|
+
* @param {number} id The ID of the terminal payment
|
|
10723
|
+
* @param {*} [options] Override http request option.
|
|
10724
|
+
* @throws {RequiredError}
|
|
10725
|
+
*/
|
|
10726
|
+
getSingleTerminalPayment: async (id, options = {}) => {
|
|
10727
|
+
// verify required parameter 'id' is not null or undefined
|
|
10728
|
+
(0, common_1.assertParamExists)('getSingleTerminalPayment', 'id', id);
|
|
10729
|
+
const localVarPath = `/terminal-payments/{id}`
|
|
10730
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10732
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10733
|
+
let baseOptions;
|
|
10734
|
+
if (configuration) {
|
|
10735
|
+
baseOptions = configuration.baseOptions;
|
|
10736
|
+
}
|
|
10737
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10738
|
+
const localVarHeaderParameter = {};
|
|
10739
|
+
const localVarQueryParameter = {};
|
|
10740
|
+
// authentication JWT required
|
|
10741
|
+
// http bearer authentication required
|
|
10742
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10743
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10744
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10745
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10746
|
+
return {
|
|
10747
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10748
|
+
options: localVarRequestOptions,
|
|
10749
|
+
};
|
|
10750
|
+
},
|
|
10751
|
+
/**
|
|
10752
|
+
*
|
|
10753
|
+
* @summary Get all Stripe terminals
|
|
10754
|
+
* @param {*} [options] Override http request option.
|
|
10755
|
+
* @throws {RequiredError}
|
|
10756
|
+
*/
|
|
10757
|
+
getStripeTerminals: async (options = {}) => {
|
|
10758
|
+
const localVarPath = `/terminal-payments/terminals`;
|
|
10759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10760
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10761
|
+
let baseOptions;
|
|
10762
|
+
if (configuration) {
|
|
10763
|
+
baseOptions = configuration.baseOptions;
|
|
10764
|
+
}
|
|
10765
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10766
|
+
const localVarHeaderParameter = {};
|
|
10767
|
+
const localVarQueryParameter = {};
|
|
10768
|
+
// authentication JWT required
|
|
10769
|
+
// http bearer authentication required
|
|
10770
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10771
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10772
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10773
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10774
|
+
return {
|
|
10775
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10776
|
+
options: localVarRequestOptions,
|
|
10777
|
+
};
|
|
10778
|
+
},
|
|
10779
|
+
/**
|
|
10780
|
+
*
|
|
10781
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
10782
|
+
* @param {number} id The ID of the terminal payment
|
|
10783
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
10784
|
+
* @param {*} [options] Override http request option.
|
|
10785
|
+
* @throws {RequiredError}
|
|
10786
|
+
*/
|
|
10787
|
+
startTerminalPayment: async (id, processTerminalPaymentRequest, options = {}) => {
|
|
10788
|
+
// verify required parameter 'id' is not null or undefined
|
|
10789
|
+
(0, common_1.assertParamExists)('startTerminalPayment', 'id', id);
|
|
10790
|
+
// verify required parameter 'processTerminalPaymentRequest' is not null or undefined
|
|
10791
|
+
(0, common_1.assertParamExists)('startTerminalPayment', 'processTerminalPaymentRequest', processTerminalPaymentRequest);
|
|
10792
|
+
const localVarPath = `/terminal-payments/{id}/process`
|
|
10793
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10794
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10795
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10796
|
+
let baseOptions;
|
|
10797
|
+
if (configuration) {
|
|
10798
|
+
baseOptions = configuration.baseOptions;
|
|
10799
|
+
}
|
|
10800
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10801
|
+
const localVarHeaderParameter = {};
|
|
10802
|
+
const localVarQueryParameter = {};
|
|
10803
|
+
// authentication JWT required
|
|
10804
|
+
// http bearer authentication required
|
|
10805
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10806
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10807
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10808
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10809
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10810
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(processTerminalPaymentRequest, localVarRequestOptions, configuration);
|
|
10811
|
+
return {
|
|
10812
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10813
|
+
options: localVarRequestOptions,
|
|
10814
|
+
};
|
|
10815
|
+
},
|
|
10816
|
+
};
|
|
10817
|
+
};
|
|
10818
|
+
exports.TerminalPaymentsApiAxiosParamCreator = TerminalPaymentsApiAxiosParamCreator;
|
|
10819
|
+
/**
|
|
10820
|
+
* TerminalPaymentsApi - functional programming interface
|
|
10821
|
+
* @export
|
|
10822
|
+
*/
|
|
10823
|
+
const TerminalPaymentsApiFp = function (configuration) {
|
|
10824
|
+
const localVarAxiosParamCreator = (0, exports.TerminalPaymentsApiAxiosParamCreator)(configuration);
|
|
10825
|
+
return {
|
|
10826
|
+
/**
|
|
10827
|
+
*
|
|
10828
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10829
|
+
* @param {number} id The ID of the terminal payment
|
|
10830
|
+
* @param {*} [options] Override http request option.
|
|
10831
|
+
* @throws {RequiredError}
|
|
10832
|
+
*/
|
|
10833
|
+
async cancelTerminalPayment(id, options) {
|
|
10834
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelTerminalPayment(id, options);
|
|
10835
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10836
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.cancelTerminalPayment']?.[index]?.url;
|
|
10837
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10838
|
+
},
|
|
10839
|
+
/**
|
|
10840
|
+
*
|
|
10841
|
+
* @summary Create a terminal payment before executing.
|
|
10842
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
10843
|
+
* @param {*} [options] Override http request option.
|
|
10844
|
+
* @throws {RequiredError}
|
|
10845
|
+
*/
|
|
10846
|
+
async createTerminalPayment(createTerminalPaymentRequest, options) {
|
|
10847
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTerminalPayment(createTerminalPaymentRequest, options);
|
|
10848
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10849
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.createTerminalPayment']?.[index]?.url;
|
|
10850
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10851
|
+
},
|
|
10852
|
+
/**
|
|
10853
|
+
*
|
|
10854
|
+
* @summary Get single terminal payment by ID
|
|
10855
|
+
* @param {number} id The ID of the terminal payment
|
|
10856
|
+
* @param {*} [options] Override http request option.
|
|
10857
|
+
* @throws {RequiredError}
|
|
10858
|
+
*/
|
|
10859
|
+
async getSingleTerminalPayment(id, options) {
|
|
10860
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSingleTerminalPayment(id, options);
|
|
10861
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10862
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.getSingleTerminalPayment']?.[index]?.url;
|
|
10863
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10864
|
+
},
|
|
10865
|
+
/**
|
|
10866
|
+
*
|
|
10867
|
+
* @summary Get all Stripe terminals
|
|
10868
|
+
* @param {*} [options] Override http request option.
|
|
10869
|
+
* @throws {RequiredError}
|
|
10870
|
+
*/
|
|
10871
|
+
async getStripeTerminals(options) {
|
|
10872
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStripeTerminals(options);
|
|
10873
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10874
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.getStripeTerminals']?.[index]?.url;
|
|
10875
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10876
|
+
},
|
|
10877
|
+
/**
|
|
10878
|
+
*
|
|
10879
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
10880
|
+
* @param {number} id The ID of the terminal payment
|
|
10881
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
10882
|
+
* @param {*} [options] Override http request option.
|
|
10883
|
+
* @throws {RequiredError}
|
|
10884
|
+
*/
|
|
10885
|
+
async startTerminalPayment(id, processTerminalPaymentRequest, options) {
|
|
10886
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startTerminalPayment(id, processTerminalPaymentRequest, options);
|
|
10887
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10888
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.startTerminalPayment']?.[index]?.url;
|
|
10889
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10890
|
+
},
|
|
10891
|
+
};
|
|
10892
|
+
};
|
|
10893
|
+
exports.TerminalPaymentsApiFp = TerminalPaymentsApiFp;
|
|
10894
|
+
/**
|
|
10895
|
+
* TerminalPaymentsApi - factory interface
|
|
10896
|
+
* @export
|
|
10897
|
+
*/
|
|
10898
|
+
const TerminalPaymentsApiFactory = function (configuration, basePath, axios) {
|
|
10899
|
+
const localVarFp = (0, exports.TerminalPaymentsApiFp)(configuration);
|
|
10900
|
+
return {
|
|
10901
|
+
/**
|
|
10902
|
+
*
|
|
10903
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10904
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
10905
|
+
* @param {*} [options] Override http request option.
|
|
10906
|
+
* @throws {RequiredError}
|
|
10907
|
+
*/
|
|
10908
|
+
cancelTerminalPayment(requestParameters, options) {
|
|
10909
|
+
return localVarFp.cancelTerminalPayment(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
10910
|
+
},
|
|
10911
|
+
/**
|
|
10912
|
+
*
|
|
10913
|
+
* @summary Create a terminal payment before executing.
|
|
10914
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
10915
|
+
* @param {*} [options] Override http request option.
|
|
10916
|
+
* @throws {RequiredError}
|
|
10917
|
+
*/
|
|
10918
|
+
createTerminalPayment(requestParameters, options) {
|
|
10919
|
+
return localVarFp.createTerminalPayment(requestParameters.createTerminalPaymentRequest, options).then((request) => request(axios, basePath));
|
|
10920
|
+
},
|
|
10921
|
+
/**
|
|
10922
|
+
*
|
|
10923
|
+
* @summary Get single terminal payment by ID
|
|
10924
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
10925
|
+
* @param {*} [options] Override http request option.
|
|
10926
|
+
* @throws {RequiredError}
|
|
10927
|
+
*/
|
|
10928
|
+
getSingleTerminalPayment(requestParameters, options) {
|
|
10929
|
+
return localVarFp.getSingleTerminalPayment(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
10930
|
+
},
|
|
10931
|
+
/**
|
|
10932
|
+
*
|
|
10933
|
+
* @summary Get all Stripe terminals
|
|
10934
|
+
* @param {*} [options] Override http request option.
|
|
10935
|
+
* @throws {RequiredError}
|
|
10936
|
+
*/
|
|
10937
|
+
getStripeTerminals(options) {
|
|
10938
|
+
return localVarFp.getStripeTerminals(options).then((request) => request(axios, basePath));
|
|
10939
|
+
},
|
|
10940
|
+
/**
|
|
10941
|
+
*
|
|
10942
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
10943
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
10944
|
+
* @param {*} [options] Override http request option.
|
|
10945
|
+
* @throws {RequiredError}
|
|
10946
|
+
*/
|
|
10947
|
+
startTerminalPayment(requestParameters, options) {
|
|
10948
|
+
return localVarFp.startTerminalPayment(requestParameters.id, requestParameters.processTerminalPaymentRequest, options).then((request) => request(axios, basePath));
|
|
10949
|
+
},
|
|
10950
|
+
};
|
|
10951
|
+
};
|
|
10952
|
+
exports.TerminalPaymentsApiFactory = TerminalPaymentsApiFactory;
|
|
10953
|
+
/**
|
|
10954
|
+
* TerminalPaymentsApi - object-oriented interface
|
|
10955
|
+
* @export
|
|
10956
|
+
* @class TerminalPaymentsApi
|
|
10957
|
+
* @extends {BaseAPI}
|
|
10958
|
+
*/
|
|
10959
|
+
class TerminalPaymentsApi extends base_1.BaseAPI {
|
|
10960
|
+
/**
|
|
10961
|
+
*
|
|
10962
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10963
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
10964
|
+
* @param {*} [options] Override http request option.
|
|
10965
|
+
* @throws {RequiredError}
|
|
10966
|
+
* @memberof TerminalPaymentsApi
|
|
10967
|
+
*/
|
|
10968
|
+
cancelTerminalPayment(requestParameters, options) {
|
|
10969
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).cancelTerminalPayment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
10970
|
+
}
|
|
10971
|
+
/**
|
|
10972
|
+
*
|
|
10973
|
+
* @summary Create a terminal payment before executing.
|
|
10974
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
10975
|
+
* @param {*} [options] Override http request option.
|
|
10976
|
+
* @throws {RequiredError}
|
|
10977
|
+
* @memberof TerminalPaymentsApi
|
|
10978
|
+
*/
|
|
10979
|
+
createTerminalPayment(requestParameters, options) {
|
|
10980
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).createTerminalPayment(requestParameters.createTerminalPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10981
|
+
}
|
|
10982
|
+
/**
|
|
10983
|
+
*
|
|
10984
|
+
* @summary Get single terminal payment by ID
|
|
10985
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
10986
|
+
* @param {*} [options] Override http request option.
|
|
10987
|
+
* @throws {RequiredError}
|
|
10988
|
+
* @memberof TerminalPaymentsApi
|
|
10989
|
+
*/
|
|
10990
|
+
getSingleTerminalPayment(requestParameters, options) {
|
|
10991
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).getSingleTerminalPayment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
10992
|
+
}
|
|
10993
|
+
/**
|
|
10994
|
+
*
|
|
10995
|
+
* @summary Get all Stripe terminals
|
|
10996
|
+
* @param {*} [options] Override http request option.
|
|
10997
|
+
* @throws {RequiredError}
|
|
10998
|
+
* @memberof TerminalPaymentsApi
|
|
10999
|
+
*/
|
|
11000
|
+
getStripeTerminals(options) {
|
|
11001
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).getStripeTerminals(options).then((request) => request(this.axios, this.basePath));
|
|
11002
|
+
}
|
|
11003
|
+
/**
|
|
11004
|
+
*
|
|
11005
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
11006
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
11007
|
+
* @param {*} [options] Override http request option.
|
|
11008
|
+
* @throws {RequiredError}
|
|
11009
|
+
* @memberof TerminalPaymentsApi
|
|
11010
|
+
*/
|
|
11011
|
+
startTerminalPayment(requestParameters, options) {
|
|
11012
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).startTerminalPayment(requestParameters.id, requestParameters.processTerminalPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11013
|
+
}
|
|
11014
|
+
}
|
|
11015
|
+
exports.TerminalPaymentsApi = TerminalPaymentsApi;
|
|
10582
11016
|
/**
|
|
10583
11017
|
* TermsOfServiceApi - axios parameter creator
|
|
10584
11018
|
* @export
|
|
@@ -12411,7 +12845,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12411
12845
|
return {
|
|
12412
12846
|
/**
|
|
12413
12847
|
*
|
|
12414
|
-
* @summary Accept the Terms of Service
|
|
12848
|
+
* @summary Accept the current Terms of Service version
|
|
12415
12849
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
12416
12850
|
* @param {*} [options] Override http request option.
|
|
12417
12851
|
* @throws {RequiredError}
|
|
@@ -12940,6 +13374,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12940
13374
|
options: localVarRequestOptions,
|
|
12941
13375
|
};
|
|
12942
13376
|
},
|
|
13377
|
+
/**
|
|
13378
|
+
*
|
|
13379
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
13380
|
+
* @param {number} id The id of the user
|
|
13381
|
+
* @param {*} [options] Override http request option.
|
|
13382
|
+
* @throws {RequiredError}
|
|
13383
|
+
*/
|
|
13384
|
+
getUserTos: async (id, options = {}) => {
|
|
13385
|
+
// verify required parameter 'id' is not null or undefined
|
|
13386
|
+
(0, common_1.assertParamExists)('getUserTos', 'id', id);
|
|
13387
|
+
const localVarPath = `/users/{id}/tos`
|
|
13388
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13389
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13390
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13391
|
+
let baseOptions;
|
|
13392
|
+
if (configuration) {
|
|
13393
|
+
baseOptions = configuration.baseOptions;
|
|
13394
|
+
}
|
|
13395
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13396
|
+
const localVarHeaderParameter = {};
|
|
13397
|
+
const localVarQueryParameter = {};
|
|
13398
|
+
// authentication JWT required
|
|
13399
|
+
// http bearer authentication required
|
|
13400
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13401
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13403
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13404
|
+
return {
|
|
13405
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13406
|
+
options: localVarRequestOptions,
|
|
13407
|
+
};
|
|
13408
|
+
},
|
|
12943
13409
|
/**
|
|
12944
13410
|
*
|
|
12945
13411
|
* @summary Returns the user\'s containers
|
|
@@ -13922,7 +14388,7 @@ const UsersApiFp = function (configuration) {
|
|
|
13922
14388
|
return {
|
|
13923
14389
|
/**
|
|
13924
14390
|
*
|
|
13925
|
-
* @summary Accept the Terms of Service
|
|
14391
|
+
* @summary Accept the current Terms of Service version
|
|
13926
14392
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
13927
14393
|
* @param {*} [options] Override http request option.
|
|
13928
14394
|
* @throws {RequiredError}
|
|
@@ -14127,6 +14593,19 @@ const UsersApiFp = function (configuration) {
|
|
|
14127
14593
|
const operationBasePath = base_1.operationServerMap['UsersApi.getUserSettings']?.[index]?.url;
|
|
14128
14594
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
14129
14595
|
},
|
|
14596
|
+
/**
|
|
14597
|
+
*
|
|
14598
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
14599
|
+
* @param {number} id The id of the user
|
|
14600
|
+
* @param {*} [options] Override http request option.
|
|
14601
|
+
* @throws {RequiredError}
|
|
14602
|
+
*/
|
|
14603
|
+
async getUserTos(id, options) {
|
|
14604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserTos(id, options);
|
|
14605
|
+
const index = configuration?.serverIndex ?? 0;
|
|
14606
|
+
const operationBasePath = base_1.operationServerMap['UsersApi.getUserTos']?.[index]?.url;
|
|
14607
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
14608
|
+
},
|
|
14130
14609
|
/**
|
|
14131
14610
|
*
|
|
14132
14611
|
* @summary Returns the user\'s containers
|
|
@@ -14492,7 +14971,7 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14492
14971
|
return {
|
|
14493
14972
|
/**
|
|
14494
14973
|
*
|
|
14495
|
-
* @summary Accept the Terms of Service
|
|
14974
|
+
* @summary Accept the current Terms of Service version
|
|
14496
14975
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
14497
14976
|
* @param {*} [options] Override http request option.
|
|
14498
14977
|
* @throws {RequiredError}
|
|
@@ -14640,6 +15119,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14640
15119
|
getUserSettings(requestParameters, options) {
|
|
14641
15120
|
return localVarFp.getUserSettings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
14642
15121
|
},
|
|
15122
|
+
/**
|
|
15123
|
+
*
|
|
15124
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
15125
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
15126
|
+
* @param {*} [options] Override http request option.
|
|
15127
|
+
* @throws {RequiredError}
|
|
15128
|
+
*/
|
|
15129
|
+
getUserTos(requestParameters, options) {
|
|
15130
|
+
return localVarFp.getUserTos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
15131
|
+
},
|
|
14643
15132
|
/**
|
|
14644
15133
|
*
|
|
14645
15134
|
* @summary Returns the user\'s containers
|
|
@@ -14883,7 +15372,7 @@ exports.UsersApiFactory = UsersApiFactory;
|
|
|
14883
15372
|
class UsersApi extends base_1.BaseAPI {
|
|
14884
15373
|
/**
|
|
14885
15374
|
*
|
|
14886
|
-
* @summary Accept the Terms of Service
|
|
15375
|
+
* @summary Accept the current Terms of Service version
|
|
14887
15376
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
14888
15377
|
* @param {*} [options] Override http request option.
|
|
14889
15378
|
* @throws {RequiredError}
|
|
@@ -15046,6 +15535,17 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
15046
15535
|
getUserSettings(requestParameters, options) {
|
|
15047
15536
|
return (0, exports.UsersApiFp)(this.configuration).getUserSettings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
15048
15537
|
}
|
|
15538
|
+
/**
|
|
15539
|
+
*
|
|
15540
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
15541
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
15542
|
+
* @param {*} [options] Override http request option.
|
|
15543
|
+
* @throws {RequiredError}
|
|
15544
|
+
* @memberof UsersApi
|
|
15545
|
+
*/
|
|
15546
|
+
getUserTos(requestParameters, options) {
|
|
15547
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserTos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
15548
|
+
}
|
|
15049
15549
|
/**
|
|
15050
15550
|
*
|
|
15051
15551
|
* @summary Returns the user\'s containers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gewis/sudosos-client",
|
|
3
|
-
"version": "0.0.0-develop.
|
|
3
|
+
"version": "0.0.0-develop.ea8b1d1",
|
|
4
4
|
"description": "Auto-generated TypeScript-Axios client for the SudoSOS API",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"clean": "rm -rf src dist"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"axios": "1.
|
|
19
|
+
"axios": "1.18.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@openapitools/openapi-generator-cli": "2.
|
|
22
|
+
"@openapitools/openapi-generator-cli": "2.39.1",
|
|
23
23
|
"typescript": "5.9.3"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|