Sha256: 6fce7eb41ba853a437cd6896606a34cde4bb796d0146be8030440c3324bd5f24

Contents?: true

Size: 1.13 KB

Versions: 7

Compression:

Stored size: 1.13 KB

Contents

module AdaptivePayments
  class FundingPlan < JsonModel
    attribute :id,                    String,                      :param => "fundingPlanId"
    attribute :funding_amount,        Node[CurrencyType],          :param => "fundingAmount"
    attribute :backup_funding_source, Node[FundingSource],         :param => "backupFundingSource"
    attribute :sender_fees,           Node[CurrencyType],          :param => "senderFees"
    attribute :currency_conversion,   Node[CurrencyConversion],    :param => "currencyConversion"
    attribute :charges,               NodeList[FundingPlanCharge], :param => "charge"

    alias_params :funding_amount, {
      :amount        => :amount,
      :currency_code => :code
    }

    alias_params :sender_fees, {
      :sender_fees_amount        => :amount,
      :sender_fees_currency_code => :code
    }

    alias_params :currency_conversion, {
      :from_currency_amount => :from_currency_amount,
      :from_currency_code   => :from_currency_code,
      :to_currency_amount   => :to_currency_amount,
      :to_currency_code     => :to_currency_code,
      :exchange_rate        => :exchange_rate
    }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
creative-pp-adaptive-1.1.1 lib/pp-adaptive/types/funding_plan.rb
pp-adaptive-1.0.0 lib/pp-adaptive/types/funding_plan.rb
pp-adaptive-0.0.6 lib/pp-adaptive/types/funding_plan.rb
pp-adaptive-0.0.5 lib/pp-adaptive/types/funding_plan.rb
pp-adaptive-0.0.4 lib/pp-adaptive/types/funding_plan.rb
pp-adaptive-0.0.3 lib/pp-adaptive/types/funding_plan.rb
pp-adaptive-0.0.2 lib/pp-adaptive/types/funding_plan.rb