createOne method
Future<QuickbooksPurchase>
createOne({
- required String accessToken,
- required String companyId,
- required QuickbooksPurchase data,
Creates a QuickbooksPurchase with
the given accessToken
and companyId
Implementation
Future<QuickbooksPurchase> createOne({
required String accessToken,
required String companyId,
required QuickbooksPurchase data,
}) async {
var result = await post(
accessToken: accessToken,
companyId: companyId,
data: data.toMap(withId: false),
location: 'Purchase',
);
var newData = QuickbooksPurchase.fromMap(result);
return newData;
}