module SixSaferpay::SixSecurePayGateOffer

Public Instance Methods

response_class() click to toggle source
# File lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb, line 50
def response_class
  SixSaferpay::SixSecurePayGateOffer::CreateOfferResponse
end
to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb, line 30
def to_hash
  hash = Hash.new
  hash.merge!(payment: @payment.to_h) if @payment
  hash.merge!(expiration_date: @expiration_date) if @expiration_date
  hash.merge!(config_set: @config_set) if @config_set
  hash.merge!(payer: @payer.to_h) if @payer
  hash.merge!(billing_address_form: @billing_address_form.to_h) if @billing_address_form
  hash.merge!(register_alias: @register_alias.to_h) if @register_alias
  hash
end
Also aliased as: to_h
to_json() click to toggle source
# File lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb, line 42
def to_json
  to_hash.to_json
end
url() click to toggle source
# File lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb, line 46
def url
  "/rest/customers/#{customer_id}/terminals/#{terminal_id}/spg-offers"
end

Private Instance Methods

customer_id() click to toggle source
# File lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb, line 56
def customer_id
  SixSaferpay.config.customer_id
end
terminal_id() click to toggle source
# File lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb, line 60
def terminal_id
  SixSaferpay.config.terminal_id
end