PMBalanceUpdate Class |
Namespace: PM90SettingsAPI
public class Update
The PMBalanceUpdate type exposes the following members.
Name | Description | |
---|---|---|
LAST_DAY_OF_THE_MONTH |
Always indicate balane update should occur on the last day of the month, even when a month has less than 31 days
Remarks Value is 30 as is used as a 0 based index |
Name | Description | |
---|---|---|
Balance |
Gets the balance this update is associated with
| |
Change |
Specifies if the update will reset, or increase
| |
Currency |
Current change when balance is of currency type
| |
Interval |
Interval in quick recurence takes place when enabled
| |
Pages |
Pages change when balance is set to UsePages=true
| |
Recur |
Specifies if this update is one time, or recurring
| |
RecurOn |
Day of Week, or Day of Month recurrence happens on.
| |
UpdateTimeUTC |
When the balance will update in UTC
|
PMGroupOU admins = PMGroupOU.LookupGroup("Administrators", "doamin.local"); //create a recurring reset on the last day of each month, for $100 admins.Balance.AddRecurringUpdate(PMBalance.Update.ChangeOption.Reset, PMBalance.Update.RecurringScheme.Monthly, new DateTime(2015, 1, 1, 0, 0, 0), //Only time part is relevent PMBalance.Update.LAST_DAY_OF_THE_MONTH, 100); //Get current scheduled updates var scheduledUpdates = admins.Balance.ScheduledUpdates; //Remove update scheduledUpdates[0].Delete();