models

package
v0.0.0-...-41575ae Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo struct {
	Amount int64 `json:"amount"`
}

type BaseResponse

type BaseResponse struct {
	Data   string      `json:"data"`
	Status interface{} `json:"status"`
}

type Benefits

type Benefits struct {
	Data           bool `json:"Data"`
	DigitalProduct bool `json:"DigitalProduct"`
	Gaming         bool `json:"Gaming"`
	Giftcards      bool `json:"Giftcards"`
	Minutes        bool `json:"Minutes"`
	Mobile         bool `json:"Mobile"`
	Phone          bool `json:"Phone"`
	TV             bool `json:"TV"`
	Utility        bool `json:"Utility"`
}

type BitcouBaseResponse

type BitcouBaseResponse struct {
	Data []interface{} `json:"data"`
	Meta MetaData      `json:"meta"`
}

type BitcouPhoneBodyReq

type BitcouPhoneBodyReq struct {
	PhoneNumber string `json:"phone_number"`
}

type BitcouPhoneResponseList

type BitcouPhoneResponseList struct {
	Meta struct {
		Datetime string `json:"datetime"`
	} `json:"meta"`
	Data []struct {
		ProductID int `json:"product_id"`
	} `json:"data"`
}

type Countries

type Countries struct {
	Austria      bool `json:"austria"`
	Belgium      bool `json:"belgium"`
	Bulgaria     bool `json:"bulgaria"`
	Canada       bool `json:"canada"`
	Croatia      bool `json:"croatia"`
	Cyprus       bool `json:"cyprus"`
	Czechia      bool `json:"czechia"`
	Denmark      bool `json:"denmark"`
	Estonia      bool `json:"estonia"`
	Finland      bool `json:"finland"`
	France       bool `json:"france"`
	Germany      bool `json:"germany"`
	GreatBritain bool `json:"great_britain"`
	Greece       bool `json:"greece"`
	Hongkong     bool `json:"hongkong"`
	Hungary      bool `json:"hungary"`
	Indonesia    bool `json:"indonesia"`
	Ireland      bool `json:"ireland"`
	Italy        bool `json:"italy"`
	Lichtenstein bool `json:"lichtenstein"`
	Luxembourg   bool `json:"luxembourg"`
	Malaysia     bool `json:"malaysia"`
	Malta        bool `json:"malta"`
	Mexico       bool `json:"mexico"`
	Netherland   bool `json:"netherland"`
	Norway       bool `json:"norway"`
	Poland       bool `json:"poland"`
	Portugal     bool `json:"portugal"`
	Russia       bool `json:"russia"`
	Singapore    bool `json:"singapore"`
	Slovakia     bool `json:"slovakia"`
	Slovenia     bool `json:"slovenia"`
	Spain        bool `json:"spain"`
	Sweden       bool `json:"sweden"`
	Switzerland  bool `json:"switzerland"`
	Turkey       bool `json:"turkey"`
	Usa          bool `json:"usa"`
}

type LightVoucherV2

type LightVoucherV2 struct {
	Name      string `firestore:"name" json:"name"`
	ProductID int    `firestore:"product_id" json:"product_id"`
	//RedeemPlace  RedeemPlace     `firestore:"redeem_place" json:"redeem_place"`
	Shipping     ShippingV2      `firestore:"shipping" json:"shipping"`
	TraderID     int             `firestore:"trader_id" json:"trader_id"`
	Variants     []Variants      `firestore:"variants" json:"variants"`
	ProviderID   int             `firestore:"provider_id" json:"provider_id"`
	ProviderName string          `firestore:"provider_name" json:"provider_name"`
	Benefits     map[string]bool `firestore:"benefits" json:"benefits"`
	Description  string          `firestore:"description" json:"description"`
	Valid        int64           `firestore:"valid" json:"valid"`
}

type MetaData

type MetaData struct {
	Datetime string `json:"datetime"`
}

type PaymentInfo

type PaymentInfo struct {
	Address string `json:"address"`
	Amount  int64  `json:"amount"`
}

type PrepareVoucher

type PrepareVoucher struct {
	Coin           string `json:"coin"`
	VoucherType    int    `json:"voucher_type"`
	VoucherVariant string `json:"voucher_variant"`
	Country        string `json:"country"`
	VoucherName    string `json:"name"`
	VoucherImage   string `json:"image"`
	PhoneNumber    string `json:"phone_nb"`
	ProviderId     int32  `json:"provider_id"`
	Valid          int32  `json:"valid"`
	ProductId      int32  `json:"product_id"`
}

type PrepareVoucherInfo

