@gooday_corp/gooday-api-client 1.7.7 → 1.7.9
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 +3 -0
- package/api.ts +152 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/PaymentDetails.md +22 -0
- package/docs/PaymentDetailsPayload.md +30 -0
- package/docs/PaymentDetailsResponseDTO.md +22 -0
- package/docs/PlansApi.md +52 -0
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -223,6 +223,9 @@ docs/NotificationReadsDTO.md
|
|
|
223
223
|
docs/OAuthApi.md
|
|
224
224
|
docs/OnBoardingDTO.md
|
|
225
225
|
docs/OnBoardingResponseDTO.md
|
|
226
|
+
docs/PaymentDetails.md
|
|
227
|
+
docs/PaymentDetailsPayload.md
|
|
228
|
+
docs/PaymentDetailsResponseDTO.md
|
|
226
229
|
docs/Places.md
|
|
227
230
|
docs/PlanEntity.md
|
|
228
231
|
docs/PlanFeature.md
|
package/api.ts
CHANGED
|
@@ -6439,6 +6439,87 @@ export interface OnBoardingResponseDTO {
|
|
|
6439
6439
|
*/
|
|
6440
6440
|
'data': UserEntity;
|
|
6441
6441
|
}
|
|
6442
|
+
/**
|
|
6443
|
+
*
|
|
6444
|
+
* @export
|
|
6445
|
+
* @interface PaymentDetails
|
|
6446
|
+
*/
|
|
6447
|
+
export interface PaymentDetails {
|
|
6448
|
+
/**
|
|
6449
|
+
* Event ID
|
|
6450
|
+
* @type {number}
|
|
6451
|
+
* @memberof PaymentDetails
|
|
6452
|
+
*/
|
|
6453
|
+
'price': number;
|
|
6454
|
+
/**
|
|
6455
|
+
* Discount ID
|
|
6456
|
+
* @type {string}
|
|
6457
|
+
* @memberof PaymentDetails
|
|
6458
|
+
*/
|
|
6459
|
+
'message': string;
|
|
6460
|
+
}
|
|
6461
|
+
/**
|
|
6462
|
+
*
|
|
6463
|
+
* @export
|
|
6464
|
+
* @interface PaymentDetailsPayload
|
|
6465
|
+
*/
|
|
6466
|
+
export interface PaymentDetailsPayload {
|
|
6467
|
+
/**
|
|
6468
|
+
* Event ID
|
|
6469
|
+
* @type {string}
|
|
6470
|
+
* @memberof PaymentDetailsPayload
|
|
6471
|
+
*/
|
|
6472
|
+
'whatsOnId'?: string;
|
|
6473
|
+
/**
|
|
6474
|
+
* Event ID
|
|
6475
|
+
* @type {string}
|
|
6476
|
+
* @memberof PaymentDetailsPayload
|
|
6477
|
+
*/
|
|
6478
|
+
'serviceId'?: string;
|
|
6479
|
+
/**
|
|
6480
|
+
* Discount ID
|
|
6481
|
+
* @type {string}
|
|
6482
|
+
* @memberof PaymentDetailsPayload
|
|
6483
|
+
*/
|
|
6484
|
+
'discountId'?: string;
|
|
6485
|
+
/**
|
|
6486
|
+
* Staff ID
|
|
6487
|
+
* @type {string}
|
|
6488
|
+
* @memberof PaymentDetailsPayload
|
|
6489
|
+
*/
|
|
6490
|
+
'selectedStaff'?: string;
|
|
6491
|
+
/**
|
|
6492
|
+
*
|
|
6493
|
+
* @type {number}
|
|
6494
|
+
* @memberof PaymentDetailsPayload
|
|
6495
|
+
*/
|
|
6496
|
+
'quantity'?: number;
|
|
6497
|
+
/**
|
|
6498
|
+
* The list of collaborators associated with the booking
|
|
6499
|
+
* @type {Array<CreateBookingCollaboratorPayload>}
|
|
6500
|
+
* @memberof PaymentDetailsPayload
|
|
6501
|
+
*/
|
|
6502
|
+
'collaborators': Array<CreateBookingCollaboratorPayload>;
|
|
6503
|
+
}
|
|
6504
|
+
/**
|
|
6505
|
+
*
|
|
6506
|
+
* @export
|
|
6507
|
+
* @interface PaymentDetailsResponseDTO
|
|
6508
|
+
*/
|
|
6509
|
+
export interface PaymentDetailsResponseDTO {
|
|
6510
|
+
/**
|
|
6511
|
+
* statusCode
|
|
6512
|
+
* @type {number}
|
|
6513
|
+
* @memberof PaymentDetailsResponseDTO
|
|
6514
|
+
*/
|
|
6515
|
+
'statusCode': number;
|
|
6516
|
+
/**
|
|
6517
|
+
*
|
|
6518
|
+
* @type {PaymentDetails}
|
|
6519
|
+
* @memberof PaymentDetailsResponseDTO
|
|
6520
|
+
*/
|
|
6521
|
+
'data': PaymentDetails;
|
|
6522
|
+
}
|
|
6442
6523
|
/**
|
|
6443
6524
|
*
|
|
6444
6525
|
* @export
|
|
@@ -20628,6 +20709,45 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
20628
20709
|
options: localVarRequestOptions,
|
|
20629
20710
|
};
|
|
20630
20711
|
},
|
|
20712
|
+
/**
|
|
20713
|
+
*
|
|
20714
|
+
* @param {PaymentDetailsPayload} paymentDetailsPayload
|
|
20715
|
+
* @param {*} [options] Override http request option.
|
|
20716
|
+
* @throws {RequiredError}
|
|
20717
|
+
*/
|
|
20718
|
+
paymentControllerPaymentDetails: async (paymentDetailsPayload: PaymentDetailsPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20719
|
+
// verify required parameter 'paymentDetailsPayload' is not null or undefined
|
|
20720
|
+
assertParamExists('paymentControllerPaymentDetails', 'paymentDetailsPayload', paymentDetailsPayload)
|
|
20721
|
+
const localVarPath = `/v1/payment/booking/details`;
|
|
20722
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20723
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20724
|
+
let baseOptions;
|
|
20725
|
+
if (configuration) {
|
|
20726
|
+
baseOptions = configuration.baseOptions;
|
|
20727
|
+
}
|
|
20728
|
+
|
|
20729
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20730
|
+
const localVarHeaderParameter = {} as any;
|
|
20731
|
+
const localVarQueryParameter = {} as any;
|
|
20732
|
+
|
|
20733
|
+
// authentication bearer required
|
|
20734
|
+
// http bearer authentication required
|
|
20735
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20736
|
+
|
|
20737
|
+
|
|
20738
|
+
|
|
20739
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20740
|
+
|
|
20741
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20742
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20743
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20744
|
+
localVarRequestOptions.data = serializeDataIfNeeded(paymentDetailsPayload, localVarRequestOptions, configuration)
|
|
20745
|
+
|
|
20746
|
+
return {
|
|
20747
|
+
url: toPathString(localVarUrlObj),
|
|
20748
|
+
options: localVarRequestOptions,
|
|
20749
|
+
};
|
|
20750
|
+
},
|
|
20631
20751
|
/**
|
|
20632
20752
|
*
|
|
20633
20753
|
* @param {*} [options] Override http request option.
|
|
@@ -20902,6 +21022,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
20902
21022
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
|
|
20903
21023
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20904
21024
|
},
|
|
21025
|
+
/**
|
|
21026
|
+
*
|
|
21027
|
+
* @param {PaymentDetailsPayload} paymentDetailsPayload
|
|
21028
|
+
* @param {*} [options] Override http request option.
|
|
21029
|
+
* @throws {RequiredError}
|
|
21030
|
+
*/
|
|
21031
|
+
async paymentControllerPaymentDetails(paymentDetailsPayload: PaymentDetailsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentDetailsResponseDTO>> {
|
|
21032
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerPaymentDetails(paymentDetailsPayload, options);
|
|
21033
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21034
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerPaymentDetails']?.[localVarOperationServerIndex]?.url;
|
|
21035
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21036
|
+
},
|
|
20905
21037
|
/**
|
|
20906
21038
|
*
|
|
20907
21039
|
* @param {*} [options] Override http request option.
|
|
@@ -21023,6 +21155,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
21023
21155
|
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<PlanResponseDTO> {
|
|
21024
21156
|
return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
|
|
21025
21157
|
},
|
|
21158
|
+
/**
|
|
21159
|
+
*
|
|
21160
|
+
* @param {PaymentDetailsPayload} paymentDetailsPayload
|
|
21161
|
+
* @param {*} [options] Override http request option.
|
|
21162
|
+
* @throws {RequiredError}
|
|
21163
|
+
*/
|
|
21164
|
+
paymentControllerPaymentDetails(paymentDetailsPayload: PaymentDetailsPayload, options?: RawAxiosRequestConfig): AxiosPromise<PaymentDetailsResponseDTO> {
|
|
21165
|
+
return localVarFp.paymentControllerPaymentDetails(paymentDetailsPayload, options).then((request) => request(axios, basePath));
|
|
21166
|
+
},
|
|
21026
21167
|
/**
|
|
21027
21168
|
*
|
|
21028
21169
|
* @param {*} [options] Override http request option.
|
|
@@ -21136,6 +21277,17 @@ export class PlansApi extends BaseAPI {
|
|
|
21136
21277
|
return PlansApiFp(this.configuration).paymentControllerGetPlans(options).then((request) => request(this.axios, this.basePath));
|
|
21137
21278
|
}
|
|
21138
21279
|
|
|
21280
|
+
/**
|
|
21281
|
+
*
|
|
21282
|
+
* @param {PaymentDetailsPayload} paymentDetailsPayload
|
|
21283
|
+
* @param {*} [options] Override http request option.
|
|
21284
|
+
* @throws {RequiredError}
|
|
21285
|
+
* @memberof PlansApi
|
|
21286
|
+
*/
|
|
21287
|
+
public paymentControllerPaymentDetails(paymentDetailsPayload: PaymentDetailsPayload, options?: RawAxiosRequestConfig) {
|
|
21288
|
+
return PlansApiFp(this.configuration).paymentControllerPaymentDetails(paymentDetailsPayload, options).then((request) => request(this.axios, this.basePath));
|
|
21289
|
+
}
|
|
21290
|
+
|
|
21139
21291
|
/**
|
|
21140
21292
|
*
|
|
21141
21293
|
* @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-08-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-06T19:11:23+05:30]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-06T19:11:23+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]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PaymentDetails
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**price** | **number** | Event ID | [default to undefined]
|
|
9
|
+
**message** | **string** | Discount ID | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PaymentDetails } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: PaymentDetails = {
|
|
17
|
+
price,
|
|
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)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# PaymentDetailsPayload
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**whatsOnId** | **string** | Event ID | [optional] [default to undefined]
|
|
9
|
+
**serviceId** | **string** | Event ID | [optional] [default to undefined]
|
|
10
|
+
**discountId** | **string** | Discount ID | [optional] [default to undefined]
|
|
11
|
+
**selectedStaff** | **string** | Staff ID | [optional] [default to undefined]
|
|
12
|
+
**quantity** | **number** | | [optional] [default to 0]
|
|
13
|
+
**collaborators** | [**Array<CreateBookingCollaboratorPayload>**](CreateBookingCollaboratorPayload.md) | The list of collaborators associated with the booking | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PaymentDetailsPayload } from './api';
|
|
19
|
+
|
|
20
|
+
const instance: PaymentDetailsPayload = {
|
|
21
|
+
whatsOnId,
|
|
22
|
+
serviceId,
|
|
23
|
+
discountId,
|
|
24
|
+
selectedStaff,
|
|
25
|
+
quantity,
|
|
26
|
+
collaborators,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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
|
+
# PaymentDetailsResponseDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**statusCode** | **number** | statusCode | [default to undefined]
|
|
9
|
+
**data** | [**PaymentDetails**](PaymentDetails.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PaymentDetailsResponseDTO } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: PaymentDetailsResponseDTO = {
|
|
17
|
+
statusCode,
|
|
18
|
+
data,
|
|
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)
|
package/docs/PlansApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
9
9
|
|[**paymentControllerCreatePaymentLink**](#paymentcontrollercreatepaymentlink) | **POST** /v1/payment/payment-link | |
|
|
10
10
|
|[**paymentControllerCreateSetupIntent**](#paymentcontrollercreatesetupintent) | **GET** /v1/payment/create-setup-intent | |
|
|
11
11
|
|[**paymentControllerGetPlans**](#paymentcontrollergetplans) | **GET** /v1/payment/plans | |
|
|
12
|
+
|[**paymentControllerPaymentDetails**](#paymentcontrollerpaymentdetails) | **POST** /v1/payment/booking/details | |
|
|
12
13
|
|[**paymentControllerRetrieveConnectedAccount**](#paymentcontrollerretrieveconnectedaccount) | **GET** /v1/payment/connected-account | |
|
|
13
14
|
|[**paymentControllerRetrieveCouponCode**](#paymentcontrollerretrievecouponcode) | **POST** /v1/payment/promo-code | |
|
|
14
15
|
|[**paymentControllerRevenueCatWebhook**](#paymentcontrollerrevenuecatwebhook) | **POST** /v1/payment/revenuecat-webhook | |
|
|
@@ -239,6 +240,57 @@ No authorization required
|
|
|
239
240
|
|
|
240
241
|
[[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)
|
|
241
242
|
|
|
243
|
+
# **paymentControllerPaymentDetails**
|
|
244
|
+
> PaymentDetailsResponseDTO paymentControllerPaymentDetails(paymentDetailsPayload)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### Example
|
|
248
|
+
|
|
249
|
+
```typescript
|
|
250
|
+
import {
|
|
251
|
+
PlansApi,
|
|
252
|
+
Configuration,
|
|
253
|
+
PaymentDetailsPayload
|
|
254
|
+
} from './api';
|
|
255
|
+
|
|
256
|
+
const configuration = new Configuration();
|
|
257
|
+
const apiInstance = new PlansApi(configuration);
|
|
258
|
+
|
|
259
|
+
let paymentDetailsPayload: PaymentDetailsPayload; //
|
|
260
|
+
|
|
261
|
+
const { status, data } = await apiInstance.paymentControllerPaymentDetails(
|
|
262
|
+
paymentDetailsPayload
|
|
263
|
+
);
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### Parameters
|
|
267
|
+
|
|
268
|
+
|Name | Type | Description | Notes|
|
|
269
|
+
|------------- | ------------- | ------------- | -------------|
|
|
270
|
+
| **paymentDetailsPayload** | **PaymentDetailsPayload**| | |
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
### Return type
|
|
274
|
+
|
|
275
|
+
**PaymentDetailsResponseDTO**
|
|
276
|
+
|
|
277
|
+
### Authorization
|
|
278
|
+
|
|
279
|
+
[bearer](../README.md#bearer)
|
|
280
|
+
|
|
281
|
+
### HTTP request headers
|
|
282
|
+
|
|
283
|
+
- **Content-Type**: application/json
|
|
284
|
+
- **Accept**: application/json
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
### HTTP response details
|
|
288
|
+
| Status code | Description | Response headers |
|
|
289
|
+
|-------------|-------------|------------------|
|
|
290
|
+
|**200** | | - |
|
|
291
|
+
|
|
292
|
+
[[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)
|
|
293
|
+
|
|
242
294
|
# **paymentControllerRetrieveConnectedAccount**
|
|
243
295
|
> BusinessConnectedAccount paymentControllerRetrieveConnectedAccount()
|
|
244
296
|
|
|
@@ -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-08-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-06T19:11:23+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-08-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-08-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-08-06T19:11:23+05:30]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-08-06T20:11:23+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]
|