createOne method

Future<QuickbooksTaxRate> createOne({
  1. required String accessToken,
  2. required String companyId,
  3. 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;
}