Class: Io::Flow::V0::Models::PaymentPaymentRequestReference
- Inherits:
-
PaymentOrderReference
- Object
- PaymentOrderReference
- Io::Flow::V0::Models::PaymentPaymentRequestReference
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#payment_request_id ⇒ Object
readonly
Returns the value of attribute payment_request_id.
Attributes inherited from PaymentOrderReference
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentPaymentRequestReference
constructor
A new instance of PaymentPaymentRequestReference.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentOrderReference
Constructor Details
#initialize(incoming = {}) ⇒ PaymentPaymentRequestReference
Returns a new instance of PaymentPaymentRequestReference.
51502 51503 51504 51505 51506 51507 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51502 def initialize(incoming={}) super(:discriminator => PaymentOrderReference::Types::PAYMENT_PAYMENT_REQUEST_REFERENCE) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:payment_request_id], 'PaymentPaymentRequestReference') @payment_request_id = HttpClient::Preconditions.assert_class('payment_request_id', opts.delete(:payment_request_id), String) end |
Instance Attribute Details
#payment_request_id ⇒ Object (readonly)
Returns the value of attribute payment_request_id.
51500 51501 51502 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51500 def payment_request_id @payment_request_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
51513 51514 51515 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51513 def copy(incoming={}) PaymentPaymentRequestReference.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
51517 51518 51519 51520 51521 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51517 def subtype_to_hash { :payment_request_id => payment_request_id } end |
#to_json ⇒ Object
51509 51510 51511 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51509 def to_json JSON.dump(to_hash) end |