This commit is contained in:
lizandrogd
2025-05-08 20:14:58 -05:00
parent beb50ad892
commit 81af8269d6
4 changed files with 95 additions and 15 deletions
+13 -12
View File
@@ -19,18 +19,19 @@ type DlocalApi struct {
Modo string `gorm:"default:'prod'" json:"modo"`
}
type PlanRequest struct {
Name string `json:"name"`
Description string `json:"description"`
Country string `json:"country"`
Currency string `json:"currency"`
Amount float64 `json:"amount"`
FrequencyType string `json:"frequency_type"`
FrequencyValue int `json:"frequency_value"`
DayOfMonth int `json:"day_of_month"`
NotificationURL string `json:"notification_url"`
SuccessURL string `json:"success_url"`
BackURL string `json:"back_url"`
ErrorURL string `json:"error_url"`
Name string `json:"name" validate:"required"`
Description string `json:"description" validate:"required"`
Currency string `json:"currency" validate:"required"`
Amount float64 `json:"amount" validate:"required"`
FrequencyType string `json:"frequency_type" validate:"required"`
Country string `json:"country,omitempty"`
FrequencyValue int `json:"frequency_value,omitempty"`
DayOfMonth int `json:"day_of_month,omitempty"`
NotificationURL string `json:"notification_url,omitempty"`
SuccessURL string `json:"success_url,omitempty"`
BackURL string `json:"back_url,omitempty"`
ErrorURL string `json:"error_url,omitempty"`
}
// TableName asegura que GORM use la tabla 'qrvcard'