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