@gooday_corp/gooday-api-client 1.2.107 → 1.2.109-beta

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.
Files changed (2) hide show
  1. package/api.ts +128 -18
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -773,10 +773,10 @@ export interface BookingEntity {
773
773
  'tags': Array<TagsResponse>;
774
774
  /**
775
775
  *
776
- * @type {string}
776
+ * @type {WhatsOnEntity}
777
777
  * @memberof BookingEntity
778
778
  */
779
- 'whatsOn': string;
779
+ 'whatsOn': WhatsOnEntity;
780
780
  }
781
781
 
782
782
  export const BookingEntityStatusEnum = {
@@ -3616,6 +3616,12 @@ export interface FindCustomerBookingPayload {
3616
3616
  * @memberof FindCustomerBookingPayload
3617
3617
  */
3618
3618
  'venue'?: string;
3619
+ /**
3620
+ *
3621
+ * @type {boolean}
3622
+ * @memberof FindCustomerBookingPayload
3623
+ */
3624
+ 'whatsOn'?: boolean;
3619
3625
  }
3620
3626
  /**
3621
3627
  *
@@ -5995,6 +6001,31 @@ export interface StandardBookingSlotsPayload {
5995
6001
  */
5996
6002
  'id': string;
5997
6003
  }
6004
+ /**
6005
+ *
6006
+ * @export
6007
+ * @interface StripeBookingPayloadDTO
6008
+ */
6009
+ export interface StripeBookingPayloadDTO {
6010
+ /**
6011
+ *
6012
+ * @type {number}
6013
+ * @memberof StripeBookingPayloadDTO
6014
+ */
6015
+ 'quantity': number;
6016
+ /**
6017
+ *
6018
+ * @type {string}
6019
+ * @memberof StripeBookingPayloadDTO
6020
+ */
6021
+ 'serviceId': string;
6022
+ /**
6023
+ *
6024
+ * @type {string}
6025
+ * @memberof StripeBookingPayloadDTO
6026
+ */
6027
+ 'staff': string;
6028
+ }
5998
6029
  /**
5999
6030
  *
6000
6031
  * @export
@@ -6180,7 +6211,8 @@ export interface TagPayloadDTO {
6180
6211
 
6181
6212
  export const TagPayloadDTOCategoryEnum = {
6182
6213
  Booking: 'BOOKING',
6183
- Customer: 'CUSTOMER'
6214
+ Customer: 'CUSTOMER',
6215
+ Gooday: 'GOODAY'
6184
6216
  } as const;
6185
6217
 
6186
6218
  export type TagPayloadDTOCategoryEnum = typeof TagPayloadDTOCategoryEnum[keyof typeof TagPayloadDTOCategoryEnum];
@@ -6250,7 +6282,8 @@ export interface TagUpdatePayloadDTO {
6250
6282
 
6251
6283
  export const TagUpdatePayloadDTOCategoryEnum = {
6252
6284
  Booking: 'BOOKING',
6253
- Customer: 'CUSTOMER'
6285
+ Customer: 'CUSTOMER',
6286
+ Gooday: 'GOODAY'
6254
6287
  } as const;
6255
6288
 
6256
6289
  export type TagUpdatePayloadDTOCategoryEnum = typeof TagUpdatePayloadDTOCategoryEnum[keyof typeof TagUpdatePayloadDTOCategoryEnum];
@@ -6301,7 +6334,8 @@ export interface TagsResponse {
6301
6334
 
6302
6335
  export const TagsResponseCategoryEnum = {
6303
6336
  Booking: 'BOOKING',
6304
- Customer: 'CUSTOMER'
6337
+ Customer: 'CUSTOMER',
6338
+ Gooday: 'GOODAY'
6305
6339
  } as const;
6306
6340
 
6307
6341
  export type TagsResponseCategoryEnum = typeof TagsResponseCategoryEnum[keyof typeof TagsResponseCategoryEnum];
@@ -15800,6 +15834,45 @@ export class OAuthApi extends BaseAPI {
15800
15834
  */
