@tennac-booking/sdk 1.0.247 → 1.0.248

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.
@@ -279,6 +279,7 @@ docs/MigrateSubscriptionRequest.md
279
279
  docs/MigrateUser200Response.md
280
280
  docs/MigrateUserRequest.md
281
281
  docs/MobilePaymentSheetBody.md
282
+ docs/MobileSubscriptionDetailResponse.md
282
283
  docs/MonthlyBreakdown.md
283
284
  docs/MonthlyTurnoverResponse.md
284
285
  docs/MyClubCustomerSettingsResponse.md
@@ -398,6 +399,7 @@ docs/StaffEventsPageResponse.md
398
399
  docs/StaffUserProfileResponse.md
399
400
  docs/SubscribeRequestBody.md
400
401
  docs/SubscriberPrice.md
402
+ docs/SubscriptionDetailBody.md
401
403
  docs/SubscriptionInfo.md
402
404
  docs/SubscriptionMutationResponse.md
403
405
  docs/SubscriptionPaymentSheetRequest.md
package/README.md CHANGED
@@ -236,6 +236,7 @@ Class | Method | HTTP request | Description
236
236
  *SubscriptionsManagerApi* | [**deletePlan**](docs/SubscriptionsManagerApi.md#deleteplan) | **DELETE** /api/subscriptions/plans/{productId} |
237
237
  *SubscriptionsManagerApi* | [**updatePlan**](docs/SubscriptionsManagerApi.md#updateplan) | **PUT** /api/subscriptions/plans |
238
238
  *SubscriptionsMobileApi* | [**cancelIncomplete**](docs/SubscriptionsMobileApi.md#cancelincomplete) | **POST** /api/mobile/subscriptions/cancel-incomplete |
239
+ *SubscriptionsMobileApi* | [**getDetail**](docs/SubscriptionsMobileApi.md#getdetail) | **POST** /api/mobile/subscriptions/detail |
239
240
  *SubscriptionsMobileApi* | [**mobilePaymentSheet**](docs/SubscriptionsMobileApi.md#mobilepaymentsheet) | **POST** /api/mobile/subscriptions/payment-sheet |
240
241
  *SubscriptionsPublicApi* | [**getPublicPlans**](docs/SubscriptionsPublicApi.md#getpublicplans) | **GET** /api/subscriptions/plans/{clubId} |
241
242
  *SubscriptionsStaffApi* | [**getClubPlans**](docs/SubscriptionsStaffApi.md#getclubplans) | **GET** /api/subscriptions/plans |
@@ -577,6 +578,7 @@ Class | Method | HTTP request | Description
577
578
  - [MigrateUser200Response](docs/MigrateUser200Response.md)
578
579
  - [MigrateUserRequest](docs/MigrateUserRequest.md)
579
580
  - [MobilePaymentSheetBody](docs/MobilePaymentSheetBody.md)
581
+ - [MobileSubscriptionDetailResponse](docs/MobileSubscriptionDetailResponse.md)
580
582
  - [MonthlyBreakdown](docs/MonthlyBreakdown.md)
581
583
  - [MonthlyTurnoverResponse](docs/MonthlyTurnoverResponse.md)
582
584
  - [MyClubCustomerSettingsResponse](docs/MyClubCustomerSettingsResponse.md)
@@ -692,6 +694,7 @@ Class | Method | HTTP request | Description
692
694
  - [StaffUserProfileResponse](docs/StaffUserProfileResponse.md)
693
695
  - [SubscribeRequestBody](docs/SubscribeRequestBody.md)
694
696
  - [SubscriberPrice](docs/SubscriberPrice.md)
697
+ - [SubscriptionDetailBody](docs/SubscriptionDetailBody.md)
695
698
  - [SubscriptionInfo](docs/SubscriptionInfo.md)
696
699
  - [SubscriptionMutationResponse](docs/SubscriptionMutationResponse.md)
697
700
  - [SubscriptionPaymentSheetRequest](docs/SubscriptionPaymentSheetRequest.md)
package/api.ts CHANGED
@@ -9226,6 +9226,117 @@ export interface MobilePaymentSheetBody {
9226
9226
  */
9227
9227
  'clubId': string;
9228
9228
  }
9229
+ /**
9230
+ *
9231
+ * @export
9232
+ * @interface MobileSubscriptionDetailResponse
9233
+ */
9234
+ export interface MobileSubscriptionDetailResponse {
9235
+ /**
9236
+ *
9237
+ * @type {number}
9238
+ * @memberof MobileSubscriptionDetailResponse
9239
+ */
9240
+ 'defaultPaymentMethodExpYear'?: number | null;
9241
+ /**
9242
+ *
9243
+ * @type {number}
9244
+ * @memberof MobileSubscriptionDetailResponse
9245
+ */
9246
+ 'defaultPaymentMethodExpMonth'?: number | null;
9247
+ /**
9248
+ *
9249
+ * @type {string}
9250
+ * @memberof MobileSubscriptionDetailResponse
9251
+ */
9252
+ 'defaultPaymentMethodLast4'?: string | null;
9253
+ /**
9254
+ *
9255
+ * @type {string}
9256
+ * @memberof MobileSubscriptionDetailResponse
9257
+ */
9258
+ 'defaultPaymentMethodBrand'?: string | null;
9259
+ /**
9260
+ *
9261
+ * @type {string}
9262
+ * @memberof MobileSubscriptionDetailResponse
9263
+ */
9264
+ 'clubName': string | null;
9265
+ /**
9266
+ *
9267
+ * @type {string}
9268
+ * @memberof MobileSubscriptionDetailResponse
9269
+ */
9270
+ 'clubId': string | null;
9271
+ /**
9272
+ *
9273
+ * @type {PlanInterval}
9274
+ * @memberof MobileSubscriptionDetailResponse
9275
+ */
9276
+ 'interval': PlanInterval | null;
9277
+ /**
9278
+ *
9279
+ * @type {string}
9280
+ * @memberof MobileSubscriptionDetailResponse
9281
+ */
9282
+ 'currency': string | null;
9283
+ /**
9284
+ *
9285
+ * @type {number}
9286
+ * @memberof MobileSubscriptionDetailResponse
9287
+ */
9288
+ 'amountInCents': number | null;
9289
+ /**
9290
+ *
9291
+ * @type {string}
9292
+ * @memberof MobileSubscriptionDetailResponse
9293
+ */
9294
+ 'productId': string | null;
9295
+ /**
9296
+ *
9297
+ * @type {string}
9298
+ * @memberof MobileSubscriptionDetailResponse
9299
+ */
9300
+ 'priceId': string | null;
9301
+ /**
9302
+ *
9303
+ * @type {number}
9304
+ * @memberof MobileSubscriptionDetailResponse
9305
+ */
9306
+ 'currentPeriodEnd': number | null;
9307
+ /**
9308
+ *
9309
+ * @type {number}
9310
+ * @memberof MobileSubscriptionDetailResponse
9311
+ */
9312
+ 'currentPeriodStart': number | null;
9313
+ /**
9314
+ *
9315
+ * @type {number}
9316
+ * @memberof MobileSubscriptionDetailResponse
9317
+ */
9318
+ 'canceledAt': number | null;
9319
+ /**
9320
+ *
9321
+ * @type {number}
9322
+ * @memberof MobileSubscriptionDetailResponse
9323
+ */
9324
+ 'cancelAt': number | null;
9325
+ /**
9326
+ *
9327
+ * @type {string}
9328
+ * @memberof MobileSubscriptionDetailResponse
9329
+ */
9330
+ 'status': string | null;
9331
+ /**
9332
+ *
9333
+ * @type {string}
9334
+ * @memberof MobileSubscriptionDetailResponse
9335
+ */
9336
+ 'id': string;
9337
+ }
9338
+
9339
+
9229
9340
  /**
9230
9341
  *
9231
9342
  * @export
@@ -13693,6 +13804,25 @@ export interface SubscriberPrice {
13693
13804
  */
13694
13805
  'amount': number;
13695
13806
  }
13807
+ /**
13808
+ *
13809
+ * @export
13810
+ * @interface SubscriptionDetailBody
13811
+ */
13812
+ export interface SubscriptionDetailBody {
13813
+ /**
13814
+ *
13815
+ * @type {string}
13816
+ * @memberof SubscriptionDetailBody
13817
+ */
13818
+ 'subscriptionId': string;
13819
+ /**
13820
+ *
13821
+ * @type {string}
13822
+ * @memberof SubscriptionDetailBody
13823
+ */
13824
+ 'clubId': string;
13825
+ }
13696
13826
  /**
13697
13827
  *
13698
13828
  * @export
@@ -33841,6 +33971,45 @@ export const SubscriptionsMobileApiAxiosParamCreator = function (configuration?:
33841
33971
  options: localVarRequestOptions,
33842
33972
  };
33843
33973
  },
33974
+ /**
33975
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
33976
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
33977
+ * @param {*} [options] Override http request option.
33978
+ * @throws {RequiredError}
33979
+ */
33980
+ getDetail: async (subscriptionDetailBody: SubscriptionDetailBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33981
+ // verify required parameter 'subscriptionDetailBody' is not null or undefined
33982
+ assertParamExists('getDetail', 'subscriptionDetailBody', subscriptionDetailBody)
33983
+ const localVarPath = `/api/mobile/subscriptions/detail`;
33984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33986
+ let baseOptions;
33987
+ if (configuration) {
33988
+ baseOptions = configuration.baseOptions;
33989
+ }
33990
+
33991
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33992
+ const localVarHeaderParameter = {} as any;
33993
+ const localVarQueryParameter = {} as any;
33994
+
33995
+ // authentication bearerAuth required
33996
+ // http bearer authentication required
33997
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33998
+
33999
+
34000
+
34001
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34002
+
34003
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34004
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34005
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34006
+ localVarRequestOptions.data = serializeDataIfNeeded(subscriptionDetailBody, localVarRequestOptions, configuration)
34007
+
34008
+ return {
34009
+ url: toPathString(localVarUrlObj),
34010
+ options: localVarRequestOptions,
34011
+ };
34012
+ },
33844
34013
  /**
33845
34014
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
33846
34015
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -33902,6 +34071,18 @@ export const SubscriptionsMobileApiFp = function(configuration?: Configuration)
33902
34071
  const localVarOperationServerBasePath = operationServerMap['SubscriptionsMobileApi.cancelIncomplete']?.[localVarOperationServerIndex]?.url;
33903
34072
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33904
34073
  },
34074
+ /**
34075
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
34076
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
34077
+ * @param {*} [options] Override http request option.
34078
+ * @throws {RequiredError}
34079
+ */
34080
+ async getDetail(subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MobileSubscriptionDetailResponse>> {
34081
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDetail(subscriptionDetailBody, options);
34082
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34083
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsMobileApi.getDetail']?.[localVarOperationServerIndex]?.url;
34084
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34085
+ },
33905
34086
  /**
33906
34087
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
33907
34088
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -33933,6 +34114,15 @@ export const SubscriptionsMobileApiFactory = function (configuration?: Configura
33933
34114
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelIncompleteResponse> {
33934
34115
  return localVarFp.cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(axios, basePath));
33935
34116
  },
34117
+ /**
34118
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
34119
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
34120
+ * @param {*} [options] Override http request option.
34121
+ * @throws {RequiredError}
34122
+ */
34123
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<MobileSubscriptionDetailResponse> {
34124
+ return localVarFp.getDetail(requestParameters.subscriptionDetailBody, options).then((request) => request(axios, basePath));
34125
+ },
33936
34126
  /**
33937
34127
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
33938
34128
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
@@ -33959,6 +34149,20 @@ export interface SubscriptionsMobileApiCancelIncompleteRequest {
33959
34149
  readonly cancelIncompleteBody: CancelIncompleteBody
33960
34150
  }
33961
34151
 
34152
+ /**
34153
+ * Request parameters for getDetail operation in SubscriptionsMobileApi.
34154
+ * @export
34155
+ * @interface SubscriptionsMobileApiGetDetailRequest
34156
+ */
34157
+ export interface SubscriptionsMobileApiGetDetailRequest {
34158
+ /**
34159
+ *
34160
+ * @type {SubscriptionDetailBody}
34161
+ * @memberof SubscriptionsMobileApiGetDetail
34162
+ */
34163
+ readonly subscriptionDetailBody: SubscriptionDetailBody
34164
+ }
34165
+
33962
34166
  /**
33963
34167
  * Request parameters for mobilePaymentSheet operation in SubscriptionsMobileApi.
33964
34168
  * @export
@@ -33991,6 +34195,17 @@ export class SubscriptionsMobileApi extends BaseAPI {
33991
34195
  return SubscriptionsMobileApiFp(this.configuration).cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(this.axios, this.basePath));
33992
34196
  }
33993
34197
 
34198
+ /**
34199
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
34200
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
34201
+ * @param {*} [options] Override http request option.
34202
+ * @throws {RequiredError}
34203
+ * @memberof SubscriptionsMobileApi
34204
+ */
34205
+ public getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig) {
34206
+ return SubscriptionsMobileApiFp(this.configuration).getDetail(requestParameters.subscriptionDetailBody, options).then((request) => request(this.axios, this.basePath));
34207
+ }
34208
+
33994
34209
  /**
33995
34210
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
33996
34211
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
package/dist/api.d.ts CHANGED
@@ -9101,6 +9101,115 @@ export interface MobilePaymentSheetBody {
9101
9101
  */
9102
9102
  'clubId': string;
9103
9103
  }
9104
+ /**
9105
+ *
9106
+ * @export
9107
+ * @interface MobileSubscriptionDetailResponse
9108
+ */
9109
+ export interface MobileSubscriptionDetailResponse {
9110
+ /**
9111
+ *
9112
+ * @type {number}
9113
+ * @memberof MobileSubscriptionDetailResponse
9114
+ */
9115
+ 'defaultPaymentMethodExpYear'?: number | null;
9116
+ /**
9117
+ *
9118
+ * @type {number}
9119
+ * @memberof MobileSubscriptionDetailResponse
9120
+ */
9121
+ 'defaultPaymentMethodExpMonth'?: number | null;
9122
+ /**
9123
+ *
9124
+ * @type {string}
9125
+ * @memberof MobileSubscriptionDetailResponse
9126
+ */
9127
+ 'defaultPaymentMethodLast4'?: string | null;
9128
+ /**
9129
+ *
9130
+ * @type {string}
9131
+ * @memberof MobileSubscriptionDetailResponse
9132
+ */
9133
+ 'defaultPaymentMethodBrand'?: string | null;
9134
+ /**
9135
+ *
9136
+ * @type {string}
9137
+ * @memberof MobileSubscriptionDetailResponse
9138
+ */
9139
+ 'clubName': string | null;
9140
+ /**
9141
+ *
9142
+ * @type {string}
9143
+ * @memberof MobileSubscriptionDetailResponse
9144
+ */
9145
+ 'clubId': string | null;
9146
+ /**
9147
+ *
9148
+ * @type {PlanInterval}
9149
+ * @memberof MobileSubscriptionDetailResponse
9150
+ */
9151
+ 'interval': PlanInterval | null;
9152
+ /**
9153
+ *
9154
+ * @type {string}
9155
+ * @memberof MobileSubscriptionDetailResponse
9156
+ */
9157
+ 'currency': string | null;
9158
+ /**
9159
+ *
9160
+ * @type {number}
9161
+ * @memberof MobileSubscriptionDetailResponse
9162
+ */
9163
+ 'amountInCents': number | null;
9164
+ /**
9165
+ *
9166
+ * @type {string}
9167
+ * @memberof MobileSubscriptionDetailResponse
9168
+ */
9169
+ 'productId': string | null;
9170
+ /**
9171
+ *
9172
+ * @type {string}
9173
+ * @memberof MobileSubscriptionDetailResponse
9174
+ */
9175
+ 'priceId': string | null;
9176
+ /**
9177
+ *
9178
+ * @type {number}
9179
+ * @memberof MobileSubscriptionDetailResponse
9180
+ */
9181
+ 'currentPeriodEnd': number | null;
9182
+ /**
9183
+ *
9184
+ * @type {number}
9185
+ * @memberof MobileSubscriptionDetailResponse
9186
+ */
9187
+ 'currentPeriodStart': number | null;
9188
+ /**
9189
+ *
9190
+ * @type {number}
9191
+ * @memberof MobileSubscriptionDetailResponse
9192
+ */
9193
+ 'canceledAt': number | null;
9194
+ /**
9195
+ *
9196
+ * @type {number}
9197
+ * @memberof MobileSubscriptionDetailResponse
9198
+ */
9199
+ 'cancelAt': number | null;
9200
+ /**
9201
+ *
9202
+ * @type {string}
9203
+ * @memberof MobileSubscriptionDetailResponse
9204
+ */
9205
+ 'status': string | null;
9206
+ /**
9207
+ *
9208
+ * @type {string}
9209
+ * @memberof MobileSubscriptionDetailResponse
9210
+ */
9211
+ 'id': string;
9212
+ }
9104
9213
  /**
9105
9214
  *
9106
9215
  * @export
@@ -13474,6 +13583,25 @@ export interface SubscriberPrice {
13474
13583
  */
13475
13584
  'amount': number;
13476
13585
  }
13586
+ /**
13587
+ *
13588
+ * @export
13589
+ * @interface SubscriptionDetailBody
13590
+ */
13591
+ export interface SubscriptionDetailBody {
13592
+ /**
13593
+ *
13594
+ * @type {string}
13595
+ * @memberof SubscriptionDetailBody
13596
+ */
13597
+ 'subscriptionId': string;
13598
+ /**
13599
+ *
13600
+ * @type {string}
13601
+ * @memberof SubscriptionDetailBody
13602
+ */
13603
+ 'clubId': string;
13604
+ }
13477
13605
  /**
13478
13606
  *
13479
13607
  * @export
@@ -25390,6 +25518,13 @@ export declare const SubscriptionsMobileApiAxiosParamCreator: (configuration?: C
25390
25518
  * @throws {RequiredError}
25391
25519
  */
25392
25520
  cancelIncomplete: (cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25521
+ /**
25522
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25523
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
25524
+ * @param {*} [options] Override http request option.
25525
+ * @throws {RequiredError}
25526
+ */
25527
+ getDetail: (subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25393
25528
  /**
25394
25529
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
25395
25530
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -25410,6 +25545,13 @@ export declare const SubscriptionsMobileApiFp: (configuration?: Configuration) =
25410
25545
  * @throws {RequiredError}
25411
25546
  */
25412
25547
  cancelIncomplete(cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelIncompleteResponse>>;
25548
+ /**
25549
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25550
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
25551
+ * @param {*} [options] Override http request option.
25552
+ * @throws {RequiredError}
25553
+ */
25554
+ getDetail(subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MobileSubscriptionDetailResponse>>;
25413
25555
  /**
25414
25556
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
25415
25557
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -25430,6 +25572,13 @@ export declare const SubscriptionsMobileApiFactory: (configuration?: Configurati
25430
25572
  * @throws {RequiredError}
25431
25573
  */
25432
25574
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelIncompleteResponse>;
25575
+ /**
25576
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25577
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
25578
+ * @param {*} [options] Override http request option.
25579
+ * @throws {RequiredError}
25580
+ */
25581
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<MobileSubscriptionDetailResponse>;
25433
25582
  /**
25434
25583
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
25435
25584
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
@@ -25451,6 +25600,19 @@ export interface SubscriptionsMobileApiCancelIncompleteRequest {
25451
25600
  */
25452
25601
  readonly cancelIncompleteBody: CancelIncompleteBody;
25453
25602
  }
25603
+ /**
25604
+ * Request parameters for getDetail operation in SubscriptionsMobileApi.
25605
+ * @export
25606
+ * @interface SubscriptionsMobileApiGetDetailRequest
25607
+ */
25608
+ export interface SubscriptionsMobileApiGetDetailRequest {
25609
+ /**
25610
+ *
25611
+ * @type {SubscriptionDetailBody}
25612
+ * @memberof SubscriptionsMobileApiGetDetail
25613
+ */
25614
+ readonly subscriptionDetailBody: SubscriptionDetailBody;
25615
+ }
25454
25616
  /**
25455
25617
  * Request parameters for mobilePaymentSheet operation in SubscriptionsMobileApi.
25456
25618
  * @export
@@ -25479,6 +25641,14 @@ export declare class SubscriptionsMobileApi extends BaseAPI {
25479
25641
  * @memberof SubscriptionsMobileApi
25480
25642
  */
25481
25643
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CancelIncompleteResponse, any, {}>>;
25644
+ /**
25645
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25646
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
25647
+ * @param {*} [options] Override http request option.
25648
+ * @throws {RequiredError}
25649
+ * @memberof SubscriptionsMobileApi
25650
+ */
25651
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MobileSubscriptionDetailResponse, any, {}>>;
25482
25652
  /**
25483
25653
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
25484
25654
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
package/dist/api.js CHANGED
@@ -13817,6 +13817,38 @@ const SubscriptionsMobileApiAxiosParamCreator = function (configuration) {
13817
13817
  options: localVarRequestOptions,
13818
13818
  };
13819
13819
  }),
13820
+ /**
13821
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
13822
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
13823
+ * @param {*} [options] Override http request option.
13824
+ * @throws {RequiredError}
13825
+ */
13826
+ getDetail: (subscriptionDetailBody_1, ...args_1) => __awaiter(this, [subscriptionDetailBody_1, ...args_1], void 0, function* (subscriptionDetailBody, options = {}) {
13827
+ // verify required parameter 'subscriptionDetailBody' is not null or undefined
13828
+ (0, common_1.assertParamExists)('getDetail', 'subscriptionDetailBody', subscriptionDetailBody);
13829
+ const localVarPath = `/api/mobile/subscriptions/detail`;
13830
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13831
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13832
+ let baseOptions;
13833
+ if (configuration) {
13834
+ baseOptions = configuration.baseOptions;
13835
+ }
13836
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13837
+ const localVarHeaderParameter = {};
13838
+ const localVarQueryParameter = {};
13839
+ // authentication bearerAuth required
13840
+ // http bearer authentication required
13841
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13842
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13843
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13844
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13845
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13846
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionDetailBody, localVarRequestOptions, configuration);
13847
+ return {
13848
+ url: (0, common_1.toPathString)(localVarUrlObj),
13849
+ options: localVarRequestOptions,
13850
+ };
13851
+ }),
13820
13852
  /**
13821
13853
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
13822
13854
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -13874,6 +13906,21 @@ const SubscriptionsMobileApiFp = function (configuration) {
13874
13906
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13875
13907
  });
13876
13908
  },
13909
+ /**
13910
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
13911
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
13912
+ * @param {*} [options] Override http request option.
13913
+ * @throws {RequiredError}
13914
+ */
13915
+ getDetail(subscriptionDetailBody, options) {
13916
+ return __awaiter(this, void 0, void 0, function* () {
13917
+ var _a, _b, _c;
13918
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDetail(subscriptionDetailBody, options);
13919
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13920
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsMobileApi.getDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13921
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13922
+ });
13923
+ },
13877
13924
  /**
13878
13925
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
13879
13926
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -13908,6 +13955,15 @@ const SubscriptionsMobileApiFactory = function (configuration, basePath, axios)
13908
13955
  cancelIncomplete(requestParameters, options) {
13909
13956
  return localVarFp.cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(axios, basePath));
13910
13957
  },
13958
+ /**
13959
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
13960
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
13961
+ * @param {*} [options] Override http request option.
13962
+ * @throws {RequiredError}
13963
+ */
13964
+ getDetail(requestParameters, options) {
13965
+ return localVarFp.getDetail(requestParameters.subscriptionDetailBody, options).then((request) => request(axios, basePath));
13966
+ },
13911
13967
  /**
13912
13968
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
13913
13969
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
@@ -13937,6 +13993,16 @@ class SubscriptionsMobileApi extends base_1.BaseAPI {
13937
13993
  cancelIncomplete(requestParameters, options) {
13938
13994
  return (0, exports.SubscriptionsMobileApiFp)(this.configuration).cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(this.axios, this.basePath));
13939
13995
  }
13996
+ /**
13997
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
13998
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
13999
+ * @param {*} [options] Override http request option.
14000
+ * @throws {RequiredError}
14001
+ * @memberof SubscriptionsMobileApi
14002
+ */
14003
+ getDetail(requestParameters, options) {
14004
+ return (0, exports.SubscriptionsMobileApiFp)(this.configuration).getDetail(requestParameters.subscriptionDetailBody, options).then((request) => request(this.axios, this.basePath));
14005
+ }
13940
14006
  /**
13941
14007
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
13942
14008
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
package/dist/esm/api.d.ts CHANGED
@@ -9101,6 +9101,115 @@ export interface MobilePaymentSheetBody {
9101
9101
  */
9102
9102
  'clubId': string;
9103
9103
  }
9104
+ /**
9105
+ *
9106
+ * @export
9107
+ * @interface MobileSubscriptionDetailResponse
9108
+ */
9109
+ export interface MobileSubscriptionDetailResponse {
9110
+ /**
9111
+ *
9112
+ * @type {number}
9113
+ * @memberof MobileSubscriptionDetailResponse
9114
+ */
9115
+ 'defaultPaymentMethodExpYear'?: number | null;
9116
+ /**
9117
+ *
9118
+ * @type {number}
9119
+ * @memberof MobileSubscriptionDetailResponse
9120
+ */
9121
+ 'defaultPaymentMethodExpMonth'?: number | null;
9122
+ /**
9123
+ *
9124
+ * @type {string}
9125
+ * @memberof MobileSubscriptionDetailResponse
9126
+ */
9127
+ 'defaultPaymentMethodLast4'?: string | null;
9128
+ /**
9129
+ *
9130
+ * @type {string}
9131
+ * @memberof MobileSubscriptionDetailResponse
9132
+ */
9133
+ 'defaultPaymentMethodBrand'?: string | null;
9134
+ /**
9135
+ *
9136
+ * @type {string}
9137
+ * @memberof MobileSubscriptionDetailResponse
9138
+ */
9139
+ 'clubName': string | null;
9140
+ /**
9141
+ *
9142
+ * @type {string}
9143
+ * @memberof MobileSubscriptionDetailResponse
9144
+ */
9145
+ 'clubId': string | null;
9146
+ /**
9147
+ *
9148
+ * @type {PlanInterval}
9149
+ * @memberof MobileSubscriptionDetailResponse
9150
+ */
9151
+ 'interval': PlanInterval | null;
9152
+ /**
9153
+ *
9154
+ * @type {string}
9155
+ * @memberof MobileSubscriptionDetailResponse
9156
+ */
9157
+ 'currency': string | null;
9158
+ /**
9159
+ *
9160
+ * @type {number}
9161
+ * @memberof MobileSubscriptionDetailResponse
9162
+ */
9163
+ 'amountInCents': number | null;
9164
+ /**
9165
+ *
9166
+ * @type {string}
9167
+ * @memberof MobileSubscriptionDetailResponse
9168
+ */
9169
+ 'productId': string | null;
9170
+ /**
9171
+ *
9172
+ * @type {string}
9173
+ * @memberof MobileSubscriptionDetailResponse
9174
+ */
9175
+ 'priceId': string | null;
9176
+ /**
9177
+ *
9178
+ * @type {number}
9179
+ * @memberof MobileSubscriptionDetailResponse
9180
+ */
9181
+ 'currentPeriodEnd': number | null;
9182
+ /**
9183
+ *
9184
+ * @type {number}
9185
+ * @memberof MobileSubscriptionDetailResponse
9186
+ */
9187
+ 'currentPeriodStart': number | null;
9188
+ /**
9189
+ *
9190
+ * @type {number}
9191
+ * @memberof MobileSubscriptionDetailResponse
9192
+ */
9193
+ 'canceledAt': number | null;
9194
+ /**
9195
+ *
9196
+ * @type {number}
9197
+ * @memberof MobileSubscriptionDetailResponse
9198
+ */
9199
+ 'cancelAt': number | null;
9200
+ /**
9201
+ *
9202
+ * @type {string}
9203
+ * @memberof MobileSubscriptionDetailResponse
9204
+ */
9205
+ 'status': string | null;
9206
+ /**
9207
+ *
9208
+ * @type {string}
9209
+ * @memberof MobileSubscriptionDetailResponse
9210
+ */
9211
+ 'id': string;
9212
+ }
9104
9213
  /**
9105
9214
  *
9106
9215
  * @export
@@ -13474,6 +13583,25 @@ export interface SubscriberPrice {
13474
13583
  */
13475
13584
  'amount': number;
13476
13585
  }
13586
+ /**
13587
+ *
13588
+ * @export
13589
+ * @interface SubscriptionDetailBody
13590
+ */
13591
+ export interface SubscriptionDetailBody {
13592
+ /**
13593
+ *
13594
+ * @type {string}
13595
+ * @memberof SubscriptionDetailBody
13596
+ */
13597
+ 'subscriptionId': string;
13598
+ /**
13599
+ *
13600
+ * @type {string}
13601
+ * @memberof SubscriptionDetailBody
13602
+ */
13603
+ 'clubId': string;
13604
+ }
13477
13605
  /**
13478
13606
  *
13479
13607
  * @export
@@ -25390,6 +25518,13 @@ export declare const SubscriptionsMobileApiAxiosParamCreator: (configuration?: C
25390
25518
  * @throws {RequiredError}
25391
25519
  */
25392
25520
  cancelIncomplete: (cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25521
+ /**
25522
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25523
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
25524
+ * @param {*} [options] Override http request option.
25525
+ * @throws {RequiredError}
25526
+ */
25527
+ getDetail: (subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25393
25528
  /**
25394
25529
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
25395
25530
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -25410,6 +25545,13 @@ export declare const SubscriptionsMobileApiFp: (configuration?: Configuration) =
25410
25545
  * @throws {RequiredError}
25411
25546
  */
25412
25547
  cancelIncomplete(cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelIncompleteResponse>>;
25548
+ /**
25549
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25550
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
25551
+ * @param {*} [options] Override http request option.
25552
+ * @throws {RequiredError}
25553
+ */
25554
+ getDetail(subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MobileSubscriptionDetailResponse>>;
25413
25555
  /**
25414
25556
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
25415
25557
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -25430,6 +25572,13 @@ export declare const SubscriptionsMobileApiFactory: (configuration?: Configurati
25430
25572
  * @throws {RequiredError}
25431
25573
  */
25432
25574
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelIncompleteResponse>;
25575
+ /**
25576
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25577
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
25578
+ * @param {*} [options] Override http request option.
25579
+ * @throws {RequiredError}
25580
+ */
25581
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<MobileSubscriptionDetailResponse>;
25433
25582
  /**
25434
25583
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
25435
25584
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
@@ -25451,6 +25600,19 @@ export interface SubscriptionsMobileApiCancelIncompleteRequest {
25451
25600
  */
25452
25601
  readonly cancelIncompleteBody: CancelIncompleteBody;
25453
25602
  }
25603
+ /**
25604
+ * Request parameters for getDetail operation in SubscriptionsMobileApi.
25605
+ * @export
25606
+ * @interface SubscriptionsMobileApiGetDetailRequest
25607
+ */
25608
+ export interface SubscriptionsMobileApiGetDetailRequest {
25609
+ /**
25610
+ *
25611
+ * @type {SubscriptionDetailBody}
25612
+ * @memberof SubscriptionsMobileApiGetDetail
25613
+ */
25614
+ readonly subscriptionDetailBody: SubscriptionDetailBody;
25615
+ }
25454
25616
  /**
25455
25617
  * Request parameters for mobilePaymentSheet operation in SubscriptionsMobileApi.
25456
25618
  * @export
@@ -25479,6 +25641,14 @@ export declare class SubscriptionsMobileApi extends BaseAPI {
25479
25641
  * @memberof SubscriptionsMobileApi
25480
25642
  */
25481
25643
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CancelIncompleteResponse, any, {}>>;
25644
+ /**
25645
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25646
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
25647
+ * @param {*} [options] Override http request option.
25648
+ * @throws {RequiredError}
25649
+ * @memberof SubscriptionsMobileApi
25650
+ */
25651
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MobileSubscriptionDetailResponse, any, {}>>;
25482
25652
  /**
25483
25653
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
25484
25654
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
package/dist/esm/api.js CHANGED
@@ -13694,6 +13694,38 @@ export const SubscriptionsMobileApiAxiosParamCreator = function (configuration)
13694
13694
  options: localVarRequestOptions,
13695
13695
  };
13696
13696
  }),
13697
+ /**
13698
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
13699
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
13700
+ * @param {*} [options] Override http request option.
13701
+ * @throws {RequiredError}
13702
+ */
13703
+ getDetail: (subscriptionDetailBody_1, ...args_1) => __awaiter(this, [subscriptionDetailBody_1, ...args_1], void 0, function* (subscriptionDetailBody, options = {}) {
13704
+ // verify required parameter 'subscriptionDetailBody' is not null or undefined
13705
+ assertParamExists('getDetail', 'subscriptionDetailBody', subscriptionDetailBody);
13706
+ const localVarPath = `/api/mobile/subscriptions/detail`;
13707
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13708
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13709
+ let baseOptions;
13710
+ if (configuration) {
13711
+ baseOptions = configuration.baseOptions;
13712
+ }
13713
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13714
+ const localVarHeaderParameter = {};
13715
+ const localVarQueryParameter = {};
13716
+ // authentication bearerAuth required
13717
+ // http bearer authentication required
13718
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13719
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13720
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13721
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13722
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13723
+ localVarRequestOptions.data = serializeDataIfNeeded(subscriptionDetailBody, localVarRequestOptions, configuration);
13724
+ return {
13725
+ url: toPathString(localVarUrlObj),
13726
+ options: localVarRequestOptions,
13727
+ };
13728
+ }),
13697
13729
  /**
13698
13730
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
13699
13731
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -13750,6 +13782,21 @@ export const SubscriptionsMobileApiFp = function (configuration) {
13750
13782
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13751
13783
  });
13752
13784
  },
13785
+ /**
13786
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
13787
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
13788
+ * @param {*} [options] Override http request option.
13789
+ * @throws {RequiredError}
13790
+ */
13791
+ getDetail(subscriptionDetailBody, options) {
13792
+ return __awaiter(this, void 0, void 0, function* () {
13793
+ var _a, _b, _c;
13794
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDetail(subscriptionDetailBody, options);
13795
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13796
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsMobileApi.getDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13797
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13798
+ });
13799
+ },
13753
13800
  /**
13754
13801
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
13755
13802
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -13783,6 +13830,15 @@ export const SubscriptionsMobileApiFactory = function (configuration, basePath,
13783
13830
  cancelIncomplete(requestParameters, options) {
13784
13831
  return localVarFp.cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(axios, basePath));
13785
13832
  },
13833
+ /**
13834
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
13835
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
13836
+ * @param {*} [options] Override http request option.
13837
+ * @throws {RequiredError}
13838
+ */
13839
+ getDetail(requestParameters, options) {
13840
+ return localVarFp.getDetail(requestParameters.subscriptionDetailBody, options).then((request) => request(axios, basePath));
13841
+ },
13786
13842
  /**
13787
13843
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
13788
13844
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
@@ -13811,6 +13867,16 @@ export class SubscriptionsMobileApi extends BaseAPI {
13811
13867
  cancelIncomplete(requestParameters, options) {
13812
13868
  return SubscriptionsMobileApiFp(this.configuration).cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(this.axios, this.basePath));
13813
13869
  }
13870
+ /**
13871
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
13872
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
13873
+ * @param {*} [options] Override http request option.
13874
+ * @throws {RequiredError}
13875
+ * @memberof SubscriptionsMobileApi
13876
+ */
13877
+ getDetail(requestParameters, options) {
13878
+ return SubscriptionsMobileApiFp(this.configuration).getDetail(requestParameters.subscriptionDetailBody, options).then((request) => request(this.axios, this.basePath));
13879
+ }
13814
13880
  /**
13815
13881
  * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
13816
13882
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
@@ -0,0 +1,52 @@
1
+ # MobileSubscriptionDetailResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **defaultPaymentMethodExpYear** | **number** | | [optional] [default to undefined]
9
+ **defaultPaymentMethodExpMonth** | **number** | | [optional] [default to undefined]
10
+ **defaultPaymentMethodLast4** | **string** | | [optional] [default to undefined]
11
+ **defaultPaymentMethodBrand** | **string** | | [optional] [default to undefined]
12
+ **clubName** | **string** | | [default to undefined]
13
+ **clubId** | **string** | | [default to undefined]
14
+ **interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
15
+ **currency** | **string** | | [default to undefined]
16
+ **amountInCents** | **number** | | [default to undefined]
17
+ **productId** | **string** | | [default to undefined]
18
+ **priceId** | **string** | | [default to undefined]
19
+ **currentPeriodEnd** | **number** | | [default to undefined]
20
+ **currentPeriodStart** | **number** | | [default to undefined]
21
+ **canceledAt** | **number** | | [default to undefined]
22
+ **cancelAt** | **number** | | [default to undefined]
23
+ **status** | **string** | | [default to undefined]
24
+ **id** | **string** | | [default to undefined]
25
+
26
+ ## Example
27
+
28
+ ```typescript
29
+ import { MobileSubscriptionDetailResponse } from '@tennac-booking/sdk';
30
+
31
+ const instance: MobileSubscriptionDetailResponse = {
32
+ defaultPaymentMethodExpYear,
33
+ defaultPaymentMethodExpMonth,
34
+ defaultPaymentMethodLast4,
35
+ defaultPaymentMethodBrand,
36
+ clubName,
37
+ clubId,
38
+ interval,
39
+ currency,
40
+ amountInCents,
41
+ productId,
42
+ priceId,
43
+ currentPeriodEnd,
44
+ currentPeriodStart,
45
+ canceledAt,
46
+ cancelAt,
47
+ status,
48
+ id,
49
+ };
50
+ ```
51
+
52
+ [[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
+ # SubscriptionDetailBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscriptionId** | **string** | | [default to undefined]
9
+ **clubId** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { SubscriptionDetailBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: SubscriptionDetailBody = {
17
+ subscriptionId,
18
+ clubId,
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,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**cancelIncomplete**](#cancelincomplete) | **POST** /api/mobile/subscriptions/cancel-incomplete | |
8
+ |[**getDetail**](#getdetail) | **POST** /api/mobile/subscriptions/detail | |
8
9
  |[**mobilePaymentSheet**](#mobilepaymentsheet) | **POST** /api/mobile/subscriptions/payment-sheet | |
9
10
 
10
11
  # **cancelIncomplete**
@@ -61,6 +62,60 @@ const { status, data } = await apiInstance.cancelIncomplete(
61
62
 
62
63
  [[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)
63
64
 
65
+ # **getDetail**
66
+ > MobileSubscriptionDetailResponse getDetail(subscriptionDetailBody)
67
+
68
+ Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
69
+
70
+ ### Example
71
+
72
+ ```typescript
73
+ import {
74
+ SubscriptionsMobileApi,
75
+ Configuration,
76
+ SubscriptionDetailBody
77
+ } from '@tennac-booking/sdk';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new SubscriptionsMobileApi(configuration);
81
+
82
+ let subscriptionDetailBody: SubscriptionDetailBody; //
83
+
84
+ const { status, data } = await apiInstance.getDetail(
85
+ subscriptionDetailBody
86
+ );
87
+ ```
88
+
89
+ ### Parameters
90
+
91
+ |Name | Type | Description | Notes|
92
+ |------------- | ------------- | ------------- | -------------|
93
+ | **subscriptionDetailBody** | **SubscriptionDetailBody**| | |
94
+
95
+
96
+ ### Return type
97
+
98
+ **MobileSubscriptionDetailResponse**
99
+
100
+ ### Authorization
101
+
102
+ [bearerAuth](../README.md#bearerAuth)
103
+
104
+ ### HTTP request headers
105
+
106
+ - **Content-Type**: application/json
107
+ - **Accept**: application/json
108
+
109
+
110
+ ### HTTP response details
111
+ | Status code | Description | Response headers |
112
+ |-------------|-------------|------------------|
113
+ |**200** | Subscription detail | - |
114
+ |**400** | Bad Request | - |
115
+ |**401** | Unauthorized | - |
116
+
117
+ [[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)
118
+
64
119
  # **mobilePaymentSheet**
65
120
  > SubscriptionPaymentSheetResponse mobilePaymentSheet(mobilePaymentSheetBody)
66
121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.247",
3
+ "version": "1.0.248",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {