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
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: engg@togai.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,35 +19,41 @@ module TogaiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Activate a price plan
|
23
|
-
# Activate a price plan
|
24
|
-
# @param
|
22
|
+
# (DEPRECATED) Activate a price plan
|
23
|
+
# Activate a price plan details using price plan id
|
24
|
+
# @param price_plan_id [String]
|
25
|
+
# @param activate_price_plan_request [ActivatePricePlanRequest] Payload to activate price plan
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
27
|
# @return [PricePlan]
|
27
|
-
def activate_price_plan(
|
28
|
-
data, _status_code, _headers = activate_price_plan_with_http_info(
|
28
|
+
def activate_price_plan(price_plan_id, activate_price_plan_request, opts = {})
|
29
|
+
data, _status_code, _headers = activate_price_plan_with_http_info(price_plan_id, activate_price_plan_request, opts)
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
32
|
-
# Activate a price plan
|
33
|
-
# Activate a price plan
|
34
|
-
# @param
|
33
|
+
# (DEPRECATED) Activate a price plan
|
34
|
+
# Activate a price plan details using price plan id
|
35
|
+
# @param price_plan_id [String]
|
36
|
+
# @param activate_price_plan_request [ActivatePricePlanRequest] Payload to activate price plan
|
35
37
|
# @param [Hash] opts the optional parameters
|
36
38
|
# @return [Array<(PricePlan, Integer, Hash)>] PricePlan data, response status code and response headers
|
37
|
-
def activate_price_plan_with_http_info(
|
39
|
+
def activate_price_plan_with_http_info(price_plan_id, activate_price_plan_request, opts = {})
|
38
40
|
if @api_client.config.debugging
|
39
41
|
@api_client.config.logger.debug 'Calling API: PricePlansApi.activate_price_plan ...'
|
40
42
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
43
|
+
# verify the required parameter 'price_plan_id' is set
|
44
|
+
if @api_client.config.client_side_validation && price_plan_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'price_plan_id' when calling PricePlansApi.activate_price_plan"
|
44
46
|
end
|
45
|
-
if @api_client.config.client_side_validation &&
|
46
|
-
fail ArgumentError, 'invalid value for "
|
47
|
+
if @api_client.config.client_side_validation && price_plan_id.to_s.length > 50
|
48
|
+
fail ArgumentError, 'invalid value for "price_plan_id" when calling PricePlansApi.activate_price_plan, the character length must be smaller than or equal to 50.'
|
47
49
|
end
|
48
50
|
|
51
|
+
# verify the required parameter 'activate_price_plan_request' is set
|
52
|
+
if @api_client.config.client_side_validation && activate_price_plan_request.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'activate_price_plan_request' when calling PricePlansApi.activate_price_plan"
|
54
|
+
end
|
49
55
|
# resource path
|
50
|
-
local_var_path = '/price_plans/{
|
56
|
+
local_var_path = '/price_plans/{price_plan_id}/activate'.sub('{' + 'price_plan_id' + '}', CGI.escape(price_plan_id.to_s))
|
51
57
|
|
52
58
|
# query parameters
|
53
59
|
query_params = opts[:query_params] || {}
|
@@ -55,13 +61,18 @@ module TogaiClient
|
|
55
61
|
# header parameters
|
56
62
|
header_params = opts[:header_params] || {}
|
57
63
|
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
65
|
+
# HTTP header 'Content-Type'
|
66
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
67
|
+
if !content_type.nil?
|
68
|
+
header_params['Content-Type'] = content_type
|
69
|
+
end
|
59
70
|
|
60
71
|
# form parameters
|
61
72
|
form_params = opts[:form_params] || {}
|
62
73
|
|
63
74
|
# http body (model)
|
64
|
-
post_body = opts[:debug_body]
|
75
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(activate_price_plan_request)
|
65
76
|
|
66
77
|
# return_type
|
67
78
|
return_type = opts[:debug_return_type] || 'PricePlan'
|
@@ -86,20 +97,89 @@ module TogaiClient
|
|
86
97
|
return data, status_code, headers
|
87
98
|
end
|
88
99
|
|
89
|
-
#
|
90
|
-
#
|
100
|
+
# (DEPRECATED) Archive a price plan
|
101
|
+
# Archive a price plan
|
102
|
+
# @param price_plan_id [String]
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [BaseSuccessResponse]
|
105
|
+
def archive_price_plan(price_plan_id, opts = {})
|
106
|
+
data, _status_code, _headers = archive_price_plan_with_http_info(price_plan_id, opts)
|
107
|
+
data
|
108
|
+
end
|
109
|
+
|
110
|
+
# (DEPRECATED) Archive a price plan
|
111
|
+
# Archive a price plan
|
112
|
+
# @param price_plan_id [String]
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @return [Array<(BaseSuccessResponse, Integer, Hash)>] BaseSuccessResponse data, response status code and response headers
|
115
|
+
def archive_price_plan_with_http_info(price_plan_id, opts = {})
|
116
|
+
if @api_client.config.debugging
|
117
|
+
@api_client.config.logger.debug 'Calling API: PricePlansApi.archive_price_plan ...'
|
118
|
+
end
|
119
|
+
# verify the required parameter 'price_plan_id' is set
|
120
|
+
if @api_client.config.client_side_validation && price_plan_id.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'price_plan_id' when calling PricePlansApi.archive_price_plan"
|
122
|
+
end
|
123
|
+
if @api_client.config.client_side_validation && price_plan_id.to_s.length > 50
|
124
|
+
fail ArgumentError, 'invalid value for "price_plan_id" when calling PricePlansApi.archive_price_plan, the character length must be smaller than or equal to 50.'
|
125
|
+
end
|
126
|
+
|
127
|
+
# resource path
|
128
|
+
local_var_path = '/price_plans/{price_plan_id}'.sub('{' + 'price_plan_id' + '}', CGI.escape(price_plan_id.to_s))
|
129
|
+
|
130
|
+
# query parameters
|
131
|
+
query_params = opts[:query_params] || {}
|
132
|
+
|
133
|
+
# header parameters
|
134
|
+
header_params = opts[:header_params] || {}
|
135
|
+
# HTTP header 'Accept' (if needed)
|
136
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
137
|
+
|
138
|
+
# form parameters
|
139
|
+
form_params = opts[:form_params] || {}
|
140
|
+
|
141
|
+
# http body (model)
|
142
|
+
post_body = opts[:debug_body]
|
143
|
+
|
144
|
+
# return_type
|
145
|
+
return_type = opts[:debug_return_type] || 'BaseSuccessResponse'
|
146
|
+
|
147
|
+
# auth_names
|
148
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
149
|
+
|
150
|
+
new_options = opts.merge(
|
151
|
+
:operation => :"PricePlansApi.archive_price_plan",
|
152
|
+
:header_params => header_params,
|
153
|
+
:query_params => query_params,
|
154
|
+
:form_params => form_params,
|
155
|
+
:body => post_body,
|
156
|
+
:auth_names => auth_names,
|
157
|
+
:return_type => return_type
|
158
|
+
)
|
159
|
+
|
160
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
161
|
+
if @api_client.config.debugging
|
162
|
+
@api_client.config.logger.debug "API called: PricePlansApi#archive_price_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
163
|
+
end
|
164
|
+
return data, status_code, headers
|
165
|
+
end
|
166
|
+
|
167
|
+
# (DEPRECATED) Create a price plan
|
168
|
+
# This API let's you create and price plan Learn more about [Price Plans](https://docs.togai.com/docs/priceplan)
|
91
169
|
# @param create_price_plan_request [CreatePricePlanRequest] Payload to create price plan
|
92
170
|
# @param [Hash] opts the optional parameters
|
171
|
+
# @option opts [Boolean] :dry_run
|
93
172
|
# @return [PricePlan]
|
94
173
|
def create_price_plan(create_price_plan_request, opts = {})
|
95
174
|
data, _status_code, _headers = create_price_plan_with_http_info(create_price_plan_request, opts)
|
96
175
|
data
|
97
176
|
end
|
98
177
|
|
99
|
-
# Create a price plan
|
100
|
-
#
|
178
|
+
# (DEPRECATED) Create a price plan
|
179
|
+
# This API let's you create and price plan Learn more about [Price Plans](https://docs.togai.com/docs/priceplan)
|
101
180
|
# @param create_price_plan_request [CreatePricePlanRequest] Payload to create price plan
|
102
181
|
# @param [Hash] opts the optional parameters
|
182
|
+
# @option opts [Boolean] :dry_run
|
103
183
|
# @return [Array<(PricePlan, Integer, Hash)>] PricePlan data, response status code and response headers
|
104
184
|
def create_price_plan_with_http_info(create_price_plan_request, opts = {})
|
105
185
|
if @api_client.config.debugging
|
@@ -114,11 +194,12 @@ module TogaiClient
|
|
114
194
|
|
115
195
|
# query parameters
|
116
196
|
query_params = opts[:query_params] || {}
|
197
|
+
query_params[:'dry_run'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
117
198
|
|
118
199
|
# header parameters
|
119
200
|
header_params = opts[:header_params] || {}
|
120
201
|
# HTTP header 'Accept' (if needed)
|
121
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
202
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
122
203
|
# HTTP header 'Content-Type'
|
123
204
|
content_type = @api_client.select_header_content_type(['application/json'])
|
124
205
|
if !content_type.nil?
|
@@ -154,43 +235,46 @@ module TogaiClient
|
|
154
235
|
return data, status_code, headers
|
155
236
|
end
|
156
237
|
|
157
|
-
# Get a price plan
|
158
|
-
# Get a price plan
|
159
|
-
# @param
|
238
|
+
# (DEPRECATED) Get a price plan
|
239
|
+
# Get a price plan details using price plan id
|
240
|
+
# @param price_plan_id [String]
|
160
241
|
# @param [Hash] opts the optional parameters
|
242
|
+
# @option opts [Integer] :version Optional version to get a specific version. Gets latest version if it is not provided.
|
161
243
|
# @return [PricePlan]
|
162
|
-
def get_price_plan(
|
163
|
-
data, _status_code, _headers = get_price_plan_with_http_info(
|
244
|
+
def get_price_plan(price_plan_id, opts = {})
|
245
|
+
data, _status_code, _headers = get_price_plan_with_http_info(price_plan_id, opts)
|
164
246
|
data
|
165
247
|
end
|
166
248
|
|
167
|
-
# Get a price plan
|
168
|
-
# Get a price plan
|
169
|
-
# @param
|
249
|
+
# (DEPRECATED) Get a price plan
|
250
|
+
# Get a price plan details using price plan id
|
251
|
+
# @param price_plan_id [String]
|
170
252
|
# @param [Hash] opts the optional parameters
|
253
|
+
# @option opts [Integer] :version Optional version to get a specific version. Gets latest version if it is not provided.
|
171
254
|
# @return [Array<(PricePlan, Integer, Hash)>] PricePlan data, response status code and response headers
|
172
|
-
def get_price_plan_with_http_info(
|
255
|
+
def get_price_plan_with_http_info(price_plan_id, opts = {})
|
173
256
|
if @api_client.config.debugging
|
174
257
|
@api_client.config.logger.debug 'Calling API: PricePlansApi.get_price_plan ...'
|
175
258
|
end
|
176
|
-
# verify the required parameter '
|
177
|
-
if @api_client.config.client_side_validation &&
|
178
|
-
fail ArgumentError, "Missing the required parameter '
|
259
|
+
# verify the required parameter 'price_plan_id' is set
|
260
|
+
if @api_client.config.client_side_validation && price_plan_id.nil?
|
261
|
+
fail ArgumentError, "Missing the required parameter 'price_plan_id' when calling PricePlansApi.get_price_plan"
|
179
262
|
end
|
180
|
-
if @api_client.config.client_side_validation &&
|
181
|
-
fail ArgumentError, 'invalid value for "
|
263
|
+
if @api_client.config.client_side_validation && price_plan_id.to_s.length > 50
|
264
|
+
fail ArgumentError, 'invalid value for "price_plan_id" when calling PricePlansApi.get_price_plan, the character length must be smaller than or equal to 50.'
|
182
265
|
end
|
183
266
|
|
184
267
|
# resource path
|
185
|
-
local_var_path = '/price_plans/{
|
268
|
+
local_var_path = '/price_plans/{price_plan_id}'.sub('{' + 'price_plan_id' + '}', CGI.escape(price_plan_id.to_s))
|
186
269
|
|
187
270
|
# query parameters
|
188
271
|
query_params = opts[:query_params] || {}
|
272
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
189
273
|
|
190
274
|
# header parameters
|
191
275
|
header_params = opts[:header_params] || {}
|
192
276
|
# HTTP header 'Accept' (if needed)
|
193
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
277
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
194
278
|
|
195
279
|
# form parameters
|
196
280
|
form_params = opts[:form_params] || {}
|
@@ -221,22 +305,22 @@ module TogaiClient
|
|
221
305
|
return data, status_code, headers
|
222
306
|
end
|
223
307
|
|
224
|
-
# List price plans
|
225
|
-
#
|
308
|
+
# (DEPRECATED) List price plans
|
309
|
+
# Get a list of price plans
|
226
310
|
# @param [Hash] opts the optional parameters
|
227
311
|
# @option opts [String] :next_token
|
228
|
-
# @option opts [
|
312
|
+
# @option opts [Float] :page_size
|
229
313
|
# @return [PricePlanPaginatedResponse]
|
230
314
|
def get_price_plans(opts = {})
|
231
315
|
data, _status_code, _headers = get_price_plans_with_http_info(opts)
|
232
316
|
data
|
233
317
|
end
|
234
318
|
|
235
|
-
# List price plans
|
236
|
-
#
|
319
|
+
# (DEPRECATED) List price plans
|
320
|
+
# Get a list of price plans
|
237
321
|
# @param [Hash] opts the optional parameters
|
238
322
|
# @option opts [String] :next_token
|
239
|
-
# @option opts [
|
323
|
+
# @option opts [Float] :page_size
|
240
324
|
# @return [Array<(PricePlanPaginatedResponse, Integer, Hash)>] PricePlanPaginatedResponse data, response status code and response headers
|
241
325
|
def get_price_plans_with_http_info(opts = {})
|
242
326
|
if @api_client.config.debugging
|
@@ -253,7 +337,7 @@ module TogaiClient
|
|
253
337
|
# header parameters
|
254
338
|
header_params = opts[:header_params] || {}
|
255
339
|
# HTTP header 'Accept' (if needed)
|
256
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
257
341
|
|
258
342
|
# form parameters
|
259
343
|
form_params = opts[:form_params] || {}
|
@@ -284,33 +368,101 @@ module TogaiClient
|
|
284
368
|
return data, status_code, headers
|
285
369
|
end
|
286
370
|
|
287
|
-
#
|
288
|
-
#
|
289
|
-
# @param
|
371
|
+
# (DEPRECATED) Create a price plan migration
|
372
|
+
# Migrates accounts across price plans. This is an asynchronous process functioning on top of Togai's Jobs framework. Status of the created migrations can be obtained using the [Jobs APIs](https://docs.togai.com/api-reference/jobs/get-the-status-of-a-job)
|
373
|
+
# @param create_price_plan_migration_request [CreatePricePlanMigrationRequest] Payload to create price plan migration request
|
374
|
+
# @param [Hash] opts the optional parameters
|
375
|
+
# @return [BaseSuccessResponse]
|
376
|
+
def price_plan_migration(create_price_plan_migration_request, opts = {})
|
377
|
+
data, _status_code, _headers = price_plan_migration_with_http_info(create_price_plan_migration_request, opts)
|
378
|
+
data
|
379
|
+
end
|
380
|
+
|
381
|
+
# (DEPRECATED) Create a price plan migration
|
382
|
+
# Migrates accounts across price plans. This is an asynchronous process functioning on top of Togai's Jobs framework. Status of the created migrations can be obtained using the [Jobs APIs](https://docs.togai.com/api-reference/jobs/get-the-status-of-a-job)
|
383
|
+
# @param create_price_plan_migration_request [CreatePricePlanMigrationRequest] Payload to create price plan migration request
|
384
|
+
# @param [Hash] opts the optional parameters
|
385
|
+
# @return [Array<(BaseSuccessResponse, Integer, Hash)>] BaseSuccessResponse data, response status code and response headers
|
386
|
+
def price_plan_migration_with_http_info(create_price_plan_migration_request, opts = {})
|
387
|
+
if @api_client.config.debugging
|
388
|
+
@api_client.config.logger.debug 'Calling API: PricePlansApi.price_plan_migration ...'
|
389
|
+
end
|
390
|
+
# verify the required parameter 'create_price_plan_migration_request' is set
|
391
|
+
if @api_client.config.client_side_validation && create_price_plan_migration_request.nil?
|
392
|
+
fail ArgumentError, "Missing the required parameter 'create_price_plan_migration_request' when calling PricePlansApi.price_plan_migration"
|
393
|
+
end
|
394
|
+
# resource path
|
395
|
+
local_var_path = '/price_plans/migration'
|
396
|
+
|
397
|
+
# query parameters
|
398
|
+
query_params = opts[:query_params] || {}
|
399
|
+
|
400
|
+
# header parameters
|
401
|
+
header_params = opts[:header_params] || {}
|
402
|
+
# HTTP header 'Accept' (if needed)
|
403
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
404
|
+
# HTTP header 'Content-Type'
|
405
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
406
|
+
if !content_type.nil?
|
407
|
+
header_params['Content-Type'] = content_type
|
408
|
+
end
|
409
|
+
|
410
|
+
# form parameters
|
411
|
+
form_params = opts[:form_params] || {}
|
412
|
+
|
413
|
+
# http body (model)
|
414
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_price_plan_migration_request)
|
415
|
+
|
416
|
+
# return_type
|
417
|
+
return_type = opts[:debug_return_type] || 'BaseSuccessResponse'
|
418
|
+
|
419
|
+
# auth_names
|
420
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
421
|
+
|
422
|
+
new_options = opts.merge(
|
423
|
+
:operation => :"PricePlansApi.price_plan_migration",
|
424
|
+
:header_params => header_params,
|
425
|
+
:query_params => query_params,
|
426
|
+
:form_params => form_params,
|
427
|
+
:body => post_body,
|
428
|
+
:auth_names => auth_names,
|
429
|
+
:return_type => return_type
|
430
|
+
)
|
431
|
+
|
432
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
433
|
+
if @api_client.config.debugging
|
434
|
+
@api_client.config.logger.debug "API called: PricePlansApi#price_plan_migration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
435
|
+
end
|
436
|
+
return data, status_code, headers
|
437
|
+
end
|
438
|
+
|
439
|
+
# (DEPRECATED) Update a price plan
|
440
|
+
# Update an existing price plan Price Plans with status as DRAFT alone can be updated . Learn more about [Price plans](https://docs.togai.com/docs/priceplan) from our Guides
|
441
|
+
# @param price_plan_id [String]
|
290
442
|
# @param update_price_plan_request [UpdatePricePlanRequest] Payload to update price plan
|
291
443
|
# @param [Hash] opts the optional parameters
|
292
444
|
# @return [PricePlan]
|
293
|
-
def update_price_plan(
|
294
|
-
data, _status_code, _headers = update_price_plan_with_http_info(
|
445
|
+
def update_price_plan(price_plan_id, update_price_plan_request, opts = {})
|
446
|
+
data, _status_code, _headers = update_price_plan_with_http_info(price_plan_id, update_price_plan_request, opts)
|
295
447
|
data
|
296
448
|
end
|
297
449
|
|
298
|
-
# Update a price plan
|
299
|
-
# Update
|
300
|
-
# @param
|
450
|
+
# (DEPRECATED) Update a price plan
|
451
|
+
# Update an existing price plan Price Plans with status as DRAFT alone can be updated . Learn more about [Price plans](https://docs.togai.com/docs/priceplan) from our Guides
|
452
|
+
# @param price_plan_id [String]
|
301
453
|
# @param update_price_plan_request [UpdatePricePlanRequest] Payload to update price plan
|
302
454
|
# @param [Hash] opts the optional parameters
|
303
455
|
# @return [Array<(PricePlan, Integer, Hash)>] PricePlan data, response status code and response headers
|
304
|
-
def update_price_plan_with_http_info(
|
456
|
+
def update_price_plan_with_http_info(price_plan_id, update_price_plan_request, opts = {})
|
305
457
|
if @api_client.config.debugging
|
306
458
|
@api_client.config.logger.debug 'Calling API: PricePlansApi.update_price_plan ...'
|
307
459
|
end
|
308
|
-
# verify the required parameter '
|
309
|
-
if @api_client.config.client_side_validation &&
|
310
|
-
fail ArgumentError, "Missing the required parameter '
|
460
|
+
# verify the required parameter 'price_plan_id' is set
|
461
|
+
if @api_client.config.client_side_validation && price_plan_id.nil?
|
462
|
+
fail ArgumentError, "Missing the required parameter 'price_plan_id' when calling PricePlansApi.update_price_plan"
|
311
463
|
end
|
312
|
-
if @api_client.config.client_side_validation &&
|
313
|
-
fail ArgumentError, 'invalid value for "
|
464
|
+
if @api_client.config.client_side_validation && price_plan_id.to_s.length > 50
|
465
|
+
fail ArgumentError, 'invalid value for "price_plan_id" when calling PricePlansApi.update_price_plan, the character length must be smaller than or equal to 50.'
|
314
466
|
end
|
315
467
|
|
316
468
|
# verify the required parameter 'update_price_plan_request' is set
|
@@ -318,7 +470,7 @@ module TogaiClient
|
|
318
470
|
fail ArgumentError, "Missing the required parameter 'update_price_plan_request' when calling PricePlansApi.update_price_plan"
|
319
471
|
end
|
320
472
|
# resource path
|
321
|
-
local_var_path = '/price_plans/{
|
473
|
+
local_var_path = '/price_plans/{price_plan_id}'.sub('{' + 'price_plan_id' + '}', CGI.escape(price_plan_id.to_s))
|
322
474
|
|
323
475
|
# query parameters
|
324
476
|
query_params = opts[:query_params] || {}
|
@@ -326,7 +478,7 @@ module TogaiClient
|
|
326
478
|
# header parameters
|
327
479
|
header_params = opts[:header_params] || {}
|
328
480
|
# HTTP header 'Accept' (if needed)
|
329
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
481
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
330
482
|
# HTTP header 'Content-Type'
|
331
483
|
content_type = @api_client.select_header_content_type(['application/json'])
|
332
484
|
if !content_type.nil?
|
@@ -0,0 +1,106 @@
|
|
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 'cgi'
|
14
|
+
|
15
|
+
module TogaiClient
|
16
|
+
class PricingRulesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# (DEPRECATED) List pricing rules by price plan id and pricing schedule id
|
23
|
+
# Get a list of pricing rules using price plan id and pricing schedule id
|
24
|
+
# @param price_plan_id [String]
|
25
|
+
# @param pricing_schedule_id [String]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :invoice_timing Optional field to filter pricing rules based on invoice timing
|
28
|
+
# @return [PricingRulesPaginatedResponse]
|
29
|
+
def list_pricing_rules_by_schedule_id(price_plan_id, pricing_schedule_id, opts = {})
|
30
|
+
data, _status_code, _headers = list_pricing_rules_by_schedule_id_with_http_info(price_plan_id, pricing_schedule_id, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# (DEPRECATED) List pricing rules by price plan id and pricing schedule id
|
35
|
+
# Get a list of pricing rules using price plan id and pricing schedule id
|
36
|
+
# @param price_plan_id [String]
|
37
|
+
# @param pricing_schedule_id [String]
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :invoice_timing Optional field to filter pricing rules based on invoice timing
|
40
|
+
# @return [Array<(PricingRulesPaginatedResponse, Integer, Hash)>] PricingRulesPaginatedResponse data, response status code and response headers
|
41
|
+
def list_pricing_rules_by_schedule_id_with_http_info(price_plan_id, pricing_schedule_id, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: PricingRulesApi.list_pricing_rules_by_schedule_id ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'price_plan_id' is set
|
46
|
+
if @api_client.config.client_side_validation && price_plan_id.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'price_plan_id' when calling PricingRulesApi.list_pricing_rules_by_schedule_id"
|
48
|
+
end
|
49
|
+
if @api_client.config.client_side_validation && price_plan_id.to_s.length > 50
|
50
|
+
fail ArgumentError, 'invalid value for "price_plan_id" when calling PricingRulesApi.list_pricing_rules_by_schedule_id, the character length must be smaller than or equal to 50.'
|
51
|
+
end
|
52
|
+
|
53
|
+
# verify the required parameter 'pricing_schedule_id' is set
|
54
|
+
if @api_client.config.client_side_validation && pricing_schedule_id.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'pricing_schedule_id' when calling PricingRulesApi.list_pricing_rules_by_schedule_id"
|
56
|
+
end
|
57
|
+
if @api_client.config.client_side_validation && pricing_schedule_id.to_s.length > 50
|
58
|
+
fail ArgumentError, 'invalid value for "pricing_schedule_id" when calling PricingRulesApi.list_pricing_rules_by_schedule_id, the character length must be smaller than or equal to 50.'
|
59
|
+
end
|
60
|
+
|
61
|
+
allowable_values = ["IN_ADVANCE", "IN_ARREARS"]
|
62
|
+
if @api_client.config.client_side_validation && opts[:'invoice_timing'] && !allowable_values.include?(opts[:'invoice_timing'])
|
63
|
+
fail ArgumentError, "invalid value for \"invoice_timing\", must be one of #{allowable_values}"
|
64
|
+
end
|
65
|
+
# resource path
|
66
|
+
local_var_path = '/price_plans/{price_plan_id}/pricing_schedules/{pricing_schedule_id}/pricing_rules'.sub('{' + 'price_plan_id' + '}', CGI.escape(price_plan_id.to_s)).sub('{' + 'pricing_schedule_id' + '}', CGI.escape(pricing_schedule_id.to_s))
|
67
|
+
|
68
|
+
# query parameters
|
69
|
+
query_params = opts[:query_params] || {}
|
70
|
+
query_params[:'invoice_timing'] = opts[:'invoice_timing'] if !opts[:'invoice_timing'].nil?
|
71
|
+
|
72
|
+
# header parameters
|
73
|
+
header_params = opts[:header_params] || {}
|
74
|
+
# HTTP header 'Accept' (if needed)
|
75
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
76
|
+
|
77
|
+
# form parameters
|
78
|
+
form_params = opts[:form_params] || {}
|
79
|
+
|
80
|
+
# http body (model)
|
81
|
+
post_body = opts[:debug_body]
|
82
|
+
|
83
|
+
# return_type
|
84
|
+
return_type = opts[:debug_return_type] || 'PricingRulesPaginatedResponse'
|
85
|
+
|
86
|
+
# auth_names
|
87
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
88
|
+
|
89
|
+
new_options = opts.merge(
|
90
|
+
:operation => :"PricingRulesApi.list_pricing_rules_by_schedule_id",
|
91
|
+
:header_params => header_params,
|
92
|
+
:query_params => query_params,
|
93
|
+
:form_params => form_params,
|
94
|
+
:body => post_body,
|
95
|
+
:auth_names => auth_names,
|
96
|
+
:return_type => return_type
|
97
|
+
)
|
98
|
+
|
99
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
100
|
+
if @api_client.config.debugging
|
101
|
+
@api_client.config.logger.debug "API called: PricingRulesApi#list_pricing_rules_by_schedule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
102
|
+
end
|
103
|
+
return data, status_code, headers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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 'cgi'
|
14
|
+
|
15
|
+
module TogaiClient
|
16
|
+
class ReportsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List reports
|
23
|
+
# List reports
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :next_token
|
26
|
+
# @option opts [Float] :page_size
|
27
|
+
# @option opts [String] :fetch_for Fetch for flag used to get the reports from: 1. ALL: Both the organization and accounts 2. ORGANIZATION: Only the organization 3. ACCOUNTS: Only accounts, works with account_id filter only. (default to 'ORGANIZATION')
|
28
|
+
# @return [ReportsPaginatedResponse]
|
29
|
+
def list_reports(opts = {})
|
30
|
+
data, _status_code, _headers = list_reports_with_http_info(opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# List reports
|
35
|
+
# List reports
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :next_token
|
38
|
+
# @option opts [Float] :page_size
|
39
|
+
# @option opts [String] :fetch_for Fetch for flag used to get the reports from: 1. ALL: Both the organization and accounts 2. ORGANIZATION: Only the organization 3. ACCOUNTS: Only accounts, works with account_id filter only. (default to 'ORGANIZATION')
|
40
|
+
# @return [Array<(ReportsPaginatedResponse, Integer, Hash)>] ReportsPaginatedResponse data, response status code and response headers
|
41
|
+
def list_reports_with_http_info(opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: ReportsApi.list_reports ...'
|
44
|
+
end
|
45
|
+
allowable_values = ["ALL", "ORGANIZATION", "ACCOUNTS"]
|
46
|
+
if @api_client.config.client_side_validation && opts[:'fetch_for'] && !allowable_values.include?(opts[:'fetch_for'])
|
47
|
+
fail ArgumentError, "invalid value for \"fetch_for\", must be one of #{allowable_values}"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/reports'
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
55
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
56
|
+
query_params[:'fetchFor'] = opts[:'fetch_for'] if !opts[:'fetch_for'].nil?
|
57
|
+
|
58
|
+
# header parameters
|
59
|
+
header_params = opts[:header_params] || {}
|
60
|
+
# HTTP header 'Accept' (if needed)
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:debug_body]
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'ReportsPaginatedResponse'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :"ReportsApi.list_reports",
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: ReportsApi#list_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|