type PrepareVoucherInfo struct {
	ID               string      `json:"id"`
	Coin             string      `json:"coin"`
	VoucherType      int         `json:"voucher_type"`
	VoucherVariant   string      `json:"voucher_variant"`
	Payment          PaymentInfo `json:"payment"`
	FeePayment       PaymentInfo `json:"fee_payment"`
	BitcouPayment    PaymentInfo `json:"bitcou_payment"`
	BitcouFeePayment PaymentInfo `json:"bitcou_fee_payment"`
	BitcouID         string      `json:"bitcou_id"`
	Timestamp        int64       `json:"timestamp"`
	AmountEuro       string      `json:"amount_euro"`
	AmountFeeEuro    string      `json:"amount_fee_euro"`
	Name             string      `json:"name"`
	Image            string      `json:"image"`
	PhoneNumber      int64       `json:"phone_nb"`
	ProviderId       int32       `json:"provider_id"`
	Valid            int32       `json:"valid"`
}

type PrepareVoucherInfoV2

type PrepareVoucherInfoV2 struct {
	ID             string                       `json:"id"`
	Timestamp      int64                        `json:"timestamp"`
	AmountEuro     float64                      `json:"amount_euro"`
	UserPayment    PaymentInfo                  `json:"user_payment"`
	Coin           string                       `json:"coin"`
	VoucherType    int                          `json:"voucher_type"`
	VoucherVariant int                          `json:"voucher_variant"`
	Name           string                       `json:"name"`
	PhoneNumber    int64                        `json:"phone_nb"`
	ProviderId     string                       `json:"provider_id"`
	Path           models.VoucherPathResponse   `json:"path"`
	Email          string                       `json:"email"`
	ShippingMethod hestia.VoucherShippingMethod `json:"shipping_method"`
	Valid          int32                        `json:"valid"`
	Country        string                       `json:"country"`
}

type PrepareVoucherResponse

type PrepareVoucherResponse struct {
	Payment PaymentInfo `json:"payment"`
	Fee     PaymentInfo `json:"fee"`
}

type PurchaseInfo

type PurchaseInfo struct {
	TransactionID string `json:"transaction_id"`
	ProductID     int32  `json:"product_id"`
	VariantID     int32  `json:"variant_id"`
	PhoneNB       int64  `json:"phone_nb"`
	Email         string `json:"email"`
	KYC           bool   `json:"kyc"`
}

type PurchaseInfoResponse

type PurchaseInfoResponse struct {
	Amount              float64 `json:"amount"`
	AmountEuro          string  `json:"amount_euro"`
	BitcouTransactionID string  `json:"txn_id"`
	Address             string  `json:"address"`
	Timeout             int64   `json:"timeout"`
	QRCode              string  `json:"qr_code"`
}

type PurchaseInfoResponseV2

type PurchaseInfoResponseV2 struct {
	TxId       string `json:"txn_id"`
	AmountEuro string `json:"amount_euro"`
	RedeemData string `json:"redeem_data"`
}

type RedeemCodeVoucher

type RedeemCodeVoucher struct {
	VoucherID  string `json:"voucher_id"`
	RedeemCode string `json:"redeem_code"`
}

type RedeemPlace

type RedeemPlace struct {
	Market bool `json:"market"`
	Online bool `json:"online"`
}

type Shipping

type Shipping struct {
	EMail bool `json:"e_mail"`
	Mail  bool `json:"mail"`
	Print bool `json:"print"`
}

type ShippingV2

type ShippingV2 struct {
	SendByEmail  bool `json:"send_by_email"`
	AddToAccount bool `json:"add_to_account"`
	SendByAPI    bool `json:"send_by_api"`
}

func (*ShippingV2) GetEnum

type StoreVoucher

type StoreVoucher struct {
	RawTx         string `json:"raw_tx"`
	FeeTx         string `json:"fee_tx"`
	RefundAddr    string `json:"refund_addr"`
	RefundFeeAddr string `json:"refund_fee_addr"`
}

type Variants

type Variants struct {
	Currency  string  `json:"currency"`
	Ean       string  `json:"ean"`
	Price     float64 `json:"price"`
	Value     float64 `json:"value"`
	VariantID string  `json:"variant_id"`
}

type Voucher

type Voucher struct {
	Countries   Countries   `json:"countries"`
	Image       string      `json:"image"`
	Name        string      `json:"name"`
	ProductID   int         `json:"product_id"`
	RedeemPlace RedeemPlace `json:"redeem_place"`
	Shipping    Shipping    `json:"shipping"`
	TraderID    int         `json:"trader_id"`
	Variants    []Variants  `json:"variants"`
	Benefits    Benefits    `json:"benefits"`
}

Jump to

Keyboard shortcuts

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