Class: OnlinePayments::SDK::Merchant::Tokenization::GetCardDataByPaymentsParams
- Inherits:
-
Communication::ParamRequest
- Object
- Communication::ParamRequest
- OnlinePayments::SDK::Merchant::Tokenization::GetCardDataByPaymentsParams
- Defined in:
- lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_payments_params.rb
Overview
Query parameters for Get sensitive card details by card payment identifiers (/v2/merchantId/detokenize/payments)
Instance Attribute Summary collapse
-
#payments ⇒ Array<String>
The current value of payments.
Instance Method Summary collapse
-
#add_payments(value) ⇒ Object
Adds the parameter value to the payments Array.
-
#to_request_parameters ⇒ Array<OnlinePayments::SDK::Communication::RequestParam>
Representing the attributes of this class.
Instance Attribute Details
#payments ⇒ Array<String>
Returns the current value of payments.
14 15 16 |
# File 'lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_payments_params.rb', line 14 def payments @payments end |
Instance Method Details
#add_payments(value) ⇒ Object
Adds the parameter value to the payments Array
21 22 23 24 25 26 |
# File 'lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_payments_params.rb', line 21 def add_payments(value) unless @payments @payments = [] end @payments << value end |
#to_request_parameters ⇒ Array<OnlinePayments::SDK::Communication::RequestParam>
Returns representing the attributes of this class.
29 30 31 32 33 34 35 |
# File 'lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_payments_params.rb', line 29 def to_request_parameters result = [] unless @payments.nil? @payments.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('payments', e)} end result end |