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,953 @@
|
|
1
|
+
# TogaiClient::PricePlanV2Api
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.togai.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**bulk_price_plan_rate_card_operations**](PricePlanV2Api.md#bulk_price_plan_rate_card_operations) | **POST** /v2/price_plans/{price_plan_id}/rate_cards | Bulk rate card operations of a price plan |
|
8
|
+
| [**create_price_plan_v2**](PricePlanV2Api.md#create_price_plan_v2) | **POST** /v2/price_plans | Create a price plan |
|
9
|
+
| [**discard_price_plan**](PricePlanV2Api.md#discard_price_plan) | **DELETE** /v2/price_plans/{price_plan_id}/discard | Discard a price plan |
|
10
|
+
| [**finalize_price_plan**](PricePlanV2Api.md#finalize_price_plan) | **POST** /v2/price_plans/{price_plan_id}/finalize | Finalize a price plan |
|
11
|
+
| [**get_price_plan_v2**](PricePlanV2Api.md#get_price_plan_v2) | **GET** /v2/price_plans/{price_plan_id} | Get a price plan |
|
12
|
+
| [**list_price_plan_errors**](PricePlanV2Api.md#list_price_plan_errors) | **GET** /v2/price_plans/{price_plan_id}/errors | Get list of errors of a price plan |
|
13
|
+
| [**list_price_plan_pricing_rules**](PricePlanV2Api.md#list_price_plan_pricing_rules) | **GET** /v2/price_plans/{price_plan_id}/pricing_rules | List pricing rules of a price plan |
|
14
|
+
| [**list_price_plan_rate_cards**](PricePlanV2Api.md#list_price_plan_rate_cards) | **GET** /v2/price_plans/{price_plan_id}/rate_cards | List rate cards of a price plan |
|
15
|
+
| [**list_price_plan_versions**](PricePlanV2Api.md#list_price_plan_versions) | **GET** /v2/price_plans/{price_plan_id}/versions | List price plan versions |
|
16
|
+
| [**list_price_plans_v2**](PricePlanV2Api.md#list_price_plans_v2) | **GET** /v2/price_plans | List price plans |
|
17
|
+
| [**price_plan_migration_v2**](PricePlanV2Api.md#price_plan_migration_v2) | **POST** /v2/price_plans/migration | Create a price plan v2 migration |
|
18
|
+
| [**update_price_plan_pricing_rules**](PricePlanV2Api.md#update_price_plan_pricing_rules) | **PUT** /v2/price_plans/{price_plan_id}/pricing_rules | Update pricing rules of a price plan |
|
19
|
+
| [**update_price_plan_v2**](PricePlanV2Api.md#update_price_plan_v2) | **PATCH** /v2/price_plans/{price_plan_id} | Update a price plan |
|
20
|
+
|
21
|
+
|
22
|
+
## bulk_price_plan_rate_card_operations
|
23
|
+
|
24
|
+
> <BulkRateCardOperationsResponse> bulk_price_plan_rate_card_operations(price_plan_id, bulk_rate_card_operations_request)
|
25
|
+
|
26
|
+
Bulk rate card operations of a price plan
|
27
|
+
|
28
|
+
Bulk rate card operations of a price plan
|
29
|
+
|
30
|
+
### Examples
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'time'
|
34
|
+
require 'togai_client'
|
35
|
+
# setup authorization
|
36
|
+
TogaiClient.configure do |config|
|
37
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
38
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
39
|
+
end
|
40
|
+
|
41
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
42
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
43
|
+
bulk_rate_card_operations_request = TogaiClient::BulkRateCardOperationsRequest.new({operations: [TogaiClient::RateCardOperation.new({action_type: 'CREATE', rate_card_name: 'rate_card_name_example'})]}) # BulkRateCardOperationsRequest | Payload to bulk rate card operations
|
44
|
+
|
45
|
+
begin
|
46
|
+
# Bulk rate card operations of a price plan
|
47
|
+
result = api_instance.bulk_price_plan_rate_card_operations(price_plan_id, bulk_rate_card_operations_request)
|
48
|
+
p result
|
49
|
+
rescue TogaiClient::ApiError => e
|
50
|
+
puts "Error when calling PricePlanV2Api->bulk_price_plan_rate_card_operations: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
#### Using the bulk_price_plan_rate_card_operations_with_http_info variant
|
55
|
+
|
56
|
+
This returns an Array which contains the response data, status code and headers.
|
57
|
+
|
58
|
+
> <Array(<BulkRateCardOperationsResponse>, Integer, Hash)> bulk_price_plan_rate_card_operations_with_http_info(price_plan_id, bulk_rate_card_operations_request)
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
begin
|
62
|
+
# Bulk rate card operations of a price plan
|
63
|
+
data, status_code, headers = api_instance.bulk_price_plan_rate_card_operations_with_http_info(price_plan_id, bulk_rate_card_operations_request)
|
64
|
+
p status_code # => 2xx
|
65
|
+
p headers # => { ... }
|
66
|
+
p data # => <BulkRateCardOperationsResponse>
|
67
|
+
rescue TogaiClient::ApiError => e
|
68
|
+
puts "Error when calling PricePlanV2Api->bulk_price_plan_rate_card_operations_with_http_info: #{e}"
|
69
|
+
end
|
70
|
+
```
|
71
|
+
|
72
|
+
### Parameters
|
73
|
+
|
74
|
+
| Name | Type | Description | Notes |
|
75
|
+
| ---- | ---- | ----------- | ----- |
|
76
|
+
| **price_plan_id** | **String** | | |
|
77
|
+
| **bulk_rate_card_operations_request** | [**BulkRateCardOperationsRequest**](BulkRateCardOperationsRequest.md) | Payload to bulk rate card operations | |
|
78
|
+
|
79
|
+
### Return type
|
80
|
+
|
81
|
+
[**BulkRateCardOperationsResponse**](BulkRateCardOperationsResponse.md)
|
82
|
+
|
83
|
+
### Authorization
|
84
|
+
|
85
|
+
[bearerAuth](../README.md#bearerAuth)
|
86
|
+
|
87
|
+
### HTTP request headers
|
88
|
+
|
89
|
+
- **Content-Type**: application/json
|
90
|
+
- **Accept**: application/json
|
91
|
+
|
92
|
+
|
93
|
+
## create_price_plan_v2
|
94
|
+
|
95
|
+
> <PricePlanV2> create_price_plan_v2(create_price_plan_v2_request, opts)
|
96
|
+
|
97
|
+
Create a price plan
|
98
|
+
|
99
|
+
Create a price plan
|
100
|
+
|
101
|
+
### Examples
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
require 'time'
|
105
|
+
require 'togai_client'
|
106
|
+
# setup authorization
|
107
|
+
TogaiClient.configure do |config|
|
108
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
109
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
110
|
+
end
|
111
|
+
|
112
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
113
|
+
create_price_plan_v2_request = TogaiClient::CreatePricePlanV2Request.new({name: 'name_example', type: TogaiClient::PricePlanType::BILLING, supported_currencies: ['supported_currencies_example']}) # CreatePricePlanV2Request | Payload to create price plan
|
114
|
+
opts = {
|
115
|
+
source_price_plan_id: 'pp.1zYnCiM9Bpg.lv25y' # String | The source price plan id to be used as a reference for creating a new price plan. This is optional and can be used to copy the pricing rules and rate cards from the source price plan.
|
116
|
+
}
|
117
|
+
|
118
|
+
begin
|
119
|
+
# Create a price plan
|
120
|
+
result = api_instance.create_price_plan_v2(create_price_plan_v2_request, opts)
|
121
|
+
p result
|
122
|
+
rescue TogaiClient::ApiError => e
|
123
|
+
puts "Error when calling PricePlanV2Api->create_price_plan_v2: #{e}"
|
124
|
+
end
|
125
|
+
```
|
126
|
+
|
127
|
+
#### Using the create_price_plan_v2_with_http_info variant
|
128
|
+
|
129
|
+
This returns an Array which contains the response data, status code and headers.
|
130
|
+
|
131
|
+
> <Array(<PricePlanV2>, Integer, Hash)> create_price_plan_v2_with_http_info(create_price_plan_v2_request, opts)
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
begin
|
135
|
+
# Create a price plan
|
136
|
+
data, status_code, headers = api_instance.create_price_plan_v2_with_http_info(create_price_plan_v2_request, opts)
|
137
|
+
p status_code # => 2xx
|
138
|
+
p headers # => { ... }
|
139
|
+
p data # => <PricePlanV2>
|
140
|
+
rescue TogaiClient::ApiError => e
|
141
|
+
puts "Error when calling PricePlanV2Api->create_price_plan_v2_with_http_info: #{e}"
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
### Parameters
|
146
|
+
|
147
|
+
| Name | Type | Description | Notes |
|
148
|
+
| ---- | ---- | ----------- | ----- |
|
149
|
+
| **create_price_plan_v2_request** | [**CreatePricePlanV2Request**](CreatePricePlanV2Request.md) | Payload to create price plan | |
|
150
|
+
| **source_price_plan_id** | **String** | The source price plan id to be used as a reference for creating a new price plan. This is optional and can be used to copy the pricing rules and rate cards from the source price plan. | [optional] |
|
151
|
+
|
152
|
+
### Return type
|
153
|
+
|
154
|
+
[**PricePlanV2**](PricePlanV2.md)
|
155
|
+
|
156
|
+
### Authorization
|
157
|
+
|
158
|
+
[bearerAuth](../README.md#bearerAuth)
|
159
|
+
|
160
|
+
### HTTP request headers
|
161
|
+
|
162
|
+
- **Content-Type**: application/json
|
163
|
+
- **Accept**: application/json
|
164
|
+
|
165
|
+
|
166
|
+
## discard_price_plan
|
167
|
+
|
168
|
+
> <BaseSuccessResponse> discard_price_plan(price_plan_id)
|
169
|
+
|
170
|
+
Discard a price plan
|
171
|
+
|
172
|
+
Discard a price plan
|
173
|
+
|
174
|
+
### Examples
|
175
|
+
|
176
|
+
```ruby
|
177
|
+
require 'time'
|
178
|
+
require 'togai_client'
|
179
|
+
# setup authorization
|
180
|
+
TogaiClient.configure do |config|
|
181
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
182
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
183
|
+
end
|
184
|
+
|
185
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
186
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
187
|
+
|
188
|
+
begin
|
189
|
+
# Discard a price plan
|
190
|
+
result = api_instance.discard_price_plan(price_plan_id)
|
191
|
+
p result
|
192
|
+
rescue TogaiClient::ApiError => e
|
193
|
+
puts "Error when calling PricePlanV2Api->discard_price_plan: #{e}"
|
194
|
+
end
|
195
|
+
```
|
196
|
+
|
197
|
+
#### Using the discard_price_plan_with_http_info variant
|
198
|
+
|
199
|
+
This returns an Array which contains the response data, status code and headers.
|
200
|
+
|
201
|
+
> <Array(<BaseSuccessResponse>, Integer, Hash)> discard_price_plan_with_http_info(price_plan_id)
|
202
|
+
|
203
|
+
```ruby
|
204
|
+
begin
|
205
|
+
# Discard a price plan
|
206
|
+
data, status_code, headers = api_instance.discard_price_plan_with_http_info(price_plan_id)
|
207
|
+
p status_code # => 2xx
|
208
|
+
p headers # => { ... }
|
209
|
+
p data # => <BaseSuccessResponse>
|
210
|
+
rescue TogaiClient::ApiError => e
|
211
|
+
puts "Error when calling PricePlanV2Api->discard_price_plan_with_http_info: #{e}"
|
212
|
+
end
|
213
|
+
```
|
214
|
+
|
215
|
+
### Parameters
|
216
|
+
|
217
|
+
| Name | Type | Description | Notes |
|
218
|
+
| ---- | ---- | ----------- | ----- |
|
219
|
+
| **price_plan_id** | **String** | | |
|
220
|
+
|
221
|
+
### Return type
|
222
|
+
|
223
|
+
[**BaseSuccessResponse**](BaseSuccessResponse.md)
|
224
|
+
|
225
|
+
### Authorization
|
226
|
+
|
227
|
+
[bearerAuth](../README.md#bearerAuth)
|
228
|
+
|
229
|
+
### HTTP request headers
|
230
|
+
|
231
|
+
- **Content-Type**: Not defined
|
232
|
+
- **Accept**: application/json
|
233
|
+
|
234
|
+
|
235
|
+
## finalize_price_plan
|
236
|
+
|
237
|
+
> <BaseSuccessResponse> finalize_price_plan(price_plan_id, finalize_price_plan_request)
|
238
|
+
|
239
|
+
Finalize a price plan
|
240
|
+
|
241
|
+
Finalize a price plan
|
242
|
+
|
243
|
+
### Examples
|
244
|
+
|
245
|
+
```ruby
|
246
|
+
require 'time'
|
247
|
+
require 'togai_client'
|
248
|
+
# setup authorization
|
249
|
+
TogaiClient.configure do |config|
|
250
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
251
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
252
|
+
end
|
253
|
+
|
254
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
255
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
256
|
+
finalize_price_plan_request = TogaiClient::FinalizePricePlanRequest.new # FinalizePricePlanRequest | Payload to finalize price plan
|
257
|
+
|
258
|
+
begin
|
259
|
+
# Finalize a price plan
|
260
|
+
result = api_instance.finalize_price_plan(price_plan_id, finalize_price_plan_request)
|
261
|
+
p result
|
262
|
+
rescue TogaiClient::ApiError => e
|
263
|
+
puts "Error when calling PricePlanV2Api->finalize_price_plan: #{e}"
|
264
|
+
end
|
265
|
+
```
|
266
|
+
|
267
|
+
#### Using the finalize_price_plan_with_http_info variant
|
268
|
+
|
269
|
+
This returns an Array which contains the response data, status code and headers.
|
270
|
+
|
271
|
+
> <Array(<BaseSuccessResponse>, Integer, Hash)> finalize_price_plan_with_http_info(price_plan_id, finalize_price_plan_request)
|
272
|
+
|
273
|
+
```ruby
|
274
|
+
begin
|
275
|
+
# Finalize a price plan
|
276
|
+
data, status_code, headers = api_instance.finalize_price_plan_with_http_info(price_plan_id, finalize_price_plan_request)
|
277
|
+
p status_code # => 2xx
|
278
|
+
p headers # => { ... }
|
279
|
+
p data # => <BaseSuccessResponse>
|
280
|
+
rescue TogaiClient::ApiError => e
|
281
|
+
puts "Error when calling PricePlanV2Api->finalize_price_plan_with_http_info: #{e}"
|
282
|
+
end
|
283
|
+
```
|
284
|
+
|
285
|
+
### Parameters
|
286
|
+
|
287
|
+
| Name | Type | Description | Notes |
|
288
|
+
| ---- | ---- | ----------- | ----- |
|
289
|
+
| **price_plan_id** | **String** | | |
|
290
|
+
| **finalize_price_plan_request** | [**FinalizePricePlanRequest**](FinalizePricePlanRequest.md) | Payload to finalize price plan | |
|
291
|
+
|
292
|
+
### Return type
|
293
|
+
|
294
|
+
[**BaseSuccessResponse**](BaseSuccessResponse.md)
|
295
|
+
|
296
|
+
### Authorization
|
297
|
+
|
298
|
+
[bearerAuth](../README.md#bearerAuth)
|
299
|
+
|
300
|
+
### HTTP request headers
|
301
|
+
|
302
|
+
- **Content-Type**: application/json
|
303
|
+
- **Accept**: application/json
|
304
|
+
|
305
|
+
|
306
|
+
## get_price_plan_v2
|
307
|
+
|
308
|
+
> <PricePlanV2> get_price_plan_v2(price_plan_id, opts)
|
309
|
+
|
310
|
+
Get a price plan
|
311
|
+
|
312
|
+
Get a price plan
|
313
|
+
|
314
|
+
### Examples
|
315
|
+
|
316
|
+
```ruby
|
317
|
+
require 'time'
|
318
|
+
require 'togai_client'
|
319
|
+
# setup authorization
|
320
|
+
TogaiClient.configure do |config|
|
321
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
322
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
323
|
+
end
|
324
|
+
|
325
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
326
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
327
|
+
opts = {
|
328
|
+
version: 'version_example' # String | Optional version to get a specific version. Gets latest version if it is not provided. Possible values: 1. LATEST - Get the latest version of the price plan, can be draft 2. ACTIVE - Get the latest active version of the price plan 3. NUMBER - Get the specific version of the price plans
|
329
|
+
}
|
330
|
+
|
331
|
+
begin
|
332
|
+
# Get a price plan
|
333
|
+
result = api_instance.get_price_plan_v2(price_plan_id, opts)
|
334
|
+
p result
|
335
|
+
rescue TogaiClient::ApiError => e
|
336
|
+
puts "Error when calling PricePlanV2Api->get_price_plan_v2: #{e}"
|
337
|
+
end
|
338
|
+
```
|
339
|
+
|
340
|
+
#### Using the get_price_plan_v2_with_http_info variant
|
341
|
+
|
342
|
+
This returns an Array which contains the response data, status code and headers.
|
343
|
+
|
344
|
+
> <Array(<PricePlanV2>, Integer, Hash)> get_price_plan_v2_with_http_info(price_plan_id, opts)
|
345
|
+
|
346
|
+
```ruby
|
347
|
+
begin
|
348
|
+
# Get a price plan
|
349
|
+
data, status_code, headers = api_instance.get_price_plan_v2_with_http_info(price_plan_id, opts)
|
350
|
+
p status_code # => 2xx
|
351
|
+
p headers # => { ... }
|
352
|
+
p data # => <PricePlanV2>
|
353
|
+
rescue TogaiClient::ApiError => e
|
354
|
+
puts "Error when calling PricePlanV2Api->get_price_plan_v2_with_http_info: #{e}"
|
355
|
+
end
|
356
|
+
```
|
357
|
+
|
358
|
+
### Parameters
|
359
|
+
|
360
|
+
| Name | Type | Description | Notes |
|
361
|
+
| ---- | ---- | ----------- | ----- |
|
362
|
+
| **price_plan_id** | **String** | | |
|
363
|
+
| **version** | **String** | Optional version to get a specific version. Gets latest version if it is not provided. Possible values: 1. LATEST - Get the latest version of the price plan, can be draft 2. ACTIVE - Get the latest active version of the price plan 3. NUMBER - Get the specific version of the price plans | [optional] |
|
364
|
+
|
365
|
+
### Return type
|
366
|
+
|
367
|
+
[**PricePlanV2**](PricePlanV2.md)
|
368
|
+
|
369
|
+
### Authorization
|
370
|
+
|
371
|
+
[bearerAuth](../README.md#bearerAuth)
|
372
|
+
|
373
|
+
### HTTP request headers
|
374
|
+
|
375
|
+
- **Content-Type**: Not defined
|
376
|
+
- **Accept**: application/json
|
377
|
+
|
378
|
+
|
379
|
+
## list_price_plan_errors
|
380
|
+
|
381
|
+
> <ValidatedEntityErrorsPaginatedResponse> list_price_plan_errors(price_plan_id)
|
382
|
+
|
383
|
+
Get list of errors of a price plan
|
384
|
+
|
385
|
+
Get list of errors of a price plan
|
386
|
+
|
387
|
+
### Examples
|
388
|
+
|
389
|
+
```ruby
|
390
|
+
require 'time'
|
391
|
+
require 'togai_client'
|
392
|
+
# setup authorization
|
393
|
+
TogaiClient.configure do |config|
|
394
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
395
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
396
|
+
end
|
397
|
+
|
398
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
399
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
400
|
+
|
401
|
+
begin
|
402
|
+
# Get list of errors of a price plan
|
403
|
+
result = api_instance.list_price_plan_errors(price_plan_id)
|
404
|
+
p result
|
405
|
+
rescue TogaiClient::ApiError => e
|
406
|
+
puts "Error when calling PricePlanV2Api->list_price_plan_errors: #{e}"
|
407
|
+
end
|
408
|
+
```
|
409
|
+
|
410
|
+
#### Using the list_price_plan_errors_with_http_info variant
|
411
|
+
|
412
|
+
This returns an Array which contains the response data, status code and headers.
|
413
|
+
|
414
|
+
> <Array(<ValidatedEntityErrorsPaginatedResponse>, Integer, Hash)> list_price_plan_errors_with_http_info(price_plan_id)
|
415
|
+
|
416
|
+
```ruby
|
417
|
+
begin
|
418
|
+
# Get list of errors of a price plan
|
419
|
+
data, status_code, headers = api_instance.list_price_plan_errors_with_http_info(price_plan_id)
|
420
|
+
p status_code # => 2xx
|
421
|
+
p headers # => { ... }
|
422
|
+
p data # => <ValidatedEntityErrorsPaginatedResponse>
|
423
|
+
rescue TogaiClient::ApiError => e
|
424
|
+
puts "Error when calling PricePlanV2Api->list_price_plan_errors_with_http_info: #{e}"
|
425
|
+
end
|
426
|
+
```
|
427
|
+
|
428
|
+
### Parameters
|
429
|
+
|
430
|
+
| Name | Type | Description | Notes |
|
431
|
+
| ---- | ---- | ----------- | ----- |
|
432
|
+
| **price_plan_id** | **String** | | |
|
433
|
+
|
434
|
+
### Return type
|
435
|
+
|
436
|
+
[**ValidatedEntityErrorsPaginatedResponse**](ValidatedEntityErrorsPaginatedResponse.md)
|
437
|
+
|
438
|
+
### Authorization
|
439
|
+
|
440
|
+
[bearerAuth](../README.md#bearerAuth)
|
441
|
+
|
442
|
+
### HTTP request headers
|
443
|
+
|
444
|
+
- **Content-Type**: Not defined
|
445
|
+
- **Accept**: application/json
|
446
|
+
|
447
|
+
|
448
|
+
## list_price_plan_pricing_rules
|
449
|
+
|
450
|
+
> <PricingRulesPaginatedResponse> list_price_plan_pricing_rules(price_plan_id, opts)
|
451
|
+
|
452
|
+
List pricing rules of a price plan
|
453
|
+
|
454
|
+
List pricing rules of a price plan
|
455
|
+
|
456
|
+
### Examples
|
457
|
+
|
458
|
+
```ruby
|
459
|
+
require 'time'
|
460
|
+
require 'togai_client'
|
461
|
+
# setup authorization
|
462
|
+
TogaiClient.configure do |config|
|
463
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
464
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
465
|
+
end
|
466
|
+
|
467
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
468
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
469
|
+
opts = {
|
470
|
+
version: 'version_example' # String | Optional version to get a specific version. Gets latest version if it is not provided. Possible values: 1. LATEST - Get the latest version of the price plan, can be draft 2. ACTIVE - Get the latest active version of the price plan 3. NUMBER - Get the specific version of the price plans
|
471
|
+
}
|
472
|
+
|
473
|
+
begin
|
474
|
+
# List pricing rules of a price plan
|
475
|
+
result = api_instance.list_price_plan_pricing_rules(price_plan_id, opts)
|
476
|
+
p result
|
477
|
+
rescue TogaiClient::ApiError => e
|
478
|
+
puts "Error when calling PricePlanV2Api->list_price_plan_pricing_rules: #{e}"
|
479
|
+
end
|
480
|
+
```
|
481
|
+
|
482
|
+
#### Using the list_price_plan_pricing_rules_with_http_info variant
|
483
|
+
|
484
|
+
This returns an Array which contains the response data, status code and headers.
|
485
|
+
|
486
|
+
> <Array(<PricingRulesPaginatedResponse>, Integer, Hash)> list_price_plan_pricing_rules_with_http_info(price_plan_id, opts)
|
487
|
+
|
488
|
+
```ruby
|
489
|
+
begin
|
490
|
+
# List pricing rules of a price plan
|
491
|
+
data, status_code, headers = api_instance.list_price_plan_pricing_rules_with_http_info(price_plan_id, opts)
|
492
|
+
p status_code # => 2xx
|
493
|
+
p headers # => { ... }
|
494
|
+
p data # => <PricingRulesPaginatedResponse>
|
495
|
+
rescue TogaiClient::ApiError => e
|
496
|
+
puts "Error when calling PricePlanV2Api->list_price_plan_pricing_rules_with_http_info: #{e}"
|
497
|
+
end
|
498
|
+
```
|
499
|
+
|
500
|
+
### Parameters
|
501
|
+
|
502
|
+
| Name | Type | Description | Notes |
|
503
|
+
| ---- | ---- | ----------- | ----- |
|
504
|
+
| **price_plan_id** | **String** | | |
|
505
|
+
| **version** | **String** | Optional version to get a specific version. Gets latest version if it is not provided. Possible values: 1. LATEST - Get the latest version of the price plan, can be draft 2. ACTIVE - Get the latest active version of the price plan 3. NUMBER - Get the specific version of the price plans | [optional] |
|
506
|
+
|
507
|
+
### Return type
|
508
|
+
|
509
|
+
[**PricingRulesPaginatedResponse**](PricingRulesPaginatedResponse.md)
|
510
|
+
|
511
|
+
### Authorization
|
512
|
+
|
513
|
+
[bearerAuth](../README.md#bearerAuth)
|
514
|
+
|
515
|
+
### HTTP request headers
|
516
|
+
|
517
|
+
- **Content-Type**: Not defined
|
518
|
+
- **Accept**: application/json
|
519
|
+
|
520
|
+
|
521
|
+
## list_price_plan_rate_cards
|
522
|
+
|
523
|
+
> <RateCardPaginatedResponse> list_price_plan_rate_cards(price_plan_id, opts)
|
524
|
+
|
525
|
+
List rate cards of a price plan
|
526
|
+
|
527
|
+
List rate cards of a price plan
|
528
|
+
|
529
|
+
### Examples
|
530
|
+
|
531
|
+
```ruby
|
532
|
+
require 'time'
|
533
|
+
require 'togai_client'
|
534
|
+
# setup authorization
|
535
|
+
TogaiClient.configure do |config|
|
536
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
537
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
538
|
+
end
|
539
|
+
|
540
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
541
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
542
|
+
opts = {
|
543
|
+
next_token: 'eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ==', # String |
|
544
|
+
page_size: 10 # Float |
|
545
|
+
}
|
546
|
+
|
547
|
+
begin
|
548
|
+
# List rate cards of a price plan
|
549
|
+
result = api_instance.list_price_plan_rate_cards(price_plan_id, opts)
|
550
|
+
p result
|
551
|
+
rescue TogaiClient::ApiError => e
|
552
|
+
puts "Error when calling PricePlanV2Api->list_price_plan_rate_cards: #{e}"
|
553
|
+
end
|
554
|
+
```
|
555
|
+
|
556
|
+
#### Using the list_price_plan_rate_cards_with_http_info variant
|
557
|
+
|
558
|
+
This returns an Array which contains the response data, status code and headers.
|
559
|
+
|
560
|
+
> <Array(<RateCardPaginatedResponse>, Integer, Hash)> list_price_plan_rate_cards_with_http_info(price_plan_id, opts)
|
561
|
+
|
562
|
+
```ruby
|
563
|
+
begin
|
564
|
+
# List rate cards of a price plan
|
565
|
+
data, status_code, headers = api_instance.list_price_plan_rate_cards_with_http_info(price_plan_id, opts)
|
566
|
+
p status_code # => 2xx
|
567
|
+
p headers # => { ... }
|
568
|
+
p data # => <RateCardPaginatedResponse>
|
569
|
+
rescue TogaiClient::ApiError => e
|
570
|
+
puts "Error when calling PricePlanV2Api->list_price_plan_rate_cards_with_http_info: #{e}"
|
571
|
+
end
|
572
|
+
```
|
573
|
+
|
574
|
+
### Parameters
|
575
|
+
|
576
|
+
| Name | Type | Description | Notes |
|
577
|
+
| ---- | ---- | ----------- | ----- |
|
578
|
+
| **price_plan_id** | **String** | | |
|
579
|
+
| **next_token** | **String** | | [optional] |
|
580
|
+
| **page_size** | **Float** | | [optional] |
|
581
|
+
|
582
|
+
### Return type
|
583
|
+
|
584
|
+
[**RateCardPaginatedResponse**](RateCardPaginatedResponse.md)
|
585
|
+
|
586
|
+
### Authorization
|
587
|
+
|
588
|
+
[bearerAuth](../README.md#bearerAuth)
|
589
|
+
|
590
|
+
### HTTP request headers
|
591
|
+
|
592
|
+
- **Content-Type**: Not defined
|
593
|
+
- **Accept**: application/json
|
594
|
+
|
595
|
+
|
596
|
+
## list_price_plan_versions
|
597
|
+
|
598
|
+
> <PricePlanV2PaginatedResponse> list_price_plan_versions(price_plan_id, opts)
|
599
|
+
|
600
|
+
List price plan versions
|
601
|
+
|
602
|
+
List price plan versions
|
603
|
+
|
604
|
+
### Examples
|
605
|
+
|
606
|
+
```ruby
|
607
|
+
require 'time'
|
608
|
+
require 'togai_client'
|
609
|
+
# setup authorization
|
610
|
+
TogaiClient.configure do |config|
|
611
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
612
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
613
|
+
end
|
614
|
+
|
615
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
616
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
617
|
+
opts = {
|
618
|
+
next_token: 'eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ==', # String |
|
619
|
+
page_size: 10 # Float |
|
620
|
+
}
|
621
|
+
|
622
|
+
begin
|
623
|
+
# List price plan versions
|
624
|
+
result = api_instance.list_price_plan_versions(price_plan_id, opts)
|
625
|
+
p result
|
626
|
+
rescue TogaiClient::ApiError => e
|
627
|
+
puts "Error when calling PricePlanV2Api->list_price_plan_versions: #{e}"
|
628
|
+
end
|
629
|
+
```
|
630
|
+
|
631
|
+
#### Using the list_price_plan_versions_with_http_info variant
|
632
|
+
|
633
|
+
This returns an Array which contains the response data, status code and headers.
|
634
|
+
|
635
|
+
> <Array(<PricePlanV2PaginatedResponse>, Integer, Hash)> list_price_plan_versions_with_http_info(price_plan_id, opts)
|
636
|
+
|
637
|
+
```ruby
|
638
|
+
begin
|
639
|
+
# List price plan versions
|
640
|
+
data, status_code, headers = api_instance.list_price_plan_versions_with_http_info(price_plan_id, opts)
|
641
|
+
p status_code # => 2xx
|
642
|
+
p headers # => { ... }
|
643
|
+
p data # => <PricePlanV2PaginatedResponse>
|
644
|
+
rescue TogaiClient::ApiError => e
|
645
|
+
puts "Error when calling PricePlanV2Api->list_price_plan_versions_with_http_info: #{e}"
|
646
|
+
end
|
647
|
+
```
|
648
|
+
|
649
|
+
### Parameters
|
650
|
+
|
651
|
+
| Name | Type | Description | Notes |
|
652
|
+
| ---- | ---- | ----------- | ----- |
|
653
|
+
| **price_plan_id** | **String** | | |
|
654
|
+
| **next_token** | **String** | | [optional] |
|
655
|
+
| **page_size** | **Float** | | [optional] |
|
656
|
+
|
657
|
+
### Return type
|
658
|
+
|
659
|
+
[**PricePlanV2PaginatedResponse**](PricePlanV2PaginatedResponse.md)
|
660
|
+
|
661
|
+
### Authorization
|
662
|
+
|
663
|
+
[bearerAuth](../README.md#bearerAuth)
|
664
|
+
|
665
|
+
### HTTP request headers
|
666
|
+
|
667
|
+
- **Content-Type**: Not defined
|
668
|
+
- **Accept**: application/json
|
669
|
+
|
670
|
+
|
671
|
+
## list_price_plans_v2
|
672
|
+
|
673
|
+
> <PricePlanV2PaginatedResponse> list_price_plans_v2(opts)
|
674
|
+
|
675
|
+
List price plans
|
676
|
+
|
677
|
+
List price plans
|
678
|
+
|
679
|
+
### Examples
|
680
|
+
|
681
|
+
```ruby
|
682
|
+
require 'time'
|
683
|
+
require 'togai_client'
|
684
|
+
# setup authorization
|
685
|
+
TogaiClient.configure do |config|
|
686
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
687
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
688
|
+
end
|
689
|
+
|
690
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
691
|
+
opts = {
|
692
|
+
next_token: 'eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ==', # String |
|
693
|
+
page_size: 10 # Float |
|
694
|
+
}
|
695
|
+
|
696
|
+
begin
|
697
|
+
# List price plans
|
698
|
+
result = api_instance.list_price_plans_v2(opts)
|
699
|
+
p result
|
700
|
+
rescue TogaiClient::ApiError => e
|
701
|
+
puts "Error when calling PricePlanV2Api->list_price_plans_v2: #{e}"
|
702
|
+
end
|
703
|
+
```
|
704
|
+
|
705
|
+
#### Using the list_price_plans_v2_with_http_info variant
|
706
|
+
|
707
|
+
This returns an Array which contains the response data, status code and headers.
|
708
|
+
|
709
|
+
> <Array(<PricePlanV2PaginatedResponse>, Integer, Hash)> list_price_plans_v2_with_http_info(opts)
|
710
|
+
|
711
|
+
```ruby
|
712
|
+
begin
|
713
|
+
# List price plans
|
714
|
+
data, status_code, headers = api_instance.list_price_plans_v2_with_http_info(opts)
|
715
|
+
p status_code # => 2xx
|
716
|
+
p headers # => { ... }
|
717
|
+
p data # => <PricePlanV2PaginatedResponse>
|
718
|
+
rescue TogaiClient::ApiError => e
|
719
|
+
puts "Error when calling PricePlanV2Api->list_price_plans_v2_with_http_info: #{e}"
|
720
|
+
end
|
721
|
+
```
|
722
|
+
|
723
|
+
### Parameters
|
724
|
+
|
725
|
+
| Name | Type | Description | Notes |
|
726
|
+
| ---- | ---- | ----------- | ----- |
|
727
|
+
| **next_token** | **String** | | [optional] |
|
728
|
+
| **page_size** | **Float** | | [optional] |
|
729
|
+
|
730
|
+
### Return type
|
731
|
+
|
732
|
+
[**PricePlanV2PaginatedResponse**](PricePlanV2PaginatedResponse.md)
|
733
|
+
|
734
|
+
### Authorization
|
735
|
+
|
736
|
+
[bearerAuth](../README.md#bearerAuth)
|
737
|
+
|
738
|
+
### HTTP request headers
|
739
|
+
|
740
|
+
- **Content-Type**: Not defined
|
741
|
+
- **Accept**: application/json
|
742
|
+
|
743
|
+
|
744
|
+
## price_plan_migration_v2
|
745
|
+
|
746
|
+
> <BaseSuccessResponse> price_plan_migration_v2(create_price_plan_migration_request)
|
747
|
+
|
748
|
+
Create a price plan v2 migration
|
749
|
+
|
750
|
+
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)
|
751
|
+
|
752
|
+
### Examples
|
753
|
+
|
754
|
+
```ruby
|
755
|
+
require 'time'
|
756
|
+
require 'togai_client'
|
757
|
+
# setup authorization
|
758
|
+
TogaiClient.configure do |config|
|
759
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
760
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
761
|
+
end
|
762
|
+
|
763
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
764
|
+
create_price_plan_migration_request = TogaiClient::CreatePricePlanMigrationRequest.new({source_id: 'source_id_example', source_version: 37, migration_mode: 'IMMEDIATE'}) # CreatePricePlanMigrationRequest | Payload to create price plan migration request
|
765
|
+
|
766
|
+
begin
|
767
|
+
# Create a price plan v2 migration
|
768
|
+
result = api_instance.price_plan_migration_v2(create_price_plan_migration_request)
|
769
|
+
p result
|
770
|
+
rescue TogaiClient::ApiError => e
|
771
|
+
puts "Error when calling PricePlanV2Api->price_plan_migration_v2: #{e}"
|
772
|
+
end
|
773
|
+
```
|
774
|
+
|
775
|
+
#### Using the price_plan_migration_v2_with_http_info variant
|
776
|
+
|
777
|
+
This returns an Array which contains the response data, status code and headers.
|
778
|
+
|
779
|
+
> <Array(<BaseSuccessResponse>, Integer, Hash)> price_plan_migration_v2_with_http_info(create_price_plan_migration_request)
|
780
|
+
|
781
|
+
```ruby
|
782
|
+
begin
|
783
|
+
# Create a price plan v2 migration
|
784
|
+
data, status_code, headers = api_instance.price_plan_migration_v2_with_http_info(create_price_plan_migration_request)
|
785
|
+
p status_code # => 2xx
|
786
|
+
p headers # => { ... }
|
787
|
+
p data # => <BaseSuccessResponse>
|
788
|
+
rescue TogaiClient::ApiError => e
|
789
|
+
puts "Error when calling PricePlanV2Api->price_plan_migration_v2_with_http_info: #{e}"
|
790
|
+
end
|
791
|
+
```
|
792
|
+
|
793
|
+
### Parameters
|
794
|
+
|
795
|
+
| Name | Type | Description | Notes |
|
796
|
+
| ---- | ---- | ----------- | ----- |
|
797
|
+
| **create_price_plan_migration_request** | [**CreatePricePlanMigrationRequest**](CreatePricePlanMigrationRequest.md) | Payload to create price plan migration request | |
|
798
|
+
|
799
|
+
### Return type
|
800
|
+
|
801
|
+
[**BaseSuccessResponse**](BaseSuccessResponse.md)
|
802
|
+
|
803
|
+
### Authorization
|
804
|
+
|
805
|
+
[bearerAuth](../README.md#bearerAuth)
|
806
|
+
|
807
|
+
### HTTP request headers
|
808
|
+
|
809
|
+
- **Content-Type**: application/json
|
810
|
+
- **Accept**: application/json
|
811
|
+
|
812
|
+
|
813
|
+
## update_price_plan_pricing_rules
|
814
|
+
|
815
|
+
> <PricingRulesPaginatedResponse> update_price_plan_pricing_rules(price_plan_id, update_pricing_rules_request)
|
816
|
+
|
817
|
+
Update pricing rules of a price plan
|
818
|
+
|
819
|
+
Update pricing rules of a price plan
|
820
|
+
|
821
|
+
### Examples
|
822
|
+
|
823
|
+
```ruby
|
824
|
+
require 'time'
|
825
|
+
require 'togai_client'
|
826
|
+
# setup authorization
|
827
|
+
TogaiClient.configure do |config|
|
828
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
829
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
830
|
+
end
|
831
|
+
|
832
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
833
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
834
|
+
update_pricing_rules_request = TogaiClient::UpdatePricingRulesRequest.new # UpdatePricingRulesRequest | Payload to update pricing rules
|
835
|
+
|
836
|
+
begin
|
837
|
+
# Update pricing rules of a price plan
|
838
|
+
result = api_instance.update_price_plan_pricing_rules(price_plan_id, update_pricing_rules_request)
|
839
|
+
p result
|
840
|
+
rescue TogaiClient::ApiError => e
|
841
|
+
puts "Error when calling PricePlanV2Api->update_price_plan_pricing_rules: #{e}"
|
842
|
+
end
|
843
|
+
```
|
844
|
+
|
845
|
+
#### Using the update_price_plan_pricing_rules_with_http_info variant
|
846
|
+
|
847
|
+
This returns an Array which contains the response data, status code and headers.
|
848
|
+
|
849
|
+
> <Array(<PricingRulesPaginatedResponse>, Integer, Hash)> update_price_plan_pricing_rules_with_http_info(price_plan_id, update_pricing_rules_request)
|
850
|
+
|
851
|
+
```ruby
|
852
|
+
begin
|
853
|
+
# Update pricing rules of a price plan
|
854
|
+
data, status_code, headers = api_instance.update_price_plan_pricing_rules_with_http_info(price_plan_id, update_pricing_rules_request)
|
855
|
+
p status_code # => 2xx
|
856
|
+
p headers # => { ... }
|
857
|
+
p data # => <PricingRulesPaginatedResponse>
|
858
|
+
rescue TogaiClient::ApiError => e
|
859
|
+
puts "Error when calling PricePlanV2Api->update_price_plan_pricing_rules_with_http_info: #{e}"
|
860
|
+
end
|
861
|
+
```
|
862
|
+
|
863
|
+
### Parameters
|
864
|
+
|
865
|
+
| Name | Type | Description | Notes |
|
866
|
+
| ---- | ---- | ----------- | ----- |
|
867
|
+
| **price_plan_id** | **String** | | |
|
868
|
+
| **update_pricing_rules_request** | [**UpdatePricingRulesRequest**](UpdatePricingRulesRequest.md) | Payload to update pricing rules | |
|
869
|
+
|
870
|
+
### Return type
|
871
|
+
|
872
|
+
[**PricingRulesPaginatedResponse**](PricingRulesPaginatedResponse.md)
|
873
|
+
|
874
|
+
### Authorization
|
875
|
+
|
876
|
+
[bearerAuth](../README.md#bearerAuth)
|
877
|
+
|
878
|
+
### HTTP request headers
|
879
|
+
|
880
|
+
- **Content-Type**: application/json
|
881
|
+
- **Accept**: application/json
|
882
|
+
|
883
|
+
|
884
|
+
## update_price_plan_v2
|
885
|
+
|
886
|
+
> <PricePlanV2> update_price_plan_v2(price_plan_id, update_price_plan_v2_request)
|
887
|
+
|
888
|
+
Update a price plan
|
889
|
+
|
890
|
+
Update a price plan
|
891
|
+
|
892
|
+
### Examples
|
893
|
+
|
894
|
+
```ruby
|
895
|
+
require 'time'
|
896
|
+
require 'togai_client'
|
897
|
+
# setup authorization
|
898
|
+
TogaiClient.configure do |config|
|
899
|
+
# Configure Bearer authorization (Bearer <credential>): bearerAuth
|
900
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
901
|
+
end
|
902
|
+
|
903
|
+
api_instance = TogaiClient::PricePlanV2Api.new
|
904
|
+
price_plan_id = 'pp.1zYnCiM9Bpg.lv25y' # String |
|
905
|
+
update_price_plan_v2_request = TogaiClient::UpdatePricePlanV2Request.new # UpdatePricePlanV2Request | Payload to update price plan
|
906
|
+
|
907
|
+
begin
|
908
|
+
# Update a price plan
|
909
|
+
result = api_instance.update_price_plan_v2(price_plan_id, update_price_plan_v2_request)
|
910
|
+
p result
|
911
|
+
rescue TogaiClient::ApiError => e
|
912
|
+
puts "Error when calling PricePlanV2Api->update_price_plan_v2: #{e}"
|
913
|
+
end
|
914
|
+
```
|
915
|
+
|
916
|
+
#### Using the update_price_plan_v2_with_http_info variant
|
917
|
+
|
918
|
+
This returns an Array which contains the response data, status code and headers.
|
919
|
+
|
920
|
+
> <Array(<PricePlanV2>, Integer, Hash)> update_price_plan_v2_with_http_info(price_plan_id, update_price_plan_v2_request)
|
921
|
+
|
922
|
+
```ruby
|
923
|
+
begin
|
924
|
+
# Update a price plan
|
925
|
+
data, status_code, headers = api_instance.update_price_plan_v2_with_http_info(price_plan_id, update_price_plan_v2_request)
|
926
|
+
p status_code # => 2xx
|
927
|
+
p headers # => { ... }
|
928
|
+
p data # => <PricePlanV2>
|
929
|
+
rescue TogaiClient::ApiError => e
|
930
|
+
puts "Error when calling PricePlanV2Api->update_price_plan_v2_with_http_info: #{e}"
|
931
|
+
end
|
932
|
+
```
|
933
|
+
|
934
|
+
### Parameters
|
935
|
+
|
936
|
+
| Name | Type | Description | Notes |
|
937
|
+
| ---- | ---- | ----------- | ----- |
|
938
|
+
| **price_plan_id** | **String** | | |
|
939
|
+
| **update_price_plan_v2_request** | [**UpdatePricePlanV2Request**](UpdatePricePlanV2Request.md) | Payload to update price plan | |
|
940
|
+
|
941
|
+
### Return type
|
942
|
+
|
943
|
+
[**PricePlanV2**](PricePlanV2.md)
|
944
|
+
|
945
|
+
### Authorization
|
946
|
+
|
947
|
+
[bearerAuth](../README.md#bearerAuth)
|
948
|
+
|
949
|
+
### HTTP request headers
|
950
|
+
|
951
|
+
- **Content-Type**: application/json
|
952
|
+
- **Accept**: application/json
|
953
|
+
|