class EwayRapid::CreateAccessCodeRequest
Attributes
checkout_payment[RW]
checkout_url[RW]
customer[RW]
customer_ip[RW]
device_id[RW]
items[RW]
method[RW]
options[RW]
partner_id[RW]
payment[RW]
redirect_url[RW]
shipping_address[RW]
shipping_method[RW]
transaction_type[RW]
Public Instance Methods
to_json(opts={})
click to toggle source
# File lib/eway_rapid/entities/create_access_code_request.rb, line 18 def to_json(opts={}) {Constants::CUSTOMER => InternalModels::Customer.to_hash(customer), Constants::SHIPPING_ADDRESS => InternalModels::ShippingAddress.to_hash(shipping_address), Constants::SHIPPING_METHOD => shipping_method, Constants::ITEMS => Models::LineItem.to_array(items), Constants::OPTIONS => InternalModels::Option.to_array(options), Constants::PAYMENT => InternalModels::Payment.to_hash(payment), Constants::REDIRECT_URL => redirect_url, Constants::METHOD => method, Constants::CUSTOMER_DEVICE_IP => customer_ip, Constants::DEVICE_ID => device_id, Constants::CHECKOUT_PAYMENT => checkout_payment, Constants::CHECKOUT_URL => checkout_url, Constants::TRANSACTION_TYPE => transaction_type, Constants::PARTNER_ID => partner_id}.to_json end