Class: Io::Flow::V0::Models::PaymentRequestBilling
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PaymentRequestBilling
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#fees ⇒ Object
readonly
Returns the value of attribute fees.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentRequestBilling
constructor
A new instance of PaymentRequestBilling.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ PaymentRequestBilling
Returns a new instance of PaymentRequestBilling.
54273 54274 54275 54276 54277 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54273 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:fees], 'PaymentRequestBilling') @fees = (x = opts.delete(:fees); x.is_a?(::Io::Flow::V0::Models::PaymentRequestBillingFees) ? x : ::Io::Flow::V0::Models::PaymentRequestBillingFees.new(x)) end |
Instance Attribute Details
#fees ⇒ Object (readonly)
Returns the value of attribute fees.
54271 54272 54273 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54271 def fees @fees end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
54283 54284 54285 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54283 def copy(incoming={}) PaymentRequestBilling.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
54287 54288 54289 54290 54291 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54287 def to_hash { :fees => fees.to_hash } end |
#to_json ⇒ Object
54279 54280 54281 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54279 def to_json JSON.dump(to_hash) end |