2023-07-10 08:10:13 +00:00
|
|
|
package wspay
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/google/uuid"
|
2023-07-26 07:51:29 +00:00
|
|
|
"payment-poc/state"
|
2023-07-10 08:10:13 +00:00
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type WsPayDb struct {
|
|
|
|
Id uuid.UUID `db:"id"`
|
|
|
|
ShopID string `db:"shop_id"`
|
|
|
|
ShoppingCartID string `db:"shopping_card_id"`
|
|
|
|
TotalAmount int64 `db:"total_amount"`
|
|
|
|
Lang string `db:"lang"`
|
|
|
|
|
|
|
|
CustomerFirstName string `db:"customer_first_name"`
|
|
|
|
CustomerLastName string `db:"customer_last_name"`
|
|
|
|
CustomerAddress string `db:"customer_address"`
|
|
|
|
CustomerCity string `db:"customer_city"`
|
|
|
|
CustomerZIP string `db:"customer_zip"`
|
|
|
|
CustomerCountry string `db:"customer_country"`
|
|
|
|
CustomerPhone string `db:"customer_phone"`
|
|
|
|
|
|
|
|
PaymentPlan string `db:"payment_plan"`
|
|
|
|
CreditCardName string `db:"credit_card_name"`
|
|
|
|
CreditCardNumber string `db:"credit_card_number"`
|
|
|
|
PaymentMethod string `db:"payment_method"`
|
|
|
|
CurrencyCode int `db:"currency_code"`
|
|
|
|
|
|
|
|
DateTime time.Time `db:"date_time"`
|
|
|
|
|
|
|
|
ECI string `db:"eci"`
|
|
|
|
STAN string `db:"stan"`
|
|
|
|
|
|
|
|
Success int `db:"success"`
|
|
|
|
ApprovalCode string `db:"approval_code"`
|
|
|
|
ErrorMessage string `db:"error_message"`
|
|
|
|
ErrorCodes string `db:"error_codes"`
|
|
|
|
|
2023-07-26 07:51:29 +00:00
|
|
|
State state.PaymentState `db:"payment_state"`
|
2023-07-10 08:10:13 +00:00
|
|
|
}
|