@tennac-booking/sdk 1.0.247 → 1.0.249

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,141 @@ 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 {SubscriptionPlanDiscountResponse}
9262
+ * @memberof MobileSubscriptionDetailResponse
9263
+ */
9264
+ 'discount'?: SubscriptionPlanDiscountResponse | null;
9265
+ /**
9266
+ *
9267
+ * @type {string}
9268
+ * @memberof MobileSubscriptionDetailResponse
9269
+ */
9270
+ 'clubName': string | null;
9271
+ /**
9272
+ *
9273
+ * @type {string}
9274
+ * @memberof MobileSubscriptionDetailResponse
9275
+ */
9276
+ 'clubId': string | null;
9277
+ /**
9278
+ *
9279
+ * @type {PlanInterval}
9280
+ * @memberof MobileSubscriptionDetailResponse
9281
+ */
9282
+ 'interval': PlanInterval | null;
9283
+ /**
9284
+ *
9285
+ * @type {string}
9286
+ * @memberof MobileSubscriptionDetailResponse
9287
+ */
9288
+ 'currency': string | null;
9289
+ /**
9290
+ *
9291
+ * @type {number}
9292
+ * @memberof MobileSubscriptionDetailResponse
9293
+ */
9294
+ 'amountInCents': number | null;
9295
+ /**
9296
+ *
9297
+ * @type {string}
9298
+ * @memberof MobileSubscriptionDetailResponse
9299
+ */
9300
+ 'productId': string | null;
9301
+ /**
9302
+ *
9303
+ * @type {string}
9304
+ * @memberof MobileSubscriptionDetailResponse
9305
+ */
9306
+ 'planDescription'?: string | null;
9307
+ /**
9308
+ *
9309
+ * @type {string}
9310
+ * @memberof MobileSubscriptionDetailResponse
9311
+ */
9312
+ 'planName'?: string | null;
9313
+ /**
9314
+ *
9315
+ * @type {string}
9316
+ * @memberof MobileSubscriptionDetailResponse
9317
+ */
9318
+ 'planId'?: string | null;
9319
+ /**
9320
+ *
9321
+ * @type {string}
9322
+ * @memberof MobileSubscriptionDetailResponse
9323
+ */
9324
+ 'priceId': string | null;
9325
+ /**
9326
+ *
9327
+ * @type {number}
9328
+ * @memberof MobileSubscriptionDetailResponse
9329
+ */
9330
+ 'currentPeriodEnd': number | null;
9331
+ /**
9332
+ *
9333
+ * @type {number}
9334
+ * @memberof MobileSubscriptionDetailResponse
9335
+ */
9336
+ 'currentPeriodStart': number | null;
9337
+ /**
9338
+ *
9339
+ * @type {number}
9340
+ * @memberof MobileSubscriptionDetailResponse
9341
+ */
9342
+ 'canceledAt': number | null;
9343
+ /**
9344
+ *
9345
+ * @type {number}
9346
+ * @memberof MobileSubscriptionDetailResponse
9347
+ */
9348
+ 'cancelAt': number | null;
9349
+ /**
9350
+ *
9351
+ * @type {string}
9352
+ * @memberof MobileSubscriptionDetailResponse
9353
+ */
9354
+ 'status': string | null;
9355
+ /**
9356
+ *
9357
+ * @type {string}
9358
+ * @memberof MobileSubscriptionDetailResponse
9359
+ */
9360
+ 'id': string;
9361
+ }
9362
+
9363
+
9229
9364
  /**
9230
9365
  *
9231
9366
  * @export
@@ -13693,6 +13828,25 @@ export interface SubscriberPrice {
13693
13828
  */
13694
13829
  'amount': number;
13695
13830
  }
