feat: enhance receipt alias management with global scope support and update validation
This commit is contained in:
@@ -424,10 +424,12 @@ class AdminRepository {
|
||||
int id, {
|
||||
String? receiptName,
|
||||
int? productId,
|
||||
bool? isGlobal,
|
||||
}) {
|
||||
final body = <String, dynamic>{
|
||||
if (receiptName != null) 'receiptName': receiptName,
|
||||
if (productId != null) 'productId': productId,
|
||||
if (isGlobal != null) 'isGlobal': isGlobal,
|
||||
};
|
||||
|
||||
return _patchVoid(ReceiptAliasApiPaths.update(id), body);
|
||||
|
||||
Reference in New Issue
Block a user