15801
15835
  export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
15802
15836
  return {
15837
+ /**
15838
+ *
15839
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
15840
+ * @param {*} [options] Override http request option.
15841
+ * @throws {RequiredError}
15842
+ */
15843
+ paymentControllerCreateBookingSetupIntentPayment: async (stripeBookingPayloadDTO: StripeBookingPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15844
+ // verify required parameter 'stripeBookingPayloadDTO' is not null or undefined
15845
+ assertParamExists('paymentControllerCreateBookingSetupIntentPayment', 'stripeBookingPayloadDTO', stripeBookingPayloadDTO)
15846
+ const localVarPath = `/v1/payment/create-booking-setup-intent-payment`;
15847
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15848
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15849
+ let baseOptions;
15850
+ if (configuration) {
15851
+ baseOptions = configuration.baseOptions;
15852
+ }
15853
+
15854
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15855
+ const localVarHeaderParameter = {} as any;
15856
+ const localVarQueryParameter = {} as any;
15857
+
15858
+ // authentication bearer required
15859
+ // http bearer authentication required
15860
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15861
+
15862
+
15863
+
15864
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15865
+
15866
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15867
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15868
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15869
+ localVarRequestOptions.data = serializeDataIfNeeded(stripeBookingPayloadDTO, localVarRequestOptions, configuration)
15870
+
15871
+ return {
15872
+ url: toPathString(localVarUrlObj),
15873
+ options: localVarRequestOptions,
15874
+ };
15875
+ },
15803
15876
  /**
15804
15877
  *
15805
15878
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16045,6 +16118,18 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16045
16118
  export const PlansApiFp = function(configuration?: Configuration) {
16046
16119
  const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
16047
16120
  return {
16121
+ /**
16122
+ *
16123
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16124
+ * @param {*} [options] Override http request option.
16125
+ * @throws {RequiredError}
16126
+ */
16127
+ async paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripeSetupIntentPaymentResponseDTO>> {
16128
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options);
16129
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16130
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateBookingSetupIntentPayment']?.[localVarOperationServerIndex]?.url;
16131
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16132
+ },
16048
16133
  /**
16049
16134
  *
16050
16135
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16136,6 +16221,15 @@ export const PlansApiFp = function(configuration?: Configuration) {
16136
16221
  export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16137
16222
  const localVarFp = PlansApiFp(configuration)
16138
16223
  return {
16224
+ /**
16225
+ *
16226
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16227
+ * @param {*} [options] Override http request option.
16228
+ * @throws {RequiredError}
16229
+ */
16230
+ paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentPaymentResponseDTO> {
16231
+ return localVarFp.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(axios, basePath));
16232
+ },
16139
16233
  /**
16140
16234
  *
16141
16235
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16206,6 +16300,17 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16206
16300
  * @extends {BaseAPI}
16207
16301
  */
16208
16302
  export class PlansApi extends BaseAPI {
16303
+ /**
16304
+ *
16305
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16306
+ * @param {*} [options] Override http request option.
16307
+ * @throws {RequiredError}
16308
+ * @memberof PlansApi
16309
+ */
16310
+ public paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig) {
16311
+ return PlansApiFp(this.configuration).paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16312
+ }
16313
+
16209
16314
  /**
16210
16315
  *
16211
16316
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -17304,7 +17409,8 @@ export class TagsApi extends BaseAPI {
17304
17409
  */
17305
17410
  export const TagsControllerFindTagsCategoryEnum = {
17306
17411
  Booking: 'BOOKING',
17307
- Customer: 'CUSTOMER'
17412
+ Customer: 'CUSTOMER',
17413
+ Gooday: 'GOODAY'
17308
17414
  } as const;
17309
17415
  export type TagsControllerFindTagsCategoryEnum = typeof TagsControllerFindTagsCategoryEnum[keyof typeof TagsControllerFindTagsCategoryEnum];
