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