feat: Add VAT information to GetUserOrderResponse and OrderVATInfo message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user