Sha256: 9a53780865f2d26b641ef179117c2769bab83c07f4794e8f7daf9add0adddf83

Contents?: true

Size: 449 Bytes

Versions: 7

Compression:

Stored size: 449 Bytes

Contents

module AdaptivePayments
  class CurrencyConversion < JsonModel
    attribute :from,          Node[CurrencyType]
    attribute :to,            Node[CurrencyType]
    attribute :exchange_rate, Decimal, :param => "exchangeRate"

    alias_params :from, {
      :from_currency_amount => :amount,
      :from_currency_code   => :code
    }

    alias_params :to, {
      :to_currency_amount => :amount,
      :to_currency_code   => :code
    }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

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