@gooday_corp/gooday-api-client 1.7.3 → 1.7.7
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/.openapi-generator/FILES +2 -0
- package/api.ts +109 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/PlansApi.md +52 -0
- package/docs/PromoCode.md +22 -0
- package/docs/PromoCodeResponseDTO.md +22 -0
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -246,6 +246,8 @@ docs/PriceEntity.md
|
|
|
246
246
|
docs/PriceRangeEntity.md
|
|
247
247
|
docs/PriceRangeListResponse.md
|
|
248
248
|
docs/ProductResponseDTO.md
|
|
249
|
+
docs/PromoCode.md
|
|
250
|
+
docs/PromoCodeResponseDTO.md
|
|
249
251
|
docs/RegularBookingAvailabilityPayloadDTO.md
|
|
250
252
|
docs/RegularBookingAvailabilityResponseDTO.md
|
|
251
253
|
docs/RejectBookingInvitePayload.md
|
package/api.ts
CHANGED
|
@@ -7284,6 +7284,44 @@ export interface ProductResponseDTO {
|
|
|
7284
7284
|
*/
|
|
7285
7285
|
'statusCode': number;
|
|
7286
7286
|
}
|
|
7287
|
+
/**
|
|
7288
|
+
*
|
|
7289
|
+
* @export
|
|
7290
|
+
* @interface PromoCode
|
|
7291
|
+
*/
|
|
7292
|
+
export interface PromoCode {
|
|
7293
|
+
/**
|
|
7294
|
+
* Event ID
|
|
7295
|
+
* @type {string}
|
|
7296
|
+
* @memberof PromoCode
|
|
7297
|
+
*/
|
|
7298
|
+
'eventId': string;
|
|
7299
|
+
/**
|
|
7300
|
+
* Discount ID
|
|
7301
|
+
* @type {string}
|
|
7302
|
+
* @memberof PromoCode
|
|
7303
|
+
*/
|
|
7304
|
+
'discountId': string;
|
|
7305
|
+
}
|
|
7306
|
+
/**
|
|
7307
|
+
*
|
|
7308
|
+
* @export
|
|
7309
|
+
* @interface PromoCodeResponseDTO
|
|
7310
|
+
*/
|
|
7311
|
+
export interface PromoCodeResponseDTO {
|
|
7312
|
+
/**
|
|
7313
|
+
* statusCode
|
|
7314
|
+
* @type {number}
|
|
7315
|
+
* @memberof PromoCodeResponseDTO
|
|
7316
|
+
*/
|
|
7317
|
+
'statusCode': number;
|
|
7318
|
+
/**
|
|
7319
|
+
* Discount ID
|
|
7320
|
+
* @type {string}
|
|
7321
|
+
* @memberof PromoCodeResponseDTO
|
|
7322
|
+
*/
|
|
7323
|
+
'message': string;
|
|
7324
|
+
}
|
|
7287
7325
|
/**
|
|
7288
7326
|
*
|
|
7289
7327
|
* @export
|
|
@@ -20623,6 +20661,45 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
20623
20661
|
options: localVarRequestOptions,
|
|
20624
20662
|
};
|
|
20625
20663
|
},
|
|
20664
|
+
/**
|
|
20665
|
+
*
|
|
20666
|
+
* @param {PromoCode} promoCode
|
|
20667
|
+
* @param {*} [options] Override http request option.
|
|
20668
|
+
* @throws {RequiredError}
|
|
20669
|
+
*/
|
|
20670
|
+
paymentControllerRetrieveCouponCode: async (promoCode: PromoCode, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20671
|
+
// verify required parameter 'promoCode' is not null or undefined
|
|
20672
|
+
assertParamExists('paymentControllerRetrieveCouponCode', 'promoCode', promoCode)
|
|
20673
|
+
const localVarPath = `/v1/payment/promo-code`;
|
|
20674
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20675
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20676
|
+
let baseOptions;
|
|
20677
|
+
if (configuration) {
|
|
20678
|
+
baseOptions = configuration.baseOptions;
|
|
20679
|
+
}
|
|
20680
|
+
|
|
20681
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20682
|
+
const localVarHeaderParameter = {} as any;
|
|
20683
|
+
const localVarQueryParameter = {} as any;
|
|
20684
|
+
|
|
20685
|
+
// authentication bearer required
|
|
20686
|
+
// http bearer authentication required
|
|
20687
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20688
|
+
|
|
20689
|
+
|
|
20690
|
+
|
|
20691
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20692
|
+
|
|
20693
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20694
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20695
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20696
|
+
localVarRequestOptions.data = serializeDataIfNeeded(promoCode, localVarRequestOptions, configuration)
|
|
20697
|
+
|
|
20698
|
+
return {
|
|
20699
|
+
url: toPathString(localVarUrlObj),
|
|
20700
|
+
options: localVarRequestOptions,
|
|
20701
|
+
};
|
|
20702
|
+
},
|
|
20626
20703
|
/**
|
|
20627
20704
|
*
|
|
20628
20705
|
* @param {*} [options] Override http request option.
|
|
@@ -20836,6 +20913,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
20836
20913
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRetrieveConnectedAccount']?.[localVarOperationServerIndex]?.url;
|
|
20837
20914
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20838
20915
|
},
|
|
20916
|
+
/**
|
|
20917
|
+
*
|
|
20918
|
+
* @param {PromoCode} promoCode
|
|
20919
|
+
* @param {*} [options] Override http request option.
|
|
20920
|
+
* @throws {RequiredError}
|
|
20921
|
+
*/
|
|
20922
|
+
async paymentControllerRetrieveCouponCode(promoCode: PromoCode, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoCodeResponseDTO>> {
|
|
20923
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRetrieveCouponCode(promoCode, options);
|
|
20924
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20925
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRetrieveCouponCode']?.[localVarOperationServerIndex]?.url;
|
|
20926
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20927
|
+
},
|
|
20839
20928
|
/**
|
|
20840
20929
|
*
|
|
20841
20930
|
* @param {*} [options] Override http request option.
|
|
@@ -20942,6 +21031,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
20942
21031
|
paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): AxiosPromise<BusinessConnectedAccount> {
|
|
20943
21032
|
return localVarFp.paymentControllerRetrieveConnectedAccount(options).then((request) => request(axios, basePath));
|
|
20944
21033
|
},
|
|
21034
|
+
/**
|
|
21035
|
+
*
|
|
21036
|
+
* @param {PromoCode} promoCode
|
|
21037
|
+
* @param {*} [options] Override http request option.
|
|
21038
|
+
* @throws {RequiredError}
|
|
21039
|
+
*/
|
|
21040
|
+
paymentControllerRetrieveCouponCode(promoCode: PromoCode, options?: RawAxiosRequestConfig): AxiosPromise<PromoCodeResponseDTO> {
|
|
21041
|
+
return localVarFp.paymentControllerRetrieveCouponCode(promoCode, options).then((request) => request(axios, basePath));
|
|
21042
|
+
},
|
|
20945
21043
|
/**
|
|
20946
21044
|
*
|
|
20947
21045
|
* @param {*} [options] Override http request option.
|
|
@@ -21048,6 +21146,17 @@ export class PlansApi extends BaseAPI {
|
|
|
21048
21146
|
return PlansApiFp(this.configuration).paymentControllerRetrieveConnectedAccount(options).then((request) => request(this.axios, this.basePath));
|
|
21049
21147
|
}
|
|
21050
21148
|
|
|
21149
|
+
/**
|
|
21150
|
+
*
|
|
21151
|
+
* @param {PromoCode} promoCode
|
|
21152
|
+
* @param {*} [options] Override http request option.
|
|
21153
|
+
* @throws {RequiredError}
|
|
21154
|
+
* @memberof PlansApi
|
|
21155
|
+
*/
|
|
21156
|
+
public paymentControllerRetrieveCouponCode(promoCode: PromoCode, options?: RawAxiosRequestConfig) {
|
|
21157
|
+
return PlansApiFp(this.configuration).paymentControllerRetrieveCouponCode(promoCode, options).then((request) => request(this.axios, this.basePath));
|
|
21158
|
+
}
|
|
21159
|
+
|
|
21051
21160
|
/**
|
|
21052
21161
|
*
|
|
21053
21162
|
* @param {*} [options] Override http request option.
|
|
@@ -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 2025-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-05T18:33:14+05:30]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-05T18:33:14+05:30]
|
|
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]
|
package/docs/PlansApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
10
10
|
|[**paymentControllerCreateSetupIntent**](#paymentcontrollercreatesetupintent) | **GET** /v1/payment/create-setup-intent | |
|
|
11
11
|
|[**paymentControllerGetPlans**](#paymentcontrollergetplans) | **GET** /v1/payment/plans | |
|
|
12
12
|
|[**paymentControllerRetrieveConnectedAccount**](#paymentcontrollerretrieveconnectedaccount) | **GET** /v1/payment/connected-account | |
|
|
13
|
+
|[**paymentControllerRetrieveCouponCode**](#paymentcontrollerretrievecouponcode) | **POST** /v1/payment/promo-code | |
|
|
13
14
|
|[**paymentControllerRevenueCatWebhook**](#paymentcontrollerrevenuecatwebhook) | **POST** /v1/payment/revenuecat-webhook | |
|
|
14
15
|
|[**paymentControllerServiceById**](#paymentcontrollerservicebyid) | **GET** /v1/payment/stripe-plan/{id} | |
|
|
15
16
|
|[**paymentControllerSetupBookingPayment**](#paymentcontrollersetupbookingpayment) | **POST** /v1/payment/booking | |
|
|
@@ -274,6 +275,57 @@ This endpoint does not have any parameters.
|
|
|
274
275
|
- **Accept**: application/json
|
|
275
276
|
|
|
276
277
|
|
|
278
|
+
### HTTP response details
|
|
279
|
+
| Status code | Description | Response headers |
|
|
280
|
+
|-------------|-------------|------------------|
|
|
281
|
+
|**200** | | - |
|
|
282
|
+
|
|
283
|
+
[[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)
|
|
284
|
+
|
|
285
|
+
# **paymentControllerRetrieveCouponCode**
|
|
286
|
+
> PromoCodeResponseDTO paymentControllerRetrieveCouponCode(promoCode)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### Example
|
|
290
|
+
|
|
291
|
+
```typescript
|
|
292
|
+
import {
|
|
293
|
+
PlansApi,
|
|
294
|
+
Configuration,
|
|
295
|
+
PromoCode
|
|
296
|
+
} from './api';
|
|
297
|
+
|
|
298
|
+
const configuration = new Configuration();
|
|
299
|
+
const apiInstance = new PlansApi(configuration);
|
|
300
|
+
|
|
301
|
+
let promoCode: PromoCode; //
|
|
302
|
+
|
|
303
|
+
const { status, data } = await apiInstance.paymentControllerRetrieveCouponCode(
|
|
304
|
+
promoCode
|
|
305
|
+
);
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Parameters
|
|
309
|
+
|
|
310
|
+
|Name | Type | Description | Notes|
|
|
311
|
+
|------------- | ------------- | ------------- | -------------|
|
|
312
|
+
| **promoCode** | **PromoCode**| | |
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
### Return type
|
|
316
|
+
|
|
317
|
+
**PromoCodeResponseDTO**
|
|
318
|
+
|
|
319
|
+
### Authorization
|
|
320
|
+
|
|
321
|
+
[bearer](../README.md#bearer)
|
|
322
|
+
|
|
323
|
+
### HTTP request headers
|
|
324
|
+
|
|
325
|
+
- **Content-Type**: application/json
|
|
326
|
+
- **Accept**: application/json
|
|
327
|
+
|
|
328
|
+
|
|
277
329
|
### HTTP response details
|
|
278
330
|
| Status code | Description | Response headers |
|
|
279
331
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PromoCode
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**eventId** | **string** | Event ID | [default to undefined]
|
|
9
|
+
**discountId** | **string** | Discount ID | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PromoCode } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: PromoCode = {
|
|
17
|
+
eventId,
|
|
18
|
+
discountId,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PromoCodeResponseDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**statusCode** | **number** | statusCode | [default to undefined]
|
|
9
|
+
**message** | **string** | Discount ID | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PromoCodeResponseDTO } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: PromoCodeResponseDTO = {
|
|
17
|
+
statusCode,
|
|
18
|
+
message,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -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 2025-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-05T18:33:14+05:30]
|
|
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 2025-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-08-05T18:33:14+05:30]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-08-05T19:33:14+05:30]
|
|
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<CreateWaitlistBookingCollaboratorPayload>**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
|