class SixSaferpay::SixSecureData::Insert
Attributes
card_form[RW]
check[RW]
language_code[RW]
payment_means[RW]
payment_methods[RW]
register_alias[RW]
request_header[RW]
return_urls[RW]
styling[RW]
type[RW]
Public Class Methods
new(request_header: nil, register_alias:, type:, return_urls:, styling: nil, language_code: nil, check: nil, payment_methods: nil, card_form: nil, payment_means: nil )
click to toggle source
# File lib/six_saferpay/api/six_secure_card_data/requests/insert.rb, line 17 def initialize(request_header: nil, register_alias:, type:, return_urls:, styling: nil, language_code: nil, check: nil, payment_methods: nil, card_form: nil, payment_means: nil ) @request_header = request_header || SixSaferpay::RequestHeader.new() @register_alias = SixSaferpay::RegisterAlias.new(register_alias.to_h) if register_alias @type = type @return_urls = SixSaferpay::ReturnUrls.new(return_urls.to_h) if return_urls @styling = SixSaferpay::Styling.new(styling.to_h) if styling @language_code = language_code @check = SixSaferpay::Check.new(check.to_h) if check @payment_methods = payment_methods @card_form = SixSaferpay::CardForm.new(card_form.to_h) if card_form @payment_means = SixSaferpay::RequestPaymentMeans.new(payment_means.to_h) if payment_means end
Public Instance Methods
response_class()
click to toggle source
# File lib/six_saferpay/api/six_secure_card_data/requests/insert.rb, line 64 def response_class SixSaferpay::SixSecureData::InsertResponse end
to_hash()
click to toggle source
# File lib/six_saferpay/api/six_secure_card_data/requests/insert.rb, line 40 def to_hash hash = Hash.new hash.merge!(request_header: @request_header.to_h) if @request_header hash.merge!(register_alias: @register_alias.to_h) if @register_alias hash.merge!(type: @type) if @type hash.merge!(return_urls: @return_urls.to_h) if @return_urls hash.merge!(styling: @styling.to_h) if @styling hash.merge!(language_code: @language_code) if @language_code hash.merge!(check: @check.to_h) if @check hash.merge!(payment_methods: @payment_methods) if @payment_methods hash.merge!(card_form: @card_form.to_h) if @card_form hash.merge!(payment_means: @payment_means.to_h) if @payment_means hash end
Also aliased as: to_h
to_json()
click to toggle source
# File lib/six_saferpay/api/six_secure_card_data/requests/insert.rb, line 56 def to_json to_hash.to_json end
url()
click to toggle source
# File lib/six_saferpay/api/six_secure_card_data/requests/insert.rb, line 60 def url '/Payment/v1/Alias/Insert' end