Class: Worldline::Connect::SDK::V1::Domain::HostedCheckoutSpecificInput
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::HostedCheckoutSpecificInput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb
Instance Attribute Summary collapse
-
#allow_click_to_pay ⇒ true/false
The current value of allow_click_to_pay.
-
#is_recurring ⇒ true/false
The current value of is_recurring.
-
#locale ⇒ String
The current value of locale.
-
#payment_product_filters ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProductFiltersHostedCheckout
The current value of payment_product_filters.
-
#recurring_payments_data ⇒ Worldline::Connect::SDK::V1::Domain::RecurringPaymentsData
The current value of recurring_payments_data.
-
#return_cancel_state ⇒ true/false
The current value of return_cancel_state.
-
#return_url ⇒ String
The current value of return_url.
-
#show_result_page ⇒ true/false
The current value of show_result_page.
-
#tokens ⇒ String
The current value of tokens.
-
#validate_shopping_cart ⇒ true/false
The current value of validate_shopping_cart.
-
#variant ⇒ String
The current value of variant.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#allow_click_to_pay ⇒ true/false
Returns the current value of allow_click_to_pay.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def allow_click_to_pay @allow_click_to_pay end |
#is_recurring ⇒ true/false
Returns the current value of is_recurring.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def is_recurring @is_recurring end |
#locale ⇒ String
Returns the current value of locale.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def locale @locale end |
#payment_product_filters ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProductFiltersHostedCheckout
Returns the current value of payment_product_filters.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def payment_product_filters @payment_product_filters end |
#recurring_payments_data ⇒ Worldline::Connect::SDK::V1::Domain::RecurringPaymentsData
Returns the current value of recurring_payments_data.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def recurring_payments_data @recurring_payments_data end |
#return_cancel_state ⇒ true/false
Returns the current value of return_cancel_state.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def return_cancel_state @return_cancel_state end |
#return_url ⇒ String
Returns the current value of return_url.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def return_url @return_url end |
#show_result_page ⇒ true/false
Returns the current value of show_result_page.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def show_result_page @show_result_page end |
#tokens ⇒ String
Returns the current value of tokens.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def tokens @tokens end |
#validate_shopping_cart ⇒ true/false
Returns the current value of validate_shopping_cart.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def validate_shopping_cart @validate_shopping_cart end |
#variant ⇒ String
Returns the current value of variant.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 25 def variant @variant end |
Instance Method Details
#from_hash(hash) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 66 def from_hash(hash) super if hash.has_key? 'allowClickToPay' @allow_click_to_pay = hash['allowClickToPay'] end if hash.has_key? 'isRecurring' @is_recurring = hash['isRecurring'] end if hash.has_key? 'locale' @locale = hash['locale'] end if hash.has_key? 'paymentProductFilters' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductFilters']] unless hash['paymentProductFilters'].is_a? Hash @payment_product_filters = Worldline::Connect::SDK::V1::Domain::PaymentProductFiltersHostedCheckout.new_from_hash(hash['paymentProductFilters']) end if hash.has_key? 'recurringPaymentsData' raise TypeError, "value '%s' is not a Hash" % [hash['recurringPaymentsData']] unless hash['recurringPaymentsData'].is_a? Hash @recurring_payments_data = Worldline::Connect::SDK::V1::Domain::RecurringPaymentsData.new_from_hash(hash['recurringPaymentsData']) end if hash.has_key? 'returnCancelState' @return_cancel_state = hash['returnCancelState'] end if hash.has_key? 'returnUrl' @return_url = hash['returnUrl'] end if hash.has_key? 'showResultPage' @show_result_page = hash['showResultPage'] end if hash.has_key? 'tokens' @tokens = hash['tokens'] end if hash.has_key? 'validateShoppingCart' @validate_shopping_cart = hash['validateShoppingCart'] end if hash.has_key? 'variant' @variant = hash['variant'] end end |
#to_h ⇒ Hash
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb', line 50 def to_h hash = super hash['allowClickToPay'] = @allow_click_to_pay unless @allow_click_to_pay.nil? hash['isRecurring'] = @is_recurring unless @is_recurring.nil? hash['locale'] = @locale unless @locale.nil? hash['paymentProductFilters'] = @payment_product_filters.to_h unless @payment_product_filters.nil? hash['recurringPaymentsData'] = @recurring_payments_data.to_h unless @recurring_payments_data.nil? hash['returnCancelState'] = @return_cancel_state unless @return_cancel_state.nil? hash['returnUrl'] = @return_url unless @return_url.nil? hash['showResultPage'] = @show_result_page unless @show_result_page.nil? hash['tokens'] = @tokens unless @tokens.nil? hash['validateShoppingCart'] = @validate_shopping_cart unless @validate_shopping_cart.nil? hash['variant'] = @variant unless @variant.nil? hash end |