13831
+ /**
13832
+ *
13833
+ * @export
13834
+ * @interface SubscriptionDetailBody
13835
+ */
13836
+ export interface SubscriptionDetailBody {
13837
+ /**
13838
+ *
13839
+ * @type {string}
13840
+ * @memberof SubscriptionDetailBody
13841
+ */
13842
+ 'subscriptionId': string;
13843
+ /**
13844
+ *
13845
+ * @type {string}
13846
+ * @memberof SubscriptionDetailBody
13847
+ */
13848
+ 'clubId': string;
13849
+ }
13696
13850
  /**
13697
13851
  *
13698
13852
  * @export
@@ -33841,6 +33995,45 @@ export const SubscriptionsMobileApiAxiosParamCreator = function (configuration?:
33841
33995
  options: localVarRequestOptions,
33842
33996
  };
33843
33997
  },
33998
+ /**
33999
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
34000
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
34001
+ * @param {*} [options] Override http request option.
34002
+ * @throws {RequiredError}
34003
+ */
34004
+ getDetail: async (subscriptionDetailBody: SubscriptionDetailBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34005
+ // verify required parameter 'subscriptionDetailBody' is not null or undefined
34006
+ assertParamExists('getDetail', 'subscriptionDetailBody', subscriptionDetailBody)
34007
+ const localVarPath = `/api/mobile/subscriptions/detail`;
34008
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34009
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34010
+ let baseOptions;
34011
+ if (configuration) {
34012
+ baseOptions = configuration.baseOptions;
34013
+ }
34014
+
34015
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34016
+ const localVarHeaderParameter = {} as any;
34017
+ const localVarQueryParameter = {} as any;
34018
+
34019
+ // authentication bearerAuth required
34020
+ // http bearer authentication required
34021
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34022
+
34023
+
34024
+
34025
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34026
+
34027
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34029
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34030
+ localVarRequestOptions.data = serializeDataIfNeeded(subscriptionDetailBody, localVarRequestOptions, configuration)
34031
+
34032
+ return {
34033
+ url: toPathString(localVarUrlObj),
34034
+ options: localVarRequestOptions,
34035
+ };
34036
+ },
33844
34037
  /**
33845
34038
  * 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
34039
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -33902,6 +34095,18 @@ export const SubscriptionsMobileApiFp = function(configuration?: Configuration)
33902
34095
  const localVarOperationServerBasePath = operationServerMap['SubscriptionsMobileApi.cancelIncomplete']?.[localVarOperationServerIndex]?.url;
33903
34096
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33904
34097
  },
34098
+ /**
34099
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
34100
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
34101
+ * @param {*} [options] Override http request option.
34102
+ * @throws {RequiredError}
34103
+ */
34104
+ async getDetail(subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MobileSubscriptionDetailResponse>> {
34105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDetail(subscriptionDetailBody, options);
34106
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34107
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsMobileApi.getDetail']?.[localVarOperationServerIndex]?.url;
34108
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34109
+ },
33905
34110
  /**
33906
34111
  * 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
34112
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -33933,6 +34138,15 @@ export const SubscriptionsMobileApiFactory = function (configuration?: Configura
33933
34138
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelIncompleteResponse> {
33934
34139
  return localVarFp.cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(axios, basePath));
33935
34140
  },
34141
+ /**
34142
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
34143
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
34144
+ * @param {*} [options] Override http request option.
34145
+ * @throws {RequiredError}
34146
+ */
34147
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<MobileSubscriptionDetailResponse> {
34148
+ return localVarFp.getDetail(requestParameters.subscriptionDetailBody, options).then((request) => request(axios, basePath));
34149
+ },
33936
34150
  /**
33937
34151
  * 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
34152
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
@@ -33959,6 +34173,20 @@ export interface SubscriptionsMobileApiCancelIncompleteRequest {
33959
34173
  readonly cancelIncompleteBody: CancelIncompleteBody
33960
34174
  }
33961
34175
 
34176
+ /**
34177
+ * Request parameters for getDetail operation in SubscriptionsMobileApi.
34178
+ * @export
34179
+ * @interface SubscriptionsMobileApiGetDetailRequest
34180
+ */
34181
+ export interface SubscriptionsMobileApiGetDetailRequest {
34182
+ /**
34183
+ *
34184
+ * @type {SubscriptionDetailBody}
34185
+ * @memberof SubscriptionsMobileApiGetDetail
34186
+ */
34187
+ readonly subscriptionDetailBody: SubscriptionDetailBody
34188
+ }
34189
+
33962
34190
  /**
33963
34191
  * Request parameters for mobilePaymentSheet operation in SubscriptionsMobileApi.
33964
34192
  * @export
@@ -33991,6 +34219,17 @@ export class SubscriptionsMobileApi extends BaseAPI {
33991
34219
  return SubscriptionsMobileApiFp(this.configuration).cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(this.axios, this.basePath));
33992
34220
  }
33993
34221
 
34222
+ /**
34223
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
34224
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
34225
+ * @param {*} [options] Override http request option.
34226
+ * @throws {RequiredError}
34227
+ * @memberof SubscriptionsMobileApi
34228
+ */
34229
+ public getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig) {
34230
+ return SubscriptionsMobileApiFp(this.configuration).getDetail(requestParameters.subscriptionDetailBody, options).then((request) => request(this.axios, this.basePath));
34231
+ }
34232
+
33994
34233
  /**
33995
34234
  * 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
34235
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
package/dist/api.d.ts CHANGED
@@ -9101,6 +9101,139 @@ 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 {SubscriptionPlanDiscountResponse}
9137
+ * @memberof MobileSubscriptionDetailResponse
9138
+ */
9139
+ 'discount'?: SubscriptionPlanDiscountResponse | null;
9140
+ /**
9141
+ *
9142
+ * @type {string}
9143
+ * @memberof MobileSubscriptionDetailResponse
9144
+ */
9145
+ 'clubName': string | null;
9146
+ /**
9147
+ *
9148
+ * @type {string}
9149
+ * @memberof MobileSubscriptionDetailResponse
9150
+ */
9151
+ 'clubId': string | null;
9152
+ /**
9153
+ *
9154
+ * @type {PlanInterval}
9155
+ * @memberof MobileSubscriptionDetailResponse
9156
+ */
9157
+ 'interval': PlanInterval | null;
9158
+ /**
9159
+ *
9160
+ * @type {string}
9161
+ * @memberof MobileSubscriptionDetailResponse
9162
+ */
9163
+ 'currency': string | null;
9164
+ /**
9165
+ *
9166
+ * @type {number}
9167
+ * @memberof MobileSubscriptionDetailResponse
9168
+ */
9169
+ 'amountInCents': number | null;
9170
+ /**
9171
+ *
9172
+ * @type {string}
9173
+ * @memberof MobileSubscriptionDetailResponse
9174
+ */
9175
+ 'productId': string | null;
9176
+ /**
9177
+ *
9178
+ * @type {string}
9179
+ * @memberof MobileSubscriptionDetailResponse
9180
+ */
9181
+ 'planDescription'?: string | null;
9182
+ /**
9183
+ *
9184
+ * @type {string}
9185
+ * @memberof MobileSubscriptionDetailResponse
9186
+ */
9187
+ 'planName'?: string | null;
9188
+ /**
9189
+ *
9190
+ * @type {string}
9191
+ * @memberof MobileSubscriptionDetailResponse
9192
+ */
9193
+ 'planId'?: string | null;
9194
+ /**
9195
+ *
9196
+ * @type {string}
9197
+ * @memberof MobileSubscriptionDetailResponse
9198
+ */
9199
+ 'priceId': string | null;
9200
+ /**
9201
+ *
9202
+ * @type {number}
9203
+ * @memberof MobileSubscriptionDetailResponse
9204
+ */
9205
+ 'currentPeriodEnd': number | null;
9206
+ /**
9207
+ *
9208
+ * @type {number}
9209
+ * @memberof MobileSubscriptionDetailResponse
9210
+ */
9211
+ 'currentPeriodStart': number | null;
9212
+ /**
9213
+ *
9214
+ * @type {number}
9215
+ * @memberof MobileSubscriptionDetailResponse
9216
+ */
9217
+ 'canceledAt': number | null;
9218
+ /**
9219
+ *
9220
+ * @type {number}
9221
+ * @memberof MobileSubscriptionDetailResponse
9222
+ */
9223
+ 'cancelAt': number | null;
9224
+ /**
9225
+ *
9226
+ * @type {string}
9227
+ * @memberof MobileSubscriptionDetailResponse
9228
+ */
9229
+ 'status': string | null;
9230
+ /**
9231
+ *
9232
+ * @type {string}
9233
+ * @memberof MobileSubscriptionDetailResponse
9234
+ */
9235
+ 'id': string;
9236
+ }
9104
9237
  /**
9105
9238
  *
9106
9239
  * @export
@@ -13474,6 +13607,25 @@ export interface SubscriberPrice {
13474
13607
  */
