Documentation
¶
Index ¶
- type AccountInfo
- type BaseResponse
- type Benefits
- type BitcouBaseResponse
- type BitcouPhoneBodyReq
- type BitcouPhoneResponseList
- type Countries
- type LightVoucherV2
- type MetaData
- type PaymentInfo
- type PrepareVoucher
- type PrepareVoucherInfo
- type PrepareVoucherInfoV2
- type PrepareVoucherResponse
- type PurchaseInfo
- type PurchaseInfoResponse
- type PurchaseInfoResponseV2
- type RedeemCodeVoucher
- type RedeemPlace
- type Shipping
- type ShippingV2
- type StoreVoucher
- type Variants
- type Voucher
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 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 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 PaymentInfo ¶
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 PurchaseInfoResponse ¶
type PurchaseInfoResponseV2 ¶
type RedeemCodeVoucher ¶
type RedeemPlace ¶
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 ¶
func (s *ShippingV2) GetEnum() hestia.VoucherShippingMethod
type StoreVoucher ¶
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"` }
Click to show internal directories.
Click to hide internal directories.