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