model

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ConversionFromTypeFiat captures enum value "fiat"
	ConversionFromTypeFiat string = "fiat"

	// ConversionFromTypeCrypto captures enum value "crypto"
	ConversionFromTypeCrypto string = "crypto"
)
View Source
const (

	// ConversionToTypeFiat captures enum value "fiat"
	ConversionToTypeFiat string = "fiat"

	// ConversionToTypeCrypto captures enum value "crypto"
	ConversionToTypeCrypto string = "crypto"
)
View Source
const (

	// CreateMerchantAddressRequestBlockchainBTC captures enum value "BTC"
	CreateMerchantAddressRequestBlockchainBTC string = "BTC"

	// CreateMerchantAddressRequestBlockchainETH captures enum value "ETH"
	CreateMerchantAddressRequestBlockchainETH string = "ETH"

	// CreateMerchantAddressRequestBlockchainTRON captures enum value "TRON"
	CreateMerchantAddressRequestBlockchainTRON string = "TRON"

	// CreateMerchantAddressRequestBlockchainMATIC captures enum value "MATIC"
	CreateMerchantAddressRequestBlockchainMATIC string = "MATIC"

	// CreateMerchantAddressRequestBlockchainBSC captures enum value "BSC"
	CreateMerchantAddressRequestBlockchainBSC string = "BSC"
)
View Source
const (

	// CreatePaymentLinkRequestCurrencyUSD captures enum value "USD"
	CreatePaymentLinkRequestCurrencyUSD string = "USD"

	// CreatePaymentLinkRequestCurrencyEUR captures enum value "EUR"
	CreatePaymentLinkRequestCurrencyEUR string = "EUR"
)
View Source
const (

	// CreatePaymentLinkRequestSuccessActionRedirect captures enum value "redirect"
	CreatePaymentLinkRequestSuccessActionRedirect string = "redirect"

	// CreatePaymentLinkRequestSuccessActionShowMessage captures enum value "showMessage"
	CreatePaymentLinkRequestSuccessActionShowMessage string = "showMessage"
)
View Source
const (

	// CreatePaymentRequestCurrencyUSD captures enum value "USD"
	CreatePaymentRequestCurrencyUSD string = "USD"

	// CreatePaymentRequestCurrencyEUR captures enum value "EUR"
	CreatePaymentRequestCurrencyEUR string = "EUR"
)
View Source
const (

	// CustomerPaymentCurrencyUSD captures enum value "USD"
	CustomerPaymentCurrencyUSD string = "USD"

	// CustomerPaymentCurrencyEUR captures enum value "EUR"
	CustomerPaymentCurrencyEUR string = "EUR"
)
View Source
const (

	// CustomerPaymentStatusPending captures enum value "pending"
	CustomerPaymentStatusPending string = "pending"

	// CustomerPaymentStatusInProgress captures enum value "inProgress"
	CustomerPaymentStatusInProgress string = "inProgress"

	// CustomerPaymentStatusSuccess captures enum value "success"
	CustomerPaymentStatusSuccess string = "success"

	// CustomerPaymentStatusFailed captures enum value "failed"
	CustomerPaymentStatusFailed string = "failed"
)
View Source
const (

	// ExchangeRateFromTypeFiat captures enum value "fiat"
	ExchangeRateFromTypeFiat string = "fiat"

	// ExchangeRateFromTypeCrypto captures enum value "crypto"
	ExchangeRateFromTypeCrypto string = "crypto"
)
View Source
const (

	// ExchangeRateToTypeFiat captures enum value "fiat"
	ExchangeRateToTypeFiat string = "fiat"

	// ExchangeRateToTypeCrypto captures enum value "crypto"
	ExchangeRateToTypeCrypto string = "crypto"
)
View Source
const (

	// MerchantAddressBlockchainETH captures enum value "ETH"
	MerchantAddressBlockchainETH string = "ETH"

	// MerchantAddressBlockchainTRON captures enum value "TRON"
	MerchantAddressBlockchainTRON string = "TRON"

	// MerchantAddressBlockchainMATIC captures enum value "MATIC"
	MerchantAddressBlockchainMATIC string = "MATIC"

	// MerchantAddressBlockchainBSC captures enum value "BSC"
	MerchantAddressBlockchainBSC string = "BSC"
)
View Source
const (

	// PaymentStatusPending captures enum value "pending"
	PaymentStatusPending string = "pending"

	// PaymentStatusInProgress captures enum value "inProgress"
	PaymentStatusInProgress string = "inProgress"

	// PaymentStatusSuccess captures enum value "success"
	PaymentStatusSuccess string = "success"

	// PaymentStatusFailed captures enum value "failed"
	PaymentStatusFailed string = "failed"
)
View Source
const (

	// PaymentTypePayment captures enum value "payment"
	PaymentTypePayment string = "payment"

	// PaymentTypeWithdrawal captures enum value "withdrawal"
	PaymentTypeWithdrawal string = "withdrawal"
)
View Source
const (

	// PaymentLinkCurrencyUSD captures enum value "USD"
	PaymentLinkCurrencyUSD string = "USD"

	// PaymentLinkCurrencyEUR captures enum value "EUR"
	PaymentLinkCurrencyEUR string = "EUR"
)
View Source
const (

	// PaymentLinkSuccessActionRedirect captures enum value "redirect"
	PaymentLinkSuccessActionRedirect string = "redirect"

	// PaymentLinkSuccessActionShowMessage captures enum value "showMessage"
	PaymentLinkSuccessActionShowMessage string = "showMessage"
)
View Source
const (

	// ProviderNameGoogle captures enum value "google"
	ProviderNameGoogle string = "google"

	// ProviderNameEmail captures enum value "email"
	ProviderNameEmail string = "email"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIToken

type APIToken struct {

	// CreatedAt
	// Required: true
	// Format: datetime
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// token UUID
	// Example: 1eb5fbb5-ece0-475c-9ddd-23c524a33e06
	// Required: true
	ID string `json:"id"`

	// Name
	// Example: My Token
	// Required: true
	Name string `json:"name"`

	// Token
	// Example: abc123
	// Required: true
	Token *string `json:"token"`
}

APIToken api token

swagger:model apiToken

func (*APIToken) ContextValidate

func (m *APIToken) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this api token based on context it is used

func (*APIToken) MarshalBinary

func (m *APIToken) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIToken) UnmarshalBinary

