Class: LockstepSdk::PaymentSummaryModelPaymentSummaryTotalsModelSummaryFetchResult

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ PaymentSummaryModelPaymentSummaryTotalsModelSummaryFetchResult

Initialize the PaymentSummaryModelPaymentSummaryTotalsModelSummaryFetchResult using the provided prototype



23
24
25
26
27
28
29
30
# File 'lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb', line 23

def initialize(params = {})
    @records = params.dig(:records)
    @total_count = params.dig(:total_count)
    @page_size = params.dig(:page_size)
    @page_number = params.dig(:page_number)
    @summary = params.dig(:summary)
    @aging_summary = params.dig(:aging_summary)
end

Instance Attribute Details

#aging_summarySummaryAgingTotalsModel



54
55
56
# File 'lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb', line 54

def aging_summary
  @aging_summary
end

#page_numberInt32

Returns:

  • (Int32)


46
47
48
# File 'lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb', line 46

def page_number
  @page_number
end

#page_sizeInt32

Returns:

  • (Int32)


42
43
44
# File 'lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb', line 42

def page_size
  @page_size
end

#recordsPaymentSummaryModel

Returns:



34
35
36
# File 'lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb', line 34

def records
  @records
end

#summaryPaymentSummaryTotalsModel

Returns The totals for a Payment Summary.

Returns:



50
51
52
# File 'lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb', line 50

def summary
  @summary
end

#total_countInt32

Returns:

  • (Int32)


38
39
40
# File 'lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb', line 38

def total_count
  @total_count
end

Instance Method Details

#as_json(options = {}) ⇒ object

Returns This object as a JSON key-value structure.

Returns:

  • (object)

    This object as a JSON key-value structure



58
59
60
61
62
63
64
65
66
67
# File 'lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb', line 58

def as_json(options={})
    {
        'records' => @records,
        'totalCount' => @total_count,
        'pageSize' => @page_size,
        'pageNumber' => @page_number,
        'summary' => @summary,
        'agingSummary' => @aging_summary,
    }
end

#to_json(*options) ⇒ String

Returns This object converted to a JSON string.

Returns:

  • (String)

    This object converted to a JSON string



71
72
73
# File 'lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb', line 71

def to_json(*options)
    "[#{as_json(*options).to_json(*options)}]"
end