class Io::Flow::V0::Models::InlineAuthorizationDetails

Represents an online payment that requires the client token from underlying payment processor before entering their payment information.

Attributes

client_token[R]
id[R]
parameters[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 45842
def initialize(incoming={})
  super(:discriminator => OnlineAuthorizationDetails::Types::INLINE_AUTHORIZATION_DETAILS)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:id], 'InlineAuthorizationDetails')
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
  @client_token = (x = opts.delete(:client_token); x.nil? ? nil : HttpClient::Preconditions.assert_class('client_token', x, String))
  @parameters = (x = opts.delete(:parameters); x.nil? ? nil : HttpClient::Preconditions.assert_class('parameters', HttpClient::Helper.to_object(x), Hash))
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 45855
def copy(incoming={})
  InlineAuthorizationDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end
subtype_to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 45859
def subtype_to_hash
  {
    :id => id,
    :client_token => client_token,
    :parameters => parameters
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 45851
def to_json
  JSON.dump(to_hash)
end