func (m *APIToken) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIToken) Validate

func (m *APIToken) Validate(formats strfmt.Registry) error

Validate validates this api token

type AdditionalPaymentInfo

type AdditionalPaymentInfo struct {

	// Customer's Email
	// Example: user@gmail.com
	// Required: true
	CustomerEmail *string `json:"customerEmail"`

	// Customer's selected crypto currency
	// Example: USDT (Ethereum)
	// Required: true
	SelectedCurrency *string `json:"selectedCurrency"`

	// Service fee in customer's selected crypto currency
	// Example: 1.20
	// Required: true
	ServiceFee *string `json:"serviceFee"`
}

AdditionalPaymentInfo Additional payment info

swagger:model additionalPaymentInfo

func (*AdditionalPaymentInfo) ContextValidate

func (m *AdditionalPaymentInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this additional payment info based on context it is used

func (*AdditionalPaymentInfo) MarshalBinary

func (m *AdditionalPaymentInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AdditionalPaymentInfo) UnmarshalBinary

func (m *AdditionalPaymentInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AdditionalPaymentInfo) Validate

func (m *AdditionalPaymentInfo) Validate(formats strfmt.Registry) error

Validate validates this additional payment info

type AdditionalWithdrawalInfo

type AdditionalWithdrawalInfo struct {

	// Address UUID
	// Example: dac3a5f5-abc1-4bb2-97e7-db51360e218c
	// Required: true
	AddressID string `json:"addressId"`

	// Balance UUID
	// Example: 918c5aa6-bdad-4cc8-8aa0-de059c618a05
	// Required: true
	BalanceID string `json:"balanceId"`

	// Link to blockchain explorer
	// Example: https://etherscan.io/tx/0xdf147859a6e66961326ac91f4bd5e9980432040031e5eb7108603d51b81ae005
	// Required: true
	ExplorerLink *string `json:"explorerLink"`

	// Withdrawal Fee
	// Example: 1.20
	// Required: true
	ServiceFee string `json:"serviceFee"`

	// Transaction Hash
	// Example: 0xdf147859a6e66961326ac91f4bd5e9980432040031e5eb7108603d51b81ae005
	// Required: true
	TransactionHash *string `json:"transactionHash"`
}

AdditionalWithdrawalInfo Additional withdrawal info

swagger:model additionalWithdrawalInfo

func (*AdditionalWithdrawalInfo) ContextValidate

func (m *AdditionalWithdrawalInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this additional withdrawal info based on context it is used

func (*AdditionalWithdrawalInfo) MarshalBinary

func (m *AdditionalWithdrawalInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AdditionalWithdrawalInfo) UnmarshalBinary

func (m *AdditionalWithdrawalInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AdditionalWithdrawalInfo) Validate

func (m *AdditionalWithdrawalInfo) Validate(formats strfmt.Registry) error

Validate validates this additional withdrawal info

type AvailableProvidersResponse

type AvailableProvidersResponse struct {

	// providers
	Providers []*Provider `json:"providers"`
}

AvailableProvidersResponse available providers response

swagger:model availableProvidersResponse

func (*AvailableProvidersResponse) ContextValidate

func (m *AvailableProvidersResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this available providers response based on the context it is used

func (*AvailableProvidersResponse) MarshalBinary

func (m *AvailableProvidersResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AvailableProvidersResponse) UnmarshalBinary

func (m *AvailableProvidersResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AvailableProvidersResponse) Validate

func (m *AvailableProvidersResponse) Validate(formats strfmt.Registry) error

Validate validates this available providers response

type Conversion

type Conversion struct {

	// Converted amount
	// Example: 0.066
	ConvertedAmount string `json:"convertedAmount,omitempty"`

	// Conversion rate
	// Example: 1820.5
	ExchangeRate float64 `json:"exchangeRate,omitempty"`

	// Selected ticker
	// Example: USD
	From string `json:"from,omitempty"`

	// Selected ticker type
	// Enum: [fiat crypto]
	FromType string `json:"fromType,omitempty"`

	// Selected amount
	// Example: 123
	SelectedAmount string `json:"selectedAmount,omitempty"`

	// Desired ticket
	// Example: ETH
	To string `json:"to,omitempty"`

	// Desired ticker type
	// Enum: [fiat crypto]
	ToType string `json:"toType,omitempty"`
}

Conversion Exchange rate

swagger:model conversion

func (*Conversion) ContextValidate

func (m *Conversion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this conversion based on context it is used

func (*Conversion) MarshalBinary

func (m *Conversion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Conversion) UnmarshalBinary

func (m *Conversion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Conversion) Validate

func (m *Conversion) Validate(formats strfmt.Registry) error

Validate validates this conversion

type CreateMerchantAddressRequest

type CreateMerchantAddressRequest struct {

	// address
	// Example: 0xdc22Bb64132fB03467910fc49595F08fCf5C241b
	// Required: true
	// Max Length: 128
	Address string `json:"address"`

	// blockchain
	// Example: ETH
	// Required: true
	// Enum: [BTC ETH TRON MATIC BSC]
	Blockchain string `json:"blockchain"`

	// Name
	// Example: My Wallet
	// Required: true
	// Max Length: 128
	// Min Length: 2
	Name string `json:"name"`
}

CreateMerchantAddressRequest create merchant address request

swagger:model createMerchantAddressRequest

func (*CreateMerchantAddressRequest) ContextValidate

func (m *CreateMerchantAddressRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create merchant address request based on context it is used

func (*CreateMerchantAddressRequest) MarshalBinary

func (m *CreateMerchantAddressRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateMerchantAddressRequest) UnmarshalBinary

func (m *CreateMerchantAddressRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateMerchantAddressRequest) Validate

func (m *CreateMerchantAddressRequest) Validate(formats strfmt.Registry) error

Validate validates this create merchant address request

type CreateMerchantRequest

type CreateMerchantRequest struct {

	// Name
	// Example: My Store
	// Required: true
	// Max Length: 128
	// Min Length: 2
	Name string `json:"name"`

	// Website URL
	// Example: https://my-store.com
	// Required: true
	// Max Length: 255
	// Min Length: 2
	Website string `json:"website"`
}

CreateMerchantRequest create merchant request

swagger:model createMerchantRequest

func (*CreateMerchantRequest) ContextValidate

func (m *CreateMerchantRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create merchant request based on context it is used

func (*CreateMerchantRequest) MarshalBinary

func (m *CreateMerchantRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateMerchantRequest) UnmarshalBinary

func (m *CreateMerchantRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateMerchantRequest) Validate

func (m *CreateMerchantRequest) Validate(formats strfmt.Registry) error

Validate validates this create merchant request

type CreateMerchantTokenRequest

type CreateMerchantTokenRequest struct {

	// Name
	// Example: My Token
	// Required: true
	// Max Length: 128
	// Min Length: 2
	Name string `json:"name"`
}

CreateMerchantTokenRequest create merchant token request

swagger:model createMerchantTokenRequest

func (*CreateMerchantTokenRequest) ContextValidate

func (m *CreateMerchantTokenRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create merchant token request based on context it is used

func (*CreateMerchantTokenRequest) MarshalBinary

func (m *CreateMerchantTokenRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateMerchantTokenRequest) UnmarshalBinary

func (m *CreateMerchantTokenRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateMerchantTokenRequest) Validate

func (m *CreateMerchantTokenRequest) Validate(formats strfmt.Registry) error

Validate validates this create merchant token request

type CreatePaymentLinkRequest

type CreatePaymentLinkRequest struct {

	// Fiat ticker for payment template.
	// Required: true
	// Enum: [USD EUR]
	Currency string `json:"currency"`

	// Optional payment description visible for a customer in payment screen
	// Example: White T-shirt size M
	Description *string `json:"description"`

	// Name
	// Example: My Link
	// Required: true
	// Max Length: 64
	// Min Length: 4
	Name string `json:"name"`

	// Price in fiat currency
	// Example: 29.9
	// Required: true
	// Minimum: 0.01
	Price float64 `json:"price"`

	// Redirect URL after successful customer's payment
	// Example: https://my-site.com/success?order=abc123
	RedirectURL *string `json:"redirectUrl"`

	// Action type after OxygenPay receives incoming payment from a customer.
	// - `redirectUrl` displays "Back to site" button with provided .redirectUrl.
	// - `showMessage` displays "Show message" with content provided in .successMessage.
	//
	// Required: true
	// Enum: [redirect showMessage]
	SuccessAction string `json:"successAction"`

	// message after successful customer's payment
	// Example: Thank you!
	// Max Length: 250
	// Min Length: 4
	SuccessMessage *string `json:"successMessage"`
}

CreatePaymentLinkRequest Payment Link object

swagger:model createPaymentLinkRequest

func (*CreatePaymentLinkRequest) ContextValidate

func (m *CreatePaymentLinkRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create payment link request based on context it is used

func (*CreatePaymentLinkRequest) MarshalBinary

func (m *CreatePaymentLinkRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePaymentLinkRequest) UnmarshalBinary

func (m *CreatePaymentLinkRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePaymentLinkRequest) Validate

func (m *CreatePaymentLinkRequest) Validate(formats strfmt.Registry) error

Validate validates this create payment link request

type CreatePaymentRequest

type CreatePaymentRequest struct {

	// Fiat currency
	// Required: true
	// Enum: [USD EUR]
	Currency string `json:"currency"`

	// Optional payment description
	// Example: White T-shirt size M
	// Max Length: 128
	Description *string `json:"description,omitempty"`

	// To provide request idempotency order UUID should be generated on your side.
	// Should be unique for each payment
	//
	// Example: 123e4567-e89b-12d3-a456-426655440000
	// Required: true
	// Format: uuid
	ID strfmt.UUID `json:"id"`

	// Indicates that this is a test payment.
	// Test payments are processed in testnets (e.g. Ethereum Goerli)
	//
	IsTest bool `json:"isTest,omitempty"`

	// Optional order ID from your internal system
	// Example: customer#123#order#456
	OrderID *string `json:"orderId"`

	// Price in fiat currency
	// Example: 29.9
	// Required: true
	// Minimum: 0.01
	Price float64 `json:"price"`

	// A "back to store" button URL. Visible to a customer after the system receives unconfirmed transaction.
	// If not provided, defaults to merchant's website url.
	//
	// Example: https://my-store.com/success
	RedirectURL *string `json:"redirectUrl"`
}

CreatePaymentRequest create payment request

swagger:model createPaymentRequest

func (*CreatePaymentRequest) ContextValidate

func (m *CreatePaymentRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create payment request based on context it is used

func (*CreatePaymentRequest) MarshalBinary

func (m *CreatePaymentRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePaymentRequest) UnmarshalBinary

func (m *CreatePaymentRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePaymentRequest) Validate

func (m *CreatePaymentRequest) Validate(formats strfmt.Registry) error

Validate validates this create payment request

type CreateWithdrawalRequest

type CreateWithdrawalRequest struct {

	// Address UUID
	// Example: ABF75267-910D-4FC8-9E21-3A3B48509DC2
	// Required: true
	AddressID string `json:"addressId"`

	// Withdrawal amount as string
	// Example: 0.0367
	// Required: true
	Amount string `json:"amount"`

	// Balance UUID
	// Example: 2402782A-711D-4ECD-8B73-FE561EBF5FEC
	// Required: true
	BalanceID string `json:"balanceId"`
}

CreateWithdrawalRequest create withdrawal request

swagger:model createWithdrawalRequest

func (*CreateWithdrawalRequest) ContextValidate

func (m *CreateWithdrawalRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create withdrawal request based on context it is used

func (*CreateWithdrawalRequest) MarshalBinary

func (m *CreateWithdrawalRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateWithdrawalRequest) UnmarshalBinary

func (m *CreateWithdrawalRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateWithdrawalRequest) Validate

func (m *CreateWithdrawalRequest) Validate(formats strfmt.Registry) error

Validate validates this create withdrawal request

type CurrencyExchangeRate

type CurrencyExchangeRate struct {

	// crypto amount
	// Example: 0.1231232453453
	// Required: true
	CryptoAmount string `json:"cryptoAmount"`

	// crypto currency
	// Example: DAI
	// Required: true
	CryptoCurrency string `json:"cryptoCurrency"`

	// display name
	// Example: USD → ETH_DAI
	// Required: true
	DisplayName string `json:"displayName"`

	// exchange rate
	// Example: 51.1
	// Required: true
	ExchangeRate float64 `json:"exchangeRate"`

	// fiat amount
	// Example: 49.9
	// Required: true
	// Minimum: 0.01
	FiatAmount float64 `json:"fiatAmount"`

	// fiat currency
	// Example: USD
	// Required: true
	FiatCurrency string `json:"fiatCurrency"`

	// network
	// Example: ETH
	// Required: true
	Network string `json:"network"`
}

CurrencyExchangeRate currency exchange rate

swagger:model currencyExchangeRate

func (*CurrencyExchangeRate) ContextValidate

func (m *CurrencyExchangeRate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this currency exchange rate based on context it is used

func (*CurrencyExchangeRate) MarshalBinary

func (m *CurrencyExchangeRate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CurrencyExchangeRate) UnmarshalBinary

func (m *CurrencyExchangeRate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CurrencyExchangeRate) Validate

func (m *CurrencyExchangeRate) Validate(formats strfmt.Registry) error

Validate validates this currency exchange rate

type Customer

type Customer struct {

	// CreatedAt
	// Format: datetime
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// details
	Details *CustomerDetails `json:"details,omitempty"`

	// Email
	// Example: customer@example.com
	Email string `json:"email,omitempty"`

	// Customer UUID
	// Example: A9B04890-7FB9-42C6-A63B-9163968E4580
	ID string `json:"id,omitempty"`
}

Customer customer

swagger:model customer

func (*Customer) ContextValidate

func (m *Customer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this customer based on the context it is used

func (*Customer) MarshalBinary

func (m *Customer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Customer) UnmarshalBinary

func (m *Customer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Customer) Validate

func (m *Customer) Validate(formats strfmt.Registry) error

Validate validates this customer

type CustomerDetails

type CustomerDetails struct {

	// payments
	Payments []*CustomerPayment `json:"payments"`

	// Number of successful payments
	SuccessfulPayments int64 `json:"successfulPayments"`
}

CustomerDetails Customer Details. Available only in `getCustomerDetails` endpoint

swagger:model CustomerDetails

func (*CustomerDetails) ContextValidate

func (m *CustomerDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this customer details based on the context it is used

func (*CustomerDetails) MarshalBinary

func (m *CustomerDetails) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomerDetails) UnmarshalBinary

func (m *CustomerDetails) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomerDetails) Validate

func (m *CustomerDetails) Validate(formats strfmt.Registry) error

Validate validates this customer details

type CustomerPayment

type CustomerPayment struct {

	// Created timestamp
	// Example: 2022-11-23 19:49:21.386201 +0000 UTC
	// Format: datetime
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// Fiat currency
	// Enum: [USD EUR]
	Currency string `json:"currency,omitempty"`

	// Order UUID
	// Example: 123e4567-e89b-12d3-a456-426655440000
	ID string `json:"id,omitempty"`

	// Payment price
	// Example: 29.9
	Price string `json:"price,omitempty"`

	// Payment status
	// Enum: [pending inProgress success failed]
	Status string `json:"status,omitempty"`
}

CustomerPayment Payment object

swagger:model customerPayment

func (*CustomerPayment) ContextValidate

func (m *CustomerPayment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this customer payment based on context it is used

func (*CustomerPayment) MarshalBinary

func (m *CustomerPayment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomerPayment) UnmarshalBinary

func (m *CustomerPayment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomerPayment) Validate

func (m *CustomerPayment) Validate(formats strfmt.Registry) error

Validate validates this customer payment

type CustomersPagination

type CustomersPagination struct {

	// cursor
	// Example: 8c857501-e67d-4a0b-98d9-46e461b42c09
	// Required: true
	Cursor string `json:"cursor"`

	// limit
	// Example: 50
	// Required: true
	Limit int64 `json:"limit"`

	// results
	// Required: true
	Results []*Customer `json:"results"`
}

CustomersPagination customers pagination

swagger:model customersPagination

func (*CustomersPagination) ContextValidate

func (m *CustomersPagination) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this customers pagination based on the context it is used

func (*CustomersPagination) MarshalBinary

func (m *CustomersPagination) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomersPagination) UnmarshalBinary

func (m *CustomersPagination) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomersPagination) Validate

func (m *CustomersPagination) Validate(formats strfmt.Registry) error

Validate validates this customers pagination

type ErrorResponse

type ErrorResponse struct {

	// Errors list
	Errors []*ErrorResponseItem `json:"errors,omitempty"`

	// Error Message
	// Example: Error message
	Message string `json:"message,omitempty"`

	// Error status
	// Example: something_wrong
	Status string `json:"status,omitempty"`
}

ErrorResponse error response

swagger:model errorResponse

func (*ErrorResponse) ContextValidate

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error response based on the context it is used

func (*ErrorResponse) MarshalBinary

func (m *ErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

func (m *ErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type ErrorResponseItem

type ErrorResponseItem struct {

	// Error field
	// Example: field
	Field string `json:"field,omitempty"`

	// Error Message
	// Example: Error message
	Message string `json:"message,omitempty"`
}

ErrorResponseItem error response item

swagger:model errorResponseItem

func (*ErrorResponseItem) ContextValidate

func (m *ErrorResponseItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error response item based on context it is used

func (*ErrorResponseItem) MarshalBinary

func (m *ErrorResponseItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponseItem) UnmarshalBinary

func (m *ErrorResponseItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponseItem) Validate

func (m *ErrorResponseItem) Validate(formats strfmt.Registry) error

Validate validates this error response item

type ExchangeRate

type ExchangeRate struct {

	// Converted amount
	// Example: 0.066
	ConvertedAmount string `json:"convertedAmount,omitempty"`

	// Conversion rate
	ExchangeRate float64 `json:"exchangeRate,omitempty"`

	// Selected ticker
	// Example: USD
	From string `json:"from,omitempty"`

	// Selected ticker type
	// Enum: [fiat crypto]
	FromType string `json:"fromType,omitempty"`

	// Selected amount
	// Example: 123
	SelectedAmount string `json:"selectedAmount,omitempty"`

	// Desired ticket
	// Example: ETH
	To string `json:"to,omitempty"`

	// Desired ticker type
	// Enum: [fiat crypto]
	ToType string `json:"toType,omitempty"`
}

ExchangeRate Exchange rate

swagger:model exchangeRate

func (*ExchangeRate) ContextValidate

func (m *ExchangeRate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this exchange rate based on context it is used

func (*ExchangeRate) MarshalBinary

func (m *ExchangeRate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExchangeRate) UnmarshalBinary

func (m *ExchangeRate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExchangeRate) Validate

func (m *ExchangeRate) Validate(formats strfmt.Registry) error

Validate validates this exchange rate

type FormRequest

type FormRequest struct {

	// Message
	// Example: Hey! Do you support USDC?
	// Required: true
	// Min Length: 1
	Message *string `json:"message"`

	// Form Topic
	// Example: Support
	// Required: true
	// Min Length: 4
	Topic *string `json:"topic"`
}

FormRequest form request

swagger:model formRequest

func (*FormRequest) ContextValidate

func (m *FormRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this form request based on context it is used

func (*FormRequest) MarshalBinary

func (m *FormRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FormRequest) UnmarshalBinary

func (m *FormRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FormRequest) Validate

func (m *FormRequest) Validate(formats strfmt.Registry) error

Validate validates this form request

type LoginRequest

type LoginRequest struct {

	// Email
	// Required: true
	// Format: email
	Email strfmt.Email `json:"email"`

	// Password
	// Required: true
	// Min Length: 8
	Password string `json:"password"`
}

LoginRequest login request

swagger:model loginRequest

func (*LoginRequest) ContextValidate

func (m *LoginRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this login request based on context it is used

func (*LoginRequest) MarshalBinary

func (m *LoginRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LoginRequest) UnmarshalBinary

func (m *LoginRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LoginRequest) Validate

func (m *LoginRequest) Validate(formats strfmt.Registry) error

Validate validates this login request

type Merchant

type Merchant struct {

	// merchant UUID
	// Example: 1eb5fbb5-ece0-475c-9ddd-23c524a33e06
	ID string `json:"id,omitempty"`

	// Name
	// Example: My Store
	Name string `json:"name,omitempty"`

	// supported payment methods
	SupportedPaymentMethods []*SupportedPaymentMethod `json:"supportedPaymentMethods"`

	// webhook settings
	WebhookSettings *WebhookSettings `json:"webhookSettings"`

	// Website URL
	// Example: https://my-store.com
	Website string `json:"website,omitempty"`
}

Merchant merchant

swagger:model merchant

func (*Merchant) ContextValidate

func (m *Merchant) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this merchant based on the context it is used

func (*Merchant) MarshalBinary

func (m *Merchant) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Merchant) UnmarshalBinary

func (m *Merchant) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Merchant) Validate

func (m *Merchant) Validate(formats strfmt.Registry) error

Validate validates this merchant

type MerchantAddress

type MerchantAddress struct {

	// address
	// Example: 0xdc22Bb64132fB03467910fc49595F08fCf5C241b
	// Max Length: 128
	Address string `json:"address"`

	// blockchain
	// Example: ETH
	// Enum: [ETH TRON MATIC BSC]
	Blockchain string `json:"blockchain"`

	// Blockchain name
	// Example: Ethereum
	BlockchainName string `json:"blockchainName,omitempty"`

	// Address UUID
	// Example: 123e4567-e89b-12d3-a456-426655440000
	ID string `json:"id"`

	// Name
	// Example: My Wallet
	// Max Length: 128
	// Min Length: 2
	Name string `json:"name"`
}

MerchantAddress merchant address

swagger:model merchantAddress

func (*MerchantAddress) ContextValidate

func (m *MerchantAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this merchant address based on context it is used

func (*MerchantAddress) MarshalBinary

func (m *MerchantAddress) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MerchantAddress) UnmarshalBinary

func (m *MerchantAddress) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MerchantAddress) Validate

func (m *MerchantAddress) Validate(formats strfmt.Registry) error

Validate validates this merchant address

type MerchantAddressList

type MerchantAddressList struct {

	// results
	Results []*MerchantAddress `json:"results"`
}

MerchantAddressList merchant address list

swagger:model merchantAddressList

func (*MerchantAddressList) ContextValidate

func (m *MerchantAddressList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this merchant address list based on the context it is used

func (*MerchantAddressList) MarshalBinary

func (m *MerchantAddressList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MerchantAddressList) UnmarshalBinary

func (m *MerchantAddressList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MerchantAddressList) Validate

func (m *MerchantAddressList) Validate(formats strfmt.Registry) error

Validate validates this merchant address list

type MerchantBalance

type MerchantBalance struct {

	// Assets amount in balance currency
	// Example: 50.40
	Amount string `json:"amount"`

	// Blockchain network
	// Example: ETH
	Blockchain string `json:"blockchain"`

	// Blockchain name
	// Example: Ethereum
	BlockchainName string `json:"blockchainName"`

	// Currency name
	// Example: USDT
	Currency string `json:"currency"`

	// Balance identifier
	// Example: 123e4567-e89b-12d3-a456-426655440000
	ID string `json:"id"`

	// Indicates whether balance is test or not
	IsTest bool `json:"isTest"`

	// Minimal withdrawal amount in USD
	// Example: 50
	MinimalWithdrawalAmountUSD string `json:"minimalWithdrawalAmountUSD"`

	// Balance name
	// Example: USDT (Ethereum)
	Name string `json:"name"`

	// Currency ticker
	// Example: ETH_USDT
	Ticker string `json:"ticker"`

	// Assets amount in USD
	// Example: 50.40
	UsdAmount string `json:"usdAmount"`
}

MerchantBalance merchant balance

swagger:model merchantBalance

func (*MerchantBalance) ContextValidate

func (m *MerchantBalance) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this merchant balance based on context it is used

func (*MerchantBalance) MarshalBinary

func (m *MerchantBalance) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MerchantBalance) UnmarshalBinary

func (m *MerchantBalance) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MerchantBalance) Validate

func (m *MerchantBalance) Validate(formats strfmt.Registry) error

Validate validates this merchant balance

type MerchantBalanceList

type MerchantBalanceList struct {

	// results
	Results []*MerchantBalance `json:"results"`
}

MerchantBalanceList merchant balance list

swagger:model merchantBalanceList

func (*MerchantBalanceList) ContextValidate

func (m *MerchantBalanceList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this merchant balance list based on the context it is used

func (*MerchantBalanceList) MarshalBinary

func (m *MerchantBalanceList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MerchantBalanceList) UnmarshalBinary

func (m *MerchantBalanceList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MerchantBalanceList) Validate

func (m *MerchantBalanceList) Validate(formats strfmt.Registry) error

Validate validates this merchant balance list

type MerchantList

type MerchantList struct {

	// results
	// Required: true
	Results []*MerchantListItem `json:"results"`
}

MerchantList merchant list

swagger:model merchantList

func (*MerchantList) ContextValidate

func (m *MerchantList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this merchant list based on the context it is used

func (*MerchantList) MarshalBinary

func (m *MerchantList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MerchantList) UnmarshalBinary

func (m *MerchantList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MerchantList) Validate

func (m *MerchantList) Validate(formats strfmt.Registry) error

Validate validates this merchant list

type MerchantListItem

type MerchantListItem struct {

	// merchant UUID
	// Example: 1eb5fbb5-ece0-475c-9ddd-23c524a33e06
	ID string `json:"id,omitempty"`

	// Name
	// Example: My Store
	Name string `json:"name,omitempty"`

	// Website URL
	// Example: https://my-store.com
	Website string `json:"website,omitempty"`
}

MerchantListItem merchant list item

swagger:model merchantListItem

func (*MerchantListItem) ContextValidate

func (m *MerchantListItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this merchant list item based on context it is used

func (*MerchantListItem) MarshalBinary

func (m *MerchantListItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MerchantListItem) UnmarshalBinary

func (m *MerchantListItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MerchantListItem) Validate

func (m *MerchantListItem) Validate(formats strfmt.Registry) error

Validate validates this merchant list item

type Payment

type Payment struct {

	// additional info
	AdditionalInfo *PaymentAdditionalInfo `json:"additionalInfo,omitempty"`

	// Created timestamp
	// Example: 2022-11-23 19:49:21.386201 +0000 UTC
	// Required: true
	// Format: datetime
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// Fiat ticker for payments and crypto for withdrawals
	//
	// Example: USD
	// Required: true
	Currency string `json:"currency"`

	// Optional payment description that customer will see in payment screen
	// Example: White T-shirt size M
	Description *string `json:"description"`

	// Order UUID generated on your side
	// Example: 123e4567-e89b-12d3-a456-426655440000
	// Required: true
	ID string `json:"id"`

	// Indicates that this is a test payment.
	// Test payments are processed in testnets (e.g. Ethereum Goerli)
	//
	// Required: true
	IsTest bool `json:"isTest"`

	// Optional order ID from your system.
	// Example: order#123
	OrderID *string `json:"orderId"`

	// URL for client payment screen
	// Example: https://pay.o2pay.co/payment/00000000-0000-0000-0000-000000000000
	PaymentURL string `json:"paymentUrl"`

	// Payment price or withdrawal amount
	// Example: 29.9
	// Required: true
	Price string `json:"price"`

	// Redirect URL after success client's payment
	// Example: https://my-site.com/success?order=abc123
	RedirectURL string `json:"redirectUrl"`

	// Payment status
	// Required: true
	// Enum: [pending inProgress success failed]
	Status string `json:"status"`

	// Payment type
	// Required: true
	// Enum: [payment withdrawal]
	Type string `json:"type"`
}

Payment Payment object

swagger:model payment

func (*Payment) ContextValidate

func (m *Payment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this payment based on the context it is used

func (*Payment) MarshalBinary

func (m *Payment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Payment) UnmarshalBinary

func (m *Payment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Payment) Validate

func (m *Payment) Validate(formats strfmt.Registry) error

Validate validates this payment

type PaymentAdditionalInfo

type PaymentAdditionalInfo struct {

	// payment
	Payment *AdditionalPaymentInfo `json:"payment,omitempty"`

	// withdrawal
	Withdrawal *AdditionalWithdrawalInfo `json:"withdrawal,omitempty"`
}

PaymentAdditionalInfo Represents additional context for payment or withdrawal

swagger:model PaymentAdditionalInfo

func (*PaymentAdditionalInfo) ContextValidate

func (m *PaymentAdditionalInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this payment additional info based on the context it is used

func (*PaymentAdditionalInfo) MarshalBinary

func (m *PaymentAdditionalInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaymentAdditionalInfo) UnmarshalBinary

func (m *PaymentAdditionalInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaymentAdditionalInfo) Validate

func (m *PaymentAdditionalInfo) Validate(formats strfmt.Registry) error

Validate validates this payment additional info

type PaymentLink struct {

	// Created At timestamp
	// Example: 2022-11-23 19:49:21.386201 +0000 UTC
	// Required: true
	// Format: datetime
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// Fiat ticker for payment template.
	// Required: true
	// Enum: [USD EUR]
	Currency string `json:"currency"`

	// Optional payment description visible for a customer in payment screen
	// Example: White T-shirt size M
	Description *string `json:"description"`

	// Link's UUID
	// Example: 123e4567-e89b-12d3-a456-426655440000
	// Required: true
	ID string `json:"id"`

	// Name
	// Example: My Link
	// Required: true
	Name string `json:"name"`

	// Payment price
	// Example: 29.9
	// Required: true
	Price string `json:"price"`

	// Redirect URL after successful customer's payment
	// Example: https://my-site.com/success?order=abc123
	RedirectURL *string `json:"redirectUrl"`

	// Action type after OxygenPay receives incoming payment from a customer.
	// - `redirectUrl` displays "Back to site" button with provided .redirectUrl.
	// - `showMessage` displays "Show message" with content provided in .successMessage.
	//
	// Required: true
	// Enum: [redirect showMessage]
	SuccessAction string `json:"successAction"`

	// message after successful customer's payment
	SuccessMessage *string `json:"successMessage"`

	// Link's URL
	// Example: https://pay.o2pay.co/link/ufaiCu6J
	// Required: true
	URL string `json:"url"`
}

PaymentLink Payment Link object

swagger:model paymentLink

func (*PaymentLink) ContextValidate

func (m *PaymentLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this payment link based on context it is used

func (*PaymentLink) MarshalBinary

func (m *PaymentLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaymentLink) UnmarshalBinary

func (m *PaymentLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaymentLink) Validate

func (m *PaymentLink) Validate(formats strfmt.Registry) error

Validate validates this payment link

type PaymentLinksPagination

type PaymentLinksPagination struct {

	// results
	// Required: true
	Results []*PaymentLink `json:"results"`
}

PaymentLinksPagination payment links pagination

swagger:model paymentLinksPagination

func (*PaymentLinksPagination) ContextValidate

func (m *PaymentLinksPagination) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this payment links pagination based on the context it is used

func (*PaymentLinksPagination) MarshalBinary

func (m *PaymentLinksPagination) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaymentLinksPagination) UnmarshalBinary

func (m *PaymentLinksPagination) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaymentLinksPagination) Validate

func (m *PaymentLinksPagination) Validate(formats strfmt.Registry) error

Validate validates this payment links pagination

type PaymentsPagination

type PaymentsPagination struct {

	// cursor
	// Example: 8c857501-e67d-4a0b-98d9-46e461b42c09
	// Required: true
	Cursor string `json:"cursor"`

	// limit
	// Example: 50
	// Required: true
	Limit int64 `json:"limit"`

	// results
	// Required: true
	Results []*Payment `json:"results"`
}

PaymentsPagination payments pagination

swagger:model paymentsPagination

func (*PaymentsPagination) ContextValidate

func (m *PaymentsPagination) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this payments pagination based on the context it is used

func (*PaymentsPagination) MarshalBinary

func (m *PaymentsPagination) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaymentsPagination) UnmarshalBinary

func (m *PaymentsPagination) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaymentsPagination) Validate

func (m *PaymentsPagination) Validate(formats strfmt.Registry) error

Validate validates this payments pagination

type Provider

type Provider struct {

	// name
	// Enum: [google email]
	Name string `json:"name,omitempty"`
}

Provider provider

swagger:model provider

func (*Provider) ContextValidate

func (m *Provider) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this provider based on context it is used

func (*Provider) MarshalBinary

func (m *Provider) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Provider) UnmarshalBinary

func (m *Provider) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Provider) Validate

func (m *Provider) Validate(formats strfmt.Registry) error

Validate validates this provider

type SupportedPaymentMethod

type SupportedPaymentMethod struct {

	// Blockchain ticker
	// Example: ETH
	Blockchain string `json:"blockchain"`

	// blockchain name
	// Example: Ethereum
	BlockchainName string `json:"blockchainName"`

	// Display Name
	// Example: USDT (Ethereum)
	DisplayName string `json:"displayName"`

	// enabled
	// Example: true
	Enabled bool `json:"enabled"`

	// Coin / Token Name
	// Example: USDT
	Name string `json:"name"`

	// ticker
	// Example: ETH_USDT
	Ticker string `json:"ticker"`
}

SupportedPaymentMethod PaymentType

swagger:model supportedPaymentMethod

func (*SupportedPaymentMethod) ContextValidate

func (m *SupportedPaymentMethod) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this supported payment method based on context it is used

func (*SupportedPaymentMethod) MarshalBinary

func (m *SupportedPaymentMethod) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SupportedPaymentMethod) UnmarshalBinary

func (m *SupportedPaymentMethod) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SupportedPaymentMethod) Validate

func (m *SupportedPaymentMethod) Validate(formats strfmt.Registry) error

Validate validates this supported payment method

type TokenList

type TokenList struct {

	// results
	// Required: true
	Results []*APIToken `json:"results"`
}

TokenList token list

swagger:model tokenList

func (*TokenList) ContextValidate

func (m *TokenList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this token list based on the context it is used

func (*TokenList) MarshalBinary

func (m *TokenList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TokenList) UnmarshalBinary

func (m *TokenList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TokenList) Validate

func (m *TokenList) Validate(formats strfmt.Registry) error

Validate validates this token list

type UpdateMerchantAddressRequest

type UpdateMerchantAddressRequest struct {

	// Name
	// Example: My Wallet
	// Required: true
	// Max Length: 128
	// Min Length: 2
	Name string `json:"name"`
}

UpdateMerchantAddressRequest update merchant address request

swagger:model updateMerchantAddressRequest

func (*UpdateMerchantAddressRequest) ContextValidate

func (m *UpdateMerchantAddressRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update merchant address request based on context it is used

func (*UpdateMerchantAddressRequest) MarshalBinary

func (m *UpdateMerchantAddressRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateMerchantAddressRequest) UnmarshalBinary

func (m *UpdateMerchantAddressRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateMerchantAddressRequest) Validate

func (m *UpdateMerchantAddressRequest) Validate(formats strfmt.Registry) error

Validate validates this update merchant address request

type UpdateMerchantRequest

type UpdateMerchantRequest struct {

	// Name
	// Example: My Store
	// Required: true
	// Max Length: 128
	// Min Length: 2
	Name string `json:"name"`

	// Website URL
	// Example: https://my-store.com
	// Required: true
	// Max Length: 255
	// Min Length: 2
	Website string `json:"website"`
}

UpdateMerchantRequest update merchant request

swagger:model updateMerchantRequest

func (*UpdateMerchantRequest) ContextValidate

func (m *UpdateMerchantRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update merchant request based on context it is used

func (*UpdateMerchantRequest) MarshalBinary

func (m *UpdateMerchantRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateMerchantRequest) UnmarshalBinary

func (m *UpdateMerchantRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateMerchantRequest) Validate

func (m *UpdateMerchantRequest) Validate(formats strfmt.Registry) error

Validate validates this update merchant request

type UpdateSupportedPaymentMethodsRequest

type UpdateSupportedPaymentMethodsRequest struct {

	// supported payment methods
	// Required: true
	// Min Items: 1
	SupportedPaymentMethods []string `json:"supportedPaymentMethods"`
}

UpdateSupportedPaymentMethodsRequest update supported payment methods request

swagger:model updateSupportedPaymentMethodsRequest

func (*UpdateSupportedPaymentMethodsRequest) ContextValidate

func (m *UpdateSupportedPaymentMethodsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update supported payment methods request based on context it is used

func (*UpdateSupportedPaymentMethodsRequest) MarshalBinary

func (m *UpdateSupportedPaymentMethodsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateSupportedPaymentMethodsRequest) UnmarshalBinary

func (m *UpdateSupportedPaymentMethodsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateSupportedPaymentMethodsRequest) Validate

Validate validates this update supported payment methods request

type User

type User struct {

	// Email
	// Example: user@example.com
	Email string `json:"email,omitempty"`

	// Name
	// Example: John Doe
	Name string `json:"name,omitempty"`

	// user avatar
	// Example: https://site.com/image.jpeg
	ProfileImageURL *string `json:"profileImageUrl,omitempty"`

	// user UUID
	// Example: 1eb5fbb5-ece0-475c-9ddd-23c524a33e06
	UUID string `json:"uuid,omitempty"`
}

User user

swagger:model user

func (*User) ContextValidate

func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user based on context it is used

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

type WebhookSettings

type WebhookSettings struct {

	// HMAC secret for checking webhook signature
	// Example: xa9iZoo6
	// Max Length: 128
	Secret string `json:"secret"`

	// Webhook URL
	// Example: https://my-site.com/webhook/oxygen-pay
	// Required: true
	URL string `json:"url"`
}

WebhookSettings webhook settings

swagger:model webhookSettings

func (*WebhookSettings) ContextValidate

func (m *WebhookSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this webhook settings based on context it is used

func (*WebhookSettings) MarshalBinary

func (m *WebhookSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WebhookSettings) UnmarshalBinary

func (m *WebhookSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WebhookSettings) Validate

func (m *WebhookSettings) Validate(formats strfmt.Registry) error

Validate validates this webhook settings

type Withdrawal

type Withdrawal struct {

	// Payment UUID
	// Example: A9B04890-7FB9-42C6-A63B-9163968E4580
	PaymentID string `json:"paymentId,omitempty"`
}

Withdrawal withdrawal

swagger:model withdrawal

func (*Withdrawal) ContextValidate

func (m *Withdrawal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this withdrawal based on context it is used

func (*Withdrawal) MarshalBinary

func (m *Withdrawal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Withdrawal) UnmarshalBinary

func (m *Withdrawal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Withdrawal) Validate

func (m *Withdrawal) Validate(formats strfmt.Registry) error

Validate validates this withdrawal

type WithdrawalFee

type WithdrawalFee struct {

	// Blockchain
	// Example: ETH
	Blockchain string `json:"blockchain"`

	// calculated at
	// Example: 2023-04-06 19:56:39.358834 +0000 UTC
	// Format: datetime
	CalculatedAt strfmt.DateTime `json:"calculatedAt"`

	// Currency
	// Example: ETH_USDT
	Currency string `json:"currency"`

	// Fee in withdrawal currency
	// Example: 5.75
	CurrencyFee string `json:"currencyFee"`

	// Indicates whether currency is on testnet
	IsTest bool `json:"isTest"`

	// USD fee
	// Example: 5.68
	UsdFee string `json:"usdFee"`
}

WithdrawalFee withdrawal fee

swagger:model withdrawalFee

func (*WithdrawalFee) ContextValidate

func (m *WithdrawalFee) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this withdrawal fee based on context it is used

func (*WithdrawalFee) MarshalBinary

func (m *WithdrawalFee) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WithdrawalFee) UnmarshalBinary

func (m *WithdrawalFee) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WithdrawalFee) Validate

func (m *WithdrawalFee) Validate(formats strfmt.Registry) error

Validate validates this withdrawal fee

Jump to

Keyboard shortcuts

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