@widgetic/api-sdk 1.0.20 → 1.0.22
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/dist/apis/AdminBillingApi.d.ts +92 -1
- package/dist/apis/AdminBillingApi.js +246 -1
- package/dist/apis/AgentApi.d.ts +17 -5
- package/dist/apis/AgentApi.js +42 -4
- package/dist/apis/AuthenticationApi.d.ts +12 -1
- package/dist/apis/AuthenticationApi.js +31 -0
- package/dist/apis/BillingApi.js +13 -13
- package/dist/apis/CompositionsApi.d.ts +5 -5
- package/dist/apis/CompositionsApi.js +3 -3
- package/dist/apis/CreditsApi.d.ts +4 -4
- package/dist/apis/CreditsApi.js +4 -4
- package/dist/apis/MCPApi.d.ts +6 -6
- package/dist/apis/MCPApi.js +15 -6
- package/dist/apis/NoticesApi.d.ts +41 -0
- package/dist/apis/NoticesApi.js +103 -0
- package/dist/apis/OrganizationsApi.d.ts +17 -4
- package/dist/apis/OrganizationsApi.js +41 -4
- package/dist/apis/SubscriptionsApi.d.ts +32 -4
- package/dist/apis/SubscriptionsApi.js +82 -5
- package/dist/apis/WidgetsApi.d.ts +19 -35
- package/dist/apis/WidgetsApi.js +32 -32
- package/dist/apis/WorkflowsApi.d.ts +2 -2
- package/dist/apis/WorkflowsApi.js +2 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AdminBillingApi.d.ts +92 -1
- package/dist/esm/apis/AdminBillingApi.js +246 -1
- package/dist/esm/apis/AgentApi.d.ts +17 -5
- package/dist/esm/apis/AgentApi.js +43 -5
- package/dist/esm/apis/AuthenticationApi.d.ts +12 -1
- package/dist/esm/apis/AuthenticationApi.js +32 -1
- package/dist/esm/apis/BillingApi.js +13 -13
- package/dist/esm/apis/CompositionsApi.d.ts +5 -5
- package/dist/esm/apis/CompositionsApi.js +4 -4
- package/dist/esm/apis/CreditsApi.d.ts +4 -4
- package/dist/esm/apis/CreditsApi.js +4 -4
- package/dist/esm/apis/MCPApi.d.ts +6 -6
- package/dist/esm/apis/MCPApi.js +15 -6
- package/dist/esm/apis/NoticesApi.d.ts +41 -0
- package/dist/esm/apis/NoticesApi.js +99 -0
- package/dist/esm/apis/OrganizationsApi.d.ts +17 -4
- package/dist/esm/apis/OrganizationsApi.js +41 -4
- package/dist/esm/apis/SubscriptionsApi.d.ts +32 -4
- package/dist/esm/apis/SubscriptionsApi.js +83 -6
- package/dist/esm/apis/WidgetsApi.d.ts +19 -35
- package/dist/esm/apis/WidgetsApi.js +33 -33
- package/dist/esm/apis/WorkflowsApi.d.ts +2 -2
- package/dist/esm/apis/WorkflowsApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.d.ts +18 -0
- package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.js +6 -0
- package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPostRequest.d.ts +6 -0
- package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPostRequest.js +2 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +41 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +43 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +44 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +57 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +50 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +68 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +53 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.d.ts +8 -8
- package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.js +4 -4
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +59 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +48 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +62 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +42 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +51 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +42 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +43 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +47 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +32 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +41 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +41 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +1 -2
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +1 -2
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +59 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +48 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +43 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +45 -0
- package/dist/esm/models/ConfigureAutoReloadRequest.d.ts +6 -0
- package/dist/esm/models/ConfigureAutoReloadRequest.js +2 -0
- package/dist/esm/models/CreateMessageRequest.d.ts +13 -0
- package/dist/esm/models/CreateMessageRequest.js +2 -0
- package/dist/esm/models/GenerateCodeRequest.d.ts +42 -0
- package/dist/esm/models/GenerateCodeRequest.js +14 -0
- package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.js +43 -0
- package/dist/esm/models/GetWidgetPublishHistory200ResponseDataInner.d.ts +13 -1
- package/dist/esm/models/GetWidgetPublishHistory200ResponseDataInner.js +4 -0
- package/dist/esm/models/ListAccountNotices200Response.d.ts +39 -0
- package/dist/esm/models/ListAccountNotices200Response.js +44 -0
- package/dist/esm/models/ListAccountNotices200ResponseData.d.ts +33 -0
- package/dist/esm/models/ListAccountNotices200ResponseData.js +42 -0
- package/dist/esm/models/ListAccountNotices200ResponseDataNoticesInner.d.ts +68 -0
- package/dist/esm/models/ListAccountNotices200ResponseDataNoticesInner.js +53 -0
- package/dist/esm/models/LoginUser200Response.d.ts +38 -0
- package/dist/esm/models/LoginUser200Response.js +43 -0
- package/dist/esm/models/MoveSubscriptionSurfaceRequest.d.ts +58 -0
- package/dist/esm/models/MoveSubscriptionSurfaceRequest.js +56 -0
- package/dist/esm/models/OrganizationsOrgIdBillingMembersUpdatePostRequest.d.ts +1 -1
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyMembersAddPostRequest.d.ts +1 -1
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyMembersRemovePostRequest.d.ts +1 -1
- package/dist/esm/models/PreviewWidgetVersion200Response.d.ts +39 -0
- package/dist/esm/models/PreviewWidgetVersion200Response.js +48 -0
- package/dist/esm/models/PreviewWidgetVersion200ResponseData.d.ts +56 -0
- package/dist/esm/models/PreviewWidgetVersion200ResponseData.js +57 -0
- package/dist/esm/models/ProcessRefund200Response.d.ts +6 -0
- package/dist/esm/models/ProcessRefund200Response.js +2 -0
- package/dist/esm/models/RefundRequest.d.ts +10 -4
- package/dist/esm/models/RefundRequest.js +4 -4
- package/dist/esm/models/RollbackComponent200Response.d.ts +38 -0
- package/dist/esm/models/RollbackComponent200Response.js +43 -0
- package/dist/esm/models/SignupUserRequest.d.ts +6 -0
- package/dist/esm/models/SignupUserRequest.js +2 -0
- package/dist/esm/models/UpdateSubscription.d.ts +30 -8
- package/dist/esm/models/UpdateSubscription.js +21 -8
- package/dist/esm/models/UploadWidgetThumbnail200Response.d.ts +39 -0
- package/dist/esm/models/UploadWidgetThumbnail200Response.js +44 -0
- package/dist/esm/models/UploadWidgetThumbnail200ResponseData.d.ts +32 -0
- package/dist/esm/models/UploadWidgetThumbnail200ResponseData.js +41 -0
- package/dist/esm/models/UploadWidgetThumbnailRequest.d.ts +32 -0
- package/dist/esm/models/UploadWidgetThumbnailRequest.js +43 -0
- package/dist/esm/models/ValidateInviteCode200Response.d.ts +39 -0
- package/dist/esm/models/ValidateInviteCode200Response.js +44 -0
- package/dist/esm/models/ValidateInviteCode200ResponseData.d.ts +44 -0
- package/dist/esm/models/ValidateInviteCode200ResponseData.js +45 -0
- package/dist/esm/models/index.d.ts +28 -1
- package/dist/esm/models/index.js +28 -1
- package/dist/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.d.ts +18 -0
- package/dist/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.js +6 -0
- package/dist/models/AgentWidgetBuilderPublishWidgetIdPostRequest.d.ts +6 -0
- package/dist/models/AgentWidgetBuilderPublishWidgetIdPostRequest.js +2 -0
- package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
- package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +48 -0
- package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
- package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +50 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +39 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +51 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +57 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +57 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +68 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +60 -0
- package/dist/models/ApiV1AdminBillingRefundsPostRequest.d.ts +8 -8
- package/dist/models/ApiV1AdminBillingRefundsPostRequest.js +4 -4
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +67 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +55 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +70 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +49 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +49 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +50 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +32 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +48 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +32 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +48 -0
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +1 -2
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +1 -2
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +67 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +55 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +50 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +52 -0
- package/dist/models/ConfigureAutoReloadRequest.d.ts +6 -0
- package/dist/models/ConfigureAutoReloadRequest.js +2 -0
- package/dist/models/CreateMessageRequest.d.ts +13 -0
- package/dist/models/CreateMessageRequest.js +2 -0
- package/dist/models/GenerateCodeRequest.d.ts +42 -0
- package/dist/models/GenerateCodeRequest.js +14 -0
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +50 -0
- package/dist/models/GetWidgetPublishHistory200ResponseDataInner.d.ts +13 -1
- package/dist/models/GetWidgetPublishHistory200ResponseDataInner.js +4 -0
- package/dist/models/ListAccountNotices200Response.d.ts +39 -0
- package/dist/models/ListAccountNotices200Response.js +51 -0
- package/dist/models/ListAccountNotices200ResponseData.d.ts +33 -0
- package/dist/models/ListAccountNotices200ResponseData.js +49 -0
- package/dist/models/ListAccountNotices200ResponseDataNoticesInner.d.ts +68 -0
- package/dist/models/ListAccountNotices200ResponseDataNoticesInner.js +60 -0
- package/dist/models/LoginUser200Response.d.ts +38 -0
- package/dist/models/LoginUser200Response.js +50 -0
- package/dist/models/MoveSubscriptionSurfaceRequest.d.ts +58 -0
- package/dist/models/MoveSubscriptionSurfaceRequest.js +64 -0
- package/dist/models/OrganizationsOrgIdBillingMembersUpdatePostRequest.d.ts +1 -1
- package/dist/models/OrganizationsOrgIdBillingYearlyMembersAddPostRequest.d.ts +1 -1
- package/dist/models/OrganizationsOrgIdBillingYearlyMembersRemovePostRequest.d.ts +1 -1
- package/dist/models/PreviewWidgetVersion200Response.d.ts +39 -0
- package/dist/models/PreviewWidgetVersion200Response.js +55 -0
- package/dist/models/PreviewWidgetVersion200ResponseData.d.ts +56 -0
- package/dist/models/PreviewWidgetVersion200ResponseData.js +64 -0
- package/dist/models/ProcessRefund200Response.d.ts +6 -0
- package/dist/models/ProcessRefund200Response.js +2 -0
- package/dist/models/RefundRequest.d.ts +10 -4
- package/dist/models/RefundRequest.js +4 -4
- package/dist/models/RollbackComponent200Response.d.ts +38 -0
- package/dist/models/RollbackComponent200Response.js +50 -0
- package/dist/models/SignupUserRequest.d.ts +6 -0
- package/dist/models/SignupUserRequest.js +2 -0
- package/dist/models/UpdateSubscription.d.ts +30 -8
- package/dist/models/UpdateSubscription.js +22 -9
- package/dist/models/UploadWidgetThumbnail200Response.d.ts +39 -0
- package/dist/models/UploadWidgetThumbnail200Response.js +51 -0
- package/dist/models/UploadWidgetThumbnail200ResponseData.d.ts +32 -0
- package/dist/models/UploadWidgetThumbnail200ResponseData.js +48 -0
- package/dist/models/UploadWidgetThumbnailRequest.d.ts +32 -0
- package/dist/models/UploadWidgetThumbnailRequest.js +50 -0
- package/dist/models/ValidateInviteCode200Response.d.ts +39 -0
- package/dist/models/ValidateInviteCode200Response.js +51 -0
- package/dist/models/ValidateInviteCode200ResponseData.d.ts +44 -0
- package/dist/models/ValidateInviteCode200ResponseData.js +52 -0
- package/dist/models/index.d.ts +28 -1
- package/dist/models/index.js +28 -1
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApiV1AdminBillingRefundsPreviewPostRequestSubjectTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfApiV1AdminBillingRefundsPreviewPostRequest = instanceOfApiV1AdminBillingRefundsPreviewPostRequest;
|
|
18
|
+
exports.ApiV1AdminBillingRefundsPreviewPostRequestFromJSON = ApiV1AdminBillingRefundsPreviewPostRequestFromJSON;
|
|
19
|
+
exports.ApiV1AdminBillingRefundsPreviewPostRequestFromJSONTyped = ApiV1AdminBillingRefundsPreviewPostRequestFromJSONTyped;
|
|
20
|
+
exports.ApiV1AdminBillingRefundsPreviewPostRequestToJSON = ApiV1AdminBillingRefundsPreviewPostRequestToJSON;
|
|
21
|
+
exports.ApiV1AdminBillingRefundsPreviewPostRequestToJSONTyped = ApiV1AdminBillingRefundsPreviewPostRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ApiV1AdminBillingRefundsPreviewPostRequestSubjectTypeEnum = {
|
|
26
|
+
User: 'user',
|
|
27
|
+
Organization: 'organization'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ApiV1AdminBillingRefundsPreviewPostRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfApiV1AdminBillingRefundsPreviewPostRequest(value) {
|
|
33
|
+
if (!('subjectType' in value) || value['subjectType'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('subjectId' in value) || value['subjectId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ApiV1AdminBillingRefundsPreviewPostRequestFromJSON(json) {
|
|
40
|
+
return ApiV1AdminBillingRefundsPreviewPostRequestFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ApiV1AdminBillingRefundsPreviewPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'subjectType': json['subjectType'],
|
|
48
|
+
'subjectId': json['subjectId'],
|
|
49
|
+
'paymentIntentId': json['paymentIntentId'] == null ? undefined : json['paymentIntentId'],
|
|
50
|
+
'stripeInvoiceId': json['stripeInvoiceId'] == null ? undefined : json['stripeInvoiceId'],
|
|
51
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
52
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ApiV1AdminBillingRefundsPreviewPostRequestToJSON(json) {
|
|
56
|
+
return ApiV1AdminBillingRefundsPreviewPostRequestToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ApiV1AdminBillingRefundsPreviewPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'subjectType': value['subjectType'],
|
|
64
|
+
'subjectId': value['subjectId'],
|
|
65
|
+
'paymentIntentId': value['paymentIntentId'],
|
|
66
|
+
'stripeInvoiceId': value['stripeInvoiceId'],
|
|
67
|
+
'subscriptionId': value['subscriptionId'],
|
|
68
|
+
'reason': value['reason'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData } from './ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1BillingUsersUserIdPaymentMethodsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1BillingUsersUserIdPaymentMethodsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData}
|
|
28
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsGet200Response
|
|
29
|
+
*/
|
|
30
|
+
data?: ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsGet200Response interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200Response(value: object): value is ApiV1BillingUsersUserIdPaymentMethodsGet200Response;
|
|
36
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsGet200Response;
|
|
37
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1BillingUsersUserIdPaymentMethodsGet200Response;
|
|
38
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseToJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsGet200Response;
|
|
39
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseToJSONTyped(value?: ApiV1BillingUsersUserIdPaymentMethodsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200Response = instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200Response;
|
|
17
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSON = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseToJSON = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseToJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseToJSONTyped;
|
|
21
|
+
const ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData_1 = require("./ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200Response(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSON(json) {
|
|
29
|
+
return ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
37
|
+
'data': json['data'] == null ? undefined : (0, ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData_1.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSON)(json['data']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseToJSON(json) {
|
|
41
|
+
return ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'success': value['success'],
|
|
49
|
+
'data': (0, ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData_1.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSON)(value['data']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner } from './ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner>}
|
|
22
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData
|
|
23
|
+
*/
|
|
24
|
+
paymentMethods?: Array<ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData(value: object): value is ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData;
|
|
30
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData;
|
|
31
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData;
|
|
32
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData;
|
|
33
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSONTyped(value?: ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData = instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData;
|
|
17
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSON = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSON;
|
|
18
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSONTyped;
|
|
19
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSON = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSON;
|
|
20
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSONTyped;
|
|
21
|
+
const ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner_1 = require("./ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSON(json) {
|
|
29
|
+
return ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'paymentMethods': json['paymentMethods'] == null ? undefined : (json['paymentMethods'].map(ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner_1.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSON(json) {
|
|
40
|
+
return ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'paymentMethods': value['paymentMethods'] == null ? undefined : (value['paymentMethods'].map(ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner_1.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner
|
|
28
|
+
*/
|
|
29
|
+
brand?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner
|
|
34
|
+
*/
|
|
35
|
+
last4?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner
|
|
40
|
+
*/
|
|
41
|
+
exp_month?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner
|
|
46
|
+
*/
|
|
47
|
+
exp_year?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner
|
|
52
|
+
*/
|
|
53
|
+
is_default?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner(value: object): value is ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner;
|
|
59
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner;
|
|
60
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner;
|
|
61
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner;
|
|
62
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSONTyped(value?: ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner = instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner;
|
|
17
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSON = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSON;
|
|
18
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSONTyped;
|
|
19
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSON = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSON;
|
|
20
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSON(json) {
|
|
28
|
+
return ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'brand': json['brand'] == null ? undefined : json['brand'],
|
|
37
|
+
'last4': json['last4'] == null ? undefined : json['last4'],
|
|
38
|
+
'exp_month': json['exp_month'] == null ? undefined : json['exp_month'],
|
|
39
|
+
'exp_year': json['exp_year'] == null ? undefined : json['exp_year'],
|
|
40
|
+
'is_default': json['is_default'] == null ? undefined : json['is_default'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSON(json) {
|
|
44
|
+
return ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'brand': value['brand'],
|
|
53
|
+
'last4': value['last4'],
|
|
54
|
+
'exp_month': value['exp_month'],
|
|
55
|
+
'exp_year': value['exp_year'],
|
|
56
|
+
'is_default': value['is_default'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData } from './ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1BillingUsersUserIdPaymentMethodsPost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1BillingUsersUserIdPaymentMethodsPost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsPost200Response
|
|
23
|
+
*/
|
|
24
|
+
success?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData}
|
|
28
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsPost200Response
|
|
29
|
+
*/
|
|
30
|
+
data?: ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsPost200Response interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfApiV1BillingUsersUserIdPaymentMethodsPost200Response(value: object): value is ApiV1BillingUsersUserIdPaymentMethodsPost200Response;
|
|
36
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsPost200Response;
|
|
37
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1BillingUsersUserIdPaymentMethodsPost200Response;
|
|
38
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseToJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsPost200Response;
|
|
39
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseToJSONTyped(value?: ApiV1BillingUsersUserIdPaymentMethodsPost200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1BillingUsersUserIdPaymentMethodsPost200Response = instanceOfApiV1BillingUsersUserIdPaymentMethodsPost200Response;
|
|
17
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSON = ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseToJSON = ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseToJSON;
|
|
20
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseToJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseToJSONTyped;
|
|
21
|
+
const ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData_1 = require("./ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsPost200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1BillingUsersUserIdPaymentMethodsPost200Response(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSON(json) {
|
|
29
|
+
return ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
37
|
+
'data': json['data'] == null ? undefined : (0, ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData_1.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSON)(json['data']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseToJSON(json) {
|
|
41
|
+
return ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'success': value['success'],
|
|
49
|
+
'data': (0, ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData_1.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSON)(value['data']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner } from './ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner}
|
|
22
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData
|
|
23
|
+
*/
|
|
24
|
+
paymentMethod?: ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData(value: object): value is ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData;
|
|
30
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData;
|
|
31
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData;
|
|
32
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData;
|
|
33
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSONTyped(value?: ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData = instanceOfApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData;
|
|
17
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSON = ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSON;
|
|
18
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSONTyped;
|
|
19
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSON = ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSON;
|
|
20
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSONTyped;
|
|
21
|
+
const ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner_1 = require("./ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSON(json) {
|
|
29
|
+
return ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'paymentMethod': json['paymentMethod'] == null ? undefined : (0, ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner_1.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerFromJSON)(json['paymentMethod']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSON(json) {
|
|
40
|
+
return ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'paymentMethod': (0, ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner_1.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInnerToJSON)(value['paymentMethod']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiV1BillingUsersUserIdPaymentMethodsPostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1BillingUsersUserIdPaymentMethodsPostRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Stripe payment method ID (pm_...)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1BillingUsersUserIdPaymentMethodsPostRequest
|
|
22
|
+
*/
|
|
23
|
+
paymentMethodId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsPostRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiV1BillingUsersUserIdPaymentMethodsPostRequest(value: object): value is ApiV1BillingUsersUserIdPaymentMethodsPostRequest;
|
|
29
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPostRequestFromJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsPostRequest;
|
|
30
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1BillingUsersUserIdPaymentMethodsPostRequest;
|
|
31
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSON(json: any): ApiV1BillingUsersUserIdPaymentMethodsPostRequest;
|
|
32
|
+
export declare function ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSONTyped(value?: ApiV1BillingUsersUserIdPaymentMethodsPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1BillingUsersUserIdPaymentMethodsPostRequest = instanceOfApiV1BillingUsersUserIdPaymentMethodsPostRequest;
|
|
17
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPostRequestFromJSON = ApiV1BillingUsersUserIdPaymentMethodsPostRequestFromJSON;
|
|
18
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPostRequestFromJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsPostRequestFromJSONTyped;
|
|
19
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSON = ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSON;
|
|
20
|
+
exports.ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSONTyped = ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1BillingUsersUserIdPaymentMethodsPostRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1BillingUsersUserIdPaymentMethodsPostRequest(value) {
|
|
25
|
+
if (!('paymentMethodId' in value) || value['paymentMethodId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPostRequestFromJSON(json) {
|
|
30
|
+
return ApiV1BillingUsersUserIdPaymentMethodsPostRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'paymentMethodId': json['paymentMethodId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSON(json) {
|
|
41
|
+
return ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'paymentMethodId': value['paymentMethodId'],
|
|
49
|
+
};
|
|
50
|
+
}
|