feat: Add VAT information to GetUserOrderResponse and OrderVATInfo message

This commit is contained in:
masoodafar-web
2025-12-05 17:27:45 +03:30
parent 9a42060653
commit 13e33e7b1f
2 changed files with 45 additions and 1 deletions

View File

@@ -94,6 +94,18 @@ message GetUserOrderResponse
}
google.protobuf.StringValue user_address_text = 10;
repeated GetUserOrderResponseFactorDetail factor_details = 11;
// VAT information
OrderVATInfo vat_info = 12;
}
// اطلاعات مالیات بر ارزش افزوده
message OrderVATInfo
{
double vat_rate = 1; // نرخ مالیات (مثلاً 0.09)
int64 base_amount = 2; // مبلغ پایه (قبل از مالیات)
int64 vat_amount = 3; // مبلغ مالیات
int64 total_amount = 4; // مبلغ کل (پایه + مالیات)
bool is_paid = 5; // آیا پرداخت شده
}
enum PaymentStatus
{
@@ -173,6 +185,8 @@ message SubmitShopBuyOrderRequest
message SubmitShopBuyOrderResponse
{
int64 id = 1;
// VAT information for checkout confirmation
OrderVATInfo vat_info = 2;
}
message PaginationState