@gooday_corp/gooday-api-client 4.5.102 → 4.5.106

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/api.ts CHANGED
@@ -16860,6 +16860,39 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
16860
16860
  options: localVarRequestOptions,
16861
16861
  };
16862
16862
  },
16863
+ /**
16864
+ *
16865
+ * @param {*} [options] Override http request option.
16866
+ * @throws {RequiredError}
16867
+ */
16868
+ businessControllerDisconnectStripe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16869
+ const localVarPath = `/v1/business/stripe/disconnect`;
16870
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16871
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16872
+ let baseOptions;
16873
+ if (configuration) {
16874
+ baseOptions = configuration.baseOptions;
16875
+ }
16876
+
16877
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16878
+ const localVarHeaderParameter = {} as any;
16879
+ const localVarQueryParameter = {} as any;
16880
+
16881
+ // authentication bearer required
16882
+ // http bearer authentication required
16883
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16884
+
16885
+
16886
+
16887
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16888
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16889
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16890
+
16891
+ return {
16892
+ url: toPathString(localVarUrlObj),
16893
+ options: localVarRequestOptions,
16894
+ };
16895
+ },
16863
16896
  /**
16864
16897
  *
16865
16898
  * @param {number} page
@@ -18030,6 +18063,17 @@ export const BusinessApiFp = function(configuration?: Configuration) {
18030
18063
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
18031
18064
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18032
18065
  },
18066
+ /**
18067
+ *
18068
+ * @param {*} [options] Override http request option.
18069
+ * @throws {RequiredError}
18070
+ */
18071
+ async businessControllerDisconnectStripe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
18072
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerDisconnectStripe(options);
18073
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18074
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerDisconnectStripe']?.[localVarOperationServerIndex]?.url;
18075
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18076
+ },
18033
18077
  /**
18034
18078
  *
18035
18079
  * @param {number} page
@@ -18427,6 +18471,14 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
18427
18471
  businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
18428
18472
  return localVarFp.businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(axios, basePath));
18429
18473
  },
18474
+ /**
18475
+ *
18476
+ * @param {*} [options] Override http request option.
18477
+ * @throws {RequiredError}
18478
+ */
18479
+ businessControllerDisconnectStripe(options?: RawAxiosRequestConfig): AxiosPromise<void> {
18480
+ return localVarFp.businessControllerDisconnectStripe(options).then((request) => request(axios, basePath));
18481
+ },
18430
18482
  /**
18431
18483
  *
18432
18484
  * @param {number} page
@@ -18735,6 +18787,16 @@ export class BusinessApi extends BaseAPI {
18735
18787
  return BusinessApiFp(this.configuration).businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(this.axios, this.basePath));
18736
18788
  }
18737
18789
 
18790
+ /**
18791
+ *
18792
+ * @param {*} [options] Override http request option.
18793
+ * @throws {RequiredError}
18794
+ * @memberof BusinessApi
18795
+ */
18796
+ public businessControllerDisconnectStripe(options?: RawAxiosRequestConfig) {
18797
+ return BusinessApiFp(this.configuration).businessControllerDisconnectStripe(options).then((request) => request(this.axios, this.basePath));
18798
+ }
18799
+
18738
18800
  /**
18739
18801
  *
18740
18802
  * @param {number} page
@@ -28514,6 +28576,43 @@ export const RSVPV2ApiAxiosParamCreator = function (configuration?: Configuratio
28514
28576
  options: localVarRequestOptions,
28515
28577
  };
28516
28578
  },
28579
+ /**
28580
+ *
28581
+ * @param {string} id
28582
+ * @param {*} [options] Override http request option.
28583
+ * @throws {RequiredError}
28584
+ */
28585
+ rSVPV2ControllerDeleteEvent: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28586
+ // verify required parameter 'id' is not null or undefined
28587
+ assertParamExists('rSVPV2ControllerDeleteEvent', 'id', id)
28588
+ const localVarPath = `/v1/rsvp/v2/events/{id}`
28589
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
28590
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28591
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28592
+ let baseOptions;
28593
+ if (configuration) {
28594
+ baseOptions = configuration.baseOptions;
28595
+ }
28596
+
28597
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
28598
+ const localVarHeaderParameter = {} as any;
28599
+ const localVarQueryParameter = {} as any;
28600
+
28601
+ // authentication bearer required
28602
+ // http bearer authentication required
28603
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28604
+
28605
+
28606
+
28607
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28608
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28609
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28610
+
28611
+ return {
28612
+ url: toPathString(localVarUrlObj),
28613
+ options: localVarRequestOptions,
28614
+ };
28615
+ },
28517
28616
  /**
28518
28617
  *
28519
28618
  * @param {string} id
@@ -29064,6 +29163,18 @@ export const RSVPV2ApiFp = function(configuration?: Configuration) {
29064
29163
  const localVarOperationServerBasePath = operationServerMap['RSVPV2Api.rSVPV2ControllerCreateEvent']?.[localVarOperationServerIndex]?.url;
29065
29164
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29066
29165
  },
29166
+ /**
29167
+ *
29168
+ * @param {string} id
29169
+ * @param {*} [options] Override http request option.
29170
+ * @throws {RequiredError}
29171
+ */
29172
+ async rSVPV2ControllerDeleteEvent(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
29173
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rSVPV2ControllerDeleteEvent(id, options);
29174
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29175
+ const localVarOperationServerBasePath = operationServerMap['RSVPV2Api.rSVPV2ControllerDeleteEvent']?.[localVarOperationServerIndex]?.url;
29176
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29177
+ },
29067
29178
  /**
29068
29179
  *
29069
29180
  * @param {string} id
@@ -29245,6 +29356,15 @@ export const RSVPV2ApiFactory = function (configuration?: Configuration, basePat
29245
29356
  rSVPV2ControllerCreateEvent(createRSVPEventV2DTO: CreateRSVPEventV2DTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
29246
29357
  return localVarFp.rSVPV2ControllerCreateEvent(createRSVPEventV2DTO, options).then((request) => request(axios, basePath));
29247
29358
  },
29359
+ /**
29360
+ *
29361
+ * @param {string} id
29362
+ * @param {*} [options] Override http request option.
29363
+ * @throws {RequiredError}
29364
+ */
29365
+ rSVPV2ControllerDeleteEvent(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
29366
+ return localVarFp.rSVPV2ControllerDeleteEvent(id, options).then((request) => request(axios, basePath));
29367
+ },
29248
29368
  /**
29249
29369
  *
29250
29370
  * @param {string} id
@@ -29397,6 +29517,17 @@ export class RSVPV2Api extends BaseAPI {
29397
29517
  return RSVPV2ApiFp(this.configuration).rSVPV2ControllerCreateEvent(createRSVPEventV2DTO, options).then((request) => request(this.axios, this.basePath));
29398
29518
  }
29399
29519
 
29520
+ /**
29521
+ *
29522
+ * @param {string} id
29523
+ * @param {*} [options] Override http request option.
29524
+ * @throws {RequiredError}
29525
+ * @memberof RSVPV2Api
29526
+ */
29527
+ public rSVPV2ControllerDeleteEvent(id: string, options?: RawAxiosRequestConfig) {
29528
+ return RSVPV2ApiFp(this.configuration).rSVPV2ControllerDeleteEvent(id, options).then((request) => request(this.axios, this.basePath));
29529
+ }
29530
+
29400
29531
  /**
29401
29532
  *
29402
29533
  * @param {string} id
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost:8080*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**businessControllerBusinessBookingFeeUpdate**](#businesscontrollerbusinessbookingfeeupdate) | **PUT** /v1/business/booking/fee | |
8
8
  |[**businessControllerBusinessOnboarding**](#businesscontrollerbusinessonboarding) | **POST** /v1/business/onboarding | |
9
+ |[**businessControllerDisconnectStripe**](#businesscontrollerdisconnectstripe) | **POST** /v1/business/stripe/disconnect | |
9
10
  |[**businessControllerFindBusiness**](#businesscontrollerfindbusiness) | **GET** /v1/business/hosts | |
10
11
  |[**businessControllerGetMe**](#businesscontrollergetme) | **GET** /v1/business/me | |
11
12
  |[**businessControllerListBusinesses**](#businesscontrollerlistbusinesses) | **GET** /v1/business | |
@@ -141,6 +142,49 @@ const { status, data } = await apiInstance.businessControllerBusinessOnboarding(
141
142
 
142
143
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
143
144
 
145
+ # **businessControllerDisconnectStripe**
146
+ > businessControllerDisconnectStripe()
147
+
148
+
149
+ ### Example
150
+
151
+ ```typescript
152
+ import {
153
+ BusinessApi,
154
+ Configuration
155
+ } from './api';
156
+
157
+ const configuration = new Configuration();
158
+ const apiInstance = new BusinessApi(configuration);
159
+
160
+ const { status, data } = await apiInstance.businessControllerDisconnectStripe();
161
+ ```
162
+
163
+ ### Parameters
164
+ This endpoint does not have any parameters.
165
+
166
+
167
+ ### Return type
168
+
169
+ void (empty response body)
170
+
171
+ ### Authorization
172
+
173
+ [bearer](../README.md#bearer)
174
+
175
+ ### HTTP request headers
176
+
177
+ - **Content-Type**: Not defined
178
+ - **Accept**: Not defined
179
+
180
+
181
+ ### HTTP response details
182
+ | Status code | Description | Response headers |
183
+ |-------------|-------------|------------------|
184
+ |**200** | Stripe account disconnected successfully | - |
185
+
186
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
187
+
144
188
  # **businessControllerFindBusiness**
145
189
  > Array<UserEntity> businessControllerFindBusiness()
146
190
 
@@ -6,8 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **title** | **string** | The title of the booking | [default to 'Default Booking Title']
9
- **date** | **string** | The start date of the booking | [default to 2026-04-09T09:31:01Z]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-04-09T09:31:01Z]
9
+ **date** | **string** | The start date of the booking | [default to 2026-04-09T12:27:31Z]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-04-09T12:27:31Z]
11
11
  **from** | **string** | | [optional] [default to undefined]
12
12
  **to** | **string** | | [optional] [default to undefined]
13
13
  **venue** | **string** | The venue of the booking | [default to undefined]
@@ -6,8 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **title** | **string** | The title of the booking | [default to 'Default Booking Title']
9
- **startDate** | **string** | The start date of the booking | [default to 2026-04-09T09:31:01Z]
10
- **endDate** | **string** | The start date of the booking | [default to 2026-04-09T09:31:01Z]
9
+ **startDate** | **string** | The start date of the booking | [default to 2026-04-09T12:27:31Z]
10
+ **endDate** | **string** | The start date of the booking | [default to 2026-04-09T12:27:31Z]
11
11
  **note** | **string** | Notes attached with booking | [optional] [default to undefined]
12
12
  **occasion** | **string** | Occasion id | [optional] [default to undefined]
13
13
  **calendar** | **Array&lt;string&gt;** | Calendar attached with booking | [optional] [default to undefined]
@@ -6,8 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **title** | **string** | The title of the booking | [default to 'Default Booking Title']
9
- **startDate** | **string** | The start date of the booking | [default to 2026-04-09T09:31:01Z]
10
- **endDate** | **string** | The start date of the booking | [default to 2026-04-09T09:31:01Z]
9
+ **startDate** | **string** | The start date of the booking | [default to 2026-04-09T12:27:31Z]
10
+ **endDate** | **string** | The start date of the booking | [default to 2026-04-09T12:27:31Z]
11
11
  **note** | **string** | Notes attached with booking | [optional] [default to undefined]
12
12
  **occasion** | **string** | Occasion id | [optional] [default to undefined]
13
13
  **calendar** | **Array&lt;string&gt;** | Calendar attached with booking | [optional] [default to undefined]
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
8
8
  **whatsOnId** | **string** | Event ID | [optional] [default to undefined]
9
9
  **serviceId** | **string** | Service ID | [optional] [default to undefined]
10
10
  **rsvpId** | **string** | RSVP ID | [optional] [default to undefined]
11
- **startDate** | **string** | The start date of the booking | [optional] [default to 2026-04-09T09:30:59Z]
12
- **endDate** | **string** | The end date of the booking | [optional] [default to 2026-04-09T09:30:59Z]
11
+ **startDate** | **string** | The start date of the booking | [optional] [default to 2026-04-09T12:27:28Z]
12
+ **endDate** | **string** | The end date of the booking | [optional] [default to 2026-04-09T12:27:28Z]
13
13
  **discountId** | **string** | Discount ID | [optional] [default to undefined]
14
14
  **selectedStaff** | **string** | Staff ID | [optional] [default to undefined]
15
15
  **quantity** | **number** | | [optional] [default to 0]
package/docs/RSVPV2Api.md CHANGED
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost:8080*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**rSVPV2ControllerConfirmPayment**](#rsvpv2controllerconfirmpayment) | **POST** /v1/rsvp/v2/attendees/payment/confirm | |
8
8
  |[**rSVPV2ControllerCreateEvent**](#rsvpv2controllercreateevent) | **POST** /v1/rsvp/v2/events | |
9
+ |[**rSVPV2ControllerDeleteEvent**](#rsvpv2controllerdeleteevent) | **DELETE** /v1/rsvp/v2/events/{id} | |
9
10
  |[**rSVPV2ControllerGetAttendees**](#rsvpv2controllergetattendees) | **GET** /v1/rsvp/v2/events/{id}/attendees | |
10
11
  |[**rSVPV2ControllerGetEventById**](#rsvpv2controllergeteventbyid) | **GET** /v1/rsvp/v2/events/{id} | |
11
12
  |[**rSVPV2ControllerGetEventsByBusiness**](#rsvpv2controllergeteventsbybusiness) | **GET** /v1/rsvp/v2/events/business/{businessId} | |
@@ -120,6 +121,56 @@ No authorization required
120
121
 
121
122
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
122
123
 
124
+ # **rSVPV2ControllerDeleteEvent**
125
+ > rSVPV2ControllerDeleteEvent()
126
+
127
+
128
+ ### Example
129
+
130
+ ```typescript
131
+ import {
132
+ RSVPV2Api,
133
+ Configuration
134
+ } from './api';
135
+
136
+ const configuration = new Configuration();
137
+ const apiInstance = new RSVPV2Api(configuration);
138
+
139
+ let id: string; // (default to undefined)
140
+
141
+ const { status, data } = await apiInstance.rSVPV2ControllerDeleteEvent(
142
+ id
143
+ );
144
+ ```
145
+
146
+ ### Parameters
147
+
148
+ |Name | Type | Description | Notes|
149
+ |------------- | ------------- | ------------- | -------------|
150
+ | **id** | [**string**] | | defaults to undefined|
151
+
152
+
153
+ ### Return type
154
+
155
+ void (empty response body)
156
+
157
+ ### Authorization
158
+
159
+ [bearer](../README.md#bearer)
160
+
161
+ ### HTTP request headers
162
+
163
+ - **Content-Type**: Not defined
164
+ - **Accept**: Not defined
165
+
166
+
167
+ ### HTTP response details
168
+ | Status code | Description | Response headers |
169
+ |-------------|-------------|------------------|
170
+ |**200** | Delete an existing RSVP event and purge its data | - |
171
+
172
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
173
+
123
174
  # **rSVPV2ControllerGetAttendees**
124
175
  > rSVPV2ControllerGetAttendees()
125
176
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **date** | **string** | The start date of the booking | [default to 2026-04-09T09:31:01Z]
8
+ **date** | **string** | The start date of the booking | [default to 2026-04-09T12:27:31Z]
9
9
  **from** | **string** | | [optional] [default to undefined]
10
10
  **to** | **string** | | [optional] [default to undefined]
11
11
  **notes** | **string** | | [optional] [default to undefined]
@@ -5,8 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **startDate** | **string** | The start date of the waitlist | [default to 2026-04-09T09:31:01Z]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2026-04-09T10:31:01Z]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2026-04-09T12:27:31Z]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2026-04-09T13:27:31Z]
10
10
  **venue** | **string** | The venue of the waitlist | [default to undefined]
11
11
  **business** | **string** | The business associated with the waitlist | [default to undefined]
12
12
  **collaborators** | [**Array&lt;CreateWaitlistBookingCollaboratorPayload&gt;**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "4.5.102",
3
+ "version": "4.5.106",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},