Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.07 KB

AutoTopUpConfig2.md

File metadata and controls

24 lines (18 loc) · 1.07 KB

VeloPayments::AutoTopUpConfig2

Properties

Name Type Description Notes
enabled Boolean Is auto top-up enabled? automatically trigger funding to top-up the source account balance when the balance falls below the configured minimum level.
min_balance Integer When the payor balance falls below this level then auto top-up will be triggered. Note - This is in minor units. [optional]
target_balance Integer When the payor balance falls below the min balance then auto top-up will request funds bring the balance to this level. Note - this is in minor units. [optional]
funding_account_id String Id of funding account from which to pull funds when auto top-up is triggered. Note - if this is not set then auto top-up is effectively disabled. [optional]

Example

require 'velopayments'

instance = VeloPayments::AutoTopUpConfig2.new(
  enabled: true,
  min_balance: 10000,
  target_balance: 300000,
  funding_account_id: 640ab1bd-8a6a-4603-a83a-1edbc3ed5689
)