Class: Io::Flow::V0::Models::InstallmentPlanPaymentForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::InstallmentPlanPaymentForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
The installment payment form is used to create an installment plan for an order, associating the plan immediately with this order.
Instance Attribute Summary collapse
-
#authorization_key ⇒ Object
readonly
Returns the value of attribute authorization_key.
-
#installment_program_id ⇒ Object
readonly
Returns the value of attribute installment_program_id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ InstallmentPlanPaymentForm
constructor
A new instance of InstallmentPlanPaymentForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ InstallmentPlanPaymentForm
Returns a new instance of InstallmentPlanPaymentForm.
20521 20522 20523 20524 20525 20526 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20521 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:installment_program_id, :authorization_key], 'InstallmentPlanPaymentForm') @installment_program_id = HttpClient::Preconditions.assert_class('installment_program_id', opts.delete(:installment_program_id), String) @authorization_key = HttpClient::Preconditions.assert_class('authorization_key', opts.delete(:authorization_key), String) end |
Instance Attribute Details
#authorization_key ⇒ Object (readonly)
Returns the value of attribute authorization_key.
20519 20520 20521 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20519 def @authorization_key end |
#installment_program_id ⇒ Object (readonly)
Returns the value of attribute installment_program_id.
20519 20520 20521 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20519 def installment_program_id @installment_program_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
20532 20533 20534 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20532 def copy(incoming={}) InstallmentPlanPaymentForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
20536 20537 20538 20539 20540 20541 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20536 def to_hash { :installment_program_id => installment_program_id, :authorization_key => } end |
#to_json ⇒ Object
20528 20529 20530 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20528 def to_json JSON.dump(to_hash) end |