Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.34 KB

LoyaltyProgramBalance.md

File metadata and controls

27 lines (20 loc) · 1.34 KB

TalonOne::LoyaltyProgramBalance

Properties

Name Type Description Notes
current_balance Float Sum of currently active points.
pending_balance Float Sum of pending points.
expired_balance Float DEPRECATED Value is shown as 0.
spent_balance Float DEPRECATED Value is shown as 0.
tentative_current_balance Float Sum of the tentative active points (including additions and deductions) inside the currently open session. The `currentBalance` is updated to this value when you close the session, and the effects are applied.
tentative_pending_balance Float Sum of pending points (including additions and deductions) inside the currently open session. The `pendingBalance` is updated to this value when you close the session, and the effects are applied. [optional]

Code Sample

require 'TalonOne'

instance = TalonOne::LoyaltyProgramBalance.new(current_balance: 100.0,
                                 pending_balance: 10.0,
                                 expired_balance: 0.0,
                                 spent_balance: 0.0,
                                 tentative_current_balance: 100.0,
                                 tentative_pending_balance: 20.0)