togai_client 1.0.0 → 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/AssociatePricePlanRequest.md +4 -4
- 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/Bundle.md +22 -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 -4
- 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/EventPipelineInfoPricePlansInner.md +2 -0
- data/docs/EventPipelineInfoRevenueDetails.md +22 -0
- data/docs/EventPipelineInfoUsageMeters.md +26 -0
- data/docs/EventSchema.md +11 -1
- data/docs/EventSchemaListData.md +13 -3
- data/docs/EventSchemaListDataAllOf.md +2 -2
- 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/GetEventResponse.md +1 -1
- 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 +8 -2
- data/docs/PreAction.md +20 -0
- data/docs/PriceExperimentationApi.md +147 -0
- data/docs/PricePlan.md +4 -2
- data/docs/PricePlanDetails.md +42 -0
- data/docs/PricePlanDetailsConfig.md +28 -0
- data/docs/PricePlanDetailsOverride.md +34 -0
- data/docs/PricePlanInfo.md +20 -0
- data/docs/PricePlanListData.md +12 -6
- data/docs/PricePlanMigrationConfig.md +30 -0
- data/docs/PricePlanPaginatedResponse.md +1 -1
- 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/PriceType.md +15 -0
- data/docs/PricingCycleConfig.md +24 -0
- data/docs/{PricingCycleStartOffset.md → PricingCycleConfigStartOffset.md} +3 -3
- data/docs/PricingCycleInterval.md +15 -0
- data/docs/PricingModel.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 +11 -3
- 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/RateCardBundleAggregation.md +15 -0
- 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/RateCardType.md +15 -0
- data/docs/RateConfigBundle.md +20 -0
- data/docs/RateConfigUsage.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/SlabBundle.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/{UsageStrategy.md → SlabUsage.md} +6 -2
- 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 -4
- 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/examples/example.rb +222 -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/associate_price_plan_request.rb +17 -7
- 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/{pricing_cycle_start_offset.rb → bundle.rb} +58 -25
- 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 +65 -52
- data/lib/togai_client/models/create_customer_response.rb +79 -47
- 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 +72 -41
- 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/{rate_card_bundle.rb → currency_config.rb} +63 -95
- 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 +66 -33
- 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_price_plans_inner.rb +15 -1
- 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 +96 -39
- data/lib/togai_client/models/event_schema_list_data_all_of.rb +7 -9
- 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 +21 -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 +70 -26
- data/lib/togai_client/models/pre_action.rb +269 -0
- data/lib/togai_client/models/price_plan.rb +59 -35
- data/lib/togai_client/models/price_plan_details.rb +396 -0
- data/lib/togai_client/models/price_plan_details_config.rb +344 -0
- data/lib/togai_client/models/price_plan_details_override.rb +345 -0
- data/lib/togai_client/models/price_plan_info.rb +230 -0
- data/lib/togai_client/models/price_plan_list_data.rb +125 -49
- data/lib/togai_client/models/price_plan_migration_config.rb +368 -0
- data/lib/togai_client/models/price_plan_paginated_response.rb +21 -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 +41 -0
- data/lib/togai_client/models/{pricing_cycle.rb → pricing_cycle_config.rb} +38 -71
- data/lib/togai_client/models/pricing_cycle_config_start_offset.rb +240 -0
- data/lib/togai_client/models/pricing_cycle_interval.rb +43 -0
- data/lib/togai_client/models/pricing_model.rb +40 -0
- 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 +106 -29
- 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 +321 -44
- data/lib/togai_client/models/rate_card_bundle_aggregation.rb +39 -0
- 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 +45 -0
- data/lib/togai_client/models/{bundle_strategy_usage_meters_value.rb → rate_config_bundle.rb} +28 -13
- data/lib/togai_client/models/{rate_card_usage_value.rb → rate_config_usage.rb} +15 -98
- 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/signup_request.rb +0 -11
- data/lib/togai_client/models/slab.rb +315 -0
- data/lib/togai_client/models/{bundle_strategy.rb → slab_bundle.rb} +33 -94
- 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/{usage_strategy.rb → slab_usage.rb} +30 -5
- 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 -58
- 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 -34
- 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/user_details.rb +0 -11
- 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 +286 -22
- data/spec/spec_helper.rb +1 -1
- data/togai_client.gemspec +4 -3
- metadata +594 -25
- data/docs/BundleStrategy.md +0 -24
- data/docs/BundleStrategyUsageMetersValue.md +0 -18
- data/docs/PricingCycle.md +0 -24
- data/docs/RateCardBundle.md +0 -22
- data/docs/RateCardUsageValue.md +0 -24
@@ -0,0 +1,705 @@
|
|
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 InvoicesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a custom invoice for an account
|
23
|
+
# Create a custom invoice for an account.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [CreateCustomInvoiceRequest] :create_custom_invoice_request Payload to create invoice
|
26
|
+
# @return [Invoice]
|
27
|
+
def create_custom_invoice(opts = {})
|
28
|
+
data, _status_code, _headers = create_custom_invoice_with_http_info(opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a custom invoice for an account
|
33
|
+
# Create a custom invoice for an account.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [CreateCustomInvoiceRequest] :create_custom_invoice_request Payload to create invoice
|
36
|
+
# @return [Array<(Invoice, Integer, Hash)>] Invoice data, response status code and response headers
|
37
|
+
def create_custom_invoice_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.create_custom_invoice ...'
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/invoices'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
53
|
+
if !content_type.nil?
|
54
|
+
header_params['Content-Type'] = content_type
|
55
|
+
end
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_custom_invoice_request'])
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:debug_return_type] || 'Invoice'
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:operation => :"InvoicesApi.create_custom_invoice",
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: InvoicesApi#create_custom_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Create a bill run job request
|
87
|
+
# Create a bill run job request
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [Boolean] :require_confirmation Specifies whether to start a migration only after a confirmation
|
90
|
+
# @return [BaseSuccessResponse]
|
91
|
+
def create_invoice_bill_run(opts = {})
|
92
|
+
data, _status_code, _headers = create_invoice_bill_run_with_http_info(opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Create a bill run job request
|
97
|
+
# Create a bill run job request
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [Boolean] :require_confirmation Specifies whether to start a migration only after a confirmation
|
100
|
+
# @return [Array<(BaseSuccessResponse, Integer, Hash)>] BaseSuccessResponse data, response status code and response headers
|
101
|
+
def create_invoice_bill_run_with_http_info(opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.create_invoice_bill_run ...'
|
104
|
+
end
|
105
|
+
# resource path
|
106
|
+
local_var_path = '/invoices/bill_runs'
|
107
|
+
|
108
|
+
# query parameters
|
109
|
+
query_params = opts[:query_params] || {}
|
110
|
+
query_params[:'require_confirmation'] = opts[:'require_confirmation'] if !opts[:'require_confirmation'].nil?
|
111
|
+
|
112
|
+
# header parameters
|
113
|
+
header_params = opts[:header_params] || {}
|
114
|
+
# HTTP header 'Accept' (if needed)
|
115
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
116
|
+
|
117
|
+
# form parameters
|
118
|
+
form_params = opts[:form_params] || {}
|
119
|
+
|
120
|
+
# http body (model)
|
121
|
+
post_body = opts[:debug_body]
|
122
|
+
|
123
|
+
# return_type
|
124
|
+
return_type = opts[:debug_return_type] || 'BaseSuccessResponse'
|
125
|
+
|
126
|
+
# auth_names
|
127
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
128
|
+
|
129
|
+
new_options = opts.merge(
|
130
|
+
:operation => :"InvoicesApi.create_invoice_bill_run",
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => return_type
|
137
|
+
)
|
138
|
+
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
140
|
+
if @api_client.config.debugging
|
141
|
+
@api_client.config.logger.debug "API called: InvoicesApi#create_invoice_bill_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
+
end
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
|
146
|
+
# Delete a custom invoice in DRAFT state
|
147
|
+
# Delete a custom invoice in DRAFT state.
|
148
|
+
# @param invoice_id [String]
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [BaseSuccessResponse]
|
151
|
+
def delete_custom_invoice(invoice_id, opts = {})
|
152
|
+
data, _status_code, _headers = delete_custom_invoice_with_http_info(invoice_id, opts)
|
153
|
+
data
|
154
|
+
end
|
155
|
+
|
156
|
+
# Delete a custom invoice in DRAFT state
|
157
|
+
# Delete a custom invoice in DRAFT state.
|
158
|
+
# @param invoice_id [String]
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [Array<(BaseSuccessResponse, Integer, Hash)>] BaseSuccessResponse data, response status code and response headers
|
161
|
+
def delete_custom_invoice_with_http_info(invoice_id, opts = {})
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.delete_custom_invoice ...'
|
164
|
+
end
|
165
|
+
# verify the required parameter 'invoice_id' is set
|
166
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
167
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.delete_custom_invoice"
|
168
|
+
end
|
169
|
+
# resource path
|
170
|
+
local_var_path = '/invoices/{invoice_id}'.sub('{' + 'invoice_id' + '}', CGI.escape(invoice_id.to_s))
|
171
|
+
|
172
|
+
# query parameters
|
173
|
+
query_params = opts[:query_params] || {}
|
174
|
+
|
175
|
+
# header parameters
|
176
|
+
header_params = opts[:header_params] || {}
|
177
|
+
# HTTP header 'Accept' (if needed)
|
178
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
179
|
+
|
180
|
+
# form parameters
|
181
|
+
form_params = opts[:form_params] || {}
|
182
|
+
|
183
|
+
# http body (model)
|
184
|
+
post_body = opts[:debug_body]
|
185
|
+
|
186
|
+
# return_type
|
187
|
+
return_type = opts[:debug_return_type] || 'BaseSuccessResponse'
|
188
|
+
|
189
|
+
# auth_names
|
190
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
191
|
+
|
192
|
+
new_options = opts.merge(
|
193
|
+
:operation => :"InvoicesApi.delete_custom_invoice",
|
194
|
+
:header_params => header_params,
|
195
|
+
:query_params => query_params,
|
196
|
+
:form_params => form_params,
|
197
|
+
:body => post_body,
|
198
|
+
:auth_names => auth_names,
|
199
|
+
:return_type => return_type
|
200
|
+
)
|
201
|
+
|
202
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
203
|
+
if @api_client.config.debugging
|
204
|
+
@api_client.config.logger.debug "API called: InvoicesApi#delete_custom_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
205
|
+
end
|
206
|
+
return data, status_code, headers
|
207
|
+
end
|
208
|
+
|
209
|
+
# Get an invoice
|
210
|
+
# Get invoice
|
211
|
+
# @param invoice_id [String]
|
212
|
+
# @param [Hash] opts the optional parameters
|
213
|
+
# @return [Invoice]
|
214
|
+
def get_invoice(invoice_id, opts = {})
|
215
|
+
data, _status_code, _headers = get_invoice_with_http_info(invoice_id, opts)
|
216
|
+
data
|
217
|
+
end
|
218
|
+
|
219
|
+
# Get an invoice
|
220
|
+
# Get invoice
|
221
|
+
# @param invoice_id [String]
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @return [Array<(Invoice, Integer, Hash)>] Invoice data, response status code and response headers
|
224
|
+
def get_invoice_with_http_info(invoice_id, opts = {})
|
225
|
+
if @api_client.config.debugging
|
226
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.get_invoice ...'
|
227
|
+
end
|
228
|
+
# verify the required parameter 'invoice_id' is set
|
229
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
230
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.get_invoice"
|
231
|
+
end
|
232
|
+
# resource path
|
233
|
+
local_var_path = '/invoices/{invoice_id}'.sub('{' + 'invoice_id' + '}', CGI.escape(invoice_id.to_s))
|
234
|
+
|
235
|
+
# query parameters
|
236
|
+
query_params = opts[:query_params] || {}
|
237
|
+
|
238
|
+
# header parameters
|
239
|
+
header_params = opts[:header_params] || {}
|
240
|
+
# HTTP header 'Accept' (if needed)
|
241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
242
|
+
|
243
|
+
# form parameters
|
244
|
+
form_params = opts[:form_params] || {}
|
245
|
+
|
246
|
+
# http body (model)
|
247
|
+
post_body = opts[:debug_body]
|
248
|
+
|
249
|
+
# return_type
|
250
|
+
return_type = opts[:debug_return_type] || 'Invoice'
|
251
|
+
|
252
|
+
# auth_names
|
253
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
254
|
+
|
255
|
+
new_options = opts.merge(
|
256
|
+
:operation => :"InvoicesApi.get_invoice",
|
257
|
+
:header_params => header_params,
|
258
|
+
:query_params => query_params,
|
259
|
+
:form_params => form_params,
|
260
|
+
:body => post_body,
|
261
|
+
:auth_names => auth_names,
|
262
|
+
:return_type => return_type
|
263
|
+
)
|
264
|
+
|
265
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
266
|
+
if @api_client.config.debugging
|
267
|
+
@api_client.config.logger.debug "API called: InvoicesApi#get_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
268
|
+
end
|
269
|
+
return data, status_code, headers
|
270
|
+
end
|
271
|
+
|
272
|
+
# List invoices
|
273
|
+
# List invoices
|
274
|
+
# @param [Hash] opts the optional parameters
|
275
|
+
# @option opts [String] :next_token Pagination token used as a marker to get records from next page.
|
276
|
+
# @option opts [String] :status Filter option to filter by status.
|
277
|
+
# @option opts [String] :owner_id Filter option to filter based on owner id.
|
278
|
+
# @option opts [String] :customer_id Filter option to filter based on customer id.
|
279
|
+
# @option opts [Integer] :page_size Maximum page size expected by client to return the record list. NOTE: Max page size cannot be more than 50. Also 50 is the default page size if no value is provided.
|
280
|
+
# @option opts [Integer] :start_time Start time filter in epoch milli seconds
|
281
|
+
# @option opts [Integer] :end_time End time filter in epoch milli seconds
|
282
|
+
# @return [ListInvoicesResponse]
|
283
|
+
def list_invoices(opts = {})
|
284
|
+
data, _status_code, _headers = list_invoices_with_http_info(opts)
|
285
|
+
data
|
286
|
+
end
|
287
|
+
|
288
|
+
# List invoices
|
289
|
+
# List invoices
|
290
|
+
# @param [Hash] opts the optional parameters
|
291
|
+
# @option opts [String] :next_token Pagination token used as a marker to get records from next page.
|
292
|
+
# @option opts [String] :status Filter option to filter by status.
|
293
|
+
# @option opts [String] :owner_id Filter option to filter based on owner id.
|
294
|
+
# @option opts [String] :customer_id Filter option to filter based on customer id.
|
295
|
+
# @option opts [Integer] :page_size Maximum page size expected by client to return the record list. NOTE: Max page size cannot be more than 50. Also 50 is the default page size if no value is provided.
|
296
|
+
# @option opts [Integer] :start_time Start time filter in epoch milli seconds
|
297
|
+
# @option opts [Integer] :end_time End time filter in epoch milli seconds
|
298
|
+
# @return [Array<(ListInvoicesResponse, Integer, Hash)>] ListInvoicesResponse data, response status code and response headers
|
299
|
+
def list_invoices_with_http_info(opts = {})
|
300
|
+
if @api_client.config.debugging
|
301
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.list_invoices ...'
|
302
|
+
end
|
303
|
+
# resource path
|
304
|
+
local_var_path = '/invoices'
|
305
|
+
|
306
|
+
# query parameters
|
307
|
+
query_params = opts[:query_params] || {}
|
308
|
+
query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
309
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
310
|
+
query_params[:'owner_id'] = opts[:'owner_id'] if !opts[:'owner_id'].nil?
|
311
|
+
query_params[:'customer_id'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
|
312
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
313
|
+
query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
|
314
|
+
query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
315
|
+
|
316
|
+
# header parameters
|
317
|
+
header_params = opts[:header_params] || {}
|
318
|
+
# HTTP header 'Accept' (if needed)
|
319
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
320
|
+
|
321
|
+
# form parameters
|
322
|
+
form_params = opts[:form_params] || {}
|
323
|
+
|
324
|
+
# http body (model)
|
325
|
+
post_body = opts[:debug_body]
|
326
|
+
|
327
|
+
# return_type
|
328
|
+
return_type = opts[:debug_return_type] || 'ListInvoicesResponse'
|
329
|
+
|
330
|
+
# auth_names
|
331
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
332
|
+
|
333
|
+
new_options = opts.merge(
|
334
|
+
:operation => :"InvoicesApi.list_invoices",
|
335
|
+
:header_params => header_params,
|
336
|
+
:query_params => query_params,
|
337
|
+
:form_params => form_params,
|
338
|
+
:body => post_body,
|
339
|
+
:auth_names => auth_names,
|
340
|
+
:return_type => return_type
|
341
|
+
)
|
342
|
+
|
343
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
344
|
+
if @api_client.config.debugging
|
345
|
+
@api_client.config.logger.debug "API called: InvoicesApi#list_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
346
|
+
end
|
347
|
+
return data, status_code, headers
|
348
|
+
end
|
349
|
+
|
350
|
+
# List invoices eligible for bill run
|
351
|
+
# List invoices eligible for bill run
|
352
|
+
# @param [Hash] opts the optional parameters
|
353
|
+
# @option opts [String] :next_token Pagination token used as a marker to get records from next page.
|
354
|
+
# @option opts [String] :status Filter option to filter by status.
|
355
|
+
# @option opts [String] :owner_id Filter option to filter based on owner id.
|
356
|
+
# @option opts [String] :customer_id Filter option to filter based on customer id.
|
357
|
+
# @option opts [Integer] :page_size Maximum page size expected by client to return the record list. NOTE: Max page size cannot be more than 50. Also 50 is the default page size if no value is provided.
|
358
|
+
# @option opts [Integer] :start_time Start time filter in epoch milli seconds
|
359
|
+
# @option opts [Integer] :end_time End time filter in epoch milli seconds
|
360
|
+
# @return [ListInvoicesResponse]
|
361
|
+
def list_invoices_for_bill_run(opts = {})
|
362
|
+
data, _status_code, _headers = list_invoices_for_bill_run_with_http_info(opts)
|
363
|
+
data
|
364
|
+
end
|
365
|
+
|
366
|
+
# List invoices eligible for bill run
|
367
|
+
# List invoices eligible for bill run
|
368
|
+
# @param [Hash] opts the optional parameters
|
369
|
+
# @option opts [String] :next_token Pagination token used as a marker to get records from next page.
|
370
|
+
# @option opts [String] :status Filter option to filter by status.
|
371
|
+
# @option opts [String] :owner_id Filter option to filter based on owner id.
|
372
|
+
# @option opts [String] :customer_id Filter option to filter based on customer id.
|
373
|
+
# @option opts [Integer] :page_size Maximum page size expected by client to return the record list. NOTE: Max page size cannot be more than 50. Also 50 is the default page size if no value is provided.
|
374
|
+
# @option opts [Integer] :start_time Start time filter in epoch milli seconds
|
375
|
+
# @option opts [Integer] :end_time End time filter in epoch milli seconds
|
376
|
+
# @return [Array<(ListInvoicesResponse, Integer, Hash)>] ListInvoicesResponse data, response status code and response headers
|
377
|
+
def list_invoices_for_bill_run_with_http_info(opts = {})
|
378
|
+
if @api_client.config.debugging
|
379
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.list_invoices_for_bill_run ...'
|
380
|
+
end
|
381
|
+
# resource path
|
382
|
+
local_var_path = '/invoices/bill_runs'
|
383
|
+
|
384
|
+
# query parameters
|
385
|
+
query_params = opts[:query_params] || {}
|
386
|
+
query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
387
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
388
|
+
query_params[:'owner_id'] = opts[:'owner_id'] if !opts[:'owner_id'].nil?
|
389
|
+
query_params[:'customer_id'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
|
390
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
391
|
+
query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
|
392
|
+
query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
393
|
+
|
394
|
+
# header parameters
|
395
|
+
header_params = opts[:header_params] || {}
|
396
|
+
# HTTP header 'Accept' (if needed)
|
397
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
398
|
+
|
399
|
+
# form parameters
|
400
|
+
form_params = opts[:form_params] || {}
|
401
|
+
|
402
|
+
# http body (model)
|
403
|
+
post_body = opts[:debug_body]
|
404
|
+
|
405
|
+
# return_type
|
406
|
+
return_type = opts[:debug_return_type] || 'ListInvoicesResponse'
|
407
|
+
|
408
|
+
# auth_names
|
409
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
410
|
+
|
411
|
+
new_options = opts.merge(
|
412
|
+
:operation => :"InvoicesApi.list_invoices_for_bill_run",
|
413
|
+
:header_params => header_params,
|
414
|
+
:query_params => query_params,
|
415
|
+
:form_params => form_params,
|
416
|
+
:body => post_body,
|
417
|
+
:auth_names => auth_names,
|
418
|
+
:return_type => return_type
|
419
|
+
)
|
420
|
+
|
421
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
422
|
+
if @api_client.config.debugging
|
423
|
+
@api_client.config.logger.debug "API called: InvoicesApi#list_invoices_for_bill_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
424
|
+
end
|
425
|
+
return data, status_code, headers
|
426
|
+
end
|
427
|
+
|
428
|
+
# List pricing rule logs
|
429
|
+
# List pricing rule logs
|
430
|
+
# @param invoice_id [String]
|
431
|
+
# @param [Hash] opts the optional parameters
|
432
|
+
# @return [PricingRulesLogsPaginatedResponse]
|
433
|
+
def list_pricing_rule_logs(invoice_id, opts = {})
|
434
|
+
data, _status_code, _headers = list_pricing_rule_logs_with_http_info(invoice_id, opts)
|
435
|
+
data
|
436
|
+
end
|
437
|
+
|
438
|
+
# List pricing rule logs
|
439
|
+
# List pricing rule logs
|
440
|
+
# @param invoice_id [String]
|
441
|
+
# @param [Hash] opts the optional parameters
|
442
|
+
# @return [Array<(PricingRulesLogsPaginatedResponse, Integer, Hash)>] PricingRulesLogsPaginatedResponse data, response status code and response headers
|
443
|
+
def list_pricing_rule_logs_with_http_info(invoice_id, opts = {})
|
444
|
+
if @api_client.config.debugging
|
445
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.list_pricing_rule_logs ...'
|
446
|
+
end
|
447
|
+
# verify the required parameter 'invoice_id' is set
|
448
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
449
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.list_pricing_rule_logs"
|
450
|
+
end
|
451
|
+
# resource path
|
452
|
+
local_var_path = '/invoice/{invoice_id}/pricing_rules_logs'.sub('{' + 'invoice_id' + '}', CGI.escape(invoice_id.to_s))
|
453
|
+
|
454
|
+
# query parameters
|
455
|
+
query_params = opts[:query_params] || {}
|
456
|
+
|
457
|
+
# header parameters
|
458
|
+
header_params = opts[:header_params] || {}
|
459
|
+
# HTTP header 'Accept' (if needed)
|
460
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
461
|
+
|
462
|
+
# form parameters
|
463
|
+
form_params = opts[:form_params] || {}
|
464
|
+
|
465
|
+
# http body (model)
|
466
|
+
post_body = opts[:debug_body]
|
467
|
+
|
468
|
+
# return_type
|
469
|
+
return_type = opts[:debug_return_type] || 'PricingRulesLogsPaginatedResponse'
|
470
|
+
|
471
|
+
# auth_names
|
472
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
473
|
+
|
474
|
+
new_options = opts.merge(
|
475
|
+
:operation => :"InvoicesApi.list_pricing_rule_logs",
|
476
|
+
:header_params => header_params,
|
477
|
+
:query_params => query_params,
|
478
|
+
:form_params => form_params,
|
479
|
+
:body => post_body,
|
480
|
+
:auth_names => auth_names,
|
481
|
+
:return_type => return_type
|
482
|
+
)
|
483
|
+
|
484
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
485
|
+
if @api_client.config.debugging
|
486
|
+
@api_client.config.logger.debug "API called: InvoicesApi#list_pricing_rule_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
487
|
+
end
|
488
|
+
return data, status_code, headers
|
489
|
+
end
|
490
|
+
|
491
|
+
# Add or update miscellaneous charges in upcoming Invoice for a account
|
492
|
+
# Add or update miscellaneous charges in upcoming Invoice for a account
|
493
|
+
# @param account_id [String] account_id corresponding to an account
|
494
|
+
# @param [Hash] opts the optional parameters
|
495
|
+
# @option opts [ManageMiscellaneousChargesRequest] :manage_miscellaneous_charges_request Payload to update custom line items
|
496
|
+
# @return [MiscellaneousChargesResponse]
|
497
|
+
def manage_miscellaneous_charges_in_account(account_id, opts = {})
|
498
|
+
data, _status_code, _headers = manage_miscellaneous_charges_in_account_with_http_info(account_id, opts)
|
499
|
+
data
|
500
|
+
end
|
501
|
+
|
502
|
+
# Add or update miscellaneous charges in upcoming Invoice for a account
|
503
|
+
# Add or update miscellaneous charges in upcoming Invoice for a account
|
504
|
+
# @param account_id [String] account_id corresponding to an account
|
505
|
+
# @param [Hash] opts the optional parameters
|
506
|
+
# @option opts [ManageMiscellaneousChargesRequest] :manage_miscellaneous_charges_request Payload to update custom line items
|
507
|
+
# @return [Array<(MiscellaneousChargesResponse, Integer, Hash)>] MiscellaneousChargesResponse data, response status code and response headers
|
508
|
+
def manage_miscellaneous_charges_in_account_with_http_info(account_id, opts = {})
|
509
|
+
if @api_client.config.debugging
|
510
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.manage_miscellaneous_charges_in_account ...'
|
511
|
+
end
|
512
|
+
# verify the required parameter 'account_id' is set
|
513
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
514
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling InvoicesApi.manage_miscellaneous_charges_in_account"
|
515
|
+
end
|
516
|
+
if @api_client.config.client_side_validation && account_id.to_s.length > 50
|
517
|
+
fail ArgumentError, 'invalid value for "account_id" when calling InvoicesApi.manage_miscellaneous_charges_in_account, the character length must be smaller than or equal to 50.'
|
518
|
+
end
|
519
|
+
|
520
|
+
# resource path
|
521
|
+
local_var_path = '/accounts/{account_id}/miscellaneous_charges'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
|
522
|
+
|
523
|
+
# query parameters
|
524
|
+
query_params = opts[:query_params] || {}
|
525
|
+
|
526
|
+
# header parameters
|
527
|
+
header_params = opts[:header_params] || {}
|
528
|
+
# HTTP header 'Accept' (if needed)
|
529
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
530
|
+
# HTTP header 'Content-Type'
|
531
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
532
|
+
if !content_type.nil?
|
533
|
+
header_params['Content-Type'] = content_type
|
534
|
+
end
|
535
|
+
|
536
|
+
# form parameters
|
537
|
+
form_params = opts[:form_params] || {}
|
538
|
+
|
539
|
+
# http body (model)
|
540
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'manage_miscellaneous_charges_request'])
|
541
|
+
|
542
|
+
# return_type
|
543
|
+
return_type = opts[:debug_return_type] || 'MiscellaneousChargesResponse'
|
544
|
+
|
545
|
+
# auth_names
|
546
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
547
|
+
|
548
|
+
new_options = opts.merge(
|
549
|
+
:operation => :"InvoicesApi.manage_miscellaneous_charges_in_account",
|
550
|
+
:header_params => header_params,
|
551
|
+
:query_params => query_params,
|
552
|
+
:form_params => form_params,
|
553
|
+
:body => post_body,
|
554
|
+
:auth_names => auth_names,
|
555
|
+
:return_type => return_type
|
556
|
+
)
|
557
|
+
|
558
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
559
|
+
if @api_client.config.debugging
|
560
|
+
@api_client.config.logger.debug "API called: InvoicesApi#manage_miscellaneous_charges_in_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
561
|
+
end
|
562
|
+
return data, status_code, headers
|
563
|
+
end
|
564
|
+
|
565
|
+
# Add or update miscellaneous charges in Invoice
|
566
|
+
# Add or update miscellaneous charges in Invoice
|
567
|
+
# @param invoice_id [String]
|
568
|
+
# @param [Hash] opts the optional parameters
|
569
|
+
# @option opts [ManageMiscellaneousChargesRequest] :manage_miscellaneous_charges_request Payload to update custom line items
|
570
|
+
# @return [MiscellaneousChargesResponse]
|
571
|
+
def manage_miscellaneous_charges_in_invoice(invoice_id, opts = {})
|
572
|
+
data, _status_code, _headers = manage_miscellaneous_charges_in_invoice_with_http_info(invoice_id, opts)
|
573
|
+
data
|
574
|
+
end
|
575
|
+
|
576
|
+
# Add or update miscellaneous charges in Invoice
|
577
|
+
# Add or update miscellaneous charges in Invoice
|
578
|
+
# @param invoice_id [String]
|
579
|
+
# @param [Hash] opts the optional parameters
|
580
|
+
# @option opts [ManageMiscellaneousChargesRequest] :manage_miscellaneous_charges_request Payload to update custom line items
|
581
|
+
# @return [Array<(MiscellaneousChargesResponse, Integer, Hash)>] MiscellaneousChargesResponse data, response status code and response headers
|
582
|
+
def manage_miscellaneous_charges_in_invoice_with_http_info(invoice_id, opts = {})
|
583
|
+
if @api_client.config.debugging
|
584
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.manage_miscellaneous_charges_in_invoice ...'
|
585
|
+
end
|
586
|
+
# verify the required parameter 'invoice_id' is set
|
587
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
588
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.manage_miscellaneous_charges_in_invoice"
|
589
|
+
end
|
590
|
+
# resource path
|
591
|
+
local_var_path = '/invoices/{invoice_id}/miscellaneous_charges'.sub('{' + 'invoice_id' + '}', CGI.escape(invoice_id.to_s))
|
592
|
+
|
593
|
+
# query parameters
|
594
|
+
query_params = opts[:query_params] || {}
|
595
|
+
|
596
|
+
# header parameters
|
597
|
+
header_params = opts[:header_params] || {}
|
598
|
+
# HTTP header 'Accept' (if needed)
|
599
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
600
|
+
# HTTP header 'Content-Type'
|
601
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
602
|
+
if !content_type.nil?
|
603
|
+
header_params['Content-Type'] = content_type
|
604
|
+
end
|
605
|
+
|
606
|
+
# form parameters
|
607
|
+
form_params = opts[:form_params] || {}
|
608
|
+
|
609
|
+
# http body (model)
|
610
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'manage_miscellaneous_charges_request'])
|
611
|
+
|
612
|
+
# return_type
|
613
|
+
return_type = opts[:debug_return_type] || 'MiscellaneousChargesResponse'
|
614
|
+
|
615
|
+
# auth_names
|
616
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
617
|
+
|
618
|
+
new_options = opts.merge(
|
619
|
+
:operation => :"InvoicesApi.manage_miscellaneous_charges_in_invoice",
|
620
|
+
:header_params => header_params,
|
621
|
+
:query_params => query_params,
|
622
|
+
:form_params => form_params,
|
623
|
+
:body => post_body,
|
624
|
+
:auth_names => auth_names,
|
625
|
+
:return_type => return_type
|
626
|
+
)
|
627
|
+
|
628
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
629
|
+
if @api_client.config.debugging
|
630
|
+
@api_client.config.logger.debug "API called: InvoicesApi#manage_miscellaneous_charges_in_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
631
|
+
end
|
632
|
+
return data, status_code, headers
|
633
|
+
end
|
634
|
+
|
635
|
+
# Update an invoice
|
636
|
+
# Update an invoice[Only CUSTOM invoices in DRAFT state support updating of all fields]. Updating status can be done for all invoice.
|
637
|
+
# @param invoice_id [String]
|
638
|
+
# @param [Hash] opts the optional parameters
|
639
|
+
# @option opts [UpdateInvoiceRequest] :update_invoice_request Payload to update an invoice
|
640
|
+
# @return [Invoice]
|
641
|
+
def update_invoice(invoice_id, opts = {})
|
642
|
+
data, _status_code, _headers = update_invoice_with_http_info(invoice_id, opts)
|
643
|
+
data
|
644
|
+
end
|
645
|
+
|
646
|
+
# Update an invoice
|
647
|
+
# Update an invoice[Only CUSTOM invoices in DRAFT state support updating of all fields]. Updating status can be done for all invoice.
|
648
|
+
# @param invoice_id [String]
|
649
|
+
# @param [Hash] opts the optional parameters
|
650
|
+
# @option opts [UpdateInvoiceRequest] :update_invoice_request Payload to update an invoice
|
651
|
+
# @return [Array<(Invoice, Integer, Hash)>] Invoice data, response status code and response headers
|
652
|
+
def update_invoice_with_http_info(invoice_id, opts = {})
|
653
|
+
if @api_client.config.debugging
|
654
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.update_invoice ...'
|
655
|
+
end
|
656
|
+
# verify the required parameter 'invoice_id' is set
|
657
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
658
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.update_invoice"
|
659
|
+
end
|
660
|
+
# resource path
|
661
|
+
local_var_path = '/invoices/{invoice_id}'.sub('{' + 'invoice_id' + '}', CGI.escape(invoice_id.to_s))
|
662
|
+
|
663
|
+
# query parameters
|
664
|
+
query_params = opts[:query_params] || {}
|
665
|
+
|
666
|
+
# header parameters
|
667
|
+
header_params = opts[:header_params] || {}
|
668
|
+
# HTTP header 'Accept' (if needed)
|
669
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
670
|
+
# HTTP header 'Content-Type'
|
671
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
672
|
+
if !content_type.nil?
|
673
|
+
header_params['Content-Type'] = content_type
|
674
|
+
end
|
675
|
+
|
676
|
+
# form parameters
|
677
|
+
form_params = opts[:form_params] || {}
|
678
|
+
|
679
|
+
# http body (model)
|
680
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_invoice_request'])
|
681
|
+
|
682
|
+
# return_type
|
683
|
+
return_type = opts[:debug_return_type] || 'Invoice'
|
684
|
+
|
685
|
+
# auth_names
|
686
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
687
|
+
|
688
|
+
new_options = opts.merge(
|
689
|
+
:operation => :"InvoicesApi.update_invoice",
|
690
|
+
:header_params => header_params,
|
691
|
+
:query_params => query_params,
|
692
|
+
:form_params => form_params,
|
693
|
+
:body => post_body,
|
694
|
+
:auth_names => auth_names,
|
695
|
+
:return_type => return_type
|
696
|
+
)
|
697
|
+
|
698
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
699
|
+
if @api_client.config.debugging
|
700
|
+
@api_client.config.logger.debug "API called: InvoicesApi#update_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
701
|
+
end
|
702
|
+
return data, status_code, headers
|
703
|
+
end
|
704
|
+
end
|
705
|
+
end
|