Class: LockstepSdk::PaymentDetailHeaderModel
- Inherits:
-
Object
- Object
- LockstepSdk::PaymentDetailHeaderModel
- Defined in:
- lib/lockstep_sdk/models/payment_detail_header_model.rb
Overview
Contains group level payment data.
Instance Attribute Summary collapse
-
#amount_collected ⇒ Double
The total amount collected.
-
#customer_count ⇒ Int32
The total number of Customers.
-
#group_key ⇒ Uuid
The GroupKey uniquely identifies a single Lockstep Platform account.
-
#open_invoice_count ⇒ Int32
The number of open invoices.
-
#paid_invoice_count ⇒ Int32
The number of paid invoices.
-
#unapplied_amount ⇒ Double
The total unapplied amount.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ PaymentDetailHeaderModel
constructor
Initialize the PaymentDetailHeaderModel using the provided prototype.
Constructor Details
#initialize(params = {}) ⇒ PaymentDetailHeaderModel
Initialize the PaymentDetailHeaderModel using the provided prototype
24 25 26 27 28 29 30 31 |
# File 'lib/lockstep_sdk/models/payment_detail_header_model.rb', line 24 def initialize(params = {}) @group_key = params.dig(:group_key) @customer_count = params.dig(:customer_count) @amount_collected = params.dig(:amount_collected) @unapplied_amount = params.dig(:unapplied_amount) @paid_invoice_count = params.dig(:paid_invoice_count) @open_invoice_count = params.dig(:open_invoice_count) end |
Instance Attribute Details
#amount_collected ⇒ Double
Returns The total amount collected.
38 39 40 |
# File 'lib/lockstep_sdk/models/payment_detail_header_model.rb', line 38 def amount_collected @amount_collected end |
#customer_count ⇒ Int32
Returns The total number of Customers.
36 37 38 |
# File 'lib/lockstep_sdk/models/payment_detail_header_model.rb', line 36 def customer_count @customer_count end |
#group_key ⇒ Uuid
Returns The GroupKey uniquely identifies a single Lockstep Platform account. All records for this account will share the same GroupKey value. GroupKey values cannot be changed once created. For more information, see [Accounts and GroupKeys](developer.lockstep.io/docs/accounts-and-groupkeys).
34 35 36 |
# File 'lib/lockstep_sdk/models/payment_detail_header_model.rb', line 34 def group_key @group_key end |
#open_invoice_count ⇒ Int32
Returns The number of open invoices.
44 45 46 |
# File 'lib/lockstep_sdk/models/payment_detail_header_model.rb', line 44 def open_invoice_count @open_invoice_count end |
#paid_invoice_count ⇒ Int32
Returns The number of paid invoices.
42 43 44 |
# File 'lib/lockstep_sdk/models/payment_detail_header_model.rb', line 42 def paid_invoice_count @paid_invoice_count end |
#unapplied_amount ⇒ Double
Returns The total unapplied amount.
40 41 42 |
# File 'lib/lockstep_sdk/models/payment_detail_header_model.rb', line 40 def unapplied_amount @unapplied_amount end |