Module: Increase::Internal::Type::RequestParameters::Converter Private

Included in:
Models::ACHPrenotificationCreateParams, Models::ACHPrenotificationListParams, Models::ACHPrenotificationRetrieveParams, Models::ACHTransferApproveParams, Models::ACHTransferCancelParams, Models::ACHTransferCreateParams, Models::ACHTransferListParams, Models::ACHTransferRetrieveParams, Models::AccountBalanceParams, Models::AccountCloseParams, Models::AccountCreateParams, Models::AccountListParams, Models::AccountNumberCreateParams, Models::AccountNumberListParams, Models::AccountNumberRetrieveParams, Models::AccountNumberUpdateParams, Models::AccountRetrieveParams, Models::AccountStatementListParams, Models::AccountStatementRetrieveParams, Models::AccountTransferApproveParams, Models::AccountTransferCancelParams, Models::AccountTransferCreateParams, Models::AccountTransferListParams, Models::AccountTransferRetrieveParams, Models::AccountUpdateParams, Models::BookkeepingAccountBalanceParams, Models::BookkeepingAccountCreateParams, Models::BookkeepingAccountListParams, Models::BookkeepingAccountUpdateParams, Models::BookkeepingEntryListParams, Models::BookkeepingEntryRetrieveParams, Models::BookkeepingEntrySetCreateParams, Models::BookkeepingEntrySetListParams, Models::BookkeepingEntrySetRetrieveParams, Models::CardCreateDetailsIframeParams, Models::CardCreateParams, Models::CardDetailsParams, Models::CardDisputeCreateParams, Models::CardDisputeListParams, Models::CardDisputeRetrieveParams, Models::CardDisputeSubmitUserSubmissionParams, Models::CardDisputeWithdrawParams, Models::CardListParams, Models::CardPaymentListParams, Models::CardPaymentRetrieveParams, Models::CardPurchaseSupplementListParams, Models::CardPurchaseSupplementRetrieveParams, Models::CardPushTransferApproveParams, Models::CardPushTransferCancelParams, Models::CardPushTransferCreateParams, Models::CardPushTransferListParams, Models::CardPushTransferRetrieveParams, Models::CardRetrieveParams, Models::CardTokenCapabilitiesParams, Models::CardTokenListParams, Models::CardTokenRetrieveParams, Models::CardUpdateParams, Models::CardUpdatePinParams, Models::CardValidationCreateParams, Models::CardValidationListParams, Models::CardValidationRetrieveParams, Models::CheckDepositCreateParams, Models::CheckDepositListParams, Models::CheckDepositRetrieveParams, Models::CheckTransferApproveParams, Models::CheckTransferCancelParams, Models::CheckTransferCreateParams, Models::CheckTransferListParams, Models::CheckTransferRetrieveParams, Models::CheckTransferStopPaymentParams, Models::DeclinedTransactionListParams, Models::DeclinedTransactionRetrieveParams, Models::DigitalCardProfileArchiveParams, Models::DigitalCardProfileCloneParams, Models::DigitalCardProfileCreateParams, Models::DigitalCardProfileListParams, Models::DigitalCardProfileRetrieveParams, Models::DigitalWalletTokenListParams, Models::DigitalWalletTokenRetrieveParams, Models::DocumentCreateParams, Models::DocumentListParams, Models::DocumentRetrieveParams, Models::EntityArchiveBeneficialOwnerParams, Models::EntityArchiveParams, Models::EntityConfirmParams, Models::EntityCreateBeneficialOwnerParams, Models::EntityCreateParams, Models::EntityListParams, Models::EntityRetrieveParams, Models::EntityUpdateAddressParams, Models::EntityUpdateBeneficialOwnerAddressParams, Models::EntityUpdateIndustryCodeParams, Models::EntityUpdateParams, Models::EventListParams, Models::EventRetrieveParams, Models::EventSubscriptionCreateParams, Models::EventSubscriptionListParams, Models::EventSubscriptionRetrieveParams, Models::EventSubscriptionUpdateParams, Models::ExportCreateParams, Models::ExportListParams, Models::ExportRetrieveParams, Models::ExternalAccountCreateParams, Models::ExternalAccountListParams, Models::ExternalAccountRetrieveParams, Models::ExternalAccountUpdateParams, Models::FednowTransferApproveParams, Models::FednowTransferCancelParams, Models::FednowTransferCreateParams, Models::FednowTransferListParams, Models::FednowTransferRetrieveParams, Models::FileCreateParams, Models::FileLinkCreateParams, Models::FileListParams, Models::FileRetrieveParams, Models::GroupRetrieveParams, Models::InboundACHTransferCreateNotificationOfChangeParams, Models::InboundACHTransferDeclineParams, Models::InboundACHTransferListParams, Models::InboundACHTransferRetrieveParams, Models::InboundACHTransferTransferReturnParams, Models::InboundCheckDepositDeclineParams, Models::InboundCheckDepositListParams, Models::InboundCheckDepositRetrieveParams, Models::InboundCheckDepositReturnParams, Models::InboundFednowTransferListParams, Models::InboundFednowTransferRetrieveParams, Models::InboundMailItemActionParams, Models::InboundMailItemListParams, Models::InboundMailItemRetrieveParams, Models::InboundRealTimePaymentsTransferListParams, Models::InboundRealTimePaymentsTransferRetrieveParams, Models::InboundWireDrawdownRequestListParams, Models::InboundWireDrawdownRequestRetrieveParams, Models::InboundWireTransferListParams, Models::InboundWireTransferRetrieveParams, Models::InboundWireTransferReverseParams, Models::IntrafiAccountEnrollmentCreateParams, Models::IntrafiAccountEnrollmentListParams, Models::IntrafiAccountEnrollmentRetrieveParams, Models::IntrafiAccountEnrollmentUnenrollParams, Models::IntrafiBalanceIntrafiBalanceParams, Models::IntrafiExclusionArchiveParams, Models::IntrafiExclusionCreateParams, Models::IntrafiExclusionListParams, Models::IntrafiExclusionRetrieveParams, Models::LockboxCreateParams, Models::LockboxListParams, Models::LockboxRetrieveParams, Models::LockboxUpdateParams, Models::OAuthApplicationListParams, Models::OAuthApplicationRetrieveParams, Models::OAuthConnectionListParams, Models::OAuthConnectionRetrieveParams, Models::OAuthTokenCreateParams, Models::PendingTransactionCreateParams, Models::PendingTransactionListParams, Models::PendingTransactionReleaseParams, Models::PendingTransactionRetrieveParams, Models::PhysicalCardCreateParams, Models::PhysicalCardListParams, Models::PhysicalCardProfileArchiveParams, Models::PhysicalCardProfileCloneParams, Models::PhysicalCardProfileCreateParams, Models::PhysicalCardProfileListParams, Models::PhysicalCardProfileRetrieveParams, Models::PhysicalCardRetrieveParams, Models::PhysicalCardUpdateParams, Models::ProgramListParams, Models::ProgramRetrieveParams, Models::RealTimeDecisionActionParams, Models::RealTimeDecisionRetrieveParams, Models::RealTimePaymentsTransferApproveParams, Models::RealTimePaymentsTransferCancelParams, Models::RealTimePaymentsTransferCreateParams, Models::RealTimePaymentsTransferListParams, Models::RealTimePaymentsTransferRetrieveParams, Models::RoutingNumberListParams, Models::Simulations::ACHTransferAcknowledgeParams, Models::Simulations::ACHTransferCreateNotificationOfChangeParams, Models::Simulations::ACHTransferReturnParams, Models::Simulations::ACHTransferSettleParams, Models::Simulations::ACHTransferSubmitParams, Models::Simulations::AccountStatementCreateParams, Models::Simulations::AccountTransferCompleteParams, Models::Simulations::CardAuthorizationCreateParams, Models::Simulations::CardAuthorizationExpirationCreateParams, Models::Simulations::CardDisputeActionParams, Models::Simulations::CardFuelConfirmationCreateParams, Models::Simulations::CardIncrementCreateParams, Models::Simulations::CardRefundCreateParams, Models::Simulations::CardReversalCreateParams, Models::Simulations::CardSettlementCreateParams, Models::Simulations::CardTokenCreateParams, Models::Simulations::CheckDepositRejectParams, Models::Simulations::CheckDepositReturnParams, Models::Simulations::CheckDepositSubmitParams, Models::Simulations::CheckTransferMailParams, Models::Simulations::DigitalWalletTokenRequestCreateParams, Models::Simulations::DocumentCreateParams, Models::Simulations::InboundACHTransferCreateParams, Models::Simulations::InboundCheckDepositCreateParams, Models::Simulations::InboundFednowTransferCreateParams, Models::Simulations::InboundMailItemCreateParams, Models::Simulations::InboundRealTimePaymentsTransferCreateParams, Models::Simulations::InboundWireDrawdownRequestCreateParams, Models::Simulations::InboundWireTransferCreateParams, Models::Simulations::InterestPaymentCreateParams, Models::Simulations::PendingTransactionReleaseInboundFundsHoldParams, Models::Simulations::PhysicalCardAdvanceShipmentParams, Models::Simulations::PhysicalCardCreateParams, Models::Simulations::ProgramCreateParams, Models::Simulations::RealTimePaymentsTransferCompleteParams, Models::Simulations::WireDrawdownRequestRefuseParams, Models::Simulations::WireDrawdownRequestSubmitParams, Models::Simulations::WireTransferReverseParams, Models::Simulations::WireTransferSubmitParams, Models::SupplementalDocumentCreateParams, Models::SupplementalDocumentListParams, Models::TransactionListParams, Models::TransactionRetrieveParams, Models::WireDrawdownRequestCreateParams, Models::WireDrawdownRequestListParams, Models::WireDrawdownRequestRetrieveParams, Models::WireTransferApproveParams, Models::WireTransferCancelParams, Models::WireTransferCreateParams, Models::WireTransferListParams, Models::WireTransferRetrieveParams
Defined in:
lib/increase/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.

Parameters:

  • params (Object)

Returns:

  • (Array(Object, Hash{Symbol=>Object}))


27
28
29
30
31
32
33
34
35
36
37
# File 'lib/increase/internal/type/request_parameters.rb', line 27

def dump_request(params)
  state = {can_retry: true}
  case (dumped = dump(params, state: state))
  in Hash
    options = Increase::Internal::Util.coerce_hash!(dumped[:request_options]).to_h
    request_options = state.fetch(:can_retry) ? options : {**options, max_retries: 0}
    [dumped.except(:request_options), request_options]
  else
    [dumped, nil]
  end
end