/// <summary> /// Gets a money request. /// </summary> public MoneyRequest GetMoneyRequest(Int32 moneyRequestId) { JSONObject json = _api.Get(SettingsHelper.MoneyRequestsUri + "/" + moneyRequestId.ToString()); MoneyRequest moneyRequest = new MoneyRequest(json); return(moneyRequest); }
/// <summary> /// Creates a money request. /// </summary> public MoneyRequest CreateMoneyRequest(MoneyRequest moneyRequest) { JSONObject json = _api.Post(SettingsHelper.MoneyRequestsUri, moneyRequest.ToJSON(), ContentType.JSON); moneyRequest = new MoneyRequest(json); return(moneyRequest); }