models

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymentOptionsType

type PaymentOptionsType struct {
	CustomerName        string  `json:"customer_name" validate:"required"`
	CustomerEmail       string  `json:"customer_email" validate:"required,email"`
	CustomerPhoneNumber string  `json:"customer_phone_number" validate:"required,len=10|len=12"`
	AmountToCharge      float64 `json:"amount_to_charge" validate:"required,gt=0"`
	CallbackURL         string  `json:"callback_url" validate:"required,url"`
}

PaymentOptionsType defines payment details.

type PaymentResponseType

type PaymentResponseType struct {
	Status  string `json:"status"`
	Message string `json:"message"`
	OrderID string `json:"order_id"`
}

PaymentResponseType defines the response for a payment request.

type PaymentStatusResponseType

type PaymentStatusResponseType struct {
	Status        string `json:"status"`
	OrderID       string `json:"order_id"`
	Message       string `json:"message"`
	PaymentStatus string `json:"payment_status"`
}

PaymentStatusResponseType defines the response for checking payment status.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL