Fix Split Bill
This commit is contained in:
@@ -16,6 +16,7 @@ type Payment struct {
|
||||
TransactionID *string
|
||||
SplitNumber int
|
||||
SplitTotal int
|
||||
SplitType *string
|
||||
SplitDescription *string
|
||||
RefundAmount float64
|
||||
RefundReason *string
|
||||
@@ -33,6 +34,7 @@ type CreatePaymentRequest struct {
|
||||
TransactionID *string `validate:"omitempty"`
|
||||
SplitNumber int `validate:"omitempty,min=1"`
|
||||
SplitTotal int `validate:"omitempty,min=1"`
|
||||
SplitType *string `validate:"omitempty,oneof=AMOUNT ITEM"`
|
||||
SplitDescription *string `validate:"omitempty,max=255"`
|
||||
PaymentOrderItems []CreatePaymentOrderItemRequest `validate:"omitempty,dive"`
|
||||
Metadata map[string]interface{}
|
||||
@@ -48,11 +50,14 @@ type PaymentResponse struct {
|
||||
ID uuid.UUID
|
||||
OrderID uuid.UUID
|
||||
PaymentMethodID uuid.UUID
|
||||
PaymentMethodName string
|
||||
PaymentMethodType constants.PaymentMethodType
|
||||
Amount float64
|
||||
Status constants.PaymentTransactionStatus
|
||||
TransactionID *string
|
||||
SplitNumber int
|
||||
SplitTotal int
|
||||
SplitType *string
|
||||
SplitDescription *string
|
||||
RefundAmount float64
|
||||
RefundReason *string
|
||||
|
||||
Reference in New Issue
Block a user