@gewis/sudosos-client 0.0.0-develop.c93ca19 → 0.0.0-develop.ceb3bda
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 +406 -0
- package/dist/api.js +425 -1
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -2118,6 +2118,19 @@ export interface CreateShiftRequest {
|
|
|
2118
2118
|
*/
|
|
2119
2119
|
'roles': Array<string>;
|
|
2120
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
|
+
}
|
|
2121
2134
|
/**
|
|
2122
2135
|
*
|
|
2123
2136
|
* @export
|
|
@@ -4207,6 +4220,19 @@ export interface PointOfSaleWithContainersResponse {
|
|
|
4207
4220
|
*/
|
|
4208
4221
|
'containers': Array<ContainerWithProductsResponse>;
|
|
4209
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
|
+
}
|
|
4210
4236
|
/**
|
|
4211
4237
|
* API Request for creating or updating a `product category` entity.
|
|
4212
4238
|
* @export
|
|
@@ -5099,6 +5125,37 @@ export interface StripePaymentIntentStatusResponse {
|
|
|
5099
5125
|
*/
|
|
5100
5126
|
'state': number;
|
|
5101
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
|
+
}
|
|
5102
5159
|
/**
|
|
5103
5160
|
*
|
|
5104
5161
|
* @export
|
|
@@ -5291,6 +5348,67 @@ export interface SubTransactionRowResponse {
|
|
|
5291
5348
|
*/
|
|
5292
5349
|
'totalPriceInclVat': DineroObjectResponse;
|
|
5293
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
|
+
}
|
|
5294
5412
|
/**
|
|
5295
5413
|
*
|
|
5296
5414
|
* @export
|
|
@@ -6399,6 +6517,12 @@ export interface UpdateUserRequest {
|
|
|
6399
6517
|
* @memberof UpdateUserRequest
|
|
6400
6518
|
*/
|
|
6401
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;
|
|
6402
6526
|
}
|
|
6403
6527
|
/**
|
|
6404
6528
|
* API Request for updating an existing `vat group` entity. Only mutable fields; the rate itself cannot change on an existing group.
|
|
@@ -6579,6 +6703,12 @@ export interface UserResponse {
|
|
|
6579
6703
|
* @memberof UserResponse
|
|
6580
6704
|
*/
|
|
6581
6705
|
'tosRequired'?: boolean;
|
|
6706
|
+
/**
|
|
6707
|
+
*
|
|
6708
|
+
* @type {TermsOfServiceStatus}
|
|
6709
|
+
* @memberof UserResponse
|
|
6710
|
+
*/
|
|
6711
|
+
'acceptedToS'?: TermsOfServiceStatus;
|
|
6582
6712
|
/**
|
|
6583
6713
|
* Whether data about this user can be used (non-anonymously) for more data science!
|
|
6584
6714
|
* @type {boolean}
|
|
@@ -14792,6 +14922,13 @@ export declare const StripeApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
14792
14922
|
* @throws {RequiredError}
|
|
14793
14923
|
*/
|
|
14794
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>;
|
|
14795
14932
|
};
|
|
14796
14933
|
/**
|
|
14797
14934
|
* StripeApi - functional programming interface
|
|
@@ -14813,6 +14950,13 @@ export declare const StripeApiFp: (configuration?: Configuration) => {
|
|
|
14813
14950
|
* @throws {RequiredError}
|
|
14814
14951
|
*/
|
|
14815
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>>;
|
|
14816
14960
|
};
|
|
14817
14961
|
/**
|
|
14818
14962
|
* StripeApi - factory interface
|
|
@@ -14834,6 +14978,13 @@ export declare const StripeApiFactory: (configuration?: Configuration, basePath?
|
|
|
14834
14978
|
* @throws {RequiredError}
|
|
14835
14979
|
*/
|
|
14836
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>;
|
|
14837
14988
|
};
|
|
14838
14989
|
/**
|
|
14839
14990
|
* Request parameters for deposit operation in StripeApi.
|
|
@@ -14872,6 +15023,14 @@ export declare class StripeApi extends BaseAPI {
|
|
|
14872
15023
|
* @memberof StripeApi
|
|
14873
15024
|
*/
|
|
14874
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, {}>>;
|
|
14875
15034
|
}
|
|
14876
15035
|
/**
|
|
14877
15036
|
* SyncApi - axios parameter creator
|
|
@@ -14953,6 +15112,253 @@ export declare const GetUserSyncResultsServiceEnum: {
|
|
|
14953
15112
|
readonly Gewisdb: "GEWISDB";
|
|
14954
15113
|
};
|
|
14955
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
|
+
}
|
|
14956
15362
|
/**
|
|
14957
15363
|
* TermsOfServiceApi - axios parameter creator
|
|
14958
15364
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
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
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.GetUserSyncResultsServiceEnum = exports.SyncApi = 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
|
|
@@ -10381,6 +10381,31 @@ const StripeApiAxiosParamCreator = function (configuration) {
|
|
|
10381
10381
|
options: localVarRequestOptions,
|
|
10382
10382
|
};
|
|
10383
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
|
+
},
|
|
10384
10409
|
};
|
|
10385
10410
|
};
|
|
10386
10411
|
exports.StripeApiAxiosParamCreator = StripeApiAxiosParamCreator;
|
|
@@ -10416,6 +10441,18 @@ const StripeApiFp = function (configuration) {
|
|
|
10416
10441
|
const operationBasePath = base_1.operationServerMap['StripeApi.getStripePublicKey']?.[index]?.url;
|
|
10417
10442
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10418
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
|
+
},
|
|
10419
10456
|
};
|
|
10420
10457
|
};
|
|
10421
10458
|
exports.StripeApiFp = StripeApiFp;
|
|
@@ -10445,6 +10482,15 @@ const StripeApiFactory = function (configuration, basePath, axios) {
|
|
|
10445
10482
|
getStripePublicKey(options) {
|
|
10446
10483
|
return localVarFp.getStripePublicKey(options).then((request) => request(axios, basePath));
|
|
10447
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
|
+
},
|
|
10448
10494
|
};
|
|
10449
10495
|
};
|
|
10450
10496
|
exports.StripeApiFactory = StripeApiFactory;
|
|
@@ -10476,6 +10522,16 @@ class StripeApi extends base_1.BaseAPI {
|
|
|
10476
10522
|
getStripePublicKey(options) {
|
|
10477
10523
|
return (0, exports.StripeApiFp)(this.configuration).getStripePublicKey(options).then((request) => request(this.axios, this.basePath));
|
|
10478
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
|
+
}
|
|
10479
10535
|
}
|
|
10480
10536
|
exports.StripeApi = StripeApi;
|
|
10481
10537
|
/**
|
|
@@ -10589,6 +10645,374 @@ exports.GetUserSyncResultsServiceEnum = {
|
|
|
10589
10645
|
Ldap: 'LDAP',
|
|
10590
10646
|
Gewisdb: 'GEWISDB'
|
|
10591
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;
|
|
10592
11016
|
/**
|
|
10593
11017
|
* TermsOfServiceApi - axios parameter creator
|
|
10594
11018
|
* @export
|
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.ceb3bda",
|
|
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.40.1",
|
|
23
23
|
"typescript": "5.9.3"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|