Class: Worldline::Connect::SDK::V1::Domain::PaymentProduct302SpecificInput
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::PaymentProduct302SpecificInput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb
Instance Attribute Summary collapse
-
#automatic_reload_billing ⇒ Worldline::Connect::SDK::V1::Domain::AutomaticReloadBillingDetails
The current value of automatic_reload_billing.
-
#billing_agreement ⇒ String
The current value of billing_agreement.
-
#deferred_billing ⇒ Worldline::Connect::SDK::V1::Domain::DeferredBillingDetails
The current value of deferred_billing.
-
#management_url ⇒ String
The current value of management_url.
-
#payment_description ⇒ String
The current value of payment_description.
-
#regular_billing ⇒ Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails
The current value of regular_billing.
-
#token_notification_url ⇒ String
The current value of token_notification_url.
-
#trial_billing ⇒ Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails
The current value of trial_billing.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#automatic_reload_billing ⇒ Worldline::Connect::SDK::V1::Domain::AutomaticReloadBillingDetails
Returns the current value of automatic_reload_billing.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 23 def automatic_reload_billing @automatic_reload_billing end |
#billing_agreement ⇒ String
Returns the current value of billing_agreement.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 23 def billing_agreement @billing_agreement end |
#deferred_billing ⇒ Worldline::Connect::SDK::V1::Domain::DeferredBillingDetails
Returns the current value of deferred_billing.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 23 def deferred_billing @deferred_billing end |
#management_url ⇒ String
Returns the current value of management_url.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 23 def management_url @management_url end |
#payment_description ⇒ String
Returns the current value of payment_description.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 23 def payment_description @payment_description end |
#regular_billing ⇒ Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails
Returns the current value of regular_billing.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 23 def regular_billing @regular_billing end |
#token_notification_url ⇒ String
Returns the current value of token_notification_url.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 23 def token_notification_url @token_notification_url end |
#trial_billing ⇒ Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails
Returns the current value of trial_billing.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 23 def trial_billing @trial_billing end |
Instance Method Details
#from_hash(hash) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 55 def from_hash(hash) super if hash.has_key? 'automaticReloadBilling' raise TypeError, "value '%s' is not a Hash" % [hash['automaticReloadBilling']] unless hash['automaticReloadBilling'].is_a? Hash @automatic_reload_billing = Worldline::Connect::SDK::V1::Domain::AutomaticReloadBillingDetails.new_from_hash(hash['automaticReloadBilling']) end if hash.has_key? 'billingAgreement' @billing_agreement = hash['billingAgreement'] end if hash.has_key? 'deferredBilling' raise TypeError, "value '%s' is not a Hash" % [hash['deferredBilling']] unless hash['deferredBilling'].is_a? Hash @deferred_billing = Worldline::Connect::SDK::V1::Domain::DeferredBillingDetails.new_from_hash(hash['deferredBilling']) end if hash.has_key? 'managementUrl' @management_url = hash['managementUrl'] end if hash.has_key? 'paymentDescription' @payment_description = hash['paymentDescription'] end if hash.has_key? 'regularBilling' raise TypeError, "value '%s' is not a Hash" % [hash['regularBilling']] unless hash['regularBilling'].is_a? Hash @regular_billing = Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails.new_from_hash(hash['regularBilling']) end if hash.has_key? 'tokenNotificationUrl' @token_notification_url = hash['tokenNotificationUrl'] end if hash.has_key? 'trialBilling' raise TypeError, "value '%s' is not a Hash" % [hash['trialBilling']] unless hash['trialBilling'].is_a? Hash @trial_billing = Worldline::Connect::SDK::V1::Domain::RecurringBillingDetails.new_from_hash(hash['trialBilling']) end end |
#to_h ⇒ Hash
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product302_specific_input.rb', line 42 def to_h hash = super hash['automaticReloadBilling'] = @automatic_reload_billing.to_h unless @automatic_reload_billing.nil? hash['billingAgreement'] = @billing_agreement unless @billing_agreement.nil? hash['deferredBilling'] = @deferred_billing.to_h unless @deferred_billing.nil? hash['managementUrl'] = @management_url unless @management_url.nil? hash['paymentDescription'] = @payment_description unless @payment_description.nil? hash['regularBilling'] = @regular_billing.to_h unless @regular_billing.nil? hash['tokenNotificationUrl'] = @token_notification_url unless @token_notification_url.nil? hash['trialBilling'] = @trial_billing.to_h unless @trial_billing.nil? hash end |