Sha256: 2c05831eb6b6c69f9e8eeffeb57cd0f6291b3bc976e32a2ce218b60c46d08be3

Contents?: true

Size: 1.19 KB

Versions: 7

Compression:

Stored size: 1.19 KB

Contents

module AdaptivePayments
  class PayResponse < AbstractResponse
    operation :Pay

    attribute :pay_key,                   String,             :param => "payKey"
    attribute :payment_exec_status,       String,             :param => "paymentExecStatus"
    attribute :default_funding_plan,      Node[FundingPlan],  :param => "defaultFundingPlan"
    attribute :pay_error_list,            Node[PayErrorList], :param => "payErrorList"

    alias_params :default_funding_plan, {
      :funding_plan_id           => :id,
      :funding_amount            => :amount,
      :funding_currency_code     => :currency_code,
      :backup_funding_source     => :backup_funding_source,
      :sender_fees_amount        => :sender_fees_amount,
      :sender_fees_currency_code => :sender_fees_currency_code,
      :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,
      :charges                   => :charges
    }

    alias_params :pay_error_list, {
      :pay_errors => :pay_errors
    }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

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