Close() public method

Close the account and cancel any active subscriptions (if there is one). Note: This does not create a refund for any time remaining.
public Close ( ) : void
return void
コード例 #1
0
        public void CloseAccount()
        {
            string s = Factories.GetMockAccountName();
            Account acct = new Account(s);
            acct.Create();

            acct.Close();

            Account getAcct = Account.Get(s);
            Assert.AreEqual(getAcct.State, Recurly.Account.AccountState.closed);
        }
コード例 #2
0
        public void ReopenAccount()
        {
            string s = Factories.GetMockAccountName();
            Account acct = new Account(s);
            acct.Create();
            acct.Close();

            acct.Reopen();

            Account test = Account.Get(s);
            Assert.AreEqual(acct.State, Recurly.Account.AccountState.active);
            Assert.AreEqual(test.State, Recurly.Account.AccountState.active);
        }