Documentation ¶
Index ¶
- type Balance
- type ExpectedFiatAmount
- type OpenPrepareShiftRequest
- type Params
- type PaymentInfo
- type PaymentInfoV2
- type PrepareShiftInfo
- type PrepareShiftInfoV2
- type PrepareShiftRequest
- type PrepareShiftResponse
- type PrepareShiftResponseV2
- type Shift
- type StoreShift
- type StoreShiftV11
- type StoreShiftV2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpectedFiatAmount ¶
Amount + Fee should represent the whole shift amount.
type OpenPrepareShiftRequest ¶
type PaymentInfo ¶
type PaymentInfoV2 ¶
type PaymentInfoV2 struct { Address models.AddressResponse `json:"address"` Fee int64 `json:"fee"` Amount int64 `json:"amount"` Total int64 `json:"total"` HasFee bool `json:"has_fee"` Rate float64 `json:"rate"` FiatInfo ExpectedFiatAmount `json:"fiat_info"` Conversions models.PathResponse `json:"conversions"` }
type PrepareShiftInfo ¶
type PrepareShiftInfo struct { ID string `json:"id"` FromCoin string `json:"from_coin"` Payment PaymentInfo `json:"payment"` FeePayment PaymentInfo `json:"fee_payment"` ToCoin string `json:"to_coin"` ToAddress string `json:"to_address"` ToAmount int64 `json:"to_amount"` Timestamp int64 `json:"timestamp"` }
type PrepareShiftInfoV2 ¶
type PrepareShiftInfoV2 struct { ID string `json:"id"` FromCoin string `json:"from_coin"` Payment PaymentInfoV2 `json:"payment"` ToCoin string `json:"to_coin"` ToAddress string `json:"to_address"` ToAmount int64 `json:"to_amount"` ToAmountUSD int64 `json:"to_amount_usd"` Timestamp int64 `json:"timestamp"` Path models.PathResponse `json:"paths"` StableCoinAmount float64 `json:"stable_coin_amount"` }
type PrepareShiftRequest ¶
type PrepareShiftResponse ¶
type PrepareShiftResponse struct { Payment PaymentInfo `json:"payment"` Fee PaymentInfo `json:"fee"` ReceivedAmount int64 `json:"received_amount"` ShiftId string `json:"shift_id"` }
type PrepareShiftResponseV2 ¶
type PrepareShiftResponseV2 struct { Payment PaymentInfoV2 `json:"payment"` ReceivedAmount int64 `json:"received_amount"` ShiftId string `json:"shift_id"` }
type StoreShift ¶
type StoreShiftV11 ¶
Click to show internal directories.
Click to hide internal directories.