entity

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrderMetaDataRequest

type CreateOrderMetaDataRequest struct {
	GameID           string `json:"game_id"`
	UserID           string `json:"user_id"`
	RegionCurrencyID string `json:"region_currency_id"`
}

type CreateOrderRequest

type CreateOrderRequest struct {
	Project  string                     `json:"project"`
	Amount   float64                    `json:"amount"`
	Currency string                     `json:"currency"`
	Type     string                     `json:"type"`
	User     CreateOrderUserRequest     `json:"user"`
	MetaData CreateOrderMetaDataRequest `json:"metadata"`
}

type CreateOrderResponse

type CreateOrderResponse struct {
	ID             string `json:"id"`
	PaymentFormURL string `json:"payment_form_url"`
}

type CreateOrderUserRequest

type CreateOrderUserRequest struct {
	ExternalID    string `json:"external_id"`
	Email         string `json:"email"`
	EmailVerified bool   `json:"email_verified"`
}

type GetOrderRequest

type GetOrderRequest struct {
	ExternalID    string `json:"external_id"`
	Email         string `json:"email"`
	EmailVerified bool   `json:"email_verified"`
}

type GetOrderResponse

type GetOrderResponse struct {
	Items []ResultOrder `json:"items"`
}

type Order

type Order struct {
	ID             string
	PaymentFormURL string
}

type ResultOrder

type ResultOrder struct {
	ID       string              `json:"id"`
	Status   string              `json:"status"`
	Amount   float64             `json:"amount"`
	Currency string              `json:"currency"`
	Country  string              `json:"country"`
	Tax      ResultOrderTax      `json:"tax"`
	MetaData ResultOrderMetadata `json:"metadata"`
}

type ResultOrderMetadata

type ResultOrderMetadata struct {
	GameID           string `json:"game_id"`
	UserID           string `json:"user_id"`
	RegionCurrencyID string `json:"region_currency_id"`
}

type ResultOrderTax

type ResultOrderTax struct {
	Amount float64 `json:"amount"`
}

Jump to

Keyboard shortcuts

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