Documentation
¶
Index ¶
- Constants
- type APIToken
- type AdditionalPaymentInfo
- type AdditionalWithdrawalInfo
- func (m *AdditionalWithdrawalInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AdditionalWithdrawalInfo) MarshalBinary() ([]byte, error)
- func (m *AdditionalWithdrawalInfo) UnmarshalBinary(b []byte) error
- func (m *AdditionalWithdrawalInfo) Validate(formats strfmt.Registry) error
- type AvailableProvidersResponse
- func (m *AvailableProvidersResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AvailableProvidersResponse) MarshalBinary() ([]byte, error)
- func (m *AvailableProvidersResponse) UnmarshalBinary(b []byte) error
- func (m *AvailableProvidersResponse) Validate(formats strfmt.Registry) error
- type Conversion
- type CreateMerchantAddressRequest
- func (m *CreateMerchantAddressRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateMerchantAddressRequest) MarshalBinary() ([]byte, error)
- func (m *CreateMerchantAddressRequest) UnmarshalBinary(b []byte) error
- func (m *CreateMerchantAddressRequest) Validate(formats strfmt.Registry) error
- type CreateMerchantRequest
- type CreateMerchantTokenRequest
- func (m *CreateMerchantTokenRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateMerchantTokenRequest) MarshalBinary() ([]byte, error)
- func (m *CreateMerchantTokenRequest) UnmarshalBinary(b []byte) error
- func (m *CreateMerchantTokenRequest) Validate(formats strfmt.Registry) error
- type CreatePaymentLinkRequest
- func (m *CreatePaymentLinkRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreatePaymentLinkRequest) MarshalBinary() ([]byte, error)
- func (m *CreatePaymentLinkRequest) UnmarshalBinary(b []byte) error
- func (m *CreatePaymentLinkRequest) Validate(formats strfmt.Registry) error
- type CreatePaymentRequest
- type CreateWithdrawalRequest
- func (m *CreateWithdrawalRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateWithdrawalRequest) MarshalBinary() ([]byte, error)
- func (m *CreateWithdrawalRequest) UnmarshalBinary(b []byte) error
- func (m *CreateWithdrawalRequest) Validate(formats strfmt.Registry) error
- type CurrencyExchangeRate
- type Customer
- type CustomerDetails
- type CustomerPayment
- type CustomersPagination
- type ErrorResponse
- type ErrorResponseItem
- type ExchangeRate
- type FormRequest
- type LoginRequest
- type Merchant
- type MerchantAddress
- type MerchantAddressList
- type MerchantBalance
- type MerchantBalanceList
- type MerchantList
- type MerchantListItem
- type Payment
- type PaymentAdditionalInfo
- type PaymentLink
- type PaymentLinksPagination
- func (m *PaymentLinksPagination) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PaymentLinksPagination) MarshalBinary() ([]byte, error)
- func (m *PaymentLinksPagination) UnmarshalBinary(b []byte) error
- func (m *PaymentLinksPagination) Validate(formats strfmt.Registry) error
- type PaymentsPagination
- type Provider
- type SupportedPaymentMethod
- func (m *SupportedPaymentMethod) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SupportedPaymentMethod) MarshalBinary() ([]byte, error)
- func (m *SupportedPaymentMethod) UnmarshalBinary(b []byte) error
- func (m *SupportedPaymentMethod) Validate(formats strfmt.Registry) error
- type TokenList
- type UpdateMerchantAddressRequest
- func (m *UpdateMerchantAddressRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UpdateMerchantAddressRequest) MarshalBinary() ([]byte, error)
- func (m *UpdateMerchantAddressRequest) UnmarshalBinary(b []byte) error
- func (m *UpdateMerchantAddressRequest) Validate(formats strfmt.Registry) error
- type UpdateMerchantRequest
- type UpdateSupportedPaymentMethodsRequest
- func (m *UpdateSupportedPaymentMethodsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UpdateSupportedPaymentMethodsRequest) MarshalBinary() ([]byte, error)
- func (m *UpdateSupportedPaymentMethodsRequest) UnmarshalBinary(b []byte) error
- func (m *UpdateSupportedPaymentMethodsRequest) Validate(formats strfmt.Registry) error
- type User
- type WebhookSettings
- type Withdrawal
- type WithdrawalFee
Constants ¶
const ( // ConversionFromTypeFiat captures enum value "fiat" ConversionFromTypeFiat string = "fiat" // ConversionFromTypeCrypto captures enum value "crypto" ConversionFromTypeCrypto string = "crypto" )
const ( // ConversionToTypeFiat captures enum value "fiat" ConversionToTypeFiat string = "fiat" // ConversionToTypeCrypto captures enum value "crypto" ConversionToTypeCrypto string = "crypto" )
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" )
const ( // CreatePaymentLinkRequestCurrencyUSD captures enum value "USD" CreatePaymentLinkRequestCurrencyUSD string = "USD" // CreatePaymentLinkRequestCurrencyEUR captures enum value "EUR" CreatePaymentLinkRequestCurrencyEUR string = "EUR" )
const ( // CreatePaymentLinkRequestSuccessActionRedirect captures enum value "redirect" CreatePaymentLinkRequestSuccessActionRedirect string = "redirect" // CreatePaymentLinkRequestSuccessActionShowMessage captures enum value "showMessage" CreatePaymentLinkRequestSuccessActionShowMessage string = "showMessage" )
const ( // CreatePaymentRequestCurrencyUSD captures enum value "USD" CreatePaymentRequestCurrencyUSD string = "USD" // CreatePaymentRequestCurrencyEUR captures enum value "EUR" CreatePaymentRequestCurrencyEUR string = "EUR" )
const ( // CustomerPaymentCurrencyUSD captures enum value "USD" CustomerPaymentCurrencyUSD string = "USD" // CustomerPaymentCurrencyEUR captures enum value "EUR" CustomerPaymentCurrencyEUR string = "EUR" )
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" )
const ( // ExchangeRateFromTypeFiat captures enum value "fiat" ExchangeRateFromTypeFiat string = "fiat" // ExchangeRateFromTypeCrypto captures enum value "crypto" ExchangeRateFromTypeCrypto string = "crypto" )
const ( // ExchangeRateToTypeFiat captures enum value "fiat" ExchangeRateToTypeFiat string = "fiat" // ExchangeRateToTypeCrypto captures enum value "crypto" ExchangeRateToTypeCrypto string = "crypto" )
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" )
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" )
const ( // PaymentTypePayment captures enum value "payment" PaymentTypePayment string = "payment" // PaymentTypeWithdrawal captures enum value "withdrawal" PaymentTypeWithdrawal string = "withdrawal" )
const ( // PaymentLinkCurrencyUSD captures enum value "USD" PaymentLinkCurrencyUSD string = "USD" // PaymentLinkCurrencyEUR captures enum value "EUR" PaymentLinkCurrencyEUR string = "EUR" )
const ( // PaymentLinkSuccessActionRedirect captures enum value "redirect" PaymentLinkSuccessActionRedirect string = "redirect" // PaymentLinkSuccessActionShowMessage captures enum value "showMessage" PaymentLinkSuccessActionShowMessage string = "showMessage" )
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 ¶
ContextValidate validates this api token based on context it is used
func (*APIToken) MarshalBinary ¶
MarshalBinary interface implementation
func (*APIToken) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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
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
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 ¶
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
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
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 ¶
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
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
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
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 ¶
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
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
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 ¶
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
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 ¶
ContextValidate validate this customer based on the context it is used
func (*Customer) MarshalBinary ¶
MarshalBinary interface implementation
func (*Customer) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validate this merchant based on the context it is used
func (*Merchant) MarshalBinary ¶
MarshalBinary interface implementation
func (*Merchant) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
type MerchantAddressList ¶
type MerchantAddressList struct {
// results
Results []*MerchantAddress `json:"results"`
}
MerchantAddressList merchant address list
swagger:model merchantAddressList
func (*MerchantAddressList) ContextValidate ¶
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
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 ¶
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
type MerchantBalanceList ¶
type MerchantBalanceList struct {
// results
Results []*MerchantBalance `json:"results"`
}
MerchantBalanceList merchant balance list
swagger:model merchantBalanceList
func (*MerchantBalanceList) ContextValidate ¶
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
type MerchantList ¶
type MerchantList struct {
// results
// Required: true
Results []*MerchantListItem `json:"results"`
}
MerchantList merchant list
swagger:model merchantList
func (*MerchantList) ContextValidate ¶
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
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 ¶
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
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 ¶
ContextValidate validate this payment based on the context it is used
func (*Payment) MarshalBinary ¶
MarshalBinary interface implementation
func (*Payment) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
type PaymentLink ¶
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 ¶
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
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
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 ¶
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
type Provider ¶
type Provider struct {
// name
// Enum: [google email]
Name string `json:"name,omitempty"`
}
Provider provider
swagger:model provider
func (*Provider) ContextValidate ¶
ContextValidate validates this provider based on context it is used
func (*Provider) MarshalBinary ¶
MarshalBinary interface implementation
func (*Provider) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
type TokenList ¶
type TokenList struct {
// results
// Required: true
Results []*APIToken `json:"results"`
}
TokenList token list
swagger:model tokenList
func (*TokenList) ContextValidate ¶
ContextValidate validate this token list based on the context it is used
func (*TokenList) MarshalBinary ¶
MarshalBinary interface implementation
func (*TokenList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
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
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
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 ¶
ContextValidate validates this user based on context it is used
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
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 ¶
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
Source Files
¶
- additional_payment_info.go
- additional_withdrawal_info.go
- api_token.go
- available_providers_response.go
- conversion.go
- create_merchant_address_request.go
- create_merchant_request.go
- create_merchant_token_request.go
- create_payment_link_request.go
- create_payment_request.go
- create_withdrawal_request.go
- currency_exchange_rate.go
- customer.go
- customer_payment.go
- customers_pagination.go
- error_response.go
- error_response_item.go
- exchange_rate.go
- form_request.go
- login_request.go
- merchant.go
- merchant_address.go
- merchant_address_list.go
- merchant_balance.go
- merchant_balance_list.go
- merchant_list.go
- merchant_list_item.go
- payment.go
- payment_link.go
- payment_links_pagination.go
- payments_pagination.go
- provider.go
- supported_payment_method.go
- token_list.go
- update_merchant_address_request.go
- update_merchant_request.go
- update_supported_payment_methods_request.go
- user.go
- webhook_settings.go
- withdrawal.go
- withdrawal_fee.go