コード例 #1
0
        public static Response <DirectCredit> Create(string bsb, string account_number, string account_name, decimal amount, string reference, string description, DateTime date)
        {
            var req = new Requests.DirectEntry {
                BSB           = bsb,
                AccountNumber = account_number,
                AccountName   = account_name,
                Amount        = amount,
                Description   = description,
                Reference     = reference,
                Date          = date,
                TestMode      = Gateway.TestMode
            };

            return(Gateway.Post <DirectCredit>("direct_credits.json", req));
        }
コード例 #2
0
ファイル: DirectCredit.cs プロジェクト: fatzebra/.NET-Library
		public static Response<DirectCredit> Create(string bsb, string account_number, string account_name, decimal amount, string reference, string description, DateTime date)
		{
			var req = new Requests.DirectEntry {
				BSB = bsb,
				AccountNumber = account_number,
				AccountName = account_name,
				Amount = amount,
				Description = description,
				Reference = reference,
				Date = date,
				TestMode = Gateway.TestMode
			};

			return Gateway.Post<DirectCredit>("direct_credits.json", req);
		}