@gooday_corp/gooday-api-client 1.1.25 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +57 -51
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1429,6 +1429,19 @@ export interface PlanResponseDTO {
|
|
|
1429
1429
|
*/
|
|
1430
1430
|
'data': Array<PlanEntity>;
|
|
1431
1431
|
}
|
|
1432
|
+
/**
|
|
1433
|
+
*
|
|
1434
|
+
* @export
|
|
1435
|
+
* @interface PlanUpsertPayloadDTO
|
|
1436
|
+
*/
|
|
1437
|
+
export interface PlanUpsertPayloadDTO {
|
|
1438
|
+
/**
|
|
1439
|
+
* Plan id
|
|
1440
|
+
* @type {string}
|
|
1441
|
+
* @memberof PlanUpsertPayloadDTO
|
|
1442
|
+
*/
|
|
1443
|
+
'plan': string;
|
|
1444
|
+
}
|
|
1432
1445
|
/**
|
|
1433
1446
|
*
|
|
1434
1447
|
* @export
|
|
@@ -1743,46 +1756,40 @@ export interface SkillDto {
|
|
|
1743
1756
|
/**
|
|
1744
1757
|
*
|
|
1745
1758
|
* @export
|
|
1746
|
-
* @interface
|
|
1759
|
+
* @interface StripePaymentDTO
|
|
1747
1760
|
*/
|
|
1748
|
-
export interface
|
|
1749
|
-
/**
|
|
1750
|
-
* Strip Customer ID
|
|
1751
|
-
* @type {string}
|
|
1752
|
-
* @memberof StripPaymentDTO
|
|
1753
|
-
*/
|
|
1754
|
-
'customerId': string;
|
|
1761
|
+
export interface StripePaymentDTO {
|
|
1755
1762
|
/**
|
|
1756
|
-
*
|
|
1763
|
+
* Stripe ephemeral Key
|
|
1757
1764
|
* @type {string}
|
|
1758
|
-
* @memberof
|
|
1765
|
+
* @memberof StripePaymentDTO
|
|
1759
1766
|
*/
|
|
1760
1767
|
'ephemeralKey': string;
|
|
1761
1768
|
/**
|
|
1762
|
-
*
|
|
1769
|
+
* Stripe ClientSecret
|
|
1763
1770
|
* @type {string}
|
|
1764
|
-
* @memberof
|
|
1771
|
+
* @memberof StripePaymentDTO
|
|
1765
1772
|
*/
|
|
1766
1773
|
'clientSecret': string;
|
|
1767
1774
|
}
|
|
1768
1775
|
/**
|
|
1769
1776
|
*
|
|
1770
1777
|
* @export
|
|
1771
|
-
* @interface
|
|
1778
|
+
* @interface StripePlanUpsertResponseDTO
|
|
1772
1779
|
*/
|
|
1773
|
-
export interface
|
|
1780
|
+
export interface StripePlanUpsertResponseDTO {
|
|
1774
1781
|
/**
|
|
1775
1782
|
* statuscCode
|
|
1776
1783
|
* @type {number}
|
|
1777
|
-
* @memberof
|
|
1784
|
+
* @memberof StripePlanUpsertResponseDTO
|
|
1778
1785
|
*/
|
|
1779
1786
|
'statusCode': number;
|
|
1780
1787
|
/**
|
|
1781
1788
|
* Strip Intent Data
|
|
1782
|
-
* @type {
|
|
1783
|
-
* @memberof
|
|
1789
|
+
* @type {StripePaymentDTO}
|
|
1790
|
+
* @memberof StripePlanUpsertResponseDTO
|
|
1784
1791
|
*/
|
|
1785
|
-
'data':
|
|
1792
|
+
'data': StripePaymentDTO;
|
|
1786
1793
|
}
|
|
1787
1794
|
/**
|
|
1788
1795
|
*
|
|
@@ -4545,14 +4552,11 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
4545
4552
|
},
|
|
4546
4553
|
/**
|
|
4547
4554
|
*
|
|
4548
|
-
* @param {string} planId Strip Plan ID
|
|
4549
4555
|
* @param {*} [options] Override http request option.
|
|
4550
4556
|
* @throws {RequiredError}
|
|
4551
4557
|
*/
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
assertParamExists('paymentControllerGetPaymentSecretForIntent', 'planId', planId)
|
|
4555
|
-
const localVarPath = `/v1/payment/payment-secret-for-intent`;
|
|
4558
|
+
paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4559
|
+
const localVarPath = `/v1/payment/plans`;
|
|
4556
4560
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4557
4561
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4558
4562
|
let baseOptions;
|
|
@@ -4564,14 +4568,6 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
4564
4568
|
const localVarHeaderParameter = {} as any;
|
|
4565
4569
|
const localVarQueryParameter = {} as any;
|
|
4566
4570
|
|
|
4567
|
-
// authentication bearer required
|
|
4568
|
-
// http bearer authentication required
|
|
4569
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4570
|
-
|
|
4571
|
-
if (planId !== undefined) {
|
|
4572
|
-
localVarQueryParameter['planId'] = planId;
|
|
4573
|
-
}
|
|
4574
|
-
|
|
4575
4571
|
|
|
4576
4572
|
|
|
4577
4573
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4585,11 +4581,14 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
4585
4581
|
},
|
|
4586
4582
|
/**
|
|
4587
4583
|
*
|
|
4584
|
+
* @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
|
|
4588
4585
|
* @param {*} [options] Override http request option.
|
|
4589
4586
|
* @throws {RequiredError}
|
|
4590
4587
|
*/
|
|
4591
|
-
|
|
4592
|
-
|
|
4588
|
+
paymentControllerPlanUpsert: async (planUpsertPayloadDTO: PlanUpsertPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4589
|
+
// verify required parameter 'planUpsertPayloadDTO' is not null or undefined
|
|
4590
|
+
assertParamExists('paymentControllerPlanUpsert', 'planUpsertPayloadDTO', planUpsertPayloadDTO)
|
|
4591
|
+
const localVarPath = `/v1/payment/plan`;
|
|
4593
4592
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4594
4593
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4595
4594
|
let baseOptions;
|
|
@@ -4597,15 +4596,22 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
4597
4596
|
baseOptions = configuration.baseOptions;
|
|
4598
4597
|
}
|
|
4599
4598
|
|
|
4600
|
-
const localVarRequestOptions = { method: '
|
|
4599
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4601
4600
|
const localVarHeaderParameter = {} as any;
|
|
4602
4601
|
const localVarQueryParameter = {} as any;
|
|
4603
4602
|
|
|
4603
|
+
// authentication bearer required
|
|
4604
|
+
// http bearer authentication required
|
|
4605
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4606
|
+
|
|
4604
4607
|
|
|
4605
4608
|
|
|
4609
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4610
|
+
|
|
4606
4611
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4607
4612
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4608
4613
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4614
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planUpsertPayloadDTO, localVarRequestOptions, configuration)
|
|
4609
4615
|
|
|
4610
4616
|
return {
|
|
4611
4617
|
url: toPathString(localVarUrlObj),
|
|
@@ -4672,25 +4678,25 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
4672
4678
|
},
|
|
4673
4679
|
/**
|
|
4674
4680
|
*
|
|
4675
|
-
* @param {string} planId Strip Plan ID
|
|
4676
4681
|
* @param {*} [options] Override http request option.
|
|
4677
4682
|
* @throws {RequiredError}
|
|
4678
4683
|
*/
|
|
4679
|
-
async
|
|
4680
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4684
|
+
async paymentControllerGetPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanResponseDTO>> {
|
|
4685
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPlans(options);
|
|
4681
4686
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4682
|
-
const localVarOperationServerBasePath = operationServerMap['PlansApi.
|
|
4687
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
|
|
4683
4688
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4684
4689
|
},
|
|
4685
4690
|
/**
|
|
4686
4691
|
*
|
|
4692
|
+
* @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
|
|
4687
4693
|
* @param {*} [options] Override http request option.
|
|
4688
4694
|
* @throws {RequiredError}
|
|
4689
4695
|
*/
|
|
4690
|
-
async
|
|
4691
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4696
|
+
async paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePlanUpsertResponseDTO>> {
|
|
4697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerPlanUpsert(planUpsertPayloadDTO, options);
|
|
4692
4698
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4693
|
-
const localVarOperationServerBasePath = operationServerMap['PlansApi.
|
|
4699
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerPlanUpsert']?.[localVarOperationServerIndex]?.url;
|
|
4694
4700
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4695
4701
|
},
|
|
4696
4702
|
/**
|
|
@@ -4726,20 +4732,20 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
4726
4732
|
},
|
|
4727
4733
|
/**
|
|
4728
4734
|
*
|
|
4729
|
-
* @param {string} planId Strip Plan ID
|
|
4730
4735
|
* @param {*} [options] Override http request option.
|
|
4731
4736
|
* @throws {RequiredError}
|
|
4732
4737
|
*/
|
|
4733
|
-
|
|
4734
|
-
return localVarFp.
|
|
4738
|
+
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<PlanResponseDTO> {
|
|
4739
|
+
return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
|
|
4735
4740
|
},
|
|
4736
4741
|
/**
|
|
4737
4742
|
*
|
|
4743
|
+
* @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
|
|
4738
4744
|
* @param {*} [options] Override http request option.
|
|
4739
4745
|
* @throws {RequiredError}
|
|
4740
4746
|
*/
|
|
4741
|
-
|
|
4742
|
-
return localVarFp.
|
|
4747
|
+
paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripePlanUpsertResponseDTO> {
|
|
4748
|
+
return localVarFp.paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(axios, basePath));
|
|
4743
4749
|
},
|
|
4744
4750
|
/**
|
|
4745
4751
|
*
|
|
@@ -4773,23 +4779,23 @@ export class PlansApi extends BaseAPI {
|
|
|
4773
4779
|
|
|
4774
4780
|
/**
|
|
4775
4781
|
*
|
|
4776
|
-
* @param {string} planId Strip Plan ID
|
|
4777
4782
|
* @param {*} [options] Override http request option.
|
|
4778
4783
|
* @throws {RequiredError}
|
|
4779
4784
|
* @memberof PlansApi
|
|
4780
4785
|
*/
|
|
4781
|
-
public
|
|
4782
|
-
return PlansApiFp(this.configuration).
|
|
4786
|
+
public paymentControllerGetPlans(options?: RawAxiosRequestConfig) {
|
|
4787
|
+
return PlansApiFp(this.configuration).paymentControllerGetPlans(options).then((request) => request(this.axios, this.basePath));
|
|
4783
4788
|
}
|
|
4784
4789
|
|
|
4785
4790
|
/**
|
|
4786
4791
|
*
|
|
4792
|
+
* @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
|
|
4787
4793
|
* @param {*} [options] Override http request option.
|
|
4788
4794
|
* @throws {RequiredError}
|
|
4789
4795
|
* @memberof PlansApi
|
|
4790
4796
|
*/
|
|
4791
|
-
public
|
|
4792
|
-
return PlansApiFp(this.configuration).
|
|
4797
|
+
public paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
4798
|
+
return PlansApiFp(this.configuration).paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
4793
4799
|
}
|
|
4794
4800
|
|
|
4795
4801
|
/**
|