togai_client 1.0.1 → 1.0.2
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.
- checksums.yaml +4 -4
- data/README.md +3 -4
- data/docs/Account.md +26 -2
- data/docs/AccountAlias.md +28 -0
- data/docs/AccountAliases.md +1 -3
- data/docs/AccountAliasesPaginatedResponse.md +20 -0
- data/docs/AccountSchedule.md +38 -0
- data/docs/AccountsApi.md +840 -124
- data/docs/AccountsBillingInformation.md +20 -0
- data/docs/ActivatePricePlanRequest.md +18 -0
- data/docs/AddAccountAliasesRequest.md +3 -1
- data/docs/AddOn.md +30 -0
- data/docs/AddOnPaginatedResponse.md +22 -0
- data/docs/AddOnType.md +15 -0
- data/docs/AddOnsApi.md +365 -0
- data/docs/Address.md +30 -0
- data/docs/Alert.md +40 -0
- data/docs/AlertStatus.md +15 -0
- data/docs/AlertTemplate.md +38 -0
- data/docs/AlertTemplatesPaginatedResponse.md +20 -0
- data/docs/AlertsApi.md +566 -0
- data/docs/AlertsPaginatedResponse.md +20 -0
- data/docs/AliasPaginatedResponse.md +20 -0
- data/docs/AliasesApi.md +291 -0
- data/docs/AssociationConfig.md +24 -0
- data/docs/Attribute.md +22 -0
- data/docs/AuthenticationApi.md +74 -0
- data/docs/BillingConfig.md +20 -0
- data/docs/BillingEntitlementRateCard.md +34 -0
- data/docs/BillingEntitlementRevenueSummary.md +18 -0
- data/docs/BulkRateCardOperationsRequest.md +18 -0
- data/docs/BulkRateCardOperationsResponse.md +18 -0
- data/docs/CalculateRevenueRequest.md +30 -0
- data/docs/CalculateRevenueResponse.md +24 -0
- data/docs/CalculateRevenueResponseV2.md +22 -0
- data/docs/Computation.md +5 -3
- data/docs/CreateAccountAliasRequest.md +22 -0
- data/docs/CreateAccountRequest.md +27 -5
- data/docs/CreateAccountRequestWithoutCustomerId.md +42 -0
- data/docs/CreateAddOnRequest.md +22 -0
- data/docs/CreateAlertRequest.md +32 -0
- data/docs/CreateAliasRequest.md +18 -0
- data/docs/CreateBulkAliasRequest.md +18 -0
- data/docs/CreateCreditRequest.md +18 -0
- data/docs/CreateCreditResponse.md +18 -0
- data/docs/CreateCustomInvoiceRequest.md +36 -0
- data/docs/CreateCustomerContactRequest.md +30 -0
- data/docs/CreateCustomerContactResponse.md +34 -0
- data/docs/CreateCustomerRequest.md +9 -7
- data/docs/CreateCustomerResponse.md +8 -2
- data/docs/CreateEntitySetting.md +26 -0
- data/docs/CreateEventSchemaRequest.md +7 -1
- data/docs/CreateFeatureRequest.md +22 -0
- data/docs/CreateInvoiceGroupRequest.md +28 -0
- data/docs/CreatePaymentRequest.md +30 -0
- data/docs/CreatePricePlanDetails.md +38 -0
- data/docs/CreatePricePlanDetailsOverride.md +34 -0
- data/docs/CreatePricePlanMigrationRequest.md +32 -0
- data/docs/CreatePricePlanRequest.md +6 -2
- data/docs/CreatePricePlanV2Request.md +30 -0
- data/docs/CreatePricingRule.md +28 -0
- data/docs/CreateProposalRequest.md +40 -0
- data/docs/CreatePurchaseRequest.md +38 -0
- data/docs/CreateUsageMeterRequest.md +12 -6
- data/docs/Credit.md +50 -0
- data/docs/CreditBalanceResponse.md +28 -0
- data/docs/CreditDetailsResponse.md +52 -0
- data/docs/CreditGrantRateCard.md +34 -0
- data/docs/CreditGrantRevenueSummary.md +18 -0
- data/docs/CreditGrantType.md +15 -0
- data/docs/CreditRateDetails.md +20 -0
- data/docs/CreditRequest.md +34 -0
- data/docs/CreditTransaction.md +30 -0
- data/docs/CreditsApi.md +369 -0
- data/docs/CurrencyConfig.md +22 -0
- data/docs/CurrencyRateValue.md +20 -0
- data/docs/CurrencySlabRateDetail.md +24 -0
- data/docs/CustomInvoiceLineItem.md +28 -0
- data/docs/Customer.md +6 -2
- data/docs/CustomerPortalApi.md +77 -0
- data/docs/CustomersApi.md +85 -13
- data/docs/Dependency.md +22 -0
- data/docs/EditAccountScheduleRequest.md +18 -0
- data/docs/EditPricingScheduleRequest.md +18 -0
- data/docs/EnrichedField.md +22 -0
- data/docs/EnrichmentDependency.md +24 -0
- data/docs/Enrichments.md +20 -0
- data/docs/EntitlementOverageConfig.md +22 -0
- data/docs/EntitlementOverageConfigLookupCycle.md +20 -0
- data/docs/EntitlementOverageEntry.md +20 -0
- data/docs/EntitlementOverageRateCard.md +32 -0
- data/docs/EntitlementOverageRevenueSummary.md +18 -0
- data/docs/EntitlementsApi.md +599 -0
- data/docs/Event.md +11 -11
- data/docs/EventCorrectionInfo.md +32 -0
- data/docs/EventCorrectionRequest.md +18 -0
- data/docs/EventIngestionApi.md +16 -15
- data/docs/EventManagementApi.md +95 -21
- data/docs/EventPipelineInfo.md +15 -3
- data/docs/EventPipelineInfoAccount.md +3 -1
- data/docs/EventPipelineInfoEnrichments.md +22 -0
- data/docs/EventPipelineInfoFeatureDetails.md +24 -0
- data/docs/EventPipelineInfoPricePlans.md +28 -0
- data/docs/EventPipelineInfoRevenueDetails.md +22 -0
- data/docs/EventPipelineInfoUsageMeters.md +26 -0
- data/docs/EventSchema.md +11 -1
- data/docs/EventSchemaListData.md +11 -1
- data/docs/EventSchemasApi.md +82 -84
- data/docs/EventSchemasForFeature.md +20 -0
- data/docs/EventSource.md +20 -0
- data/docs/EventWithStatus.md +9 -1
- data/docs/EventWithStatusAndEventPipelineInfo.md +9 -1
- data/docs/EventsCorrectionResponse.md +18 -0
- data/docs/ExpiryType.md +15 -0
- data/docs/ExternalPaymentReference.md +26 -0
- data/docs/Feature.md +30 -0
- data/docs/FeatureApi.md +293 -0
- data/docs/FeatureConfig.md +22 -0
- data/docs/FeatureCreditEntry.md +32 -0
- data/docs/FeatureDetails.md +20 -0
- data/docs/FeatureListResponse.md +30 -0
- data/docs/FeaturePaginatedListData.md +22 -0
- data/docs/Field.md +26 -0
- data/docs/FileDownloadUrlResponse.md +18 -0
- data/docs/FileStorageApi.md +151 -0
- data/docs/FinalizeAccountSchedules.md +20 -0
- data/docs/FinalizePricePlanRequest.md +20 -0
- data/docs/FixedFeeRateCard.md +34 -0
- data/docs/FixedFeeRevenueSummary.md +18 -0
- data/docs/FixedFeeType.md +15 -0
- data/docs/GetCustomerPortalDelegateTokenRequest.md +24 -0
- data/docs/GetEntitlementValuesResponse.md +18 -0
- data/docs/GetEntitlementValuesResponseDataInner.md +20 -0
- data/docs/GetFeatureCreditEntriesPaginatedResponse.md +20 -0
- data/docs/GetFeatureCreditsResponse.md +28 -0
- data/docs/GetJobResponse.md +36 -0
- data/docs/GetLicenseUpdatesResponse.md +20 -0
- data/docs/GetMetricsRequest.md +4 -4
- data/docs/GetProposalResponse.md +62 -0
- data/docs/GetPurchaseResponse.md +62 -0
- data/docs/GrantDetails.md +24 -0
- data/docs/Incident.md +36 -0
- data/docs/IncidentsPaginatedResponse.md +20 -0
- data/docs/IngestEventRequest.md +1 -1
- data/docs/IngestEventResponse.md +12 -2
- data/docs/Invoice.md +68 -0
- data/docs/InvoiceDetails.md +28 -0
- data/docs/InvoiceDetailsAccount.md +24 -0
- data/docs/InvoiceDetailsCustomer.md +24 -0
- data/docs/InvoiceDetailsInvoiceGroup.md +28 -0
- data/docs/InvoiceDetailsOrganization.md +24 -0
- data/docs/InvoiceGroupAccountsPaginatedResponse.md +40 -0
- data/docs/InvoiceGroupDetails.md +30 -0
- data/docs/InvoiceGroupPaginatedResponse.md +20 -0
- data/docs/InvoiceGroups.md +36 -0
- data/docs/InvoiceGroupsApi.md +358 -0
- data/docs/InvoiceInfoInner.md +20 -0
- data/docs/InvoiceLineItem.md +34 -0
- data/docs/InvoiceSummary.md +58 -0
- data/docs/InvoiceTiming.md +15 -0
- data/docs/InvoicesApi.md +751 -0
- data/docs/InvoicesClass.md +15 -0
- data/docs/InvoicesStatus.md +15 -0
- data/docs/InvoicesType.md +15 -0
- data/docs/JobEntriesPaginatedResponse.md +22 -0
- data/docs/JobEntriesResponse.md +26 -0
- data/docs/JobsApi.md +361 -0
- data/docs/JobsPaginatedResponse.md +22 -0
- data/docs/JobsWithoutStatusInfoResponse.md +24 -0
- data/docs/LicenseEntriesConfig.md +24 -0
- data/docs/LicenseEntriesConfigLookupCycle.md +20 -0
- data/docs/LicenseEntriesConfigLookupRange.md +22 -0
- data/docs/LicenseEntry.md +22 -0
- data/docs/LicenseEntryDetailsUpdateRequest.md +22 -0
- data/docs/LicenseRateCard.md +40 -0
- data/docs/LicenseRateCardConfig.md +20 -0
- data/docs/LicenseUpdate.md +26 -0
- data/docs/LicenseUpdateRequest.md +30 -0
- data/docs/LicenseUpdateResponse.md +28 -0
- data/docs/LicensesApi.md +300 -0
- data/docs/ListCreditsResponse.md +20 -0
- data/docs/ListInvoicesResponse.md +20 -0
- data/docs/ListPaymentResponse.md +20 -0
- data/docs/ManageMiscellaneousChargesRequest.md +18 -0
- data/docs/MaxQuantityBreachAction.md +15 -0
- data/docs/MetricQuery.md +7 -5
- data/docs/MetricQueryFilterEntry.md +1 -1
- data/docs/MetricQueryResponse.md +1 -1
- data/docs/MetricsApi.md +7 -7
- data/docs/MigrationMode.md +15 -0
- data/docs/MinimumCommitment.md +20 -0
- data/docs/MiscellaneousCharge.md +26 -0
- data/docs/MiscellaneousChargesResponse.md +18 -0
- data/docs/ModelAlias.md +20 -0
- data/docs/NamedLicenseEntriesConfig.md +24 -0
- data/docs/NamedLicenseEntriesConfigLookupCycle.md +20 -0
- data/docs/NamedLicenseEntriesConfigLookupRange.md +22 -0
- data/docs/NamedLicenseEntry.md +24 -0
- data/docs/NamedLicenseUpdate.md +32 -0
- data/docs/NamedLicenseUpdatesPaginatedResponse.md +20 -0
- data/docs/Payment.md +38 -0
- data/docs/PaymentLineItemRecord.md +24 -0
- data/docs/PaymentsApi.md +227 -0
- data/docs/PlanOverride.md +6 -0
- data/docs/PreAction.md +20 -0
- data/docs/PriceExperimentationApi.md +147 -0
- data/docs/PricePlan.md +4 -0
- data/docs/PricePlanDetails.md +25 -3
- data/docs/PricePlanDetailsConfig.md +28 -0
- data/docs/PricePlanDetailsOverride.md +16 -2
- data/docs/PricePlanInfo.md +20 -0
- data/docs/PricePlanListData.md +10 -2
- data/docs/PricePlanMigrationConfig.md +30 -0
- data/docs/PricePlanType.md +15 -0
- data/docs/PricePlanV2.md +42 -0
- data/docs/PricePlanV2Api.md +953 -0
- data/docs/PricePlanV2PaginatedResponse.md +20 -0
- data/docs/PricePlansApi.md +202 -52
- data/docs/PricingCycleConfig.md +6 -6
- data/docs/PricingCycleConfigStartOffset.md +1 -1
- data/docs/PricingCycleInterval.md +15 -0
- data/docs/PricingRule.md +32 -0
- data/docs/PricingRuleAction.md +26 -0
- data/docs/PricingRuleChangesLog.md +30 -0
- data/docs/PricingRuleInfo.md +24 -0
- data/docs/PricingRuleTiming.md +15 -0
- data/docs/PricingRulesApi.md +83 -0
- data/docs/PricingRulesLog.md +28 -0
- data/docs/PricingRulesLogsPaginatedResponse.md +18 -0
- data/docs/PricingRulesPaginatedResponse.md +18 -0
- data/docs/PricingRulesValues.md +20 -0
- data/docs/PricingSchedule.md +9 -1
- data/docs/PricingSchedulePaginatedResponse.md +22 -0
- data/docs/PricingScheduleWithPricePlanId.md +36 -0
- data/docs/Proposal.md +62 -0
- data/docs/ProposalsListResponse.md +40 -0
- data/docs/ProposalsPaginatedResponse.md +22 -0
- data/docs/ProratedRefundMode.md +15 -0
- data/docs/ProrationConfig.md +22 -0
- data/docs/ProrationConfigCustomConfig.md +22 -0
- data/docs/ProrationConfigLookupCycleConfig.md +22 -0
- data/docs/Purchase.md +58 -0
- data/docs/PurchaseFeatureDetails.md +30 -0
- data/docs/PurchaseListResponse.md +46 -0
- data/docs/PurchasePaginatedListData.md +22 -0
- data/docs/PurchasePlanOverride.md +22 -0
- data/docs/PurchaseStatus.md +15 -0
- data/docs/PurchaseType.md +15 -0
- data/docs/QueryColumn.md +26 -0
- data/docs/QueryFilter.md +22 -0
- data/docs/QueryFunction.md +20 -0
- data/docs/QueryInput.md +28 -0
- data/docs/QueryInputSortInner.md +20 -0
- data/docs/RateCard.md +23 -5
- data/docs/RateCardData.md +28 -0
- data/docs/RateCardDetails.md +30 -0
- data/docs/RateCardOperation.md +22 -0
- data/docs/RateCardPaginatedResponse.md +20 -0
- data/docs/RatePlan.md +20 -0
- data/docs/RateValue.md +22 -0
- data/docs/RecurrenceConfig.md +20 -0
- data/docs/RemoveAccountAliasRequest.md +20 -0
- data/docs/RemoveAccountAliasesRequest.md +4 -2
- data/docs/Report.md +38 -0
- data/docs/ReportStatus.md +15 -0
- data/docs/ReportType.md +15 -0
- data/docs/ReportsApi.md +83 -0
- data/docs/ReportsPaginatedResponse.md +20 -0
- data/docs/RevenueInfo.md +42 -0
- data/docs/RevenueInfoV2.md +32 -0
- data/docs/RevenueSummaryWithMetadata.md +24 -0
- data/docs/ScheduleInfo.md +22 -0
- data/docs/SchedulesApi.md +667 -0
- data/docs/SchedulesPaginatedResponse.md +22 -0
- data/docs/Setting.md +30 -0
- data/docs/SettingDataType.md +15 -0
- data/docs/SettingPaginatedResponse.md +22 -0
- data/docs/SettingsApi.md +301 -0
- data/docs/Slab.md +24 -0
- data/docs/SlabDetail.md +26 -0
- data/docs/SlabRate.md +22 -0
- data/docs/SlabRevenue.md +22 -0
- data/docs/SlabRevenueMetadata.md +22 -0
- data/docs/SlabRevenueSummary.md +24 -0
- data/docs/SlabRevenueWithMetadata.md +24 -0
- data/docs/TokenResponse.md +18 -0
- data/docs/TopupWalletRequest.md +18 -0
- data/docs/UpdateAccountRequest.md +18 -2
- data/docs/UpdateAccountScheduleV2Request.md +26 -0
- data/docs/UpdateAddOnRequest.md +20 -0
- data/docs/UpdateAlertRequest.md +26 -0
- data/docs/UpdateCustomerRequest.md +5 -5
- data/docs/UpdateEventSchemaRequest.md +9 -3
- data/docs/UpdateFeatureCreditsRequest.md +20 -0
- data/docs/UpdateFeatureRequest.md +22 -0
- data/docs/UpdateIncidentStatusRequest.md +18 -0
- data/docs/UpdateInvoiceGroupAccounts.md +18 -0
- data/docs/UpdateInvoiceRequest.md +26 -0
- data/docs/UpdatePricePlanRequest.md +8 -2
- data/docs/UpdatePricePlanV2Request.md +22 -0
- data/docs/UpdatePricingRulesRequest.md +18 -0
- data/docs/UpdatePricingScheduleRequest.md +30 -0
- data/docs/UpdatePricingScheduleRequestWithActions.md +32 -0
- data/docs/UpdatePricingScheduleResponse.md +22 -0
- data/docs/UpdateProposalStatus.md +18 -0
- data/docs/UpdateSettingRequest.md +22 -0
- data/docs/UpdateUsageMeterRequest.md +13 -5
- data/docs/UpdateWalletRequest.md +20 -0
- data/docs/UsageConfig.md +24 -0
- data/docs/UsageConfigLookupCycle.md +20 -0
- data/docs/UsageConfigLookupRange.md +22 -0
- data/docs/UsageCycleInterval.md +15 -0
- data/docs/UsageLookupRange.md +20 -0
- data/docs/UsageMeter.md +12 -2
- data/docs/UsageMeterAggregation.md +15 -0
- data/docs/UsageMeterFilterEntry.md +20 -0
- data/docs/UsageMetersApi.md +64 -74
- data/docs/UsageRateCard.md +28 -0
- data/docs/ValidateEntitlementValueRequest.md +18 -0
- data/docs/ValidatedEntityError.md +24 -0
- data/docs/ValidatedEntityErrorsPaginatedResponse.md +20 -0
- data/docs/VersionsToMigrate.md +15 -0
- data/docs/WalletApi.md +301 -0
- data/docs/WalletBalanceResponse.md +40 -0
- data/docs/WalletEntriesPaginatedResponse.md +20 -0
- data/docs/WalletEntry.md +34 -0
- data/docs/WalletStatus.md +15 -0
- data/docs/WalletTopupDetails.md +20 -0
- data/lib/togai_client/api/accounts_api.rb +881 -220
- data/lib/togai_client/api/add_ons_api.rb +372 -0
- data/lib/togai_client/api/alerts_api.rb +527 -0
- data/lib/togai_client/api/aliases_api.rb +279 -0
- data/lib/togai_client/api/authentication_api.rb +79 -0
- data/lib/togai_client/api/credits_api.rb +351 -0
- data/lib/togai_client/api/customer_portal_api.rb +90 -0
- data/lib/togai_client/api/customers_api.rb +96 -18
- data/lib/togai_client/api/entitlements_api.rb +655 -0
- data/lib/togai_client/api/event_ingestion_api.rb +15 -15
- data/lib/togai_client/api/event_management_api.rb +97 -21
- data/lib/togai_client/api/event_schemas_api.rb +104 -107
- data/lib/togai_client/api/feature_api.rb +298 -0
- data/lib/togai_client/api/file_storage_api.rb +151 -0
- data/lib/togai_client/api/invoice_groups_api.rb +370 -0
- data/lib/togai_client/api/invoices_api.rb +705 -0
- data/lib/togai_client/api/jobs_api.rb +337 -0
- data/lib/togai_client/api/licenses_api.rb +282 -0
- data/lib/togai_client/api/metrics_api.rb +6 -6
- data/lib/togai_client/api/payments_api.rb +215 -0
- data/lib/togai_client/api/price_experimentation_api.rb +158 -0
- data/lib/togai_client/api/price_plan_v2_api.rb +960 -0
- data/lib/togai_client/api/price_plans_api.rb +214 -62
- data/lib/togai_client/api/pricing_rules_api.rb +106 -0
- data/lib/togai_client/api/reports_api.rb +92 -0
- data/lib/togai_client/api/schedules_api.rb +685 -0
- data/lib/togai_client/api/settings_api.rb +302 -0
- data/lib/togai_client/api/usage_meters_api.rb +97 -153
- data/lib/togai_client/api/wallet_api.rb +310 -0
- data/lib/togai_client/api_client.rb +25 -23
- data/lib/togai_client/api_error.rb +2 -1
- data/lib/togai_client/configuration.rb +51 -18
- data/lib/togai_client/models/account.rb +260 -28
- data/lib/togai_client/models/account_alias.rb +329 -0
- data/lib/togai_client/models/account_aliases.rb +23 -67
- data/lib/togai_client/models/account_aliases_paginated_response.rb +233 -0
- data/lib/togai_client/models/account_paginated_response.rb +14 -19
- data/lib/togai_client/models/account_schedule.rb +375 -0
- data/lib/togai_client/models/accounts_billing_information.rb +228 -0
- data/lib/togai_client/models/activate_price_plan_request.rb +235 -0
- data/lib/togai_client/models/add_account_aliases_request.rb +64 -25
- data/lib/togai_client/models/add_on.rb +395 -0
- data/lib/togai_client/models/add_on_paginated_response.rb +241 -0
- data/lib/togai_client/models/add_on_type.rb +42 -0
- data/lib/togai_client/models/address.rb +276 -0
- data/lib/togai_client/models/alert.rb +391 -0
- data/lib/togai_client/models/alert_status.rb +40 -0
- data/lib/togai_client/models/alert_template.rb +343 -0
- data/lib/togai_client/models/alert_templates_paginated_response.rb +232 -0
- data/lib/togai_client/models/alerts_paginated_response.rb +232 -0
- data/lib/togai_client/models/alias_paginated_response.rb +226 -0
- data/lib/togai_client/models/association_config.rb +244 -0
- data/lib/togai_client/models/attribute.rb +327 -0
- data/lib/togai_client/models/base_success_response.rb +16 -19
- data/lib/togai_client/models/billing_config.rb +225 -0
- data/lib/togai_client/models/billing_entitlement_rate_card.rb +370 -0
- data/lib/togai_client/models/billing_entitlement_revenue_summary.rb +221 -0
- data/lib/togai_client/models/bulk_rate_card_operations_request.rb +224 -0
- data/lib/togai_client/models/bulk_rate_card_operations_response.rb +224 -0
- data/lib/togai_client/models/calculate_revenue_request.rb +297 -0
- data/lib/togai_client/models/calculate_revenue_response.rb +264 -0
- data/lib/togai_client/models/calculate_revenue_response_v2.rb +248 -0
- data/lib/togai_client/models/computation.rb +49 -27
- data/lib/togai_client/models/create_account_alias_request.rb +270 -0
- data/lib/togai_client/models/create_account_request.rb +306 -27
- data/lib/togai_client/models/create_account_request_without_customer_id.rb +551 -0
- data/lib/togai_client/models/create_add_on_request.rb +309 -0
- data/lib/togai_client/models/create_alert_request.rb +327 -0
- data/lib/togai_client/models/create_alias_request.rb +241 -0
- data/lib/togai_client/models/create_bulk_alias_request.rb +252 -0
- data/lib/togai_client/models/create_credit_request.rb +224 -0
- data/lib/togai_client/models/create_credit_response.rb +223 -0
- data/lib/togai_client/models/create_custom_invoice_request.rb +411 -0
- data/lib/togai_client/models/create_customer_contact_request.rb +402 -0
- data/lib/togai_client/models/create_customer_contact_response.rb +435 -0
- data/lib/togai_client/models/create_customer_request.rb +69 -47
- data/lib/togai_client/models/create_customer_response.rb +81 -40
- data/lib/togai_client/models/create_entity_setting.rb +308 -0
- data/lib/togai_client/models/create_event_schema_request.rb +70 -24
- data/lib/togai_client/models/create_feature_request.rb +309 -0
- data/lib/togai_client/models/create_invoice_group_request.rb +344 -0
- data/lib/togai_client/models/create_payment_request.rb +394 -0
- data/lib/togai_client/models/create_price_plan_details.rb +339 -0
- data/lib/togai_client/models/create_price_plan_details_override.rb +319 -0
- data/lib/togai_client/models/create_price_plan_migration_request.rb +385 -0
- data/lib/togai_client/models/create_price_plan_request.rb +69 -24
- data/lib/togai_client/models/create_price_plan_v2_request.rb +367 -0
- data/lib/togai_client/models/create_pricing_rule.rb +313 -0
- data/lib/togai_client/models/create_proposal_request.rb +371 -0
- data/lib/togai_client/models/create_purchase_request.rb +330 -0
- data/lib/togai_client/models/create_usage_meter_request.rb +85 -42
- data/lib/togai_client/models/credit.rb +490 -0
- data/lib/togai_client/models/credit_balance_response.rb +302 -0
- data/lib/togai_client/models/credit_details_response.rb +508 -0
- data/lib/togai_client/models/credit_grant_rate_card.rb +332 -0
- data/lib/togai_client/models/credit_grant_revenue_summary.rb +221 -0
- data/lib/togai_client/models/credit_grant_type.rb +40 -0
- data/lib/togai_client/models/credit_rate_details.rb +262 -0
- data/lib/togai_client/models/credit_request.rb +330 -0
- data/lib/togai_client/models/credit_transaction.rb +357 -0
- data/lib/togai_client/models/currency_config.rb +296 -0
- data/lib/togai_client/models/currency_rate_value.rb +237 -0
- data/lib/togai_client/models/currency_slab_rate_detail.rb +287 -0
- data/lib/togai_client/models/custom_invoice_line_item.rb +260 -0
- data/lib/togai_client/models/customer.rb +68 -26
- data/lib/togai_client/models/customer_paginated_response.rb +14 -19
- data/lib/togai_client/models/dependency.rb +287 -0
- data/lib/togai_client/models/dimensions_schema.rb +16 -19
- data/lib/togai_client/models/edit_account_schedule_request.rb +252 -0
- data/lib/togai_client/models/edit_pricing_schedule_request.rb +252 -0
- data/lib/togai_client/models/enriched_field.rb +288 -0
- data/lib/togai_client/models/enrichment_dependency.rb +297 -0
- data/lib/togai_client/models/enrichments.rb +234 -0
- data/lib/togai_client/models/entitlement_overage_config.rb +278 -0
- data/lib/togai_client/models/entitlement_overage_config_lookup_cycle.rb +258 -0
- data/lib/togai_client/models/entitlement_overage_entry.rb +256 -0
- data/lib/togai_client/models/entitlement_overage_rate_card.rb +324 -0
- data/lib/togai_client/models/entitlement_overage_revenue_summary.rb +221 -0
- data/lib/togai_client/models/error_response.rb +16 -19
- data/lib/togai_client/models/event.rb +104 -84
- data/lib/togai_client/models/event_attribute_schema.rb +22 -21
- data/lib/togai_client/models/event_correction_info.rb +384 -0
- data/lib/togai_client/models/event_correction_request.rb +215 -0
- data/lib/togai_client/models/event_pipeline_info.rb +76 -25
- data/lib/togai_client/models/event_pipeline_info_account.rb +31 -23
- data/lib/togai_client/models/event_pipeline_info_customer.rb +18 -19
- data/lib/togai_client/models/event_pipeline_info_enrichments.rb +238 -0
- data/lib/togai_client/models/event_pipeline_info_event_schema.rb +18 -19
- data/lib/togai_client/models/event_pipeline_info_feature_details.rb +255 -0
- data/lib/togai_client/models/event_pipeline_info_price_plans.rb +306 -0
- data/lib/togai_client/models/event_pipeline_info_revenue_details.rb +253 -0
- data/lib/togai_client/models/event_pipeline_info_usage_meters.rb +312 -0
- data/lib/togai_client/models/event_schema.rb +89 -29
- data/lib/togai_client/models/event_schema_list_data.rb +90 -31
- data/lib/togai_client/models/event_schema_list_paginated_response.rb +14 -19
- data/lib/togai_client/models/event_schema_versions_response.rb +16 -19
- data/lib/togai_client/models/event_schemas_for_feature.rb +259 -0
- data/lib/togai_client/models/event_source.rb +278 -0
- data/lib/togai_client/models/event_with_status.rb +94 -23
- data/lib/togai_client/models/event_with_status_and_event_pipeline_info.rb +100 -23
- data/lib/togai_client/models/events_correction_response.rb +252 -0
- data/lib/togai_client/models/expiry_type.rb +41 -0
- data/lib/togai_client/models/external_payment_reference.rb +309 -0
- data/lib/togai_client/models/feature.rb +365 -0
- data/lib/togai_client/models/feature_config.rb +266 -0
- data/lib/togai_client/models/feature_credit_entry.rb +387 -0
- data/lib/togai_client/models/feature_details.rb +238 -0
- data/lib/togai_client/models/feature_list_response.rb +343 -0
- data/lib/togai_client/models/feature_paginated_list_data.rb +234 -0
- data/lib/togai_client/models/field.rb +331 -0
- data/lib/togai_client/models/file_download_url_response.rb +221 -0
- data/lib/togai_client/models/finalize_account_schedules.rb +228 -0
- data/lib/togai_client/models/finalize_price_plan_request.rb +246 -0
- data/lib/togai_client/models/fixed_fee_rate_card.rb +354 -0
- data/lib/togai_client/models/fixed_fee_revenue_summary.rb +221 -0
- data/lib/togai_client/models/fixed_fee_type.rb +40 -0
- data/lib/togai_client/models/get_customer_portal_delegate_token_request.rb +255 -0
- data/lib/togai_client/models/get_entitlement_values_response.rb +223 -0
- data/lib/togai_client/models/get_entitlement_values_response_data_inner.rb +239 -0
- data/lib/togai_client/models/get_event_response.rb +16 -19
- data/lib/togai_client/models/get_events_response.rb +21 -20
- data/lib/togai_client/models/get_feature_credit_entries_paginated_response.rb +225 -0
- data/lib/togai_client/models/get_feature_credits_response.rb +333 -0
- data/lib/togai_client/models/get_job_response.rb +399 -0
- data/lib/togai_client/models/get_license_updates_response.rb +252 -0
- data/lib/togai_client/models/get_metrics_request.rb +22 -19
- data/lib/togai_client/models/get_metrics_response.rb +16 -19
- data/lib/togai_client/models/get_proposal_response.rb +536 -0
- data/lib/togai_client/models/get_purchase_response.rb +519 -0
- data/lib/togai_client/models/grant_details.rb +299 -0
- data/lib/togai_client/models/incident.rb +347 -0
- data/lib/togai_client/models/incidents_paginated_response.rb +232 -0
- data/lib/togai_client/models/ingest_batch_event_request.rb +21 -24
- data/lib/togai_client/models/ingest_event_request.rb +21 -19
- data/lib/togai_client/models/ingest_event_response.rb +76 -42
- data/lib/togai_client/models/ingestion_status.rb +23 -22
- data/lib/togai_client/models/invoice.rb +571 -0
- data/lib/togai_client/models/invoice_details.rb +259 -0
- data/lib/togai_client/models/invoice_details_account.rb +269 -0
- data/lib/togai_client/models/invoice_details_customer.rb +255 -0
- data/lib/togai_client/models/invoice_details_invoice_group.rb +294 -0
- data/lib/togai_client/models/invoice_details_organization.rb +264 -0
- data/lib/togai_client/models/invoice_group_accounts_paginated_response.rb +430 -0
- data/lib/togai_client/models/invoice_group_details.rb +330 -0
- data/lib/togai_client/models/invoice_group_paginated_response.rb +225 -0
- data/lib/togai_client/models/invoice_groups.rb +403 -0
- data/lib/togai_client/models/invoice_info_inner.rb +239 -0
- data/lib/togai_client/models/invoice_line_item.rb +381 -0
- data/lib/togai_client/models/invoice_summary.rb +520 -0
- data/lib/togai_client/models/invoice_timing.rb +41 -0
- data/lib/togai_client/models/invoices_class.rb +41 -0
- data/lib/togai_client/models/invoices_status.rb +47 -0
- data/lib/togai_client/models/invoices_type.rb +44 -0
- data/lib/togai_client/models/job_entries_paginated_response.rb +234 -0
- data/lib/togai_client/models/job_entries_response.rb +314 -0
- data/lib/togai_client/models/jobs_paginated_response.rb +234 -0
- data/lib/togai_client/models/jobs_without_status_info_response.rb +269 -0
- data/lib/togai_client/models/license_entries_config.rb +287 -0
- data/lib/togai_client/models/license_entries_config_lookup_cycle.rb +251 -0
- data/lib/togai_client/models/license_entries_config_lookup_range.rb +273 -0
- data/lib/togai_client/models/license_entry.rb +272 -0
- data/lib/togai_client/models/license_entry_details_update_request.rb +277 -0
- data/lib/togai_client/models/license_rate_card.rb +388 -0
- data/lib/togai_client/models/license_rate_card_config.rb +246 -0
- data/lib/togai_client/models/license_update.rb +320 -0
- data/lib/togai_client/models/license_update_request.rb +377 -0
- data/lib/togai_client/models/license_update_response.rb +342 -0
- data/lib/togai_client/models/list_credits_response.rb +280 -0
- data/lib/togai_client/models/list_invoices_response.rb +280 -0
- data/lib/togai_client/models/list_payment_response.rb +280 -0
- data/lib/togai_client/models/manage_miscellaneous_charges_request.rb +224 -0
- data/lib/togai_client/models/max_quantity_breach_action.rb +39 -0
- data/lib/togai_client/models/metric_data_points.rb +28 -29
- data/lib/togai_client/models/metric_data_points_grouped_by.rb +18 -19
- data/lib/togai_client/models/metric_name.rb +11 -4
- data/lib/togai_client/models/metric_query.rb +45 -24
- data/lib/togai_client/models/metric_query_filter_entry.rb +19 -20
- data/lib/togai_client/models/metric_query_response.rb +42 -19
- data/lib/togai_client/models/migration_mode.rb +44 -0
- data/lib/togai_client/models/minimum_commitment.rb +258 -0
- data/lib/togai_client/models/miscellaneous_charge.rb +265 -0
- data/lib/togai_client/models/miscellaneous_charges_response.rb +224 -0
- data/lib/togai_client/models/model_alias.rb +238 -0
- data/lib/togai_client/models/named_license_entries_config.rb +287 -0
- data/lib/togai_client/models/named_license_entries_config_lookup_cycle.rb +251 -0
- data/lib/togai_client/models/named_license_entries_config_lookup_range.rb +273 -0
- data/lib/togai_client/models/named_license_entry.rb +281 -0
- data/lib/togai_client/models/named_license_update.rb +396 -0
- data/lib/togai_client/models/named_license_updates_paginated_response.rb +252 -0
- data/lib/togai_client/models/pagination_options.rb +14 -19
- data/lib/togai_client/models/payment.rb +380 -0
- data/lib/togai_client/models/payment_line_item_record.rb +290 -0
- data/lib/togai_client/models/plan_override.rb +64 -20
- data/lib/togai_client/models/pre_action.rb +269 -0
- data/lib/togai_client/models/price_plan.rb +59 -21
- data/lib/togai_client/models/price_plan_details.rb +182 -45
- data/lib/togai_client/models/price_plan_details_config.rb +344 -0
- data/lib/togai_client/models/price_plan_details_override.rb +135 -35
- data/lib/togai_client/models/price_plan_info.rb +230 -0
- data/lib/togai_client/models/price_plan_list_data.rb +116 -25
- data/lib/togai_client/models/price_plan_migration_config.rb +368 -0
- data/lib/togai_client/models/price_plan_paginated_response.rb +16 -19
- data/lib/togai_client/models/price_plan_type.rb +40 -0
- data/lib/togai_client/models/price_plan_v2.rb +519 -0
- data/lib/togai_client/models/price_plan_v2_paginated_response.rb +233 -0
- data/lib/togai_client/models/price_type.rb +7 -4
- data/lib/togai_client/models/pricing_cycle_config.rb +34 -67
- data/lib/togai_client/models/pricing_cycle_config_start_offset.rb +20 -21
- data/lib/togai_client/models/pricing_cycle_interval.rb +43 -0
- data/lib/togai_client/models/pricing_model.rb +7 -4
- data/lib/togai_client/models/pricing_rule.rb +382 -0
- data/lib/togai_client/models/pricing_rule_action.rb +293 -0
- data/lib/togai_client/models/pricing_rule_changes_log.rb +290 -0
- data/lib/togai_client/models/pricing_rule_info.rb +249 -0
- data/lib/togai_client/models/pricing_rule_timing.rb +40 -0
- data/lib/togai_client/models/pricing_rules_log.rb +318 -0
- data/lib/togai_client/models/pricing_rules_logs_paginated_response.rb +224 -0
- data/lib/togai_client/models/pricing_rules_paginated_response.rb +223 -0
- data/lib/togai_client/models/pricing_rules_values.rb +223 -0
- data/lib/togai_client/models/pricing_schedule.rb +100 -23
- data/lib/togai_client/models/pricing_schedule_paginated_response.rb +234 -0
- data/lib/togai_client/models/pricing_schedule_with_price_plan_id.rb +365 -0
- data/lib/togai_client/models/proposal.rb +536 -0
- data/lib/togai_client/models/proposals_list_response.rb +390 -0
- data/lib/togai_client/models/proposals_paginated_response.rb +234 -0
- data/lib/togai_client/models/prorated_refund_mode.rb +42 -0
- data/lib/togai_client/models/proration_config.rb +275 -0
- data/lib/togai_client/models/proration_config_custom_config.rb +254 -0
- data/lib/togai_client/models/proration_config_lookup_cycle_config.rb +261 -0
- data/lib/togai_client/models/purchase.rb +493 -0
- data/lib/togai_client/models/purchase_feature_details.rb +317 -0
- data/lib/togai_client/models/purchase_list_response.rb +393 -0
- data/lib/togai_client/models/purchase_paginated_list_data.rb +234 -0
- data/lib/togai_client/models/purchase_plan_override.rb +296 -0
- data/lib/togai_client/models/purchase_status.rb +46 -0
- data/lib/togai_client/models/purchase_type.rb +42 -0
- data/lib/togai_client/models/query_column.rb +259 -0
- data/lib/togai_client/models/query_filter.rb +255 -0
- data/lib/togai_client/models/query_function.rb +239 -0
- data/lib/togai_client/models/query_input.rb +295 -0
- data/lib/togai_client/models/query_input_sort_inner.rb +237 -0
- data/lib/togai_client/models/rate_card.rb +342 -38
- data/lib/togai_client/models/rate_card_data.rb +370 -0
- data/lib/togai_client/models/rate_card_details.rb +269 -0
- data/lib/togai_client/models/rate_card_operation.rb +302 -0
- data/lib/togai_client/models/rate_card_paginated_response.rb +233 -0
- data/lib/togai_client/models/rate_card_type.rb +13 -5
- data/lib/togai_client/models/rate_plan.rb +282 -0
- data/lib/togai_client/models/rate_value.rb +270 -0
- data/lib/togai_client/models/recurrence_config.rb +225 -0
- data/lib/togai_client/models/remove_account_alias_request.rb +232 -0
- data/lib/togai_client/models/remove_account_aliases_request.rb +30 -49
- data/lib/togai_client/models/report.rb +362 -0
- data/lib/togai_client/models/report_status.rb +43 -0
- data/lib/togai_client/models/report_type.rb +41 -0
- data/lib/togai_client/models/reports_paginated_response.rb +226 -0
- data/lib/togai_client/models/revenue_info.rb +335 -0
- data/lib/togai_client/models/revenue_info_v2.rb +297 -0
- data/lib/togai_client/models/revenue_summary_with_metadata.rb +255 -0
- data/lib/togai_client/models/schedule_info.rb +250 -0
- data/lib/togai_client/models/schedules_paginated_response.rb +241 -0
- data/lib/togai_client/models/setting.rb +340 -0
- data/lib/togai_client/models/setting_data_type.rb +42 -0
- data/lib/togai_client/models/setting_paginated_response.rb +234 -0
- data/lib/togai_client/models/slab.rb +315 -0
- data/lib/togai_client/models/slab_detail.rb +298 -0
- data/lib/togai_client/models/slab_rate.rb +249 -0
- data/lib/togai_client/models/slab_revenue.rb +281 -0
- data/lib/togai_client/models/slab_revenue_metadata.rb +232 -0
- data/lib/togai_client/models/slab_revenue_summary.rb +262 -0
- data/lib/togai_client/models/slab_revenue_with_metadata.rb +299 -0
- data/lib/togai_client/models/token_response.rb +221 -0
- data/lib/togai_client/models/topup_wallet_request.rb +222 -0
- data/lib/togai_client/models/update_account_request.rb +196 -26
- data/lib/togai_client/models/update_account_schedule_v2_request.rb +303 -0
- data/lib/togai_client/models/update_add_on_request.rb +264 -0
- data/lib/togai_client/models/update_alert_request.rb +274 -0
- data/lib/togai_client/models/update_customer_request.rb +36 -49
- data/lib/togai_client/models/update_event_schema_request.rb +68 -38
- data/lib/togai_client/models/update_feature_credits_request.rb +225 -0
- data/lib/togai_client/models/update_feature_request.rb +295 -0
- data/lib/togai_client/models/update_incident_status_request.rb +256 -0
- data/lib/togai_client/models/update_invoice_group_accounts.rb +252 -0
- data/lib/togai_client/models/update_invoice_request.rb +317 -0
- data/lib/togai_client/models/update_price_plan_request.rb +81 -25
- data/lib/togai_client/models/update_price_plan_v2_request.rb +266 -0
- data/lib/togai_client/models/update_pricing_rules_request.rb +216 -0
- data/lib/togai_client/models/update_pricing_schedule_request.rb +323 -0
- data/lib/togai_client/models/update_pricing_schedule_request_with_actions.rb +343 -0
- data/lib/togai_client/models/update_pricing_schedule_response.rb +276 -0
- data/lib/togai_client/models/update_proposal_status.rb +256 -0
- data/lib/togai_client/models/update_setting_request.rb +255 -0
- data/lib/togai_client/models/update_usage_meter_request.rb +105 -50
- data/lib/togai_client/models/update_wallet_request.rb +246 -0
- data/lib/togai_client/models/usage_config.rb +287 -0
- data/lib/togai_client/models/usage_config_lookup_cycle.rb +250 -0
- data/lib/togai_client/models/usage_config_lookup_range.rb +273 -0
- data/lib/togai_client/models/usage_cycle_interval.rb +43 -0
- data/lib/togai_client/models/usage_lookup_range.rb +238 -0
- data/lib/togai_client/models/usage_meter.rb +156 -39
- data/lib/togai_client/models/usage_meter_aggregation.rb +40 -0
- data/lib/togai_client/models/usage_meter_filter_entry.rb +238 -0
- data/lib/togai_client/models/usage_meter_paginated_response.rb +14 -19
- data/lib/togai_client/models/usage_rate_card.rb +285 -0
- data/lib/togai_client/models/validate_entitlement_value_request.rb +222 -0
- data/lib/togai_client/models/validated_entity_error.rb +273 -0
- data/lib/togai_client/models/validated_entity_errors_paginated_response.rb +232 -0
- data/lib/togai_client/models/versions_to_migrate.rb +40 -0
- data/lib/togai_client/models/wallet_balance_response.rb +388 -0
- data/lib/togai_client/models/wallet_entries_paginated_response.rb +280 -0
- data/lib/togai_client/models/wallet_entry.rb +421 -0
- data/lib/togai_client/models/wallet_status.rb +40 -0
- data/lib/togai_client/models/wallet_topup_details.rb +233 -0
- data/lib/togai_client/version.rb +2 -2
- data/lib/togai_client.rb +279 -21
- data/spec/spec_helper.rb +1 -1
- data/togai_client.gemspec +4 -3
- metadata +561 -5
@@ -0,0 +1,520 @@
|
|
1
|
+
=begin
|
2
|
+
#Togai Apis
|
3
|
+
|
4
|
+
#APIs for Togai App
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: engg@togai.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TogaiClient
|
17
|
+
# Structure of invoice response
|
18
|
+
class InvoiceSummary
|
19
|
+
# Identifier of invoice
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
attr_accessor :customer_id
|
23
|
+
|
24
|
+
attr_accessor :owner_id
|
25
|
+
|
26
|
+
attr_accessor :price_plan_id
|
27
|
+
|
28
|
+
attr_accessor :status
|
29
|
+
|
30
|
+
attr_accessor :finalizing_status
|
31
|
+
|
32
|
+
attr_accessor :invoice_class
|
33
|
+
|
34
|
+
attr_accessor :invoice_type
|
35
|
+
|
36
|
+
# Start date of the invoice
|
37
|
+
attr_accessor :start_date
|
38
|
+
|
39
|
+
# End date of the invoice
|
40
|
+
attr_accessor :end_date
|
41
|
+
|
42
|
+
# Inclusive end date of the invoice
|
43
|
+
attr_accessor :end_date_inclusive
|
44
|
+
|
45
|
+
# Invoice date of the invoice
|
46
|
+
attr_accessor :invoice_date
|
47
|
+
|
48
|
+
# Due date of the invoice
|
49
|
+
attr_accessor :due_date
|
50
|
+
|
51
|
+
attr_accessor :generated_at
|
52
|
+
|
53
|
+
attr_accessor :updated_at
|
54
|
+
|
55
|
+
# Sequence id of the invoice
|
56
|
+
attr_accessor :sequence_id
|
57
|
+
|
58
|
+
# Download URL of the pdf file corresponding to the invoice
|
59
|
+
attr_accessor :pdf_url
|
60
|
+
|
61
|
+
attr_accessor :total_amount
|
62
|
+
|
63
|
+
attr_accessor :paid_amount
|
64
|
+
|
65
|
+
attr_accessor :invoice_details
|
66
|
+
|
67
|
+
# Number of days from the invoice date after which an invoice is considered overdue.
|
68
|
+
attr_accessor :net_term_days
|
69
|
+
|
70
|
+
class EnumAttributeValidator
|
71
|
+
attr_reader :datatype
|
72
|
+
attr_reader :allowable_values
|
73
|
+
|
74
|
+
def initialize(datatype, allowable_values)
|
75
|
+
@allowable_values = allowable_values.map do |value|
|
76
|
+
case datatype.to_s
|
77
|
+
when /Integer/i
|
78
|
+
value.to_i
|
79
|
+
when /Float/i
|
80
|
+
value.to_f
|
81
|
+
else
|
82
|
+
value
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def valid?(value)
|
88
|
+
!value || allowable_values.include?(value)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
93
|
+
def self.attribute_map
|
94
|
+
{
|
95
|
+
:'id' => :'id',
|
96
|
+
:'customer_id' => :'customerId',
|
97
|
+
:'owner_id' => :'ownerId',
|
98
|
+
:'price_plan_id' => :'pricePlanId',
|
99
|
+
:'status' => :'status',
|
100
|
+
:'finalizing_status' => :'finalizingStatus',
|
101
|
+
:'invoice_class' => :'invoiceClass',
|
102
|
+
:'invoice_type' => :'invoiceType',
|
103
|
+
:'start_date' => :'startDate',
|
104
|
+
:'end_date' => :'endDate',
|
105
|
+
:'end_date_inclusive' => :'endDateInclusive',
|
106
|
+
:'invoice_date' => :'invoiceDate',
|
107
|
+
:'due_date' => :'dueDate',
|
108
|
+
:'generated_at' => :'generatedAt',
|
109
|
+
:'updated_at' => :'updatedAt',
|
110
|
+
:'sequence_id' => :'sequenceId',
|
111
|
+
:'pdf_url' => :'pdfUrl',
|
112
|
+
:'total_amount' => :'totalAmount',
|
113
|
+
:'paid_amount' => :'paidAmount',
|
114
|
+
:'invoice_details' => :'invoiceDetails',
|
115
|
+
:'net_term_days' => :'netTermDays'
|
116
|
+
}
|
117
|
+
end
|
118
|
+
|
119
|
+
# Returns all the JSON keys this model knows about
|
120
|
+
def self.acceptable_attributes
|
121
|
+
attribute_map.values
|
122
|
+
end
|
123
|
+
|
124
|
+
# Attribute type mapping.
|
125
|
+
def self.openapi_types
|
126
|
+
{
|
127
|
+
:'id' => :'String',
|
128
|
+
:'customer_id' => :'String',
|
129
|
+
:'owner_id' => :'String',
|
130
|
+
:'price_plan_id' => :'String',
|
131
|
+
:'status' => :'InvoicesStatus',
|
132
|
+
:'finalizing_status' => :'String',
|
133
|
+
:'invoice_class' => :'InvoicesClass',
|
134
|
+
:'invoice_type' => :'InvoicesType',
|
135
|
+
:'start_date' => :'Time',
|
136
|
+
:'end_date' => :'Time',
|
137
|
+
:'end_date_inclusive' => :'Time',
|
138
|
+
:'invoice_date' => :'Time',
|
139
|
+
:'due_date' => :'Time',
|
140
|
+
:'generated_at' => :'Time',
|
141
|
+
:'updated_at' => :'Time',
|
142
|
+
:'sequence_id' => :'String',
|
143
|
+
:'pdf_url' => :'String',
|
144
|
+
:'total_amount' => :'Float',
|
145
|
+
:'paid_amount' => :'Float',
|
146
|
+
:'invoice_details' => :'InvoiceDetails',
|
147
|
+
:'net_term_days' => :'Integer'
|
148
|
+
}
|
149
|
+
end
|
150
|
+
|
151
|
+
# List of attributes with nullable: true
|
152
|
+
def self.openapi_nullable
|
153
|
+
Set.new([
|
154
|
+
])
|
155
|
+
end
|
156
|
+
|
157
|
+
# Initializes the object
|
158
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
159
|
+
def initialize(attributes = {})
|
160
|
+
if (!attributes.is_a?(Hash))
|
161
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TogaiClient::InvoiceSummary` initialize method"
|
162
|
+
end
|
163
|
+
|
164
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
165
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
166
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
167
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TogaiClient::InvoiceSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
168
|
+
end
|
169
|
+
h[k.to_sym] = v
|
170
|
+
}
|
171
|
+
|
172
|
+
if attributes.key?(:'id')
|
173
|
+
self.id = attributes[:'id']
|
174
|
+
else
|
175
|
+
self.id = nil
|
176
|
+
end
|
177
|
+
|
178
|
+
if attributes.key?(:'customer_id')
|
179
|
+
self.customer_id = attributes[:'customer_id']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'owner_id')
|
183
|
+
self.owner_id = attributes[:'owner_id']
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.key?(:'price_plan_id')
|
187
|
+
self.price_plan_id = attributes[:'price_plan_id']
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.key?(:'status')
|
191
|
+
self.status = attributes[:'status']
|
192
|
+
else
|
193
|
+
self.status = nil
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.key?(:'finalizing_status')
|
197
|
+
self.finalizing_status = attributes[:'finalizing_status']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.key?(:'invoice_class')
|
201
|
+
self.invoice_class = attributes[:'invoice_class']
|
202
|
+
else
|
203
|
+
self.invoice_class = nil
|
204
|
+
end
|
205
|
+
|
206
|
+
if attributes.key?(:'invoice_type')
|
207
|
+
self.invoice_type = attributes[:'invoice_type']
|
208
|
+
else
|
209
|
+
self.invoice_type = nil
|
210
|
+
end
|
211
|
+
|
212
|
+
if attributes.key?(:'start_date')
|
213
|
+
self.start_date = attributes[:'start_date']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.key?(:'end_date')
|
217
|
+
self.end_date = attributes[:'end_date']
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.key?(:'end_date_inclusive')
|
221
|
+
self.end_date_inclusive = attributes[:'end_date_inclusive']
|
222
|
+
end
|
223
|
+
|
224
|
+
if attributes.key?(:'invoice_date')
|
225
|
+
self.invoice_date = attributes[:'invoice_date']
|
226
|
+
else
|
227
|
+
self.invoice_date = nil
|
228
|
+
end
|
229
|
+
|
230
|
+
if attributes.key?(:'due_date')
|
231
|
+
self.due_date = attributes[:'due_date']
|
232
|
+
end
|
233
|
+
|
234
|
+
if attributes.key?(:'generated_at')
|
235
|
+
self.generated_at = attributes[:'generated_at']
|
236
|
+
end
|
237
|
+
|
238
|
+
if attributes.key?(:'updated_at')
|
239
|
+
self.updated_at = attributes[:'updated_at']
|
240
|
+
else
|
241
|
+
self.updated_at = nil
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.key?(:'sequence_id')
|
245
|
+
self.sequence_id = attributes[:'sequence_id']
|
246
|
+
end
|
247
|
+
|
248
|
+
if attributes.key?(:'pdf_url')
|
249
|
+
self.pdf_url = attributes[:'pdf_url']
|
250
|
+
end
|
251
|
+
|
252
|
+
if attributes.key?(:'total_amount')
|
253
|
+
self.total_amount = attributes[:'total_amount']
|
254
|
+
else
|
255
|
+
self.total_amount = nil
|
256
|
+
end
|
257
|
+
|
258
|
+
if attributes.key?(:'paid_amount')
|
259
|
+
self.paid_amount = attributes[:'paid_amount']
|
260
|
+
else
|
261
|
+
self.paid_amount = nil
|
262
|
+
end
|
263
|
+
|
264
|
+
if attributes.key?(:'invoice_details')
|
265
|
+
self.invoice_details = attributes[:'invoice_details']
|
266
|
+
end
|
267
|
+
|
268
|
+
if attributes.key?(:'net_term_days')
|
269
|
+
self.net_term_days = attributes[:'net_term_days']
|
270
|
+
else
|
271
|
+
self.net_term_days = nil
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
276
|
+
# @return Array for valid properties with the reasons
|
277
|
+
def list_invalid_properties
|
278
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
279
|
+
invalid_properties = Array.new
|
280
|
+
if @id.nil?
|
281
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
282
|
+
end
|
283
|
+
|
284
|
+
if @id.to_s.length > 50
|
285
|
+
invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 50.')
|
286
|
+
end
|
287
|
+
|
288
|
+
if @status.nil?
|
289
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
290
|
+
end
|
291
|
+
|
292
|
+
if @invoice_class.nil?
|
293
|
+
invalid_properties.push('invalid value for "invoice_class", invoice_class cannot be nil.')
|
294
|
+
end
|
295
|
+
|
296
|
+
if @invoice_type.nil?
|
297
|
+
invalid_properties.push('invalid value for "invoice_type", invoice_type cannot be nil.')
|
298
|
+
end
|
299
|
+
|
300
|
+
if @invoice_date.nil?
|
301
|
+
invalid_properties.push('invalid value for "invoice_date", invoice_date cannot be nil.')
|
302
|
+
end
|
303
|
+
|
304
|
+
if @updated_at.nil?
|
305
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
306
|
+
end
|
307
|
+
|
308
|
+
if @total_amount.nil?
|
309
|
+
invalid_properties.push('invalid value for "total_amount", total_amount cannot be nil.')
|
310
|
+
end
|
311
|
+
|
312
|
+
if @paid_amount.nil?
|
313
|
+
invalid_properties.push('invalid value for "paid_amount", paid_amount cannot be nil.')
|
314
|
+
end
|
315
|
+
|
316
|
+
if @net_term_days.nil?
|
317
|
+
invalid_properties.push('invalid value for "net_term_days", net_term_days cannot be nil.')
|
318
|
+
end
|
319
|
+
|
320
|
+
invalid_properties
|
321
|
+
end
|
322
|
+
|
323
|
+
# Check to see if the all the properties in the model are valid
|
324
|
+
# @return true if the model is valid
|
325
|
+
def valid?
|
326
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
327
|
+
return false if @id.nil?
|
328
|
+
return false if @id.to_s.length > 50
|
329
|
+
return false if @status.nil?
|
330
|
+
finalizing_status_validator = EnumAttributeValidator.new('String', ["FINALIZING", "FINALIZED"])
|
331
|
+
return false unless finalizing_status_validator.valid?(@finalizing_status)
|
332
|
+
return false if @invoice_class.nil?
|
333
|
+
return false if @invoice_type.nil?
|
334
|
+
return false if @invoice_date.nil?
|
335
|
+
return false if @updated_at.nil?
|
336
|
+
return false if @total_amount.nil?
|
337
|
+
return false if @paid_amount.nil?
|
338
|
+
return false if @net_term_days.nil?
|
339
|
+
true
|
340
|
+
end
|
341
|
+
|
342
|
+
# Custom attribute writer method with validation
|
343
|
+
# @param [Object] id Value to be assigned
|
344
|
+
def id=(id)
|
345
|
+
if id.nil?
|
346
|
+
fail ArgumentError, 'id cannot be nil'
|
347
|
+
end
|
348
|
+
|
349
|
+
if id.to_s.length > 50
|
350
|
+
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 50.'
|
351
|
+
end
|
352
|
+
|
353
|
+
@id = id
|
354
|
+
end
|
355
|
+
|
356
|
+
# Custom attribute writer method checking allowed values (enum).
|
357
|
+
# @param [Object] finalizing_status Object to be assigned
|
358
|
+
def finalizing_status=(finalizing_status)
|
359
|
+
validator = EnumAttributeValidator.new('String', ["FINALIZING", "FINALIZED"])
|
360
|
+
unless validator.valid?(finalizing_status)
|
361
|
+
fail ArgumentError, "invalid value for \"finalizing_status\", must be one of #{validator.allowable_values}."
|
362
|
+
end
|
363
|
+
@finalizing_status = finalizing_status
|
364
|
+
end
|
365
|
+
|
366
|
+
# Checks equality by comparing each attribute.
|
367
|
+
# @param [Object] Object to be compared
|
368
|
+
def ==(o)
|
369
|
+
return true if self.equal?(o)
|
370
|
+
self.class == o.class &&
|
371
|
+
id == o.id &&
|
372
|
+
customer_id == o.customer_id &&
|
373
|
+
owner_id == o.owner_id &&
|
374
|
+
price_plan_id == o.price_plan_id &&
|
375
|
+
status == o.status &&
|
376
|
+
finalizing_status == o.finalizing_status &&
|
377
|
+
invoice_class == o.invoice_class &&
|
378
|
+
invoice_type == o.invoice_type &&
|
379
|
+
start_date == o.start_date &&
|
380
|
+
end_date == o.end_date &&
|
381
|
+
end_date_inclusive == o.end_date_inclusive &&
|
382
|
+
invoice_date == o.invoice_date &&
|
383
|
+
due_date == o.due_date &&
|
384
|
+
generated_at == o.generated_at &&
|
385
|
+
updated_at == o.updated_at &&
|
386
|
+
sequence_id == o.sequence_id &&
|
387
|
+
pdf_url == o.pdf_url &&
|
388
|
+
total_amount == o.total_amount &&
|
389
|
+
paid_amount == o.paid_amount &&
|
390
|
+
invoice_details == o.invoice_details &&
|
391
|
+
net_term_days == o.net_term_days
|
392
|
+
end
|
393
|
+
|
394
|
+
# @see the `==` method
|
395
|
+
# @param [Object] Object to be compared
|
396
|
+
def eql?(o)
|
397
|
+
self == o
|
398
|
+
end
|
399
|
+
|
400
|
+
# Calculates hash code according to all attributes.
|
401
|
+
# @return [Integer] Hash code
|
402
|
+
def hash
|
403
|
+
[id, customer_id, owner_id, price_plan_id, status, finalizing_status, invoice_class, invoice_type, start_date, end_date, end_date_inclusive, invoice_date, due_date, generated_at, updated_at, sequence_id, pdf_url, total_amount, paid_amount, invoice_details, net_term_days].hash
|
404
|
+
end
|
405
|
+
|
406
|
+
# Builds the object from hash
|
407
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
408
|
+
# @return [Object] Returns the model itself
|
409
|
+
def self.build_from_hash(attributes)
|
410
|
+
return nil unless attributes.is_a?(Hash)
|
411
|
+
attributes = attributes.transform_keys(&:to_sym)
|
412
|
+
transformed_hash = {}
|
413
|
+
openapi_types.each_pair do |key, type|
|
414
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
415
|
+
transformed_hash["#{key}"] = nil
|
416
|
+
elsif type =~ /\AArray<(.*)>/i
|
417
|
+
# check to ensure the input is an array given that the attribute
|
418
|
+
# is documented as an array but the input is not
|
419
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
420
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
421
|
+
end
|
422
|
+
elsif !attributes[attribute_map[key]].nil?
|
423
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
424
|
+
end
|
425
|
+
end
|
426
|
+
new(transformed_hash)
|
427
|
+
end
|
428
|
+
|
429
|
+
# Deserializes the data based on type
|
430
|
+
# @param string type Data type
|
431
|
+
# @param string value Value to be deserialized
|
432
|
+
# @return [Object] Deserialized data
|
433
|
+
def self._deserialize(type, value)
|
434
|
+
case type.to_sym
|
435
|
+
when :Time
|
436
|
+
Time.parse(value)
|
437
|
+
when :Date
|
438
|
+
Date.parse(value)
|
439
|
+
when :String
|
440
|
+
value.to_s
|
441
|
+
when :Integer
|
442
|
+
value.to_i
|
443
|
+
when :Float
|
444
|
+
value.to_f
|
445
|
+
when :Boolean
|
446
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
447
|
+
true
|
448
|
+
else
|
449
|
+
false
|
450
|
+
end
|
451
|
+
when :Object
|
452
|
+
# generic object (usually a Hash), return directly
|
453
|
+
value
|
454
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
455
|
+
inner_type = Regexp.last_match[:inner_type]
|
456
|
+
value.map { |v| _deserialize(inner_type, v) }
|
457
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
458
|
+
k_type = Regexp.last_match[:k_type]
|
459
|
+
v_type = Regexp.last_match[:v_type]
|
460
|
+
{}.tap do |hash|
|
461
|
+
value.each do |k, v|
|
462
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
463
|
+
end
|
464
|
+
end
|
465
|
+
else # model
|
466
|
+
# models (e.g. Pet) or oneOf
|
467
|
+
klass = TogaiClient.const_get(type)
|
468
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
# Returns the string representation of the object
|
473
|
+
# @return [String] String presentation of the object
|
474
|
+
def to_s
|
475
|
+
to_hash.to_s
|
476
|
+
end
|
477
|
+
|
478
|
+
# to_body is an alias to to_hash (backward compatibility)
|
479
|
+
# @return [Hash] Returns the object in the form of hash
|
480
|
+
def to_body
|
481
|
+
to_hash
|
482
|
+
end
|
483
|
+
|
484
|
+
# Returns the object in the form of hash
|
485
|
+
# @return [Hash] Returns the object in the form of hash
|
486
|
+
def to_hash
|
487
|
+
hash = {}
|
488
|
+
self.class.attribute_map.each_pair do |attr, param|
|
489
|
+
value = self.send(attr)
|
490
|
+
if value.nil?
|
491
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
492
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
493
|
+
end
|
494
|
+
|
495
|
+
hash[param] = _to_hash(value)
|
496
|
+
end
|
497
|
+
hash
|
498
|
+
end
|
499
|
+
|
500
|
+
# Outputs non-array value in the form of hash
|
501
|
+
# For object, use to_hash. Otherwise, just return the value
|
502
|
+
# @param [Object] value Any valid value
|
503
|
+
# @return [Hash] Returns the value in the form of hash
|
504
|
+
def _to_hash(value)
|
505
|
+
if value.is_a?(Array)
|
506
|
+
value.compact.map { |v| _to_hash(v) }
|
507
|
+
elsif value.is_a?(Hash)
|
508
|
+
{}.tap do |hash|
|
509
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
510
|
+
end
|
511
|
+
elsif value.respond_to? :to_hash
|
512
|
+
value.to_hash
|
513
|
+
else
|
514
|
+
value
|
515
|
+
end
|
516
|
+
end
|
517
|
+
|
518
|
+
end
|
519
|
+
|
520
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Togai Apis
|
3
|
+
|
4
|
+
#APIs for Togai App
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: engg@togai.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TogaiClient
|
17
|
+
class InvoiceTiming
|
18
|
+
IN_ADVANCE = "IN_ADVANCE".freeze
|
19
|
+
IN_ARREARS = "IN_ARREARS".freeze
|
20
|
+
PREPAID = "PREPAID".freeze
|
21
|
+
|
22
|
+
def self.all_vars
|
23
|
+
@all_vars ||= [IN_ADVANCE, IN_ARREARS, PREPAID].freeze
|
24
|
+
end
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def self.build_from_hash(value)
|
30
|
+
new.build_from_hash(value)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Builds the enum from string
|
34
|
+
# @param [String] The enum value in the form of the string
|
35
|
+
# @return [String] The enum value
|
36
|
+
def build_from_hash(value)
|
37
|
+
return value if InvoiceTiming.all_vars.include?(value)
|
38
|
+
raise "Invalid ENUM value #{value} for class #InvoiceTiming"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Togai Apis
|
3
|
+
|
4
|
+
#APIs for Togai App
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: engg@togai.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TogaiClient
|
17
|
+
class InvoicesClass
|
18
|
+
INVOICE = "INVOICE".freeze
|
19
|
+
ORDER = "ORDER".freeze
|
20
|
+
BILLABLE = "BILLABLE".freeze
|
21
|
+
|
22
|
+
def self.all_vars
|
23
|
+
@all_vars ||= [INVOICE, ORDER, BILLABLE].freeze
|
24
|
+
end
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def self.build_from_hash(value)
|
30
|
+
new.build_from_hash(value)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Builds the enum from string
|
34
|
+
# @param [String] The enum value in the form of the string
|
35
|
+
# @return [String] The enum value
|
36
|
+
def build_from_hash(value)
|
37
|
+
return value if InvoicesClass.all_vars.include?(value)
|
38
|
+
raise "Invalid ENUM value #{value} for class #InvoicesClass"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Togai Apis
|
3
|
+
|
4
|
+
#APIs for Togai App
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: engg@togai.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TogaiClient
|
17
|
+
class InvoicesStatus
|
18
|
+
DRAFT = "DRAFT".freeze
|
19
|
+
DUE = "DUE".freeze
|
20
|
+
PAID = "PAID".freeze
|
21
|
+
VOID = "VOID".freeze
|
22
|
+
UN_COLLECTIBLE = "UN_COLLECTIBLE".freeze
|
23
|
+
REFUND_INITIATED = "REFUND_INITIATED".freeze
|
24
|
+
REFUND_COMPLETED = "REFUND_COMPLETED".freeze
|
25
|
+
MERGED = "MERGED".freeze
|
26
|
+
PARTIALLY_PAID = "PARTIALLY_PAID".freeze
|
27
|
+
|
28
|
+
def self.all_vars
|
29
|
+
@all_vars ||= [DRAFT, DUE, PAID, VOID, UN_COLLECTIBLE, REFUND_INITIATED, REFUND_COMPLETED, MERGED, PARTIALLY_PAID].freeze
|
30
|
+
end
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def self.build_from_hash(value)
|
36
|
+
new.build_from_hash(value)
|
37
|
+
end
|
38
|
+
|
39
|
+
# Builds the enum from string
|
40
|
+
# @param [String] The enum value in the form of the string
|
41
|
+
# @return [String] The enum value
|
42
|
+
def build_from_hash(value)
|
43
|
+
return value if InvoicesStatus.all_vars.include?(value)
|
44
|
+
raise "Invalid ENUM value #{value} for class #InvoicesStatus"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
=begin
|
2
|
+
#Togai Apis
|
3
|
+
|
4
|
+
#APIs for Togai App
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: engg@togai.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TogaiClient
|
17
|
+
class InvoicesType
|
18
|
+
STANDARD = "STANDARD".freeze
|
19
|
+
AD_HOC = "AD_HOC".freeze
|
20
|
+
CUSTOM = "CUSTOM".freeze
|
21
|
+
COMPOSITE = "COMPOSITE".freeze
|
22
|
+
STANDARD_ADVANCED = "STANDARD_ADVANCED".freeze
|
23
|
+
ADHOC_ADVANCED = "ADHOC_ADVANCED".freeze
|
24
|
+
|
25
|
+
def self.all_vars
|
26
|
+
@all_vars ||= [STANDARD, AD_HOC, CUSTOM, COMPOSITE, STANDARD_ADVANCED, ADHOC_ADVANCED].freeze
|
27
|
+
end
|
28
|
+
|
29
|
+
# Builds the enum from string
|
30
|
+
# @param [String] The enum value in the form of the string
|
31
|
+
# @return [String] The enum value
|
32
|
+
def self.build_from_hash(value)
|
33
|
+
new.build_from_hash(value)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Builds the enum from string
|
37
|
+
# @param [String] The enum value in the form of the string
|
38
|
+
# @return [String] The enum value
|
39
|
+
def build_from_hash(value)
|
40
|
+
return value if InvoicesType.all_vars.include?(value)
|
41
|
+
raise "Invalid ENUM value #{value} for class #InvoicesType"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|