Class: OnlinePayments::SDK::Merchant::PrivacyPolicy::GetPrivacyPolicyParams

Inherits:
Communication::ParamRequest show all
Defined in:
lib/onlinepayments/sdk/merchant/privacypolicy/get_privacy_policy_params.rb

Overview

Query parameters for Get Privacy Policy (/v2/merchantId/services/privacypolicy)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#localeString

Returns the current value of locale.

Returns:

  • (String)

    the current value of locale



15
16
17
# File 'lib/onlinepayments/sdk/merchant/privacypolicy/get_privacy_policy_params.rb', line 15

def locale
  @locale
end

#payment_product_idInteger

Returns the current value of payment_product_id.

Returns:

  • (Integer)

    the current value of payment_product_id



15
16
17
# File 'lib/onlinepayments/sdk/merchant/privacypolicy/get_privacy_policy_params.rb', line 15

def payment_product_id
  @payment_product_id
end

Instance Method Details

#to_request_parametersArray<OnlinePayments::SDK::Communication::RequestParam>

Returns representing the attributes of this class.

Returns:



22
23
24
25
26
27
# File 'lib/onlinepayments/sdk/merchant/privacypolicy/get_privacy_policy_params.rb', line 22

def to_request_parameters
  result = []
  result << RequestParam.new('locale', @locale) unless @locale.nil?
  result << RequestParam.new('paymentProductId', @payment_product_id.to_s) unless @payment_product_id.nil?
  result
end