@gewis/sudosos-client 1.35.1 → 1.36.0
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 +520 -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
|
|
@@ -5310,6 +5434,17 @@ export interface TermsOfServiceResponse {
|
|
|
5310
5434
|
*/
|
|
5311
5435
|
'content': string;
|
|
5312
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];
|
|
5313
5448
|
/**
|
|
5314
5449
|
*
|
|
5315
5450
|
* @export
|
|
@@ -6382,6 +6517,12 @@ export interface UpdateUserRequest {
|
|
|
6382
6517
|
* @memberof UpdateUserRequest
|
|
6383
6518
|
*/
|
|
6384
6519
|
'expiryDate'?: string | null;
|
|
6520
|
+
/**
|
|
6521
|
+
* Whether organ members can manage this organ\'s products and containers without BAC/GEWIS PM. Only meaningful for organ users.
|
|
6522
|
+
* @type {boolean}
|
|
6523
|
+
* @memberof UpdateUserRequest
|
|
6524
|
+
*/
|
|
6525
|
+
'productSelfService'?: boolean;
|
|
6385
6526
|
}
|
|
6386
6527
|
/**
|
|
6387
6528
|
* API Request for updating an existing `vat group` entity. Only mutable fields; the rate itself cannot change on an existing group.
|
|
@@ -6557,11 +6698,17 @@ export interface UserResponse {
|
|
|
6557
6698
|
*/
|
|
6558
6699
|
'email'?: string;
|
|
6559
6700
|
/**
|
|
6560
|
-
* Whether this user
|
|
6561
|
-
* @type {
|
|
6701
|
+
* Whether this user is required to accept the TOS
|
|
6702
|
+
* @type {boolean}
|
|
6703
|
+
* @memberof UserResponse
|
|
6704
|
+
*/
|
|
6705
|
+
'tosRequired'?: boolean;
|
|
6706
|
+
/**
|
|
6707
|
+
*
|
|
6708
|
+
* @type {TermsOfServiceStatus}
|
|
6562
6709
|
* @memberof UserResponse
|
|
6563
6710
|
*/
|
|
6564
|
-
'acceptedToS'?:
|
|
6711
|
+
'acceptedToS'?: TermsOfServiceStatus;
|
|
6565
6712
|
/**
|
|
6566
6713
|
* Whether data about this user can be used (non-anonymously) for more data science!
|
|
6567
6714
|
* @type {boolean}
|
|
@@ -6710,6 +6857,50 @@ export interface UserToInactiveAdministrativeCostResponse {
|
|
|
6710
6857
|
*/
|
|
6711
6858
|
'nickname'?: string;
|
|
6712
6859
|
}
|
|
6860
|
+
/**
|
|
6861
|
+
*
|
|
6862
|
+
* @export
|
|
6863
|
+
* @interface UserTosAcceptanceResponse
|
|
6864
|
+
*/
|
|
6865
|
+
export interface UserTosAcceptanceResponse {
|
|
6866
|
+
/**
|
|
6867
|
+
* The accepted terms of service version number.
|
|
6868
|
+
* @type {string}
|
|
6869
|
+
* @memberof UserTosAcceptanceResponse
|
|
6870
|
+
*/
|
|
6871
|
+
'versionNumber': string;
|
|
6872
|
+
/**
|
|
6873
|
+
* The date at which this version was accepted.
|
|
6874
|
+
* @type {string}
|
|
6875
|
+
* @memberof UserTosAcceptanceResponse
|
|
6876
|
+
*/
|
|
6877
|
+
'acceptedAt': string;
|
|
6878
|
+
}
|
|
6879
|
+
/**
|
|
6880
|
+
*
|
|
6881
|
+
* @export
|
|
6882
|
+
* @interface UserTosResponse
|
|
6883
|
+
*/
|
|
6884
|
+
export interface UserTosResponse {
|
|
6885
|
+
/**
|
|
6886
|
+
*
|
|
6887
|
+
* @type {TermsOfServiceStatus}
|
|
6888
|
+
* @memberof UserTosResponse
|
|
6889
|
+
*/
|
|
6890
|
+
'status': TermsOfServiceStatus;
|
|
6891
|
+
/**
|
|
6892
|
+
* The current terms of service version number.
|
|
6893
|
+
* @type {string}
|
|
6894
|
+
* @memberof UserTosResponse
|
|
6895
|
+
*/
|
|
6896
|
+
'currentVersion': string;
|
|
6897
|
+
/**
|
|
6898
|
+
* All TOS versions the user has accepted.
|
|
6899
|
+
* @type {Array<UserTosAcceptanceResponse>}
|
|
6900
|
+
* @memberof UserTosResponse
|
|
6901
|
+
*/
|
|
6902
|
+
'acceptances': Array<UserTosAcceptanceResponse>;
|
|
6903
|
+
}
|
|
6713
6904
|
/**
|
|
6714
6905
|
* The type of a user
|
|
6715
6906
|
* @export
|
|
@@ -14731,6 +14922,13 @@ export declare const StripeApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
14731
14922
|
* @throws {RequiredError}
|
|
14732
14923
|
*/
|
|
14733
14924
|
getStripePublicKey: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14925
|
+
/**
|
|
14926
|
+
*
|
|
14927
|
+
* @summary Webhook for Stripe event updates
|
|
14928
|
+
* @param {*} [options] Override http request option.
|
|
14929
|
+
* @throws {RequiredError}
|
|
14930
|
+
*/
|
|
14931
|
+
webhook: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14734
14932
|
};
|
|
14735
14933
|
/**
|
|
14736
14934
|
* StripeApi - functional programming interface
|
|
@@ -14752,6 +14950,13 @@ export declare const StripeApiFp: (configuration?: Configuration) => {
|
|
|
14752
14950
|
* @throws {RequiredError}
|
|
14753
14951
|
*/
|
|
14754
14952
|
getStripePublicKey(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
14953
|
+
/**
|
|
14954
|
+
*
|
|
14955
|
+
* @summary Webhook for Stripe event updates
|
|
14956
|
+
* @param {*} [options] Override http request option.
|
|
14957
|
+
* @throws {RequiredError}
|
|
14958
|
+
*/
|
|
14959
|
+
webhook(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
14755
14960
|
};
|
|
14756
14961
|
/**
|
|
14757
14962
|
* StripeApi - factory interface
|
|
@@ -14773,6 +14978,13 @@ export declare const StripeApiFactory: (configuration?: Configuration, basePath?
|
|
|
14773
14978
|
* @throws {RequiredError}
|
|
14774
14979
|
*/
|
|
14775
14980
|
getStripePublicKey(options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
14981
|
+
/**
|
|
14982
|
+
*
|
|
14983
|
+
* @summary Webhook for Stripe event updates
|
|
14984
|
+
* @param {*} [options] Override http request option.
|
|
14985
|
+
* @throws {RequiredError}
|
|
14986
|
+
*/
|
|
14987
|
+
webhook(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
14776
14988
|
};
|
|
14777
14989
|
/**
|
|
14778
14990
|
* Request parameters for deposit operation in StripeApi.
|
|
@@ -14811,6 +15023,14 @@ export declare class StripeApi extends BaseAPI {
|
|
|
14811
15023
|
* @memberof StripeApi
|
|
14812
15024
|
*/
|
|
14813
15025
|
getStripePublicKey(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
15026
|
+
/**
|
|
15027
|
+
*
|
|
15028
|
+
* @summary Webhook for Stripe event updates
|
|
15029
|
+
* @param {*} [options] Override http request option.
|
|
15030
|
+
* @throws {RequiredError}
|
|
15031
|
+
* @memberof StripeApi
|
|
15032
|
+
*/
|
|
15033
|
+
webhook(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14814
15034
|
}
|
|
14815
15035
|
/**
|
|
14816
15036
|
* SyncApi - axios parameter creator
|
|
@@ -14892,6 +15112,253 @@ export declare const GetUserSyncResultsServiceEnum: {
|
|
|
14892
15112
|
readonly Gewisdb: "GEWISDB";
|
|
14893
15113
|
};
|
|
14894
15114
|
export type GetUserSyncResultsServiceEnum = typeof GetUserSyncResultsServiceEnum[keyof typeof GetUserSyncResultsServiceEnum];
|
|
15115
|
+
/**
|
|
15116
|
+
* TerminalPaymentsApi - axios parameter creator
|
|
15117
|
+
* @export
|
|
15118
|
+
*/
|
|
15119
|
+
export declare const TerminalPaymentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
15120
|
+
/**
|
|
15121
|
+
*
|
|
15122
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
15123
|
+
* @param {number} id The ID of the terminal payment
|
|
15124
|
+
* @param {*} [options] Override http request option.
|
|
15125
|
+
* @throws {RequiredError}
|
|
15126
|
+
*/
|
|
15127
|
+
cancelTerminalPayment: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15128
|
+
/**
|
|
15129
|
+
*
|
|
15130
|
+
* @summary Create a terminal payment before executing.
|
|
15131
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
15132
|
+
* @param {*} [options] Override http request option.
|
|
15133
|
+
* @throws {RequiredError}
|
|
15134
|
+
*/
|
|
15135
|
+
createTerminalPayment: (createTerminalPaymentRequest: CreateTerminalPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15136
|
+
/**
|
|
15137
|
+
*
|
|
15138
|
+
* @summary Get single terminal payment by ID
|
|
15139
|
+
* @param {number} id The ID of the terminal payment
|
|
15140
|
+
* @param {*} [options] Override http request option.
|
|
15141
|
+
* @throws {RequiredError}
|
|
15142
|
+
*/
|
|
15143
|
+
getSingleTerminalPayment: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15144
|
+
/**
|
|
15145
|
+
*
|
|
15146
|
+
* @summary Get all Stripe terminals
|
|
15147
|
+
* @param {*} [options] Override http request option.
|
|
15148
|
+
* @throws {RequiredError}
|
|
15149
|
+
*/
|
|
15150
|
+
getStripeTerminals: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15151
|
+
/**
|
|
15152
|
+
*
|
|
15153
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
15154
|
+
* @param {number} id The ID of the terminal payment
|
|
15155
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
15156
|
+
* @param {*} [options] Override http request option.
|
|
15157
|
+
* @throws {RequiredError}
|
|
15158
|
+
*/
|
|
15159
|
+
startTerminalPayment: (id: number, processTerminalPaymentRequest: ProcessTerminalPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15160
|
+
};
|
|
15161
|
+
/**
|
|
15162
|
+
* TerminalPaymentsApi - functional programming interface
|
|
15163
|
+
* @export
|
|
15164
|
+
*/
|
|
15165
|
+
export declare const TerminalPaymentsApiFp: (configuration?: Configuration) => {
|
|
15166
|
+
/**
|
|
15167
|
+
*
|
|
15168
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
15169
|
+
* @param {number} id The ID of the terminal payment
|
|
15170
|
+
* @param {*} [options] Override http request option.
|
|
15171
|
+
* @throws {RequiredError}
|
|
15172
|
+
*/
|
|
15173
|
+
cancelTerminalPayment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalPaymentResponse>>;
|
|
15174
|
+
/**
|
|
15175
|
+
*
|
|
15176
|
+
* @summary Create a terminal payment before executing.
|
|
15177
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
15178
|
+
* @param {*} [options] Override http request option.
|
|
15179
|
+
* @throws {RequiredError}
|
|
15180
|
+
*/
|
|
15181
|
+
createTerminalPayment(createTerminalPaymentRequest: CreateTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalPaymentResponse>>;
|
|
15182
|
+
/**
|
|
15183
|
+
*
|
|
15184
|
+
* @summary Get single terminal payment by ID
|
|
15185
|
+
* @param {number} id The ID of the terminal payment
|
|
15186
|
+
* @param {*} [options] Override http request option.
|
|
15187
|
+
* @throws {RequiredError}
|
|
15188
|
+
*/
|
|
15189
|
+
getSingleTerminalPayment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalPaymentResponse>>;
|
|
15190
|
+
/**
|
|
15191
|
+
*
|
|
15192
|
+
* @summary Get all Stripe terminals
|
|
15193
|
+
* @param {*} [options] Override http request option.
|
|
15194
|
+
* @throws {RequiredError}
|
|
15195
|
+
*/
|
|
15196
|
+
getStripeTerminals(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<StripePaymentTerminalResponse>>>;
|
|
15197
|
+
/**
|
|
15198
|
+
*
|
|
15199
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
15200
|
+
* @param {number} id The ID of the terminal payment
|
|
15201
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
15202
|
+
* @param {*} [options] Override http request option.
|
|
15203
|
+
* @throws {RequiredError}
|
|
15204
|
+
*/
|
|
15205
|
+
startTerminalPayment(id: number, processTerminalPaymentRequest: ProcessTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15206
|
+
};
|
|
15207
|
+
/**
|
|
15208
|
+
* TerminalPaymentsApi - factory interface
|
|
15209
|
+
* @export
|
|
15210
|
+
*/
|
|
15211
|
+
export declare const TerminalPaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
15212
|
+
/**
|
|
15213
|
+
*
|
|
15214
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
15215
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
15216
|
+
* @param {*} [options] Override http request option.
|
|
15217
|
+
* @throws {RequiredError}
|
|
15218
|
+
*/
|
|
15219
|
+
cancelTerminalPayment(requestParameters: TerminalPaymentsApiCancelTerminalPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerminalPaymentResponse>;
|
|
15220
|
+
/**
|
|
15221
|
+
*
|
|
15222
|
+
* @summary Create a terminal payment before executing.
|
|
15223
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
15224
|
+
* @param {*} [options] Override http request option.
|
|
15225
|
+
* @throws {RequiredError}
|
|
15226
|
+
*/
|
|
15227
|
+
createTerminalPayment(requestParameters: TerminalPaymentsApiCreateTerminalPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerminalPaymentResponse>;
|
|
15228
|
+
/**
|
|
15229
|
+
*
|
|
15230
|
+
* @summary Get single terminal payment by ID
|
|
15231
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
15232
|
+
* @param {*} [options] Override http request option.
|
|
15233
|
+
* @throws {RequiredError}
|
|
15234
|
+
*/
|
|
15235
|
+
getSingleTerminalPayment(requestParameters: TerminalPaymentsApiGetSingleTerminalPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<TerminalPaymentResponse>;
|
|
15236
|
+
/**
|
|
15237
|
+
*
|
|
15238
|
+
* @summary Get all Stripe terminals
|
|
15239
|
+
* @param {*} [options] Override http request option.
|
|
15240
|
+
* @throws {RequiredError}
|
|
15241
|
+
*/
|
|
15242
|
+
getStripeTerminals(options?: RawAxiosRequestConfig): AxiosPromise<Array<StripePaymentTerminalResponse>>;
|
|
15243
|
+
/**
|
|
15244
|
+
*
|
|
15245
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
15246
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
15247
|
+
* @param {*} [options] Override http request option.
|
|
15248
|
+
* @throws {RequiredError}
|
|
15249
|
+
*/
|
|
15250
|
+
startTerminalPayment(requestParameters: TerminalPaymentsApiStartTerminalPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
15251
|
+
};
|
|
15252
|
+
/**
|
|
15253
|
+
* Request parameters for cancelTerminalPayment operation in TerminalPaymentsApi.
|
|
15254
|
+
* @export
|
|
15255
|
+
* @interface TerminalPaymentsApiCancelTerminalPaymentRequest
|
|
15256
|
+
*/
|
|
15257
|
+
export interface TerminalPaymentsApiCancelTerminalPaymentRequest {
|
|
15258
|
+
/**
|
|
15259
|
+
* The ID of the terminal payment
|
|
15260
|
+
* @type {number}
|
|
15261
|
+
* @memberof TerminalPaymentsApiCancelTerminalPayment
|
|
15262
|
+
*/
|
|
15263
|
+
readonly id: number;
|
|
15264
|
+
}
|
|
15265
|
+
/**
|
|
15266
|
+
* Request parameters for createTerminalPayment operation in TerminalPaymentsApi.
|
|
15267
|
+
* @export
|
|
15268
|
+
* @interface TerminalPaymentsApiCreateTerminalPaymentRequest
|
|
15269
|
+
*/
|
|
15270
|
+
export interface TerminalPaymentsApiCreateTerminalPaymentRequest {
|
|
15271
|
+
/**
|
|
15272
|
+
* The terminal payment that should be created.
|
|
15273
|
+
* @type {CreateTerminalPaymentRequest}
|
|
15274
|
+
* @memberof TerminalPaymentsApiCreateTerminalPayment
|
|
15275
|
+
*/
|
|
15276
|
+
readonly createTerminalPaymentRequest: CreateTerminalPaymentRequest;
|
|
15277
|
+
}
|
|
15278
|
+
/**
|
|
15279
|
+
* Request parameters for getSingleTerminalPayment operation in TerminalPaymentsApi.
|
|
15280
|
+
* @export
|
|
15281
|
+
* @interface TerminalPaymentsApiGetSingleTerminalPaymentRequest
|
|
15282
|
+
*/
|
|
15283
|
+
export interface TerminalPaymentsApiGetSingleTerminalPaymentRequest {
|
|
15284
|
+
/**
|
|
15285
|
+
* The ID of the terminal payment
|
|
15286
|
+
* @type {number}
|
|
15287
|
+
* @memberof TerminalPaymentsApiGetSingleTerminalPayment
|
|
15288
|
+
*/
|
|
15289
|
+
readonly id: number;
|
|
15290
|
+
}
|
|
15291
|
+
/**
|
|
15292
|
+
* Request parameters for startTerminalPayment operation in TerminalPaymentsApi.
|
|
15293
|
+
* @export
|
|
15294
|
+
* @interface TerminalPaymentsApiStartTerminalPaymentRequest
|
|
15295
|
+
*/
|
|
15296
|
+
export interface TerminalPaymentsApiStartTerminalPaymentRequest {
|
|
15297
|
+
/**
|
|
15298
|
+
* The ID of the terminal payment
|
|
15299
|
+
* @type {number}
|
|
15300
|
+
* @memberof TerminalPaymentsApiStartTerminalPayment
|
|
15301
|
+
*/
|
|
15302
|
+
readonly id: number;
|
|
15303
|
+
/**
|
|
15304
|
+
* Payment options
|
|
15305
|
+
* @type {ProcessTerminalPaymentRequest}
|
|
15306
|
+
* @memberof TerminalPaymentsApiStartTerminalPayment
|
|
15307
|
+
*/
|
|
15308
|
+
readonly processTerminalPaymentRequest: ProcessTerminalPaymentRequest;
|
|
15309
|
+
}
|
|
15310
|
+
/**
|
|
15311
|
+
* TerminalPaymentsApi - object-oriented interface
|
|
15312
|
+
* @export
|
|
15313
|
+
* @class TerminalPaymentsApi
|
|
15314
|
+
* @extends {BaseAPI}
|
|
15315
|
+
*/
|
|
15316
|
+
export declare class TerminalPaymentsApi extends BaseAPI {
|
|
15317
|
+
/**
|
|
15318
|
+
*
|
|
15319
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
15320
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
15321
|
+
* @param {*} [options] Override http request option.
|
|
15322
|
+
* @throws {RequiredError}
|
|
15323
|
+
* @memberof TerminalPaymentsApi
|
|
15324
|
+
*/
|
|
15325
|
+
cancelTerminalPayment(requestParameters: TerminalPaymentsApiCancelTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminalPaymentResponse, any, {}>>;
|
|
15326
|
+
/**
|
|
15327
|
+
*
|
|
15328
|
+
* @summary Create a terminal payment before executing.
|
|
15329
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
15330
|
+
* @param {*} [options] Override http request option.
|
|
15331
|
+
* @throws {RequiredError}
|
|
15332
|
+
* @memberof TerminalPaymentsApi
|
|
15333
|
+
*/
|
|
15334
|
+
createTerminalPayment(requestParameters: TerminalPaymentsApiCreateTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminalPaymentResponse, any, {}>>;
|
|
15335
|
+
/**
|
|
15336
|
+
*
|
|
15337
|
+
* @summary Get single terminal payment by ID
|
|
15338
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
15339
|
+
* @param {*} [options] Override http request option.
|
|
15340
|
+
* @throws {RequiredError}
|
|
15341
|
+
* @memberof TerminalPaymentsApi
|
|
15342
|
+
*/
|
|
15343
|
+
getSingleTerminalPayment(requestParameters: TerminalPaymentsApiGetSingleTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminalPaymentResponse, any, {}>>;
|
|
15344
|
+
/**
|
|
15345
|
+
*
|
|
15346
|
+
* @summary Get all Stripe terminals
|
|
15347
|
+
* @param {*} [options] Override http request option.
|
|
15348
|
+
* @throws {RequiredError}
|
|
15349
|
+
* @memberof TerminalPaymentsApi
|
|
15350
|
+
*/
|
|
15351
|
+
getStripeTerminals(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StripePaymentTerminalResponse[], any, {}>>;
|
|
15352
|
+
/**
|
|
15353
|
+
*
|
|
15354
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
15355
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
15356
|
+
* @param {*} [options] Override http request option.
|
|
15357
|
+
* @throws {RequiredError}
|
|
15358
|
+
* @memberof TerminalPaymentsApi
|
|
15359
|
+
*/
|
|
15360
|
+
startTerminalPayment(requestParameters: TerminalPaymentsApiStartTerminalPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
15361
|
+
}
|
|
14895
15362
|
/**
|
|
14896
15363
|
* TermsOfServiceApi - axios parameter creator
|
|
14897
15364
|
* @export
|
|
@@ -16277,7 +16744,7 @@ export declare class UserNotificationPreferencesApi extends BaseAPI {
|
|
|
16277
16744
|
export declare const UsersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
16278
16745
|
/**
|
|
16279
16746
|
*
|
|
16280
|
-
* @summary Accept the Terms of Service
|
|
16747
|
+
* @summary Accept the current Terms of Service version
|
|
16281
16748
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
16282
16749
|
* @param {*} [options] Override http request option.
|
|
16283
16750
|
* @throws {RequiredError}
|
|
@@ -16407,6 +16874,14 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
16407
16874
|
* @throws {RequiredError}
|
|
16408
16875
|
*/
|
|
16409
16876
|
getUserSettings: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16877
|
+
/**
|
|
16878
|
+
*
|
|
16879
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
16880
|
+
* @param {number} id The id of the user
|
|
16881
|
+
* @param {*} [options] Override http request option.
|
|
16882
|
+
* @throws {RequiredError}
|
|
16883
|
+
*/
|
|
16884
|
+
getUserTos: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16410
16885
|
/**
|
|
16411
16886
|
*
|
|
16412
16887
|
* @summary Returns the user\'s containers
|
|
@@ -16653,7 +17128,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
16653
17128
|
export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
16654
17129
|
/**
|
|
16655
17130
|
*
|
|
16656
|
-
* @summary Accept the Terms of Service
|
|
17131
|
+
* @summary Accept the current Terms of Service version
|
|
16657
17132
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
16658
17133
|
* @param {*} [options] Override http request option.
|
|
16659
17134
|
* @throws {RequiredError}
|
|
@@ -16783,6 +17258,14 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
16783
17258
|
* @throws {RequiredError}
|
|
16784
17259
|
*/
|
|
16785
17260
|
getUserSettings(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserSettingsResponse>>;
|
|
17261
|
+
/**
|
|
17262
|
+
*
|
|
17263
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
17264
|
+
* @param {number} id The id of the user
|
|
17265
|
+
* @param {*} [options] Override http request option.
|
|
17266
|
+
* @throws {RequiredError}
|
|
17267
|
+
*/
|
|
17268
|
+
getUserTos(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserTosResponse>>;
|
|
16786
17269
|
/**
|
|
16787
17270
|
*
|
|
16788
17271
|
* @summary Returns the user\'s containers
|
|
@@ -17029,7 +17512,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
17029
17512
|
export declare const UsersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
17030
17513
|
/**
|
|
17031
17514
|
*
|
|
17032
|
-
* @summary Accept the Terms of Service
|
|
17515
|
+
* @summary Accept the current Terms of Service version
|
|
17033
17516
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
17034
17517
|
* @param {*} [options] Override http request option.
|
|
17035
17518
|
* @throws {RequiredError}
|
|
@@ -17147,6 +17630,14 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
17147
17630
|
* @throws {RequiredError}
|
|
17148
17631
|
*/
|
|
17149
17632
|
getUserSettings(requestParameters: UsersApiGetUserSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserSettingsResponse>;
|
|
17633
|
+
/**
|
|
17634
|
+
*
|
|
17635
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
17636
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
17637
|
+
* @param {*} [options] Override http request option.
|
|
17638
|
+
* @throws {RequiredError}
|
|
17639
|
+
*/
|
|
17640
|
+
getUserTos(requestParameters: UsersApiGetUserTosRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserTosResponse>;
|
|
17150
17641
|
/**
|
|
17151
17642
|
*
|
|
17152
17643
|
* @summary Returns the user\'s containers
|
|
@@ -17600,6 +18091,19 @@ export interface UsersApiGetUserSettingsRequest {
|
|
|
17600
18091
|
*/
|
|
17601
18092
|
readonly id: number;
|
|
17602
18093
|
}
|
|
18094
|
+
/**
|
|
18095
|
+
* Request parameters for getUserTos operation in UsersApi.
|
|
18096
|
+
* @export
|
|
18097
|
+
* @interface UsersApiGetUserTosRequest
|
|
18098
|
+
*/
|
|
18099
|
+
export interface UsersApiGetUserTosRequest {
|
|
18100
|
+
/**
|
|
18101
|
+
* The id of the user
|
|
18102
|
+
* @type {number}
|
|
18103
|
+
* @memberof UsersApiGetUserTos
|
|
18104
|
+
*/
|
|
18105
|
+
readonly id: number;
|
|
18106
|
+
}
|
|
17603
18107
|
/**
|
|
17604
18108
|
* Request parameters for getUsersContainers operation in UsersApi.
|
|
17605
18109
|
* @export
|
|
@@ -18226,7 +18730,7 @@ export interface UsersApiWaiveUserFinesRequest {
|
|
|
18226
18730
|
export declare class UsersApi extends BaseAPI {
|
|
18227
18731
|
/**
|
|
18228
18732
|
*
|
|
18229
|
-
* @summary Accept the Terms of Service
|
|
18733
|
+
* @summary Accept the current Terms of Service version
|
|
18230
18734
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
18231
18735
|
* @param {*} [options] Override http request option.
|
|
18232
18736
|
* @throws {RequiredError}
|
|
@@ -18359,6 +18863,15 @@ export declare class UsersApi extends BaseAPI {
|
|
|
18359
18863
|
* @memberof UsersApi
|
|
18360
18864
|
*/
|
|
18361
18865
|
getUserSettings(requestParameters: UsersApiGetUserSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserSettingsResponse, any, {}>>;
|
|
18866
|
+
/**
|
|
18867
|
+
*
|
|
18868
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
18869
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
18870
|
+
* @param {*} [options] Override http request option.
|
|
18871
|
+
* @throws {RequiredError}
|
|
18872
|
+
* @memberof UsersApi
|
|
18873
|
+
*/
|
|
18874
|
+
getUserTos(requestParameters: UsersApiGetUserTosRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserTosResponse, any, {}>>;
|
|
18362
18875
|
/**
|
|
18363
18876
|
*
|
|
18364
18877
|
* @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": "1.
|
|
3
|
+
"version": "1.36.0",
|
|
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": {
|