Class: SixSaferpay::SixSecureData::AssertInsertResponse
- Inherits:
-
Object
- Object
- SixSaferpay::SixSecureData::AssertInsertResponse
- Defined in:
- lib/six_saferpay/api/six_secure_card_data/responses/assert_insert_response.rb
Instance Attribute Summary collapse
-
#check_result ⇒ Object
Returns the value of attribute check_result.
-
#fd_alias ⇒ Object
Returns the value of attribute fd_alias.
-
#payment_means ⇒ Object
Returns the value of attribute payment_means.
-
#response_header ⇒ Object
Returns the value of attribute response_header.
Instance Method Summary collapse
-
#initialize(response_header:, fd_alias:, payment_means:, check_result: nil) ⇒ AssertInsertResponse
constructor
A new instance of AssertInsertResponse.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(response_header:, fd_alias:, payment_means:, check_result: nil) ⇒ AssertInsertResponse
Returns a new instance of AssertInsertResponse.
11 12 13 14 15 16 17 18 19 |
# File 'lib/six_saferpay/api/six_secure_card_data/responses/assert_insert_response.rb', line 11 def initialize(response_header:, fd_alias:, payment_means:, check_result: nil) @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header @fd_alias = SixSaferpay::Alias.new(**fd_alias.to_h) if fd_alias @payment_means = SixSaferpay::ResponsePaymentMeans.new(**payment_means.to_h) if payment_means @check_result = SixSaferpay::CheckResult.new(**check_result.to_h) if check_result end |
Instance Attribute Details
#check_result ⇒ Object
Returns the value of attribute check_result.
5 6 7 |
# File 'lib/six_saferpay/api/six_secure_card_data/responses/assert_insert_response.rb', line 5 def check_result @check_result end |
#fd_alias ⇒ Object
Returns the value of attribute fd_alias.
5 6 7 |
# File 'lib/six_saferpay/api/six_secure_card_data/responses/assert_insert_response.rb', line 5 def fd_alias @fd_alias end |
#payment_means ⇒ Object
Returns the value of attribute payment_means.
5 6 7 |
# File 'lib/six_saferpay/api/six_secure_card_data/responses/assert_insert_response.rb', line 5 def payment_means @payment_means end |
#response_header ⇒ Object
Returns the value of attribute response_header.
5 6 7 |
# File 'lib/six_saferpay/api/six_secure_card_data/responses/assert_insert_response.rb', line 5 def response_header @response_header end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
21 22 23 24 25 26 27 28 |
# File 'lib/six_saferpay/api/six_secure_card_data/responses/assert_insert_response.rb', line 21 def to_hash hash = Hash.new hash.merge!(response_header: @response_header.to_h) if @response_header hash.merge!(fd_alias: @fd_alias.to_h) if @fd_alias hash.merge!(payment_means: @payment_means.to_h) if @payment_means hash.merge!(check_result: @check_result.to_h) if @check_result hash end |