Module: MetronomeSDK::Internal::Type::RequestParameters::Converter Private
- Included in:
- Models::V1::AlertArchiveParams, Models::V1::AlertCreateParams, Models::V1::AuditLogListParams, Models::V1::BillableMetricArchiveParams, Models::V1::BillableMetricCreateParams, Models::V1::BillableMetricListParams, Models::V1::BillableMetricRetrieveParams, Models::V1::ContractAddManualBalanceEntryParams, Models::V1::ContractAmendParams, Models::V1::ContractArchiveParams, Models::V1::ContractCreateHistoricalInvoicesParams, Models::V1::ContractCreateParams, Models::V1::ContractListBalancesParams, Models::V1::ContractListParams, Models::V1::ContractRetrieveParams, Models::V1::ContractRetrieveRateScheduleParams, Models::V1::ContractRetrieveSubscriptionQuantityHistoryParams, Models::V1::ContractScheduleProServicesInvoiceParams, Models::V1::ContractSetUsageFilterParams, Models::V1::ContractUpdateEndDateParams, Models::V1::Contracts::NamedScheduleRetrieveParams, Models::V1::Contracts::NamedScheduleUpdateParams, Models::V1::Contracts::ProductArchiveParams, Models::V1::Contracts::ProductCreateParams, Models::V1::Contracts::ProductListParams, Models::V1::Contracts::ProductRetrieveParams, Models::V1::Contracts::ProductUpdateParams, Models::V1::Contracts::RateCardArchiveParams, Models::V1::Contracts::RateCardCreateParams, Models::V1::Contracts::RateCardListParams, Models::V1::Contracts::RateCardRetrieveParams, Models::V1::Contracts::RateCardRetrieveRateScheduleParams, Models::V1::Contracts::RateCardUpdateParams, Models::V1::Contracts::RateCards::NamedScheduleRetrieveParams, Models::V1::Contracts::RateCards::NamedScheduleUpdateParams, Models::V1::Contracts::RateCards::ProductOrderSetParams, Models::V1::Contracts::RateCards::ProductOrderUpdateParams, Models::V1::Contracts::RateCards::RateAddManyParams, Models::V1::Contracts::RateCards::RateAddParams, Models::V1::Contracts::RateCards::RateListParams, Models::V1::CreditGrantCreateParams, Models::V1::CreditGrantEditParams, Models::V1::CreditGrantListEntriesParams, Models::V1::CreditGrantListParams, Models::V1::CreditGrantVoidParams, Models::V1::CustomFieldAddKeyParams, Models::V1::CustomFieldDeleteValuesParams, Models::V1::CustomFieldListKeysParams, Models::V1::CustomFieldRemoveKeyParams, Models::V1::CustomFieldSetValuesParams, Models::V1::CustomerArchiveParams, Models::V1::CustomerCreateParams, Models::V1::CustomerListBillableMetricsParams, Models::V1::CustomerListCostsParams, Models::V1::CustomerListParams, Models::V1::CustomerPreviewEventsParams, Models::V1::CustomerRetrieveBillingConfigurationsParams, Models::V1::CustomerRetrieveParams, Models::V1::CustomerSetBillingConfigurationsParams, Models::V1::CustomerSetIngestAliasesParams, Models::V1::CustomerSetNameParams, Models::V1::CustomerUpdateConfigParams, Models::V1::Customers::AlertListParams, Models::V1::Customers::AlertResetParams, Models::V1::Customers::AlertRetrieveParams, Models::V1::Customers::BillingConfigCreateParams, Models::V1::Customers::BillingConfigDeleteParams, Models::V1::Customers::BillingConfigRetrieveParams, Models::V1::Customers::CommitCreateParams, Models::V1::Customers::CommitListParams, Models::V1::Customers::CommitUpdateEndDateParams, Models::V1::Customers::CreditCreateParams, Models::V1::Customers::CreditListParams, Models::V1::Customers::CreditUpdateEndDateParams, Models::V1::Customers::InvoiceAddChargeParams, Models::V1::Customers::InvoiceListBreakdownsParams, Models::V1::Customers::InvoiceListParams, Models::V1::Customers::InvoiceRetrieveParams, Models::V1::Customers::InvoiceRetrievePdfParams, Models::V1::Customers::NamedScheduleRetrieveParams, Models::V1::Customers::NamedScheduleUpdateParams, Models::V1::Customers::PlanAddParams, Models::V1::Customers::PlanEndParams, Models::V1::Customers::PlanListParams, Models::V1::Customers::PlanListPriceAdjustmentsParams, Models::V1::DashboardGetEmbeddableURLParams, Models::V1::InvoiceRegenerateParams, Models::V1::InvoiceVoidParams, Models::V1::PaymentAttemptParams, Models::V1::PaymentCancelParams, Models::V1::PaymentListParams, Models::V1::PlanGetDetailsParams, Models::V1::PlanListChargesParams, Models::V1::PlanListCustomersParams, Models::V1::PlanListParams, Models::V1::PricingUnitListParams, Models::V1::ServiceListParams, Models::V1::SettingUpsertAvalaraCredentialsParams, Models::V1::Settings::BillingProviderCreateParams, Models::V1::Settings::BillingProviderListParams, Models::V1::UsageIngestParams, Models::V1::UsageListParams, Models::V1::UsageListWithGroupsParams, Models::V1::UsageSearchParams, Models::V2::ContractEditCommitParams, Models::V2::ContractEditCreditParams, Models::V2::ContractEditParams, Models::V2::ContractGetEditHistoryParams, Models::V2::ContractListParams, Models::V2::ContractRetrieveParams
- Defined in:
- lib/metronome_sdk/internal/type/request_parameters.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#dump_request(params) ⇒ Array(Object, Hash{Symbol=>Object})
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/metronome_sdk/internal/type/request_parameters.rb', line 27 def dump_request(params) state = {can_retry: true} case (dumped = dump(params, state: state)) in Hash = MetronomeSDK::Internal::Util.coerce_hash!(dumped[:request_options]).to_h = state.fetch(:can_retry) ? : {**, max_retries: 0} [dumped.except(:request_options), ] else [dumped, nil] end end |