class PaysonAPI::V2::Requests::CreateCheckout
Attributes
customer[RW]
description[RW]
expiration_time[RW]
gui[RW]
merchant[RW]
order[RW]
Public Class Methods
new()
click to toggle source
# File lib/payson_api/v2/requests/create_checkout.rb, line 9 def initialize @order = PaysonAPI::V2::Requests::Order.new @merchant = PaysonAPI::V2::Requests::Merchant.new end
Public Instance Methods
to_hash()
click to toggle source
# File lib/payson_api/v2/requests/create_checkout.rb, line 14 def to_hash {}.tap do |hash| hash['order'] = @order.to_hash hash['merchant'] = @merchant.to_hash hash['description'] = @description unless @description.nil? hash['expirationTime'] = @expiration_time unless @expiration_time.nil? hash['customer'] = @customer.to_hash unless @customer.nil? end end