delete method
Delete an item given Item ID
@param itemId - The unique identifier of the item.
Implementation
Future<RazorpayItemDeleteResponse> delete({
// Use specific empty model
required String itemId,
}) async {
if (itemId.isEmpty) {
throw ArgumentError('`item_id` is mandatory');
}
return api.delete<RazorpayItemDeleteResponse>(
{'url': '/items/$itemId'},
fromJsonFactory: RazorpayItemDeleteResponse.fromJson,
).then((value) => value.data!);
}