예제 #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
		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);
		}