@widgetic/api-sdk 1.0.31 → 1.0.33
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/README.md +4 -0
- package/dist/apis/AdminApi.d.ts +30 -46
- package/dist/apis/AdminApi.js +53 -102
- package/dist/apis/AdminBillingApi.d.ts +2 -2
- package/dist/apis/AdminBillingApi.js +2 -2
- package/dist/apis/BillingApi.d.ts +44 -1
- package/dist/apis/BillingApi.js +127 -0
- package/dist/apis/CompositionsApi.d.ts +19 -15
- package/dist/apis/CompositionsApi.js +21 -14
- package/dist/apis/CreditsApi.d.ts +7 -7
- package/dist/apis/CreditsApi.js +5 -5
- package/dist/apis/OrganizationsApi.d.ts +35 -7
- package/dist/apis/OrganizationsApi.js +86 -6
- package/dist/apis/PartnerApi.d.ts +141 -36
- package/dist/apis/PartnerApi.js +333 -31
- package/dist/apis/PartnerCustomizationsApi.d.ts +4 -4
- package/dist/apis/PartnerCustomizationsApi.js +4 -4
- package/dist/apis/PartnersApi.d.ts +85 -67
- package/dist/apis/PartnersApi.js +198 -119
- package/dist/apis/PublicEmbedApi.d.ts +42 -3
- package/dist/apis/PublicEmbedApi.js +99 -2
- package/dist/apis/SubscriptionsApi.d.ts +2 -2
- package/dist/apis/SubscriptionsApi.js +2 -2
- package/dist/apis/UploadsApi.d.ts +4 -4
- package/dist/apis/UploadsApi.js +4 -4
- package/dist/apis/UsersApi.d.ts +4 -4
- package/dist/apis/UsersApi.js +4 -4
- package/dist/apis/index.d.ts +0 -4
- package/dist/apis/index.js +0 -4
- package/dist/esm/apis/AdminApi.d.ts +30 -46
- package/dist/esm/apis/AdminApi.js +54 -103
- package/dist/esm/apis/AdminBillingApi.d.ts +2 -2
- package/dist/esm/apis/AdminBillingApi.js +2 -2
- package/dist/esm/apis/BillingApi.d.ts +44 -1
- package/dist/esm/apis/BillingApi.js +128 -1
- package/dist/esm/apis/CompositionsApi.d.ts +19 -15
- package/dist/esm/apis/CompositionsApi.js +22 -15
- package/dist/esm/apis/CreditsApi.d.ts +7 -7
- package/dist/esm/apis/CreditsApi.js +6 -6
- package/dist/esm/apis/OrganizationsApi.d.ts +35 -7
- package/dist/esm/apis/OrganizationsApi.js +87 -7
- package/dist/esm/apis/PartnerApi.d.ts +141 -36
- package/dist/esm/apis/PartnerApi.js +334 -32
- package/dist/esm/apis/PartnerCustomizationsApi.d.ts +4 -4
- package/dist/esm/apis/PartnerCustomizationsApi.js +4 -4
- package/dist/esm/apis/PartnersApi.d.ts +85 -67
- package/dist/esm/apis/PartnersApi.js +198 -119
- package/dist/esm/apis/PublicEmbedApi.d.ts +42 -3
- package/dist/esm/apis/PublicEmbedApi.js +100 -3
- package/dist/esm/apis/SubscriptionsApi.d.ts +2 -2
- package/dist/esm/apis/SubscriptionsApi.js +2 -2
- package/dist/esm/apis/UploadsApi.d.ts +4 -4
- package/dist/esm/apis/UploadsApi.js +4 -4
- package/dist/esm/apis/UsersApi.d.ts +4 -4
- package/dist/esm/apis/UsersApi.js +4 -4
- package/dist/esm/apis/index.d.ts +0 -4
- package/dist/esm/apis/index.js +0 -4
- package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
- package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.js +43 -0
- package/dist/esm/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
- package/dist/esm/models/BillingUsersUserIdStorageGet200Response.js +44 -0
- package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.js +42 -0
- package/dist/esm/models/Composition.d.ts +12 -0
- package/dist/esm/models/Composition.js +2 -0
- package/dist/esm/models/CompositionDataSource.d.ts +41 -0
- package/dist/esm/models/CompositionDataSource.js +47 -0
- package/dist/esm/models/CompositionEntriesReading.d.ts +20 -4
- package/dist/esm/models/CompositionEntriesReading.js +3 -0
- package/dist/esm/models/CompositionEntryAggregateTally.d.ts +15 -8
- package/dist/esm/models/CompositionEntryAggregatesBlock.d.ts +10 -0
- package/dist/esm/models/CompositionEntryItem.d.ts +4 -1
- package/dist/esm/models/CompositionEntryItemsMeta.d.ts +8 -0
- package/dist/esm/models/ConvertSoloToTeams200Response.d.ts +39 -0
- package/dist/esm/models/ConvertSoloToTeams200Response.js +44 -0
- package/dist/esm/models/CreatePartnerRequest.d.ts +7 -0
- package/dist/esm/models/CreatePartnerRequest.js +2 -0
- package/dist/esm/models/DeleteCompositionDataSource200Response.d.ts +32 -0
- package/dist/esm/models/DeleteCompositionDataSource200Response.js +43 -0
- package/dist/esm/models/GetCompositionContentSchema200Response.d.ts +2 -2
- package/dist/esm/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
- package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
- package/dist/esm/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
- package/dist/esm/models/GetPartnerCreditTransactions200Response.js +44 -0
- package/dist/esm/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
- package/dist/esm/models/GetPublicCompositionEmbed200Response.js +67 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -0
- package/dist/esm/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
- package/dist/esm/models/GetPublicCompositionEmbed403Response.js +48 -0
- package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
- package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.js +50 -0
- package/dist/esm/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
- package/dist/esm/models/GetPublicCompositionEmbed404Response.js +51 -0
- package/dist/esm/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
- package/dist/esm/models/GetPublicCompositionEmbed429Response.js +43 -0
- package/dist/esm/models/IssuePartnerInvoiceRequest.d.ts +14 -1
- package/dist/esm/models/IssuePartnerInvoiceRequest.js +2 -0
- package/dist/esm/models/IssuedPartnerInvoice.d.ts +6 -0
- package/dist/esm/models/IssuedPartnerInvoice.js +4 -0
- package/dist/esm/models/ManagedUserEntryItem.d.ts +4 -1
- package/dist/esm/models/MyPartner.d.ts +7 -0
- package/dist/esm/models/MyPartner.js +4 -0
- package/dist/esm/models/MyPartners.d.ts +9 -1
- package/dist/esm/models/MyPartners.js +6 -1
- package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
- package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.js +9 -0
- package/dist/esm/models/Partner.d.ts +7 -0
- package/dist/esm/models/Partner.js +2 -0
- package/dist/esm/models/PartnerActivation.d.ts +1 -1
- package/dist/esm/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
- package/dist/esm/models/PartnerBillingOverviewOperationalCredits.js +0 -4
- package/dist/esm/models/PartnerBillingProfile.d.ts +1 -1
- package/dist/esm/models/PartnerContract.d.ts +15 -3
- package/dist/esm/models/PartnerContract.js +6 -2
- package/dist/esm/models/PartnerCustomization.d.ts +15 -3
- package/dist/esm/models/PartnerCustomization.js +6 -2
- package/dist/esm/models/PartnerDetails.d.ts +7 -0
- package/dist/esm/models/PartnerDetails.js +2 -0
- package/dist/esm/models/PartnerEntryContextSecret.d.ts +39 -0
- package/dist/esm/models/PartnerEntryContextSecret.js +48 -0
- package/dist/esm/models/PartnerEntryContextSigning.d.ts +62 -0
- package/dist/esm/models/PartnerEntryContextSigning.js +63 -0
- package/dist/esm/models/PartnerExtraCreditsInvoice.d.ts +98 -0
- package/dist/esm/models/PartnerExtraCreditsInvoice.js +87 -0
- package/dist/esm/models/PartnerInvoiceSchedule.d.ts +66 -0
- package/dist/esm/models/PartnerInvoiceSchedule.js +67 -0
- package/dist/esm/models/PartnerInvoiceScheduleContract.d.ts +68 -0
- package/dist/esm/models/PartnerInvoiceScheduleContract.js +67 -0
- package/dist/esm/models/PartnerInvoiceScheduleNext.d.ts +94 -0
- package/dist/esm/models/PartnerInvoiceScheduleNext.js +91 -0
- package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
- package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.js +47 -0
- package/dist/esm/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
- package/dist/esm/models/PartnerInvoiceScheduleOverdue.js +47 -0
- package/dist/esm/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
- package/dist/esm/models/PartnerInvoiceSchedulePeriod.js +91 -0
- package/dist/esm/models/PartnerNotification.d.ts +1 -1
- package/dist/esm/models/PartnerNotificationEventType.d.ts +2 -0
- package/dist/esm/models/PartnerNotificationEventType.js +2 -0
- package/dist/esm/models/PartnerNotificationTestEventRequest.d.ts +33 -0
- package/dist/esm/models/PartnerNotificationTestEventRequest.js +44 -0
- package/dist/esm/models/PartnerNotificationTestEventResult.d.ts +50 -0
- package/dist/esm/models/PartnerNotificationTestEventResult.js +53 -0
- package/dist/esm/models/PartnerUpdateResult.d.ts +8 -16
- package/dist/esm/models/PartnerUpdateResult.js +2 -5
- package/dist/esm/models/PartnerWithWarnings.d.ts +7 -0
- package/dist/esm/models/PartnerWithWarnings.js +2 -0
- package/dist/esm/models/PersonalExtraStorage.d.ts +92 -0
- package/dist/esm/models/PersonalExtraStorage.js +83 -0
- package/dist/esm/models/PersonalExtraStorageBlock.d.ts +56 -0
- package/dist/esm/models/PersonalExtraStorageBlock.js +57 -0
- package/dist/esm/models/PersonalStorage.d.ts +80 -0
- package/dist/esm/models/PersonalStorage.js +73 -0
- package/dist/esm/models/PersonalStoragePack.d.ts +100 -0
- package/dist/esm/models/PersonalStoragePack.js +84 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.js +44 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.js +51 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.js +41 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.js +43 -0
- package/dist/esm/models/PublicCompositionEntryRequest.d.ts +1 -1
- package/dist/esm/models/RequestExtraCredits.d.ts +33 -0
- package/dist/esm/models/RequestExtraCredits.js +43 -0
- package/dist/esm/models/StorageChange.d.ts +4 -3
- package/dist/esm/models/SurfaceConversionResult.d.ts +85 -0
- package/dist/esm/models/SurfaceConversionResult.js +76 -0
- package/dist/esm/models/SurfaceConversionResultSubscription.d.ts +82 -0
- package/dist/esm/models/SurfaceConversionResultSubscription.js +62 -0
- package/dist/esm/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
- package/dist/esm/models/UpdatePartnerCustomizationRequest.js +2 -2
- package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
- package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
- package/dist/esm/models/UpdatePartnerRequest.d.ts +7 -24
- package/dist/esm/models/UpdatePartnerRequest.js +2 -8
- package/dist/esm/models/index.d.ts +37 -86
- package/dist/esm/models/index.js +37 -86
- package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
- package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.js +50 -0
- package/dist/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
- package/dist/models/BillingUsersUserIdStorageGet200Response.js +51 -0
- package/dist/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
- package/dist/models/BillingUsersUserIdStorageGet200ResponseData.js +49 -0
- package/dist/models/Composition.d.ts +12 -0
- package/dist/models/Composition.js +2 -0
- package/dist/models/CompositionDataSource.d.ts +41 -0
- package/dist/models/CompositionDataSource.js +54 -0
- package/dist/models/CompositionEntriesReading.d.ts +20 -4
- package/dist/models/CompositionEntriesReading.js +3 -0
- package/dist/models/CompositionEntryAggregateTally.d.ts +15 -8
- package/dist/models/CompositionEntryAggregatesBlock.d.ts +10 -0
- package/dist/models/CompositionEntryItem.d.ts +4 -1
- package/dist/models/CompositionEntryItemsMeta.d.ts +8 -0
- package/dist/models/ConvertSoloToTeams200Response.d.ts +39 -0
- package/dist/models/ConvertSoloToTeams200Response.js +51 -0
- package/dist/models/CreatePartnerRequest.d.ts +7 -0
- package/dist/models/CreatePartnerRequest.js +2 -0
- package/dist/models/DeleteCompositionDataSource200Response.d.ts +32 -0
- package/dist/models/DeleteCompositionDataSource200Response.js +50 -0
- package/dist/models/GetCompositionContentSchema200Response.d.ts +2 -2
- package/dist/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
- package/dist/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
- package/dist/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
- package/dist/models/GetPartnerCreditTransactions200Response.js +51 -0
- package/dist/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
- package/dist/models/GetPublicCompositionEmbed200Response.js +74 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.js +50 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDirect.js +52 -0
- package/dist/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
- package/dist/models/GetPublicCompositionEmbed403Response.js +55 -0
- package/dist/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
- package/dist/models/GetPublicCompositionEmbed403ResponseDetails.js +58 -0
- package/dist/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
- package/dist/models/GetPublicCompositionEmbed404Response.js +59 -0
- package/dist/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
- package/dist/models/GetPublicCompositionEmbed429Response.js +50 -0
- package/dist/models/IssuePartnerInvoiceRequest.d.ts +14 -1
- package/dist/models/IssuePartnerInvoiceRequest.js +2 -0
- package/dist/models/IssuedPartnerInvoice.d.ts +6 -0
- package/dist/models/IssuedPartnerInvoice.js +4 -0
- package/dist/models/ManagedUserEntryItem.d.ts +4 -1
- package/dist/models/MyPartner.d.ts +7 -0
- package/dist/models/MyPartner.js +4 -0
- package/dist/models/MyPartners.d.ts +9 -1
- package/dist/models/MyPartners.js +6 -1
- package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
- package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.js +10 -0
- package/dist/models/Partner.d.ts +7 -0
- package/dist/models/Partner.js +2 -0
- package/dist/models/PartnerActivation.d.ts +1 -1
- package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
- package/dist/models/PartnerBillingOverviewOperationalCredits.js +0 -4
- package/dist/models/PartnerBillingProfile.d.ts +1 -1
- package/dist/models/PartnerContract.d.ts +15 -3
- package/dist/models/PartnerContract.js +6 -2
- package/dist/models/PartnerCustomization.d.ts +15 -3
- package/dist/models/PartnerCustomization.js +6 -2
- package/dist/models/PartnerDetails.d.ts +7 -0
- package/dist/models/PartnerDetails.js +2 -0
- package/dist/models/PartnerEntryContextSecret.d.ts +39 -0
- package/dist/models/PartnerEntryContextSecret.js +55 -0
- package/dist/models/PartnerEntryContextSigning.d.ts +62 -0
- package/dist/models/PartnerEntryContextSigning.js +70 -0
- package/dist/models/PartnerExtraCreditsInvoice.d.ts +98 -0
- package/dist/models/PartnerExtraCreditsInvoice.js +94 -0
- package/dist/models/PartnerInvoiceSchedule.d.ts +66 -0
- package/dist/models/PartnerInvoiceSchedule.js +74 -0
- package/dist/models/PartnerInvoiceScheduleContract.d.ts +68 -0
- package/dist/models/PartnerInvoiceScheduleContract.js +74 -0
- package/dist/models/PartnerInvoiceScheduleNext.d.ts +94 -0
- package/dist/models/PartnerInvoiceScheduleNext.js +99 -0
- package/dist/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
- package/dist/models/PartnerInvoiceScheduleNextPeriod.js +54 -0
- package/dist/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
- package/dist/models/PartnerInvoiceScheduleOverdue.js +54 -0
- package/dist/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
- package/dist/models/PartnerInvoiceSchedulePeriod.js +99 -0
- package/dist/models/PartnerNotification.d.ts +1 -1
- package/dist/models/PartnerNotificationEventType.d.ts +2 -0
- package/dist/models/PartnerNotificationEventType.js +2 -0
- package/dist/models/PartnerNotificationTestEventRequest.d.ts +33 -0
- package/dist/models/PartnerNotificationTestEventRequest.js +51 -0
- package/dist/models/PartnerNotificationTestEventResult.d.ts +50 -0
- package/dist/models/PartnerNotificationTestEventResult.js +60 -0
- package/dist/models/PartnerUpdateResult.d.ts +8 -16
- package/dist/models/PartnerUpdateResult.js +2 -5
- package/dist/models/PartnerWithWarnings.d.ts +7 -0
- package/dist/models/PartnerWithWarnings.js +2 -0
- package/dist/models/PersonalExtraStorage.d.ts +92 -0
- package/dist/models/PersonalExtraStorage.js +91 -0
- package/dist/models/PersonalExtraStorageBlock.d.ts +56 -0
- package/dist/models/PersonalExtraStorageBlock.js +65 -0
- package/dist/models/PersonalStorage.d.ts +80 -0
- package/dist/models/PersonalStorage.js +80 -0
- package/dist/models/PersonalStoragePack.d.ts +100 -0
- package/dist/models/PersonalStoragePack.js +92 -0
- package/dist/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
- package/dist/models/PostPublicCompositionEmbedStatus200Response.js +51 -0
- package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
- package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.js +59 -0
- package/dist/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
- package/dist/models/PostPublicCompositionEmbedStatus429Response.js +48 -0
- package/dist/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
- package/dist/models/PostPublicCompositionEmbedStatusRequest.js +50 -0
- package/dist/models/PublicCompositionEntryRequest.d.ts +1 -1
- package/dist/models/RequestExtraCredits.d.ts +33 -0
- package/dist/models/RequestExtraCredits.js +50 -0
- package/dist/models/StorageChange.d.ts +4 -3
- package/dist/models/SurfaceConversionResult.d.ts +85 -0
- package/dist/models/SurfaceConversionResult.js +84 -0
- package/dist/models/SurfaceConversionResultSubscription.d.ts +82 -0
- package/dist/models/SurfaceConversionResultSubscription.js +70 -0
- package/dist/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
- package/dist/models/UpdatePartnerCustomizationRequest.js +2 -2
- package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
- package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
- package/dist/models/UpdatePartnerRequest.d.ts +7 -24
- package/dist/models/UpdatePartnerRequest.js +2 -8
- package/dist/models/index.d.ts +37 -86
- package/dist/models/index.js +37 -86
- package/package.json +3 -2
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfPartnerInvoiceSchedule = instanceOfPartnerInvoiceSchedule;
|
|
17
|
+
exports.PartnerInvoiceScheduleFromJSON = PartnerInvoiceScheduleFromJSON;
|
|
18
|
+
exports.PartnerInvoiceScheduleFromJSONTyped = PartnerInvoiceScheduleFromJSONTyped;
|
|
19
|
+
exports.PartnerInvoiceScheduleToJSON = PartnerInvoiceScheduleToJSON;
|
|
20
|
+
exports.PartnerInvoiceScheduleToJSONTyped = PartnerInvoiceScheduleToJSONTyped;
|
|
21
|
+
const PartnerInvoiceScheduleContract_1 = require("./PartnerInvoiceScheduleContract");
|
|
22
|
+
const PartnerInvoiceScheduleNext_1 = require("./PartnerInvoiceScheduleNext");
|
|
23
|
+
const PartnerInvoiceScheduleOverdue_1 = require("./PartnerInvoiceScheduleOverdue");
|
|
24
|
+
const PartnerInvoiceSchedulePeriod_1 = require("./PartnerInvoiceSchedulePeriod");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PartnerInvoiceSchedule interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfPartnerInvoiceSchedule(value) {
|
|
29
|
+
if (!('partnerId' in value) || value['partnerId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('today' in value) || value['today'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('contract' in value) || value['contract'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('next' in value) || value['next'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('periods' in value) || value['periods'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('overdue' in value) || value['overdue'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function PartnerInvoiceScheduleFromJSON(json) {
|
|
44
|
+
return PartnerInvoiceScheduleFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PartnerInvoiceScheduleFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'partnerId': json['partnerId'],
|
|
52
|
+
'today': (new Date(json['today'])),
|
|
53
|
+
'contract': (0, PartnerInvoiceScheduleContract_1.PartnerInvoiceScheduleContractFromJSON)(json['contract']),
|
|
54
|
+
'next': (0, PartnerInvoiceScheduleNext_1.PartnerInvoiceScheduleNextFromJSON)(json['next']),
|
|
55
|
+
'periods': (json['periods'].map(PartnerInvoiceSchedulePeriod_1.PartnerInvoiceSchedulePeriodFromJSON)),
|
|
56
|
+
'overdue': (0, PartnerInvoiceScheduleOverdue_1.PartnerInvoiceScheduleOverdueFromJSON)(json['overdue']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function PartnerInvoiceScheduleToJSON(json) {
|
|
60
|
+
return PartnerInvoiceScheduleToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function PartnerInvoiceScheduleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'partnerId': value['partnerId'],
|
|
68
|
+
'today': ((value['today']).toISOString().substring(0, 10)),
|
|
69
|
+
'contract': (0, PartnerInvoiceScheduleContract_1.PartnerInvoiceScheduleContractToJSON)(value['contract']),
|
|
70
|
+
'next': (0, PartnerInvoiceScheduleNext_1.PartnerInvoiceScheduleNextToJSON)(value['next']),
|
|
71
|
+
'periods': (value['periods'].map(PartnerInvoiceSchedulePeriod_1.PartnerInvoiceSchedulePeriodToJSON)),
|
|
72
|
+
'overdue': (0, PartnerInvoiceScheduleOverdue_1.PartnerInvoiceScheduleOverdueToJSON)(value['overdue']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* The contract the schedule runs on. Null when the partner has none.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PartnerInvoiceScheduleContract
|
|
16
|
+
*/
|
|
17
|
+
export interface PartnerInvoiceScheduleContract {
|
|
18
|
+
/**
|
|
19
|
+
* monthly, quarterly or annual
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PartnerInvoiceScheduleContract
|
|
22
|
+
*/
|
|
23
|
+
billingCycle: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof PartnerInvoiceScheduleContract
|
|
28
|
+
*/
|
|
29
|
+
contractStartDate: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof PartnerInvoiceScheduleContract
|
|
34
|
+
*/
|
|
35
|
+
contractEndDate: Date | null;
|
|
36
|
+
/**
|
|
37
|
+
* The credits the partner receives each billing period
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PartnerInvoiceScheduleContract
|
|
40
|
+
*/
|
|
41
|
+
creditsPerPeriod: number | null;
|
|
42
|
+
/**
|
|
43
|
+
* What one credit costs under the contract (its own price, or the list price when it names none)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PartnerInvoiceScheduleContract
|
|
46
|
+
*/
|
|
47
|
+
creditPriceUsd: number;
|
|
48
|
+
/**
|
|
49
|
+
* What one period costs before tax. Null when the contract names no credits.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PartnerInvoiceScheduleContract
|
|
52
|
+
*/
|
|
53
|
+
periodTotalUsd: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* How many days before a period starts its invoice goes out
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PartnerInvoiceScheduleContract
|
|
58
|
+
*/
|
|
59
|
+
invoiceLeadDays: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the PartnerInvoiceScheduleContract interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfPartnerInvoiceScheduleContract(value: object): value is PartnerInvoiceScheduleContract;
|
|
65
|
+
export declare function PartnerInvoiceScheduleContractFromJSON(json: any): PartnerInvoiceScheduleContract;
|
|
66
|
+
export declare function PartnerInvoiceScheduleContractFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerInvoiceScheduleContract;
|
|
67
|
+
export declare function PartnerInvoiceScheduleContractToJSON(json: any): PartnerInvoiceScheduleContract;
|
|
68
|
+
export declare function PartnerInvoiceScheduleContractToJSONTyped(value?: PartnerInvoiceScheduleContract | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfPartnerInvoiceScheduleContract = instanceOfPartnerInvoiceScheduleContract;
|
|
17
|
+
exports.PartnerInvoiceScheduleContractFromJSON = PartnerInvoiceScheduleContractFromJSON;
|
|
18
|
+
exports.PartnerInvoiceScheduleContractFromJSONTyped = PartnerInvoiceScheduleContractFromJSONTyped;
|
|
19
|
+
exports.PartnerInvoiceScheduleContractToJSON = PartnerInvoiceScheduleContractToJSON;
|
|
20
|
+
exports.PartnerInvoiceScheduleContractToJSONTyped = PartnerInvoiceScheduleContractToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PartnerInvoiceScheduleContract interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPartnerInvoiceScheduleContract(value) {
|
|
25
|
+
if (!('billingCycle' in value) || value['billingCycle'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('contractStartDate' in value) || value['contractStartDate'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('contractEndDate' in value) || value['contractEndDate'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('creditsPerPeriod' in value) || value['creditsPerPeriod'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('creditPriceUsd' in value) || value['creditPriceUsd'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('periodTotalUsd' in value) || value['periodTotalUsd'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('invoiceLeadDays' in value) || value['invoiceLeadDays'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function PartnerInvoiceScheduleContractFromJSON(json) {
|
|
42
|
+
return PartnerInvoiceScheduleContractFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PartnerInvoiceScheduleContractFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'billingCycle': json['billingCycle'],
|
|
50
|
+
'contractStartDate': (json['contractStartDate'] == null ? null : new Date(json['contractStartDate'])),
|
|
51
|
+
'contractEndDate': (json['contractEndDate'] == null ? null : new Date(json['contractEndDate'])),
|
|
52
|
+
'creditsPerPeriod': json['creditsPerPeriod'],
|
|
53
|
+
'creditPriceUsd': json['creditPriceUsd'],
|
|
54
|
+
'periodTotalUsd': json['periodTotalUsd'],
|
|
55
|
+
'invoiceLeadDays': json['invoiceLeadDays'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function PartnerInvoiceScheduleContractToJSON(json) {
|
|
59
|
+
return PartnerInvoiceScheduleContractToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function PartnerInvoiceScheduleContractToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'billingCycle': value['billingCycle'],
|
|
67
|
+
'contractStartDate': (value['contractStartDate'] == null ? null : value['contractStartDate'].toISOString().substring(0, 10)),
|
|
68
|
+
'contractEndDate': (value['contractEndDate'] == null ? null : value['contractEndDate'].toISOString().substring(0, 10)),
|
|
69
|
+
'creditsPerPeriod': value['creditsPerPeriod'],
|
|
70
|
+
'creditPriceUsd': value['creditPriceUsd'],
|
|
71
|
+
'periodTotalUsd': value['periodTotalUsd'],
|
|
72
|
+
'invoiceLeadDays': value['invoiceLeadDays'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { PartnerInvoiceScheduleNextPeriod } from './PartnerInvoiceScheduleNextPeriod';
|
|
13
|
+
/**
|
|
14
|
+
* What the daily run does next with a partner's contract, and on which day.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PartnerInvoiceScheduleNext
|
|
17
|
+
*/
|
|
18
|
+
export interface PartnerInvoiceScheduleNext {
|
|
19
|
+
/**
|
|
20
|
+
* `waiting`: nothing is due, the invoice of `period` goes out on `invoiceOn`. `due`: the invoice of `period` is due and goes out at the next daily run (05:31 UTC). `retrying`: the period was claimed earlier, its invoice never went out, and the next run tries again. `finished`: the contract has no period left to invoice. `blocked`: an invoice is due or could be, and `reason` says why it will not go out. `not_scheduled`: the contract has no schedule at all, and `reason` says what it lacks.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PartnerInvoiceScheduleNext
|
|
23
|
+
*/
|
|
24
|
+
status: PartnerInvoiceScheduleNextStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Present for `blocked` and `not_scheduled`. `no_contract`: the partner has no contract. `no_credits`: the contract names no credits per period. `no_start_date`: it has no start date. `unreadable_terms`: a date or the billing cycle cannot be read. `partner_not_in_force`: the partner is paused or not activated. `no_administrator`: the partner has no account to put the credits on. `overdue_invoice`: the partner still owes a contract invoice past its due day, so no new one is issued until it is paid.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PartnerInvoiceScheduleNext
|
|
29
|
+
*/
|
|
30
|
+
reason: PartnerInvoiceScheduleNextReasonEnum | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PartnerInvoiceScheduleNextPeriod}
|
|
34
|
+
* @memberof PartnerInvoiceScheduleNext
|
|
35
|
+
*/
|
|
36
|
+
period: PartnerInvoiceScheduleNextPeriod | null;
|
|
37
|
+
/**
|
|
38
|
+
* The day the invoice goes out (UTC). The first invoice goes out on the contract's start date, the others 7 days before their period starts.
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof PartnerInvoiceScheduleNext
|
|
41
|
+
*/
|
|
42
|
+
invoiceOn: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* The credits the invoice is for
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof PartnerInvoiceScheduleNext
|
|
47
|
+
*/
|
|
48
|
+
credits: number | null;
|
|
49
|
+
/**
|
|
50
|
+
* What one credit costs under the contract (its own price, or the list price)
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PartnerInvoiceScheduleNext
|
|
53
|
+
*/
|
|
54
|
+
creditPriceUsd: number | null;
|
|
55
|
+
/**
|
|
56
|
+
* The invoice amount before tax
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof PartnerInvoiceScheduleNext
|
|
59
|
+
*/
|
|
60
|
+
amountUsd: number | null;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const PartnerInvoiceScheduleNextStatusEnum: {
|
|
66
|
+
readonly Waiting: "waiting";
|
|
67
|
+
readonly Due: "due";
|
|
68
|
+
readonly Retrying: "retrying";
|
|
69
|
+
readonly Finished: "finished";
|
|
70
|
+
readonly Blocked: "blocked";
|
|
71
|
+
readonly NotScheduled: "not_scheduled";
|
|
72
|
+
};
|
|
73
|
+
export type PartnerInvoiceScheduleNextStatusEnum = typeof PartnerInvoiceScheduleNextStatusEnum[keyof typeof PartnerInvoiceScheduleNextStatusEnum];
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const PartnerInvoiceScheduleNextReasonEnum: {
|
|
78
|
+
readonly NoCredits: "no_credits";
|
|
79
|
+
readonly NoStartDate: "no_start_date";
|
|
80
|
+
readonly UnreadableTerms: "unreadable_terms";
|
|
81
|
+
readonly PartnerNotInForce: "partner_not_in_force";
|
|
82
|
+
readonly NoAdministrator: "no_administrator";
|
|
83
|
+
readonly OverdueInvoice: "overdue_invoice";
|
|
84
|
+
readonly NoContract: "no_contract";
|
|
85
|
+
};
|
|
86
|
+
export type PartnerInvoiceScheduleNextReasonEnum = typeof PartnerInvoiceScheduleNextReasonEnum[keyof typeof PartnerInvoiceScheduleNextReasonEnum];
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the PartnerInvoiceScheduleNext interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfPartnerInvoiceScheduleNext(value: object): value is PartnerInvoiceScheduleNext;
|
|
91
|
+
export declare function PartnerInvoiceScheduleNextFromJSON(json: any): PartnerInvoiceScheduleNext;
|
|
92
|
+
export declare function PartnerInvoiceScheduleNextFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerInvoiceScheduleNext;
|
|
93
|
+
export declare function PartnerInvoiceScheduleNextToJSON(json: any): PartnerInvoiceScheduleNext;
|
|
94
|
+
export declare function PartnerInvoiceScheduleNextToJSONTyped(value?: PartnerInvoiceScheduleNext | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.PartnerInvoiceScheduleNextReasonEnum = exports.PartnerInvoiceScheduleNextStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfPartnerInvoiceScheduleNext = instanceOfPartnerInvoiceScheduleNext;
|
|
18
|
+
exports.PartnerInvoiceScheduleNextFromJSON = PartnerInvoiceScheduleNextFromJSON;
|
|
19
|
+
exports.PartnerInvoiceScheduleNextFromJSONTyped = PartnerInvoiceScheduleNextFromJSONTyped;
|
|
20
|
+
exports.PartnerInvoiceScheduleNextToJSON = PartnerInvoiceScheduleNextToJSON;
|
|
21
|
+
exports.PartnerInvoiceScheduleNextToJSONTyped = PartnerInvoiceScheduleNextToJSONTyped;
|
|
22
|
+
const PartnerInvoiceScheduleNextPeriod_1 = require("./PartnerInvoiceScheduleNextPeriod");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PartnerInvoiceScheduleNextStatusEnum = {
|
|
27
|
+
Waiting: 'waiting',
|
|
28
|
+
Due: 'due',
|
|
29
|
+
Retrying: 'retrying',
|
|
30
|
+
Finished: 'finished',
|
|
31
|
+
Blocked: 'blocked',
|
|
32
|
+
NotScheduled: 'not_scheduled'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.PartnerInvoiceScheduleNextReasonEnum = {
|
|
38
|
+
NoCredits: 'no_credits',
|
|
39
|
+
NoStartDate: 'no_start_date',
|
|
40
|
+
UnreadableTerms: 'unreadable_terms',
|
|
41
|
+
PartnerNotInForce: 'partner_not_in_force',
|
|
42
|
+
NoAdministrator: 'no_administrator',
|
|
43
|
+
OverdueInvoice: 'overdue_invoice',
|
|
44
|
+
NoContract: 'no_contract'
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the PartnerInvoiceScheduleNext interface.
|
|
48
|
+
*/
|
|
49
|
+
function instanceOfPartnerInvoiceScheduleNext(value) {
|
|
50
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('period' in value) || value['period'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('invoiceOn' in value) || value['invoiceOn'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('credits' in value) || value['credits'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('creditPriceUsd' in value) || value['creditPriceUsd'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('amountUsd' in value) || value['amountUsd'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
function PartnerInvoiceScheduleNextFromJSON(json) {
|
|
67
|
+
return PartnerInvoiceScheduleNextFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function PartnerInvoiceScheduleNextFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'status': json['status'],
|
|
75
|
+
'reason': json['reason'],
|
|
76
|
+
'period': (0, PartnerInvoiceScheduleNextPeriod_1.PartnerInvoiceScheduleNextPeriodFromJSON)(json['period']),
|
|
77
|
+
'invoiceOn': (json['invoiceOn'] == null ? null : new Date(json['invoiceOn'])),
|
|
78
|
+
'credits': json['credits'],
|
|
79
|
+
'creditPriceUsd': json['creditPriceUsd'],
|
|
80
|
+
'amountUsd': json['amountUsd'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function PartnerInvoiceScheduleNextToJSON(json) {
|
|
84
|
+
return PartnerInvoiceScheduleNextToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
function PartnerInvoiceScheduleNextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
'status': value['status'],
|
|
92
|
+
'reason': value['reason'],
|
|
93
|
+
'period': (0, PartnerInvoiceScheduleNextPeriod_1.PartnerInvoiceScheduleNextPeriodToJSON)(value['period']),
|
|
94
|
+
'invoiceOn': (value['invoiceOn'] == null ? null : value['invoiceOn'].toISOString().substring(0, 10)),
|
|
95
|
+
'credits': value['credits'],
|
|
96
|
+
'creditPriceUsd': value['creditPriceUsd'],
|
|
97
|
+
'amountUsd': value['amountUsd'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* The period the next invoice is for. Null when there is none.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PartnerInvoiceScheduleNextPeriod
|
|
16
|
+
*/
|
|
17
|
+
export interface PartnerInvoiceScheduleNextPeriod {
|
|
18
|
+
/**
|
|
19
|
+
* The first day of the period (UTC).
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof PartnerInvoiceScheduleNextPeriod
|
|
22
|
+
*/
|
|
23
|
+
start: Date;
|
|
24
|
+
/**
|
|
25
|
+
* The day after its last, when its credits expire (00:00 UTC).
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof PartnerInvoiceScheduleNextPeriod
|
|
28
|
+
*/
|
|
29
|
+
end: Date;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PartnerInvoiceScheduleNextPeriod interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPartnerInvoiceScheduleNextPeriod(value: object): value is PartnerInvoiceScheduleNextPeriod;
|
|
35
|
+
export declare function PartnerInvoiceScheduleNextPeriodFromJSON(json: any): PartnerInvoiceScheduleNextPeriod;
|
|
36
|
+
export declare function PartnerInvoiceScheduleNextPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerInvoiceScheduleNextPeriod;
|
|
37
|
+
export declare function PartnerInvoiceScheduleNextPeriodToJSON(json: any): PartnerInvoiceScheduleNextPeriod;
|
|
38
|
+
export declare function PartnerInvoiceScheduleNextPeriodToJSONTyped(value?: PartnerInvoiceScheduleNextPeriod | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfPartnerInvoiceScheduleNextPeriod = instanceOfPartnerInvoiceScheduleNextPeriod;
|
|
17
|
+
exports.PartnerInvoiceScheduleNextPeriodFromJSON = PartnerInvoiceScheduleNextPeriodFromJSON;
|
|
18
|
+
exports.PartnerInvoiceScheduleNextPeriodFromJSONTyped = PartnerInvoiceScheduleNextPeriodFromJSONTyped;
|
|
19
|
+
exports.PartnerInvoiceScheduleNextPeriodToJSON = PartnerInvoiceScheduleNextPeriodToJSON;
|
|
20
|
+
exports.PartnerInvoiceScheduleNextPeriodToJSONTyped = PartnerInvoiceScheduleNextPeriodToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PartnerInvoiceScheduleNextPeriod interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPartnerInvoiceScheduleNextPeriod(value) {
|
|
25
|
+
if (!('start' in value) || value['start'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('end' in value) || value['end'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PartnerInvoiceScheduleNextPeriodFromJSON(json) {
|
|
32
|
+
return PartnerInvoiceScheduleNextPeriodFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PartnerInvoiceScheduleNextPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'start': (new Date(json['start'])),
|
|
40
|
+
'end': (new Date(json['end'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PartnerInvoiceScheduleNextPeriodToJSON(json) {
|
|
44
|
+
return PartnerInvoiceScheduleNextPeriodToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PartnerInvoiceScheduleNextPeriodToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'start': ((value['start']).toISOString().substring(0, 10)),
|
|
52
|
+
'end': ((value['end']).toISOString().substring(0, 10)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* The contract invoices the partner owes past their due day. While there are any, the partner is stopped for non-payment (payment arrears) and no new invoice is issued.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PartnerInvoiceScheduleOverdue
|
|
16
|
+
*/
|
|
17
|
+
export interface PartnerInvoiceScheduleOverdue {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PartnerInvoiceScheduleOverdue
|
|
22
|
+
*/
|
|
23
|
+
invoices: number;
|
|
24
|
+
/**
|
|
25
|
+
* The earliest due date among them
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof PartnerInvoiceScheduleOverdue
|
|
28
|
+
*/
|
|
29
|
+
since: Date | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PartnerInvoiceScheduleOverdue interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPartnerInvoiceScheduleOverdue(value: object): value is PartnerInvoiceScheduleOverdue;
|
|
35
|
+
export declare function PartnerInvoiceScheduleOverdueFromJSON(json: any): PartnerInvoiceScheduleOverdue;
|
|
36
|
+
export declare function PartnerInvoiceScheduleOverdueFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerInvoiceScheduleOverdue;
|
|
37
|
+
export declare function PartnerInvoiceScheduleOverdueToJSON(json: any): PartnerInvoiceScheduleOverdue;
|
|
38
|
+
export declare function PartnerInvoiceScheduleOverdueToJSONTyped(value?: PartnerInvoiceScheduleOverdue | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfPartnerInvoiceScheduleOverdue = instanceOfPartnerInvoiceScheduleOverdue;
|
|
17
|
+
exports.PartnerInvoiceScheduleOverdueFromJSON = PartnerInvoiceScheduleOverdueFromJSON;
|
|
18
|
+
exports.PartnerInvoiceScheduleOverdueFromJSONTyped = PartnerInvoiceScheduleOverdueFromJSONTyped;
|
|
19
|
+
exports.PartnerInvoiceScheduleOverdueToJSON = PartnerInvoiceScheduleOverdueToJSON;
|
|
20
|
+
exports.PartnerInvoiceScheduleOverdueToJSONTyped = PartnerInvoiceScheduleOverdueToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PartnerInvoiceScheduleOverdue interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPartnerInvoiceScheduleOverdue(value) {
|
|
25
|
+
if (!('invoices' in value) || value['invoices'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('since' in value) || value['since'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PartnerInvoiceScheduleOverdueFromJSON(json) {
|
|
32
|
+
return PartnerInvoiceScheduleOverdueFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PartnerInvoiceScheduleOverdueFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'invoices': json['invoices'],
|
|
40
|
+
'since': (json['since'] == null ? null : new Date(json['since'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PartnerInvoiceScheduleOverdueToJSON(json) {
|
|
44
|
+
return PartnerInvoiceScheduleOverdueToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PartnerInvoiceScheduleOverdueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'invoices': value['invoices'],
|
|
52
|
+
'since': (value['since'] == null ? null : value['since'].toISOString()),
|
|
53
|
+
};
|
|
54
|
+
}
|