class SixSaferpay::SixSecureData::Update
Attributes
request_header[RW]
update_alias[RW]
update_payment_means[RW]
Public Class Methods
new(request_header: nil, update_alias: nil, update_payment_means: nil )
click to toggle source
# File lib/six_saferpay/api/six_secure_card_data/requests/update.rb, line 10 def initialize(request_header: nil, update_alias: nil, update_payment_means: nil ) @request_header = request_header || SixSaferpay::RequestHeader.new() @update_alias = SixSaferpay::UpdateAlias.new(update_alias.to_h) if update_alias @update_payment_means = SixSaferpay::UpdatePaymentMeans.new(update_payment_means.to_h) if update_payment_means end
Public Instance Methods
response_class()
click to toggle source
# File lib/six_saferpay/api/six_secure_card_data/requests/update.rb, line 36 def response_class SixSaferpay::SixSecureData::UpdateResponse end
to_hash()
click to toggle source
# File lib/six_saferpay/api/six_secure_card_data/requests/update.rb, line 19 def to_hash hash = Hash.new hash.merge!(request_header: @request_header.to_h) if @request_header hash.merge!(update_alias: @update_alias.to_h) if @update_alias hash.merge!(update_payment_means: @update_payment_means.to_h) if @update_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/update.rb, line 28 def to_json to_hash.to_json end
url()
click to toggle source
# File lib/six_saferpay/api/six_secure_card_data/requests/update.rb, line 32 def url '/Payment/v1/Alias/Update' end