Class: Worldline::Connect::SDK::V1::Domain::DeferredBillingDetails
- Inherits:
-
BaseBillingDetails
- Object
- Domain::DataObject
- BaseBillingDetails
- Worldline::Connect::SDK::V1::Domain::DeferredBillingDetails
- Defined in:
- lib/worldline/connect/sdk/v1/domain/deferred_billing_details.rb
Instance Attribute Summary collapse
-
#deferred_payment_amount ⇒ Integer
The current value of deferred_payment_amount.
-
#deferred_payment_date ⇒ String
The current value of deferred_payment_date.
-
#free_cancellation_date ⇒ String
The current value of free_cancellation_date.
-
#free_cancellation_date_time_zone ⇒ String
The current value of free_cancellation_date_time_zone.
Attributes inherited from BaseBillingDetails
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#deferred_payment_amount ⇒ Integer
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/deferred_billing_details.rb', line 16 def deferred_payment_amount @deferred_payment_amount end |
#deferred_payment_date ⇒ String
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/deferred_billing_details.rb', line 16 def deferred_payment_date @deferred_payment_date end |
#free_cancellation_date ⇒ String
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/deferred_billing_details.rb', line 16 def free_cancellation_date @free_cancellation_date end |
#free_cancellation_date_time_zone ⇒ String
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/deferred_billing_details.rb', line 16 def free_cancellation_date_time_zone @free_cancellation_date_time_zone end |
Instance Method Details
#from_hash(hash) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/worldline/connect/sdk/v1/domain/deferred_billing_details.rb', line 36 def from_hash(hash) super if hash.has_key? 'deferredPaymentAmount' @deferred_payment_amount = hash['deferredPaymentAmount'] end if hash.has_key? 'deferredPaymentDate' @deferred_payment_date = hash['deferredPaymentDate'] end if hash.has_key? 'freeCancellationDate' @free_cancellation_date = hash['freeCancellationDate'] end if hash.has_key? 'freeCancellationDateTimeZone' @free_cancellation_date_time_zone = hash['freeCancellationDateTimeZone'] end end |
#to_h ⇒ Hash
27 28 29 30 31 32 33 34 |
# File 'lib/worldline/connect/sdk/v1/domain/deferred_billing_details.rb', line 27 def to_h hash = super hash['deferredPaymentAmount'] = @deferred_payment_amount unless @deferred_payment_amount.nil? hash['deferredPaymentDate'] = @deferred_payment_date unless @deferred_payment_date.nil? hash['freeCancellationDate'] = @free_cancellation_date unless @free_cancellation_date.nil? hash['freeCancellationDateTimeZone'] = @free_cancellation_date_time_zone unless @free_cancellation_date_time_zone.nil? hash end |