Class: Io::Flow::V0::Models::RedirectAuthorizationDetails
- Inherits:
-
OnlineAuthorizationDetails
- Object
- OnlineAuthorizationDetails
- Io::Flow::V0::Models::RedirectAuthorizationDetails
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Represents an online payment that requires the user to redirect to another site before entering their payment information.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#payment_redirect_url ⇒ Object
readonly
Returns the value of attribute payment_redirect_url.
Attributes inherited from OnlineAuthorizationDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ RedirectAuthorizationDetails
constructor
A new instance of RedirectAuthorizationDetails.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from OnlineAuthorizationDetails
Constructor Details
#initialize(incoming = {}) ⇒ RedirectAuthorizationDetails
Returns a new instance of RedirectAuthorizationDetails.
62842 62843 62844 62845 62846 62847 62848 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62842 def initialize(incoming={}) super(:discriminator => OnlineAuthorizationDetails::Types::REDIRECT_AUTHORIZATION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :payment_redirect_url], 'RedirectAuthorizationDetails') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @payment_redirect_url = HttpClient::Preconditions.assert_class('payment_redirect_url', opts.delete(:payment_redirect_url), String) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
62840 62841 62842 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62840 def id @id end |
#payment_redirect_url ⇒ Object (readonly)
Returns the value of attribute payment_redirect_url.
62840 62841 62842 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62840 def payment_redirect_url @payment_redirect_url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
62854 62855 62856 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62854 def copy(incoming={}) RedirectAuthorizationDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
62858 62859 62860 62861 62862 62863 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62858 def subtype_to_hash { :id => id, :payment_redirect_url => payment_redirect_url } end |
#to_json ⇒ Object
62850 62851 62852 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62850 def to_json JSON.dump(to_hash) end |