Created
This commit is contained in:
25
entity/payment_gateway.go
Normal file
25
entity/payment_gateway.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package entity
|
||||
|
||||
// PaymentGateway payment gateway properties
|
||||
type PaymentGateway struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Order int `json:"order"`
|
||||
Enabled bool `json:"enabled"`
|
||||
MethodTitle string `json:"method_title"`
|
||||
MethodDescription string `json:"method_description"`
|
||||
MethodSupports []string `json:"method_supports"`
|
||||
Settings map[string]PaymentGatewaySetting `json:"settings"`
|
||||
}
|
||||
|
||||
type PaymentGatewaySetting struct {
|
||||
ID string `json:"id"`
|
||||
Label string `json:"label"`
|
||||
Description string `json:"description"`
|
||||
Type string `json:"type"`
|
||||
Value string `json:"value"`
|
||||
Default string `json:"default"`
|
||||
Tip string `json:"tip"`
|
||||
Placeholder string `json:"placeholder"`
|
||||
}
|
||||
Reference in New Issue
Block a user