public DepositStateMachineMessage(BankAccountStateMachineAmount item) { Item = item; }
public WithdrawStateMachineMessage(BankAccountStateMachineAmount item) { Item = item; }
public static BankAccountStateMachineMessage NewDepositMessage( BankAccountStateMachineAmount bankAccountStateMachineAmount) => new ChoiceTypes.DepositStateMachineMessage(bankAccountStateMachineAmount);
public static BankAccountStateMachineMessage NewWithdrawMessage( BankAccountStateMachineAmount bankAccountStateMachineAmount) => new ChoiceTypes.WithdrawStateMachineMessage(bankAccountStateMachineAmount);
public BankAccountStateMachineAmount Add(BankAccountStateMachineAmount other) => new BankAccountStateMachineAmount(Value + other.Value);
public BankAccountStateMachineAmount Subtract(BankAccountStateMachineAmount other) => new BankAccountStateMachineAmount(Value - other.Value);
protected bool Equals(BankAccountStateMachineAmount other) { return(Equals((object)other)); }
public OverdrawnBankAccountStateMachineBalance(BankAccountStateMachineAmount amount) { Amount = amount; }
public ActiveBankAccountStateMachineBalance(BankAccountStateMachineAmount amount) { Amount = amount; }
public static BankAccountStateMachineBalance NewOverdrawnBalance(BankAccountStateMachineAmount amount) => new ChoiceTypes.OverdrawnBankAccountStateMachineBalance(amount);
public static BankAccountStateMachineBalance NewActiveBalance(BankAccountStateMachineAmount amount) => new ChoiceTypes.ActiveBankAccountStateMachineBalance(amount);