Class: Io::Flow::V0::Models::PaymentProcessorReference
- Inherits:
-
ExpandablePaymentProcessor
- Object
- ExpandablePaymentProcessor
- Io::Flow::V0::Models::PaymentProcessorReference
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#processor ⇒ Object
readonly
Returns the value of attribute processor.
Attributes inherited from ExpandablePaymentProcessor
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentProcessorReference
constructor
A new instance of PaymentProcessorReference.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ExpandablePaymentProcessor
Constructor Details
#initialize(incoming = {}) ⇒ PaymentProcessorReference
Returns a new instance of PaymentProcessorReference.
54063 54064 54065 54066 54067 54068 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54063 def initialize(incoming={}) super(:discriminator => ExpandablePaymentProcessor::Types::PAYMENT_PROCESSOR_REFERENCE) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:processor], 'PaymentProcessorReference') @processor = HttpClient::Preconditions.assert_class('processor', opts.delete(:processor), String) end |
Instance Attribute Details
#processor ⇒ Object (readonly)
Returns the value of attribute processor.
54061 54062 54063 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54061 def processor @processor end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
54074 54075 54076 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54074 def copy(incoming={}) PaymentProcessorReference.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
54078 54079 54080 54081 54082 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54078 def subtype_to_hash { :processor => processor } end |
#to_json ⇒ Object
54070 54071 54072 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 54070 def to_json JSON.dump(to_hash) end |