Method: Worldline::Connect::SDK::V1::Domain::PaymentContext#to_h
- Defined in:
- lib/worldline/connect/sdk/v1/domain/payment_context.rb
#to_h ⇒ Hash
28 29 30 31 32 33 34 35 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_context.rb', line 28 def to_h hash = super hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil? hash['countryCode'] = @country_code unless @country_code.nil? hash['isInstallments'] = @is_installments unless @is_installments.nil? hash['isRecurring'] = @is_recurring unless @is_recurring.nil? hash end |