class CGIParty::CollectRequest

Attributes

order_reference[R]
transaction_id[R]

Public Class Methods

new(savon_client, order_reference, transaction_id = nil, options: {}) click to toggle source
Calls superclass method CGIParty::Request::new
# File lib/cgi_party/collect_request.rb, line 8
def initialize(savon_client, order_reference, transaction_id = nil, options: {})
  super(savon_client, options)
  @order_reference = order_reference
  @transaction_id = transaction_id
end

Private Instance Methods

available_options() click to toggle source
# File lib/cgi_party/collect_request.rb, line 20
def available_options
  %i[display_name service_id]
end
message_hash() click to toggle source
# File lib/cgi_party/collect_request.rb, line 24
def message_hash
  {
    display_name: @options[:display_name],
    policy: @options[:service_id],
    transaction_id: @transaction_id,
    order_ref: @order_reference
  }
end
serialize_data(data) click to toggle source
# File lib/cgi_party/collect_request.rb, line 16
def serialize_data(data)
  CGIParty::CollectResponse.new(data)
end