@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,87 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PartnerExtraCreditsInvoice interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPartnerExtraCreditsInvoice(value) {
|
|
18
|
+
if (!('invoiceId' in value) || value['invoiceId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('number' in value) || value['number'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('hostedInvoiceUrl' in value) || value['hostedInvoiceUrl'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('pdfUrl' in value) || value['pdfUrl'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('credits' in value) || value['credits'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('creditPriceUsd' in value) || value['creditPriceUsd'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('amountUsd' in value) || value['amountUsd'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('taxUsd' in value) || value['taxUsd'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('totalUsd' in value) || value['totalUsd'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('dueDate' in value) || value['dueDate'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('dueDays' in value) || value['dueDays'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function PartnerExtraCreditsInvoiceFromJSON(json) {
|
|
45
|
+
return PartnerExtraCreditsInvoiceFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function PartnerExtraCreditsInvoiceFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'invoiceId': json['invoiceId'],
|
|
53
|
+
'number': json['number'],
|
|
54
|
+
'hostedInvoiceUrl': json['hostedInvoiceUrl'],
|
|
55
|
+
'pdfUrl': json['pdfUrl'],
|
|
56
|
+
'credits': json['credits'],
|
|
57
|
+
'creditPriceUsd': json['creditPriceUsd'],
|
|
58
|
+
'amountUsd': json['amountUsd'],
|
|
59
|
+
'taxUsd': json['taxUsd'],
|
|
60
|
+
'totalUsd': json['totalUsd'],
|
|
61
|
+
'currency': json['currency'],
|
|
62
|
+
'dueDate': (json['dueDate'] == null ? null : new Date(json['dueDate'])),
|
|
63
|
+
'dueDays': json['dueDays'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function PartnerExtraCreditsInvoiceToJSON(json) {
|
|
67
|
+
return PartnerExtraCreditsInvoiceToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
export function PartnerExtraCreditsInvoiceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'invoiceId': value['invoiceId'],
|
|
75
|
+
'number': value['number'],
|
|
76
|
+
'hostedInvoiceUrl': value['hostedInvoiceUrl'],
|
|
77
|
+
'pdfUrl': value['pdfUrl'],
|
|
78
|
+
'credits': value['credits'],
|
|
79
|
+
'creditPriceUsd': value['creditPriceUsd'],
|
|
80
|
+
'amountUsd': value['amountUsd'],
|
|
81
|
+
'taxUsd': value['taxUsd'],
|
|
82
|
+
'totalUsd': value['totalUsd'],
|
|
83
|
+
'currency': value['currency'],
|
|
84
|
+
'dueDate': (value['dueDate'] == null ? null : value['dueDate'].toISOString()),
|
|
85
|
+
'dueDays': value['dueDays'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { PartnerInvoiceScheduleContract } from './PartnerInvoiceScheduleContract';
|
|
13
|
+
import type { PartnerInvoiceScheduleNext } from './PartnerInvoiceScheduleNext';
|
|
14
|
+
import type { PartnerInvoiceScheduleOverdue } from './PartnerInvoiceScheduleOverdue';
|
|
15
|
+
import type { PartnerInvoiceSchedulePeriod } from './PartnerInvoiceSchedulePeriod';
|
|
16
|
+
/**
|
|
17
|
+
* A partner's contract invoicing: the terms it runs on, what happens next and when, the periods on record, and what the partner owes past its due day.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PartnerInvoiceSchedule
|
|
20
|
+
*/
|
|
21
|
+
export interface PartnerInvoiceSchedule {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PartnerInvoiceSchedule
|
|
26
|
+
*/
|
|
27
|
+
partnerId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The UTC day this was worked out for
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof PartnerInvoiceSchedule
|
|
32
|
+
*/
|
|
33
|
+
today: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {PartnerInvoiceScheduleContract}
|
|
37
|
+
* @memberof PartnerInvoiceSchedule
|
|
38
|
+
*/
|
|
39
|
+
contract: PartnerInvoiceScheduleContract | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {PartnerInvoiceScheduleNext}
|
|
43
|
+
* @memberof PartnerInvoiceSchedule
|
|
44
|
+
*/
|
|
45
|
+
next: PartnerInvoiceScheduleNext;
|
|
46
|
+
/**
|
|
47
|
+
* The periods on record, latest first (at most 24)
|
|
48
|
+
* @type {Array<PartnerInvoiceSchedulePeriod>}
|
|
49
|
+
* @memberof PartnerInvoiceSchedule
|
|
50
|
+
*/
|
|
51
|
+
periods: Array<PartnerInvoiceSchedulePeriod>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {PartnerInvoiceScheduleOverdue}
|
|
55
|
+
* @memberof PartnerInvoiceSchedule
|
|
56
|
+
*/
|
|
57
|
+
overdue: PartnerInvoiceScheduleOverdue;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the PartnerInvoiceSchedule interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfPartnerInvoiceSchedule(value: object): value is PartnerInvoiceSchedule;
|
|
63
|
+
export declare function PartnerInvoiceScheduleFromJSON(json: any): PartnerInvoiceSchedule;
|
|
64
|
+
export declare function PartnerInvoiceScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerInvoiceSchedule;
|
|
65
|
+
export declare function PartnerInvoiceScheduleToJSON(json: any): PartnerInvoiceSchedule;
|
|
66
|
+
export declare function PartnerInvoiceScheduleToJSONTyped(value?: PartnerInvoiceSchedule | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { PartnerInvoiceScheduleContractFromJSON, PartnerInvoiceScheduleContractToJSON, } from './PartnerInvoiceScheduleContract.js';
|
|
15
|
+
import { PartnerInvoiceScheduleNextFromJSON, PartnerInvoiceScheduleNextToJSON, } from './PartnerInvoiceScheduleNext.js';
|
|
16
|
+
import { PartnerInvoiceScheduleOverdueFromJSON, PartnerInvoiceScheduleOverdueToJSON, } from './PartnerInvoiceScheduleOverdue.js';
|
|
17
|
+
import { PartnerInvoiceSchedulePeriodFromJSON, PartnerInvoiceSchedulePeriodToJSON, } from './PartnerInvoiceSchedulePeriod.js';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PartnerInvoiceSchedule interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfPartnerInvoiceSchedule(value) {
|
|
22
|
+
if (!('partnerId' in value) || value['partnerId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('today' in value) || value['today'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('contract' in value) || value['contract'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('next' in value) || value['next'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('periods' in value) || value['periods'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('overdue' in value) || value['overdue'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function PartnerInvoiceScheduleFromJSON(json) {
|
|
37
|
+
return PartnerInvoiceScheduleFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PartnerInvoiceScheduleFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'partnerId': json['partnerId'],
|
|
45
|
+
'today': (new Date(json['today'])),
|
|
46
|
+
'contract': PartnerInvoiceScheduleContractFromJSON(json['contract']),
|
|
47
|
+
'next': PartnerInvoiceScheduleNextFromJSON(json['next']),
|
|
48
|
+
'periods': (json['periods'].map(PartnerInvoiceSchedulePeriodFromJSON)),
|
|
49
|
+
'overdue': PartnerInvoiceScheduleOverdueFromJSON(json['overdue']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function PartnerInvoiceScheduleToJSON(json) {
|
|
53
|
+
return PartnerInvoiceScheduleToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function PartnerInvoiceScheduleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'partnerId': value['partnerId'],
|
|
61
|
+
'today': ((value['today']).toISOString().substring(0, 10)),
|
|
62
|
+
'contract': PartnerInvoiceScheduleContractToJSON(value['contract']),
|
|
63
|
+
'next': PartnerInvoiceScheduleNextToJSON(value['next']),
|
|
64
|
+
'periods': (value['periods'].map(PartnerInvoiceSchedulePeriodToJSON)),
|
|
65
|
+
'overdue': PartnerInvoiceScheduleOverdueToJSON(value['overdue']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PartnerInvoiceScheduleContract interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPartnerInvoiceScheduleContract(value) {
|
|
18
|
+
if (!('billingCycle' in value) || value['billingCycle'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('contractStartDate' in value) || value['contractStartDate'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('contractEndDate' in value) || value['contractEndDate'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('creditsPerPeriod' in value) || value['creditsPerPeriod'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('creditPriceUsd' in value) || value['creditPriceUsd'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('periodTotalUsd' in value) || value['periodTotalUsd'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('invoiceLeadDays' in value) || value['invoiceLeadDays'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function PartnerInvoiceScheduleContractFromJSON(json) {
|
|
35
|
+
return PartnerInvoiceScheduleContractFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PartnerInvoiceScheduleContractFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'billingCycle': json['billingCycle'],
|
|
43
|
+
'contractStartDate': (json['contractStartDate'] == null ? null : new Date(json['contractStartDate'])),
|
|
44
|
+
'contractEndDate': (json['contractEndDate'] == null ? null : new Date(json['contractEndDate'])),
|
|
45
|
+
'creditsPerPeriod': json['creditsPerPeriod'],
|
|
46
|
+
'creditPriceUsd': json['creditPriceUsd'],
|
|
47
|
+
'periodTotalUsd': json['periodTotalUsd'],
|
|
48
|
+
'invoiceLeadDays': json['invoiceLeadDays'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function PartnerInvoiceScheduleContractToJSON(json) {
|
|
52
|
+
return PartnerInvoiceScheduleContractToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function PartnerInvoiceScheduleContractToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'billingCycle': value['billingCycle'],
|
|
60
|
+
'contractStartDate': (value['contractStartDate'] == null ? null : value['contractStartDate'].toISOString().substring(0, 10)),
|
|
61
|
+
'contractEndDate': (value['contractEndDate'] == null ? null : value['contractEndDate'].toISOString().substring(0, 10)),
|
|
62
|
+
'creditsPerPeriod': value['creditsPerPeriod'],
|
|
63
|
+
'creditPriceUsd': value['creditPriceUsd'],
|
|
64
|
+
'periodTotalUsd': value['periodTotalUsd'],
|
|
65
|
+
'invoiceLeadDays': value['invoiceLeadDays'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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,91 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { PartnerInvoiceScheduleNextPeriodFromJSON, PartnerInvoiceScheduleNextPeriodToJSON, } from './PartnerInvoiceScheduleNextPeriod.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const PartnerInvoiceScheduleNextStatusEnum = {
|
|
19
|
+
Waiting: 'waiting',
|
|
20
|
+
Due: 'due',
|
|
21
|
+
Retrying: 'retrying',
|
|
22
|
+
Finished: 'finished',
|
|
23
|
+
Blocked: 'blocked',
|
|
24
|
+
NotScheduled: 'not_scheduled'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const PartnerInvoiceScheduleNextReasonEnum = {
|
|
30
|
+
NoCredits: 'no_credits',
|
|
31
|
+
NoStartDate: 'no_start_date',
|
|
32
|
+
UnreadableTerms: 'unreadable_terms',
|
|
33
|
+
PartnerNotInForce: 'partner_not_in_force',
|
|
34
|
+
NoAdministrator: 'no_administrator',
|
|
35
|
+
OverdueInvoice: 'overdue_invoice',
|
|
36
|
+
NoContract: 'no_contract'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PartnerInvoiceScheduleNext interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfPartnerInvoiceScheduleNext(value) {
|
|
42
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('period' in value) || value['period'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('invoiceOn' in value) || value['invoiceOn'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('credits' in value) || value['credits'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('creditPriceUsd' in value) || value['creditPriceUsd'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('amountUsd' in value) || value['amountUsd'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
export function PartnerInvoiceScheduleNextFromJSON(json) {
|
|
59
|
+
return PartnerInvoiceScheduleNextFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function PartnerInvoiceScheduleNextFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'status': json['status'],
|
|
67
|
+
'reason': json['reason'],
|
|
68
|
+
'period': PartnerInvoiceScheduleNextPeriodFromJSON(json['period']),
|
|
69
|
+
'invoiceOn': (json['invoiceOn'] == null ? null : new Date(json['invoiceOn'])),
|
|
70
|
+
'credits': json['credits'],
|
|
71
|
+
'creditPriceUsd': json['creditPriceUsd'],
|
|
72
|
+
'amountUsd': json['amountUsd'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export function PartnerInvoiceScheduleNextToJSON(json) {
|
|
76
|
+
return PartnerInvoiceScheduleNextToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
export function PartnerInvoiceScheduleNextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'status': value['status'],
|
|
84
|
+
'reason': value['reason'],
|
|
85
|
+
'period': PartnerInvoiceScheduleNextPeriodToJSON(value['period']),
|
|
86
|
+
'invoiceOn': (value['invoiceOn'] == null ? null : value['invoiceOn'].toISOString().substring(0, 10)),
|
|
87
|
+
'credits': value['credits'],
|
|
88
|
+
'creditPriceUsd': value['creditPriceUsd'],
|
|
89
|
+
'amountUsd': value['amountUsd'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -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,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PartnerInvoiceScheduleNextPeriod interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPartnerInvoiceScheduleNextPeriod(value) {
|
|
18
|
+
if (!('start' in value) || value['start'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('end' in value) || value['end'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PartnerInvoiceScheduleNextPeriodFromJSON(json) {
|
|
25
|
+
return PartnerInvoiceScheduleNextPeriodFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PartnerInvoiceScheduleNextPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'start': (new Date(json['start'])),
|
|
33
|
+
'end': (new Date(json['end'])),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PartnerInvoiceScheduleNextPeriodToJSON(json) {
|
|
37
|
+
return PartnerInvoiceScheduleNextPeriodToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PartnerInvoiceScheduleNextPeriodToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'start': ((value['start']).toISOString().substring(0, 10)),
|
|
45
|
+
'end': ((value['end']).toISOString().substring(0, 10)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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;
|