better-reports / quickbookssharp Goto Github PK
View Code? Open in Web Editor NEW.NET client for QuickBooks Online API
License: MIT License
.NET client for QuickBooks Online API
License: MIT License
I am trying to upload a bill with a memo to QBO. The bill is showing up correctly however the memo is not. I see in the files that the transaction's Memo property is hidden by it's child PurchaseByVendor Memo property, but not sure if this is the error or not.
What query would I use to retrieve all line items on all invoices?
Any chance entity classes could be marked as Partial so it's easier to write extensions for them? I don't know if you could somehow implement [NotMapped] (or similar) to prevent any custom properties from being sent to Quickbooks which would likely cause errors. I use this method with EF scaffolded entities and SQL Server.
I am trying to update the bill by using this code but looks like it doesn't work.
` var dataService = new DataService(token, long.Parse(realmId), useSandbox: true);
var billResponse=( await dataService.QueryAsync<Bill>("SELECT * FROM Bill")).Response;
if (billResponse != null)
{
var bill = billResponse.Entities.FirstOrDefault();
// update bill here
bill.PrivateNote = "sample memo";
bill.Memo = "Memo";
await dataService.PostAsync(bill);
}`
Any idea?
It seems that the DataService is not able to void a payment.
var dataService = new QuickBooksSharp.DataService("AccessToken", "RealmId", useSandbox: true);
// https://developer.intuit.com/app/developer/qbo/docs/api/accounting/most-commonly-used/payment#void-a-payment
// Use a sparse update operation with include=void to void an existing Payment object;
// include a minimum of Payment.Id and Payment.SyncToken.
// The transaction remains active but all amounts and quantities are zeroed
// and the string, Voided, is injected into Payment.PrivateNote, prepended to existing text if present.
// If funds for the payment have been deposited, you must delete the associated deposit object before voiding the payment object.
var payment = new Payment()
{
Id = paymentId,
SyncToken = syncToken,
status = EntityStatusEnum.Voided,
sparse = true,
PrivateNote = "Voided by QuickBooksSharp"
};
var result = await dataService.PostAsync(payment);
Any idea if we can actually do this?
Is there any way to delete items such as invoices with QuickBooksSharp?
Also, any plans to add additional properties to entities such as ProjectRef to Invoice?
(Thank you for your work by the way)
Hi, just wanted to see if this topic has been under your consideration @clement911 . It seems that QuickBooks is making some back-end change to their security flow on March 1st 2024.
Thank you
I do not seen a mechanism for refreshing the tokens (aside from instantiating a new DataService
). There is also no way to update the tokens manually since the variables are private/protected and readonly.
This presents issues in an ASP.NET application where the DataService
is injected, since there is no way to correctly re-instantiate an instance of IDataService
.
Cannot seem to find the object that QBO is sending when hitting the Webhook. Is it included or generated by the XSD?
Is DataService thread-safe, or should each thread instantiate its own?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.