17310
17416
 
@@ -19838,12 +19944,16 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
19838
19944
  },
19839
19945
  /**
19840
19946
  *
19841
- * @param {number} [page] Page number for pagination
19842
- * @param {number} [limit] Number of items per page for pagination
19947
+ * @param {number} page
19948
+ * @param {number} limit
19843
19949
  * @param {*} [options] Override http request option.
19844
19950
  * @throws {RequiredError}
19845
19951
  */
19846
- whatsOnControllerFindFavoriteWhatsOnList: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19952
+ whatsOnControllerFindFavoriteWhatsOnList: async (page: number, limit: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19953
+ // verify required parameter 'page' is not null or undefined
19954
+ assertParamExists('whatsOnControllerFindFavoriteWhatsOnList', 'page', page)
19955
+ // verify required parameter 'limit' is not null or undefined
19956
+ assertParamExists('whatsOnControllerFindFavoriteWhatsOnList', 'limit', limit)
19847
19957
  const localVarPath = `/v1/whats-on/friends/favorite`;
19848
19958
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19849
19959
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -20212,12 +20322,12 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
20212
20322
  },
20213
20323
  /**
20214
20324
  *
20215
- * @param {number} [page] Page number for pagination
20216
- * @param {number} [limit] Number of items per page for pagination
20325
+ * @param {number} page
20326
+ * @param {number} limit
20217
20327
  * @param {*} [options] Override http request option.
20218
20328
  * @throws {RequiredError}
20219
20329
  */
20220
- async whatsOnControllerFindFavoriteWhatsOnList(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnFavoriteListResponseDTO>> {
20330
+ async whatsOnControllerFindFavoriteWhatsOnList(page: number, limit: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnFavoriteListResponseDTO>> {
20221
20331
  const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerFindFavoriteWhatsOnList(page, limit, options);
20222
20332
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20223
20333
  const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindFavoriteWhatsOnList']?.[localVarOperationServerIndex]?.url;
@@ -20356,12 +20466,12 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
20356
20466
  },
20357
20467
  /**
20358
20468
  *
20359
- * @param {number} [page] Page number for pagination
20360
- * @param {number} [limit] Number of items per page for pagination
20469
+ * @param {number} page
20470
+ * @param {number} limit
20361
20471
  * @param {*} [options] Override http request option.
20362
20472
  * @throws {RequiredError}
20363
20473
  */
20364
- whatsOnControllerFindFavoriteWhatsOnList(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteListResponseDTO> {
20474
+ whatsOnControllerFindFavoriteWhatsOnList(page: number, limit: number, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteListResponseDTO> {
20365
20475
  return localVarFp.whatsOnControllerFindFavoriteWhatsOnList(page, limit, options).then((request) => request(axios, basePath));
20366
20476
  },
20367
20477
  /**
@@ -20484,13 +20594,13 @@ export class WhatsOnApi extends BaseAPI {
20484
20594
 
20485
20595
  /**
20486
20596
  *
20487
- * @param {number} [page] Page number for pagination
20488
- * @param {number} [limit] Number of items per page for pagination
20597
+ * @param {number} page
20598
+ * @param {number} limit
20489
20599
  * @param {*} [options] Override http request option.
20490
20600
  * @throws {RequiredError}
20491
20601
  * @memberof WhatsOnApi
20492
20602
  */
20493
- public whatsOnControllerFindFavoriteWhatsOnList(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
20603
+ public whatsOnControllerFindFavoriteWhatsOnList(page: number, limit: number, options?: RawAxiosRequestConfig) {
20494
20604
  return WhatsOnApiFp(this.configuration).whatsOnControllerFindFavoriteWhatsOnList(page, limit, options).then((request) => request(this.axios, this.basePath));
20495
20605
  }
20496
20606
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.107",
3
+ "version": "1.2.109-beta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},