13475
13608
  'amount': number;
13476
13609
  }
13610
+ /**
13611
+ *
13612
+ * @export
13613
+ * @interface SubscriptionDetailBody
13614
+ */
13615
+ export interface SubscriptionDetailBody {
13616
+ /**
13617
+ *
13618
+ * @type {string}
13619
+ * @memberof SubscriptionDetailBody
13620
+ */
13621
+ 'subscriptionId': string;
13622
+ /**
13623
+ *
13624
+ * @type {string}
13625
+ * @memberof SubscriptionDetailBody
13626
+ */
13627
+ 'clubId': string;
13628
+ }
13477
13629
  /**
13478
13630
  *
13479
13631
  * @export
@@ -25390,6 +25542,13 @@ export declare const SubscriptionsMobileApiAxiosParamCreator: (configuration?: C
25390
25542
  * @throws {RequiredError}
25391
25543
  */
25392
25544
  cancelIncomplete: (cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25545
+ /**
25546
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25547
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
25548
+ * @param {*} [options] Override http request option.
25549
+ * @throws {RequiredError}
25550
+ */
25551
+ getDetail: (subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25393
25552
  /**
25394
25553
  * 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
25554
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -25410,6 +25569,13 @@ export declare const SubscriptionsMobileApiFp: (configuration?: Configuration) =
25410
25569
  * @throws {RequiredError}
25411
25570
  */
25412
25571
  cancelIncomplete(cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelIncompleteResponse>>;
25572
+ /**
25573
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25574
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
25575
+ * @param {*} [options] Override http request option.
25576
+ * @throws {RequiredError}
25577
+ */
25578
+ getDetail(subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MobileSubscriptionDetailResponse>>;
25413
25579
  /**
25414
25580
  * 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
25581
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -25430,6 +25596,13 @@ export declare const SubscriptionsMobileApiFactory: (configuration?: Configurati
25430
25596
  * @throws {RequiredError}
25431
25597
  */
25432
25598
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelIncompleteResponse>;
25599
+ /**
25600
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25601
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
25602
+ * @param {*} [options] Override http request option.
25603
+ * @throws {RequiredError}
25604
+ */
25605
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<MobileSubscriptionDetailResponse>;
25433
25606
  /**
25434
25607
  * 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
25608
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
@@ -25451,6 +25624,19 @@ export interface SubscriptionsMobileApiCancelIncompleteRequest {
25451
25624
  */
25452
25625
  readonly cancelIncompleteBody: CancelIncompleteBody;
25453
25626
  }
25627
+ /**
25628
+ * Request parameters for getDetail operation in SubscriptionsMobileApi.
25629
+ * @export
25630
+ * @interface SubscriptionsMobileApiGetDetailRequest
25631
+ */
25632
+ export interface SubscriptionsMobileApiGetDetailRequest {
25633
+ /**
25634
+ *
25635
+ * @type {SubscriptionDetailBody}
25636
+ * @memberof SubscriptionsMobileApiGetDetail
25637
+ */
25638
+ readonly subscriptionDetailBody: SubscriptionDetailBody;
25639
+ }
25454
25640
  /**
25455
25641
  * Request parameters for mobilePaymentSheet operation in SubscriptionsMobileApi.
25456
25642
  * @export
@@ -25479,6 +25665,14 @@ export declare class SubscriptionsMobileApi extends BaseAPI {
25479
25665
  * @memberof SubscriptionsMobileApi
25480
25666
  */
25481
25667
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CancelIncompleteResponse, any, {}>>;
25668
+ /**
25669
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25670
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
25671
+ * @param {*} [options] Override http request option.
25672
+ * @throws {RequiredError}
25673
+ * @memberof SubscriptionsMobileApi
25674
+ */
25675
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MobileSubscriptionDetailResponse, any, {}>>;
25482
25676
  /**
25483
25677
  * 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
25678
  * @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,139 @@ 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 {SubscriptionPlanDiscountResponse}
9137
+ * @memberof MobileSubscriptionDetailResponse
9138
+ */
9139
+ 'discount'?: SubscriptionPlanDiscountResponse | null;
9140
+ /**
9141
+ *
9142
+ * @type {string}
9143
+ * @memberof MobileSubscriptionDetailResponse
9144
+ */
9145
+ 'clubName': string | null;
9146
+ /**
9147
+ *
9148
+ * @type {string}
9149
+ * @memberof MobileSubscriptionDetailResponse
9150
+ */
9151
+ 'clubId': string | null;
9152
+ /**
9153
+ *
9154
+ * @type {PlanInterval}
9155
+ * @memberof MobileSubscriptionDetailResponse
9156
+ */
9157
+ 'interval': PlanInterval | null;
9158
+ /**
9159
+ *
9160
+ * @type {string}
9161
+ * @memberof MobileSubscriptionDetailResponse
9162
+ */
9163
+ 'currency': string | null;
9164
+ /**
9165
+ *
9166
+ * @type {number}
9167
+ * @memberof MobileSubscriptionDetailResponse
9168
+ */
9169
+ 'amountInCents': number | null;
9170
+ /**
9171
+ *
9172
+ * @type {string}
9173
+ * @memberof MobileSubscriptionDetailResponse
9174
+ */
9175
+ 'productId': string | null;
9176
+ /**
9177
+ *
9178
+ * @type {string}
9179
+ * @memberof MobileSubscriptionDetailResponse
9180
+ */
9181
+ 'planDescription'?: string | null;
9182
+ /**
9183
+ *
9184
+ * @type {string}
9185
+ * @memberof MobileSubscriptionDetailResponse
9186
+ */
9187
+ 'planName'?: string | null;
9188
+ /**
9189
+ *
9190
+ * @type {string}
9191
+ * @memberof MobileSubscriptionDetailResponse
9192
+ */
9193
+ 'planId'?: string | null;
9194
+ /**
9195
+ *
9196
+ * @type {string}
9197
+ * @memberof MobileSubscriptionDetailResponse
9198
+ */
9199
+ 'priceId': string | null;
9200
+ /**
9201
+ *
9202
+ * @type {number}
9203
+ * @memberof MobileSubscriptionDetailResponse
9204
+ */
9205
+ 'currentPeriodEnd': number | null;
9206
+ /**
9207
+ *
9208
+ * @type {number}
9209
+ * @memberof MobileSubscriptionDetailResponse
9210
+ */
9211
+ 'currentPeriodStart': number | null;
9212
+ /**
9213
+ *
9214
+ * @type {number}
9215
+ * @memberof MobileSubscriptionDetailResponse
9216
+ */
9217
+ 'canceledAt': number | null;
9218
+ /**
9219
+ *
9220
+ * @type {number}
9221
+ * @memberof MobileSubscriptionDetailResponse
9222
+ */
9223
+ 'cancelAt': number | null;
9224
+ /**
9225
+ *
9226
+ * @type {string}
9227
+ * @memberof MobileSubscriptionDetailResponse
9228
+ */
9229
+ 'status': string | null;
9230
+ /**
9231
+ *
9232
+ * @type {string}
9233
+ * @memberof MobileSubscriptionDetailResponse
9234
+ */
9235
+ 'id': string;
9236
+ }
9104
9237
  /**
9105
9238
  *
9106
9239
  * @export
@@ -13474,6 +13607,25 @@ export interface SubscriberPrice {
13474
13607
  */
13475
13608
  'amount': number;
13476
13609
  }
13610
+ /**
13611
+ *
13612
+ * @export
13613
+ * @interface SubscriptionDetailBody
13614
+ */
13615
+ export interface SubscriptionDetailBody {
13616
+ /**
13617
+ *
13618
+ * @type {string}
13619
+ * @memberof SubscriptionDetailBody
13620
+ */
13621
+ 'subscriptionId': string;
13622
+ /**
13623
+ *
13624
+ * @type {string}
13625
+ * @memberof SubscriptionDetailBody
13626
+ */
13627
+ 'clubId': string;
13628
+ }
13477
13629
  /**
13478
13630
  *
13479
13631
  * @export
@@ -25390,6 +25542,13 @@ export declare const SubscriptionsMobileApiAxiosParamCreator: (configuration?: C
25390
25542
  * @throws {RequiredError}
25391
25543
  */
25392
25544
  cancelIncomplete: (cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25545
+ /**
25546
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25547
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
25548
+ * @param {*} [options] Override http request option.
25549
+ * @throws {RequiredError}
25550
+ */
25551
+ getDetail: (subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25393
25552
  /**
25394
25553
  * 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
25554
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -25410,6 +25569,13 @@ export declare const SubscriptionsMobileApiFp: (configuration?: Configuration) =
25410
25569
  * @throws {RequiredError}
25411
25570
  */
25412
25571
  cancelIncomplete(cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelIncompleteResponse>>;
25572
+ /**
25573
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25574
+ * @param {SubscriptionDetailBody} subscriptionDetailBody
25575
+ * @param {*} [options] Override http request option.
25576
+ * @throws {RequiredError}
25577
+ */
25578
+ getDetail(subscriptionDetailBody: SubscriptionDetailBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MobileSubscriptionDetailResponse>>;
25413
25579
  /**
25414
25580
  * 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
25581
  * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
@@ -25430,6 +25596,13 @@ export declare const SubscriptionsMobileApiFactory: (configuration?: Configurati
25430
25596
  * @throws {RequiredError}
25431
25597
  */
25432
25598
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelIncompleteResponse>;
25599
+ /**
25600
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25601
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
25602
+ * @param {*} [options] Override http request option.
25603
+ * @throws {RequiredError}
25604
+ */
25605
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<MobileSubscriptionDetailResponse>;
25433
25606
  /**
25434
25607
  * 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
25608
  * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
@@ -25451,6 +25624,19 @@ export interface SubscriptionsMobileApiCancelIncompleteRequest {
25451
25624
  */
25452
25625
  readonly cancelIncompleteBody: CancelIncompleteBody;
25453
25626
  }
25627
+ /**
25628
+ * Request parameters for getDetail operation in SubscriptionsMobileApi.
25629
+ * @export
25630
+ * @interface SubscriptionsMobileApiGetDetailRequest
25631
+ */
25632
+ export interface SubscriptionsMobileApiGetDetailRequest {
25633
+ /**
25634
+ *
25635
+ * @type {SubscriptionDetailBody}
25636
+ * @memberof SubscriptionsMobileApiGetDetail
25637
+ */
25638
+ readonly subscriptionDetailBody: SubscriptionDetailBody;
25639
+ }
25454
25640
  /**
25455
25641
  * Request parameters for mobilePaymentSheet operation in SubscriptionsMobileApi.
25456
25642
  * @export
@@ -25479,6 +25665,14 @@ export declare class SubscriptionsMobileApi extends BaseAPI {
25479
25665
  * @memberof SubscriptionsMobileApi
25480
25666
  */
25481
25667
  cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CancelIncompleteResponse, any, {}>>;
25668
+ /**
25669
+ * Détail d\'un abonnement utilisateur pour l\'app mobile (compte connecté du club).
25670
+ * @param {SubscriptionsMobileApiGetDetailRequest} requestParameters Request parameters.
25671
+ * @param {*} [options] Override http request option.
25672
+ * @throws {RequiredError}
25673
+ * @memberof SubscriptionsMobileApi
25674
+ */
25675
+ getDetail(requestParameters: SubscriptionsMobileApiGetDetailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MobileSubscriptionDetailResponse, any, {}>>;
25482
25676
  /**
25483
25677
  * 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
25678
  * @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,60 @@
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
+ **discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
13
+ **clubName** | **string** | | [default to undefined]
14
+ **clubId** | **string** | | [default to undefined]
15
+ **interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
16
+ **currency** | **string** | | [default to undefined]
17
+ **amountInCents** | **number** | | [default to undefined]
18
+ **productId** | **string** | | [default to undefined]
19
+ **planDescription** | **string** | | [optional] [default to undefined]
20
+ **planName** | **string** | | [optional] [default to undefined]
21
+ **planId** | **string** | | [optional] [default to undefined]
22
+ **priceId** | **string** | | [default to undefined]
23
+ **currentPeriodEnd** | **number** | | [default to undefined]
24
+ **currentPeriodStart** | **number** | | [default to undefined]
25
+ **canceledAt** | **number** | | [default to undefined]
26
+ **cancelAt** | **number** | | [default to undefined]
27
+ **status** | **string** | | [default to undefined]
28
+ **id** | **string** | | [default to undefined]
29
+
30
+ ## Example
31
+
32
+ ```typescript
33
+ import { MobileSubscriptionDetailResponse } from '@tennac-booking/sdk';
34
+
35
+ const instance: MobileSubscriptionDetailResponse = {
36
+ defaultPaymentMethodExpYear,
37
+ defaultPaymentMethodExpMonth,
38
+ defaultPaymentMethodLast4,
39
+ defaultPaymentMethodBrand,
40
+ discount,
41
+ clubName,
42
+ clubId,
43
+ interval,
44
+ currency,
45
+ amountInCents,
46
+ productId,
47
+ planDescription,
48
+ planName,
49
+ planId,
50
+ priceId,
51
+ currentPeriodEnd,
52
+ currentPeriodStart,
53
+ canceledAt,
54
+ cancelAt,
55
+ status,
56
+ id,
57
+ };
58
+ ```
59
+
60
+ [[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.249",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {