Class: Io::Flow::V0::Models::PaymentRequestBillingFees
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PaymentRequestBillingFees
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#fx_fee_rate ⇒ Object
readonly
Returns the value of attribute fx_fee_rate.
-
#mor_fee_rate ⇒ Object
readonly
Returns the value of attribute mor_fee_rate.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentRequestBillingFees
constructor
A new instance of PaymentRequestBillingFees.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ PaymentRequestBillingFees
Returns a new instance of PaymentRequestBillingFees.
58690 58691 58692 58693 58694 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58690 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @mor_fee_rate = (x = opts.delete(:mor_fee_rate); x.nil? ? nil : HttpClient::Preconditions.assert_class('mor_fee_rate', HttpClient::Helper.to_big_decimal(x), BigDecimal)) @fx_fee_rate = (x = opts.delete(:fx_fee_rate); x.nil? ? nil : HttpClient::Preconditions.assert_class('fx_fee_rate', HttpClient::Helper.to_big_decimal(x), BigDecimal)) end |
Instance Attribute Details
#fx_fee_rate ⇒ Object (readonly)
Returns the value of attribute fx_fee_rate.
58688 58689 58690 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58688 def fx_fee_rate @fx_fee_rate end |
#mor_fee_rate ⇒ Object (readonly)
Returns the value of attribute mor_fee_rate.
58688 58689 58690 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58688 def mor_fee_rate @mor_fee_rate end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
58700 58701 58702 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58700 def copy(incoming={}) PaymentRequestBillingFees.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
58704 58705 58706 58707 58708 58709 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58704 def to_hash { :mor_fee_rate => mor_fee_rate.to_f.to_s, :fx_fee_rate => fx_fee_rate.to_f.to_s } end |
#to_json ⇒ Object
58696 58697 58698 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58696 def to_json JSON.dump(to_hash) end |