Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCurrencyRatesServiceHandler(s server.Server, hdlr CurrencyRatesServiceHandler, ...) error
- type CardpayRate
- func (*CardpayRate) Descriptor() ([]byte, []int)deprecated
- func (x *CardpayRate) GetCreatedAt() *timestamp.Timestamp
- func (x *CardpayRate) GetFrom() string
- func (x *CardpayRate) GetRate() float64
- func (x *CardpayRate) GetSource() string
- func (x *CardpayRate) GetTo() string
- func (x *CardpayRate) GetVolume() float64
- func (*CardpayRate) ProtoMessage()
- func (x *CardpayRate) ProtoReflect() protoreflect.Message
- func (x *CardpayRate) Reset()
- func (x *CardpayRate) String() string
- type CommonCorrectionRule
- func (*CommonCorrectionRule) Descriptor() ([]byte, []int)deprecated
- func (x *CommonCorrectionRule) GetCommonCorrection() float64
- func (x *CommonCorrectionRule) GetCreatedAt() *timestamp.Timestamp
- func (x *CommonCorrectionRule) GetExchangeDirection() string
- func (x *CommonCorrectionRule) GetId() string
- func (x *CommonCorrectionRule) GetPairCorrection() map[string]float64
- func (x *CommonCorrectionRule) GetRateType() string
- func (*CommonCorrectionRule) ProtoMessage()
- func (x *CommonCorrectionRule) ProtoReflect() protoreflect.Message
- func (x *CommonCorrectionRule) Reset()
- func (x *CommonCorrectionRule) String() string
- type CommonCorrectionRuleRequest
- func (*CommonCorrectionRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommonCorrectionRuleRequest) GetExchangeDirection() string
- func (x *CommonCorrectionRuleRequest) GetRateType() string
- func (*CommonCorrectionRuleRequest) ProtoMessage()
- func (x *CommonCorrectionRuleRequest) ProtoReflect() protoreflect.Message
- func (x *CommonCorrectionRuleRequest) Reset()
- func (x *CommonCorrectionRuleRequest) String() string
- type CorrectionCorridor
- func (*CorrectionCorridor) Descriptor() ([]byte, []int)deprecated
- func (x *CorrectionCorridor) GetValue() float64
- func (*CorrectionCorridor) ProtoMessage()
- func (x *CorrectionCorridor) ProtoReflect() protoreflect.Message
- func (x *CorrectionCorridor) Reset()
- func (x *CorrectionCorridor) String() string
- type CorrectionRule
- func (*CorrectionRule) Descriptor() ([]byte, []int)deprecated
- func (p *CorrectionRule) GetBSON() (interface{}, error)
- func (x *CorrectionRule) GetCommonCorrection() float64
- func (r *CorrectionRule) GetCorrectionValue(pair string) float64
- func (x *CorrectionRule) GetCreatedAt() *timestamp.Timestamp
- func (x *CorrectionRule) GetExchangeDirection() string
- func (x *CorrectionRule) GetId() string
- func (x *CorrectionRule) GetMerchantId() string
- func (x *CorrectionRule) GetPairCorrection() map[string]float64
- func (x *CorrectionRule) GetRateType() string
- func (*CorrectionRule) ProtoMessage()
- func (x *CorrectionRule) ProtoReflect() protoreflect.Message
- func (x *CorrectionRule) Reset()
- func (p *CorrectionRule) SetBSON(raw bson.Raw) error
- func (x *CorrectionRule) String() string
- type CurrenciesList
- type CurrenciesPrecisionResponse
- func (*CurrenciesPrecisionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CurrenciesPrecisionResponse) GetValues() map[string]int32
- func (*CurrenciesPrecisionResponse) ProtoMessage()
- func (x *CurrenciesPrecisionResponse) ProtoReflect() protoreflect.Message
- func (x *CurrenciesPrecisionResponse) Reset()
- func (x *CurrenciesPrecisionResponse) String() string
- type CurrencyRatesService
- type CurrencyRatesServiceHandler
- type EmptyRequest
- type EmptyResponse
- type ExchangeCurrencyByDateCommonRequest
- func (*ExchangeCurrencyByDateCommonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeCurrencyByDateCommonRequest) GetAmount() float64
- func (x *ExchangeCurrencyByDateCommonRequest) GetDatetime() *timestamp.Timestamp
- func (x *ExchangeCurrencyByDateCommonRequest) GetExchangeDirection() string
- func (x *ExchangeCurrencyByDateCommonRequest) GetFrom() string
- func (x *ExchangeCurrencyByDateCommonRequest) GetRateType() string
- func (x *ExchangeCurrencyByDateCommonRequest) GetSource() string
- func (x *ExchangeCurrencyByDateCommonRequest) GetTo() string
- func (*ExchangeCurrencyByDateCommonRequest) ProtoMessage()
- func (x *ExchangeCurrencyByDateCommonRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeCurrencyByDateCommonRequest) Reset()
- func (x *ExchangeCurrencyByDateCommonRequest) String() string
- type ExchangeCurrencyByDateForMerchantRequest
- func (*ExchangeCurrencyByDateForMerchantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeCurrencyByDateForMerchantRequest) GetAmount() float64
- func (x *ExchangeCurrencyByDateForMerchantRequest) GetDatetime() *timestamp.Timestamp
- func (x *ExchangeCurrencyByDateForMerchantRequest) GetExchangeDirection() string
- func (x *ExchangeCurrencyByDateForMerchantRequest) GetFrom() string
- func (x *ExchangeCurrencyByDateForMerchantRequest) GetMerchantId() string
- func (x *ExchangeCurrencyByDateForMerchantRequest) GetRateType() string
- func (x *ExchangeCurrencyByDateForMerchantRequest) GetSource() string
- func (x *ExchangeCurrencyByDateForMerchantRequest) GetTo() string
- func (*ExchangeCurrencyByDateForMerchantRequest) ProtoMessage()
- func (x *ExchangeCurrencyByDateForMerchantRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeCurrencyByDateForMerchantRequest) Reset()
- func (x *ExchangeCurrencyByDateForMerchantRequest) String() string
- type ExchangeCurrencyCurrentCommonRequest
- func (*ExchangeCurrencyCurrentCommonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeCurrencyCurrentCommonRequest) GetAmount() float64
- func (x *ExchangeCurrencyCurrentCommonRequest) GetExchangeDirection() string
- func (x *ExchangeCurrencyCurrentCommonRequest) GetFrom() string
- func (x *ExchangeCurrencyCurrentCommonRequest) GetRateType() string
- func (x *ExchangeCurrencyCurrentCommonRequest) GetSource() string
- func (x *ExchangeCurrencyCurrentCommonRequest) GetTo() string
- func (*ExchangeCurrencyCurrentCommonRequest) ProtoMessage()
- func (x *ExchangeCurrencyCurrentCommonRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeCurrencyCurrentCommonRequest) Reset()
- func (x *ExchangeCurrencyCurrentCommonRequest) String() string
- type ExchangeCurrencyCurrentForMerchantRequest
- func (*ExchangeCurrencyCurrentForMerchantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeCurrencyCurrentForMerchantRequest) GetAmount() float64
- func (x *ExchangeCurrencyCurrentForMerchantRequest) GetExchangeDirection() string
- func (x *ExchangeCurrencyCurrentForMerchantRequest) GetFrom() string
- func (x *ExchangeCurrencyCurrentForMerchantRequest) GetMerchantId() string
- func (x *ExchangeCurrencyCurrentForMerchantRequest) GetRateType() string
- func (x *ExchangeCurrencyCurrentForMerchantRequest) GetSource() string
- func (x *ExchangeCurrencyCurrentForMerchantRequest) GetTo() string
- func (*ExchangeCurrencyCurrentForMerchantRequest) ProtoMessage()
- func (x *ExchangeCurrencyCurrentForMerchantRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeCurrencyCurrentForMerchantRequest) Reset()
- func (x *ExchangeCurrencyCurrentForMerchantRequest) String() string
- type ExchangeCurrencyResponse
- func (*ExchangeCurrencyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeCurrencyResponse) GetCorrection() float64
- func (x *ExchangeCurrencyResponse) GetExchangeDirection() string
- func (x *ExchangeCurrencyResponse) GetExchangeRate() float64
- func (x *ExchangeCurrencyResponse) GetExchangedAmount() float64
- func (x *ExchangeCurrencyResponse) GetOriginalRate() float64
- func (*ExchangeCurrencyResponse) ProtoMessage()
- func (x *ExchangeCurrencyResponse) ProtoReflect() protoreflect.Message
- func (x *ExchangeCurrencyResponse) Reset()
- func (x *ExchangeCurrencyResponse) String() string
- type GetRateByDateCommonRequest
- func (*GetRateByDateCommonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRateByDateCommonRequest) GetDatetime() *timestamp.Timestamp
- func (x *GetRateByDateCommonRequest) GetExchangeDirection() string
- func (x *GetRateByDateCommonRequest) GetFrom() string
- func (x *GetRateByDateCommonRequest) GetRateType() string
- func (x *GetRateByDateCommonRequest) GetSource() string
- func (x *GetRateByDateCommonRequest) GetTo() string
- func (*GetRateByDateCommonRequest) ProtoMessage()
- func (x *GetRateByDateCommonRequest) ProtoReflect() protoreflect.Message
- func (x *GetRateByDateCommonRequest) Reset()
- func (x *GetRateByDateCommonRequest) String() string
- type GetRateByDateForMerchantRequest
- func (*GetRateByDateForMerchantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRateByDateForMerchantRequest) GetDatetime() *timestamp.Timestamp
- func (x *GetRateByDateForMerchantRequest) GetExchangeDirection() string
- func (x *GetRateByDateForMerchantRequest) GetFrom() string
- func (x *GetRateByDateForMerchantRequest) GetMerchantId() string
- func (x *GetRateByDateForMerchantRequest) GetRateType() string
- func (x *GetRateByDateForMerchantRequest) GetSource() string
- func (x *GetRateByDateForMerchantRequest) GetTo() string
- func (*GetRateByDateForMerchantRequest) ProtoMessage()
- func (x *GetRateByDateForMerchantRequest) ProtoReflect() protoreflect.Message
- func (x *GetRateByDateForMerchantRequest) Reset()
- func (x *GetRateByDateForMerchantRequest) String() string
- type GetRateCurrentCommonRequest
- func (*GetRateCurrentCommonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRateCurrentCommonRequest) GetExchangeDirection() string
- func (x *GetRateCurrentCommonRequest) GetFrom() string
- func (x *GetRateCurrentCommonRequest) GetRateType() string
- func (x *GetRateCurrentCommonRequest) GetSource() string
- func (x *GetRateCurrentCommonRequest) GetTo() string
- func (*GetRateCurrentCommonRequest) ProtoMessage()
- func (x *GetRateCurrentCommonRequest) ProtoReflect() protoreflect.Message
- func (x *GetRateCurrentCommonRequest) Reset()
- func (x *GetRateCurrentCommonRequest) String() string
- type GetRateCurrentForMerchantRequest
- func (*GetRateCurrentForMerchantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRateCurrentForMerchantRequest) GetExchangeDirection() string
- func (x *GetRateCurrentForMerchantRequest) GetFrom() string
- func (x *GetRateCurrentForMerchantRequest) GetMerchantId() string
- func (x *GetRateCurrentForMerchantRequest) GetRateType() string
- func (x *GetRateCurrentForMerchantRequest) GetSource() string
- func (x *GetRateCurrentForMerchantRequest) GetTo() string
- func (*GetRateCurrentForMerchantRequest) ProtoMessage()
- func (x *GetRateCurrentForMerchantRequest) ProtoReflect() protoreflect.Message
- func (x *GetRateCurrentForMerchantRequest) Reset()
- func (x *GetRateCurrentForMerchantRequest) String() string
- type MerchantCorrectionRuleRequest
- func (*MerchantCorrectionRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MerchantCorrectionRuleRequest) GetExchangeDirection() string
- func (x *MerchantCorrectionRuleRequest) GetMerchantId() string
- func (x *MerchantCorrectionRuleRequest) GetRateType() string
- func (*MerchantCorrectionRuleRequest) ProtoMessage()
- func (x *MerchantCorrectionRuleRequest) ProtoReflect() protoreflect.Message
- func (x *MerchantCorrectionRuleRequest) Reset()
- func (x *MerchantCorrectionRuleRequest) String() string
- type RateData
- func (*RateData) Descriptor() ([]byte, []int)deprecated
- func (p *RateData) GetBSON() (interface{}, error)
- func (x *RateData) GetCreatedAt() *timestamp.Timestamp
- func (x *RateData) GetId() string
- func (x *RateData) GetPair() string
- func (x *RateData) GetRate() float64
- func (x *RateData) GetSource() string
- func (x *RateData) GetVolume() float64
- func (*RateData) ProtoMessage()
- func (x *RateData) ProtoReflect() protoreflect.Message
- func (x *RateData) Reset()
- func (p *RateData) SetBSON(raw bson.Raw) error
- func (x *RateData) String() string
Constants ¶
const ( // ServiceName - name of microservice ServiceName = "paysupercurrencies" // Version - version of service Version = "latest" // RateTypeOxr - rate type value for Oxr rates RateTypeOxr = "oxr" // RateTypeCentralbanks - rate type value for central banks rates RateTypeCentralbanks = "centralbanks" // RateTypePaysuper - rate type value for Paysuper rates RateTypePaysuper = "paysuper" // RateTypeStock - rate type value for Stock rates RateTypeStock = "stock" // RateTypeCardpay - rate type value for Cardpay rates RateTypeCardpay = "cardpay" ExchangeDirectionSell = "sell" ExchangeDirectionBuy = "buy" )
Variables ¶
var File_currencies_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCurrencyRatesServiceHandler ¶
func RegisterCurrencyRatesServiceHandler(s server.Server, hdlr CurrencyRatesServiceHandler, opts ...server.HandlerOption) error
Types ¶
type CardpayRate ¶
type CardpayRate struct { //@inject_tag: validate:"required" json:"created_at" bson:"created_at" CreatedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at" validate:"required" bson:"created_at"` //@inject_tag: validate:"required,alpha,len=3" json:"from" bson:"from" From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from" validate:"required,alpha,len=3" bson:"from"` //@inject_tag: validate:"required,alpha,len=3" json:"to" bson:"to" To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to" validate:"required,alpha,len=3" bson:"to"` //@inject_tag: validate:"required,numeric,gt=0" json:"rate" bson:"rate" Rate float64 `protobuf:"fixed64,4,opt,name=rate,proto3" json:"rate" validate:"required,numeric,gt=0" bson:"rate"` //@inject_tag: validate:"required,alpha" json:"source" bson:"source" Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source" validate:"required,alpha" bson:"source"` //@inject_tag: validate:"numeric" json:"volume" bson:"volume" Volume float64 `protobuf:"fixed64,6,opt,name=volume,proto3" json:"volume" validate:"numeric" bson:"volume"` // contains filtered or unexported fields }
func (*CardpayRate) Descriptor
deprecated
func (*CardpayRate) Descriptor() ([]byte, []int)
Deprecated: Use CardpayRate.ProtoReflect.Descriptor instead.
func (*CardpayRate) GetCreatedAt ¶
func (x *CardpayRate) GetCreatedAt() *timestamp.Timestamp
func (*CardpayRate) GetFrom ¶
func (x *CardpayRate) GetFrom() string
func (*CardpayRate) GetRate ¶
func (x *CardpayRate) GetRate() float64
func (*CardpayRate) GetSource ¶
func (x *CardpayRate) GetSource() string
func (*CardpayRate) GetTo ¶
func (x *CardpayRate) GetTo() string
func (*CardpayRate) GetVolume ¶
func (x *CardpayRate) GetVolume() float64
func (*CardpayRate) ProtoMessage ¶
func (*CardpayRate) ProtoMessage()
func (*CardpayRate) ProtoReflect ¶
func (x *CardpayRate) ProtoReflect() protoreflect.Message
func (*CardpayRate) Reset ¶
func (x *CardpayRate) Reset()
func (*CardpayRate) String ¶
func (x *CardpayRate) String() string
type CommonCorrectionRule ¶
type CommonCorrectionRule struct { // @inject_tag: validate:"required,hexadecimal,len=24" json:"id" bson:"_id" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" validate:"required,hexadecimal,len=24" bson:"_id"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbanks stock cardpay" json:"rate_type" bson:"rate_type" RateType string `` /* 158-byte string literal not displayed */ // @inject_tag: validate:"omitempty,numeric,gte=0,lte=100" json:"common_correction" bson:"common_correction" CommonCorrection float64 `` /* 169-byte string literal not displayed */ // @inject_tag: validate:"omitempty,dive,keys,alpha,len=6,endkeys,gte=0,lte=100" json:"pair_correction" bson:"pair_correction" PairCorrection map[string]float64 `` /* 271-byte string literal not displayed */ // @inject_tag: validate:"required" json:"created_at" bson:"created_at" CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at" validate:"required" bson:"created_at"` // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CommonCorrectionRule) Descriptor
deprecated
func (*CommonCorrectionRule) Descriptor() ([]byte, []int)
Deprecated: Use CommonCorrectionRule.ProtoReflect.Descriptor instead.
func (*CommonCorrectionRule) GetCommonCorrection ¶
func (x *CommonCorrectionRule) GetCommonCorrection() float64
func (*CommonCorrectionRule) GetCreatedAt ¶
func (x *CommonCorrectionRule) GetCreatedAt() *timestamp.Timestamp
func (*CommonCorrectionRule) GetExchangeDirection ¶
func (x *CommonCorrectionRule) GetExchangeDirection() string
func (*CommonCorrectionRule) GetId ¶
func (x *CommonCorrectionRule) GetId() string
func (*CommonCorrectionRule) GetPairCorrection ¶
func (x *CommonCorrectionRule) GetPairCorrection() map[string]float64
func (*CommonCorrectionRule) GetRateType ¶
func (x *CommonCorrectionRule) GetRateType() string
func (*CommonCorrectionRule) ProtoMessage ¶
func (*CommonCorrectionRule) ProtoMessage()
func (*CommonCorrectionRule) ProtoReflect ¶
func (x *CommonCorrectionRule) ProtoReflect() protoreflect.Message
func (*CommonCorrectionRule) Reset ¶
func (x *CommonCorrectionRule) Reset()
func (*CommonCorrectionRule) String ¶
func (x *CommonCorrectionRule) String() string
type CommonCorrectionRuleRequest ¶
type CommonCorrectionRuleRequest struct { //@inject_tag: validate:"required,oneof=oxr paysuper centralbank stock cardpay" RateType string `` /* 150-byte string literal not displayed */ // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CommonCorrectionRuleRequest) Descriptor
deprecated
func (*CommonCorrectionRuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommonCorrectionRuleRequest.ProtoReflect.Descriptor instead.
func (*CommonCorrectionRuleRequest) GetExchangeDirection ¶
func (x *CommonCorrectionRuleRequest) GetExchangeDirection() string
func (*CommonCorrectionRuleRequest) GetRateType ¶
func (x *CommonCorrectionRuleRequest) GetRateType() string
func (*CommonCorrectionRuleRequest) ProtoMessage ¶
func (*CommonCorrectionRuleRequest) ProtoMessage()
func (*CommonCorrectionRuleRequest) ProtoReflect ¶
func (x *CommonCorrectionRuleRequest) ProtoReflect() protoreflect.Message
func (*CommonCorrectionRuleRequest) Reset ¶
func (x *CommonCorrectionRuleRequest) Reset()
func (*CommonCorrectionRuleRequest) String ¶
func (x *CommonCorrectionRuleRequest) String() string
type CorrectionCorridor ¶
type CorrectionCorridor struct { //@inject_tag: validate:"required,numeric,gte=0,lte=1" Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty" validate:"required,numeric,gte=0,lte=1"` // contains filtered or unexported fields }
func (*CorrectionCorridor) Descriptor
deprecated
func (*CorrectionCorridor) Descriptor() ([]byte, []int)
Deprecated: Use CorrectionCorridor.ProtoReflect.Descriptor instead.
func (*CorrectionCorridor) GetValue ¶
func (x *CorrectionCorridor) GetValue() float64
func (*CorrectionCorridor) ProtoMessage ¶
func (*CorrectionCorridor) ProtoMessage()
func (*CorrectionCorridor) ProtoReflect ¶
func (x *CorrectionCorridor) ProtoReflect() protoreflect.Message
func (*CorrectionCorridor) Reset ¶
func (x *CorrectionCorridor) Reset()
func (*CorrectionCorridor) String ¶
func (x *CorrectionCorridor) String() string
type CorrectionRule ¶
type CorrectionRule struct { // @inject_tag: validate:"required,hexadecimal,len=24" json:"id" bson:"_id" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" validate:"required,hexadecimal,len=24" bson:"_id"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbanks stock cardpay" json:"rate_type" bson:"rate_type" RateType string `` /* 158-byte string literal not displayed */ // @inject_tag: validate:"omitempty,numeric,gte=0,lte=100" json:"common_correction" bson:"common_correction" CommonCorrection float64 `` /* 169-byte string literal not displayed */ // @inject_tag: validate:"omitempty,dive,keys,alpha,len=6,endkeys,gte=0,lte=100" json:"pair_correction" bson:"pair_correction" PairCorrection map[string]float64 `` /* 271-byte string literal not displayed */ // @inject_tag: validate:"required" json:"created_at" bson:"created_at" CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at" validate:"required" bson:"created_at"` //@inject_tag: validate:"omitempty,hexadecimal,len=24" json:"merchant_id" bson:"merchant_id" MerchantId string `` /* 140-byte string literal not displayed */ // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CorrectionRule) Descriptor
deprecated
func (*CorrectionRule) Descriptor() ([]byte, []int)
Deprecated: Use CorrectionRule.ProtoReflect.Descriptor instead.
func (*CorrectionRule) GetBSON ¶
func (p *CorrectionRule) GetBSON() (interface{}, error)
CorrectionRule.GetBSON
func (*CorrectionRule) GetCommonCorrection ¶
func (x *CorrectionRule) GetCommonCorrection() float64
func (*CorrectionRule) GetCorrectionValue ¶
func (r *CorrectionRule) GetCorrectionValue(pair string) float64
GetCorrectionValue returns correction value for passed pair of default one
func (*CorrectionRule) GetCreatedAt ¶
func (x *CorrectionRule) GetCreatedAt() *timestamp.Timestamp
func (*CorrectionRule) GetExchangeDirection ¶
func (x *CorrectionRule) GetExchangeDirection() string
func (*CorrectionRule) GetId ¶
func (x *CorrectionRule) GetId() string
func (*CorrectionRule) GetMerchantId ¶
func (x *CorrectionRule) GetMerchantId() string
func (*CorrectionRule) GetPairCorrection ¶
func (x *CorrectionRule) GetPairCorrection() map[string]float64
func (*CorrectionRule) GetRateType ¶
func (x *CorrectionRule) GetRateType() string
func (*CorrectionRule) ProtoMessage ¶
func (*CorrectionRule) ProtoMessage()
func (*CorrectionRule) ProtoReflect ¶
func (x *CorrectionRule) ProtoReflect() protoreflect.Message
func (*CorrectionRule) Reset ¶
func (x *CorrectionRule) Reset()
func (*CorrectionRule) SetBSON ¶
func (p *CorrectionRule) SetBSON(raw bson.Raw) error
CorrectionRule.SetBSON
func (*CorrectionRule) String ¶
func (x *CorrectionRule) String() string
type CurrenciesList ¶
type CurrenciesList struct { Currencies []string `protobuf:"bytes,1,rep,name=currencies,proto3" json:"currencies,omitempty"` // contains filtered or unexported fields }
func (*CurrenciesList) Descriptor
deprecated
func (*CurrenciesList) Descriptor() ([]byte, []int)
Deprecated: Use CurrenciesList.ProtoReflect.Descriptor instead.
func (*CurrenciesList) GetCurrencies ¶
func (x *CurrenciesList) GetCurrencies() []string
func (*CurrenciesList) ProtoMessage ¶
func (*CurrenciesList) ProtoMessage()
func (*CurrenciesList) ProtoReflect ¶
func (x *CurrenciesList) ProtoReflect() protoreflect.Message
func (*CurrenciesList) Reset ¶
func (x *CurrenciesList) Reset()
func (*CurrenciesList) String ¶
func (x *CurrenciesList) String() string
type CurrenciesPrecisionResponse ¶
type CurrenciesPrecisionResponse struct { Values map[string]int32 `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CurrenciesPrecisionResponse) Descriptor
deprecated
func (*CurrenciesPrecisionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CurrenciesPrecisionResponse.ProtoReflect.Descriptor instead.
func (*CurrenciesPrecisionResponse) GetValues ¶
func (x *CurrenciesPrecisionResponse) GetValues() map[string]int32
func (*CurrenciesPrecisionResponse) ProtoMessage ¶
func (*CurrenciesPrecisionResponse) ProtoMessage()
func (*CurrenciesPrecisionResponse) ProtoReflect ¶
func (x *CurrenciesPrecisionResponse) ProtoReflect() protoreflect.Message
func (*CurrenciesPrecisionResponse) Reset ¶
func (x *CurrenciesPrecisionResponse) Reset()
func (*CurrenciesPrecisionResponse) String ¶
func (x *CurrenciesPrecisionResponse) String() string
type CurrencyRatesService ¶
type CurrencyRatesService interface { GetRateCurrentCommon(ctx context.Context, in *GetRateCurrentCommonRequest, opts ...client.CallOption) (*RateData, error) GetRateByDateCommon(ctx context.Context, in *GetRateByDateCommonRequest, opts ...client.CallOption) (*RateData, error) GetRateCurrentForMerchant(ctx context.Context, in *GetRateCurrentForMerchantRequest, opts ...client.CallOption) (*RateData, error) GetRateByDateForMerchant(ctx context.Context, in *GetRateByDateForMerchantRequest, opts ...client.CallOption) (*RateData, error) ExchangeCurrencyCurrentCommon(ctx context.Context, in *ExchangeCurrencyCurrentCommonRequest, opts ...client.CallOption) (*ExchangeCurrencyResponse, error) ExchangeCurrencyCurrentForMerchant(ctx context.Context, in *ExchangeCurrencyCurrentForMerchantRequest, opts ...client.CallOption) (*ExchangeCurrencyResponse, error) ExchangeCurrencyByDateCommon(ctx context.Context, in *ExchangeCurrencyByDateCommonRequest, opts ...client.CallOption) (*ExchangeCurrencyResponse, error) ExchangeCurrencyByDateForMerchant(ctx context.Context, in *ExchangeCurrencyByDateForMerchantRequest, opts ...client.CallOption) (*ExchangeCurrencyResponse, error) GetCommonRateCorrectionRule(ctx context.Context, in *CommonCorrectionRuleRequest, opts ...client.CallOption) (*CorrectionRule, error) GetMerchantRateCorrectionRule(ctx context.Context, in *MerchantCorrectionRuleRequest, opts ...client.CallOption) (*CorrectionRule, error) AddCommonRateCorrectionRule(ctx context.Context, in *CommonCorrectionRule, opts ...client.CallOption) (*EmptyResponse, error) AddMerchantRateCorrectionRule(ctx context.Context, in *CorrectionRule, opts ...client.CallOption) (*EmptyResponse, error) GetSupportedCurrencies(ctx context.Context, in *EmptyRequest, opts ...client.CallOption) (*CurrenciesList, error) GetSettlementCurrencies(ctx context.Context, in *EmptyRequest, opts ...client.CallOption) (*CurrenciesList, error) GetPriceCurrencies(ctx context.Context, in *EmptyRequest, opts ...client.CallOption) (*CurrenciesList, error) GetVatCurrencies(ctx context.Context, in *EmptyRequest, opts ...client.CallOption) (*CurrenciesList, error) GetAccountingCurrencies(ctx context.Context, in *EmptyRequest, opts ...client.CallOption) (*CurrenciesList, error) GetCurrenciesPrecision(ctx context.Context, in *EmptyRequest, opts ...client.CallOption) (*CurrenciesPrecisionResponse, error) }
func NewCurrencyRatesService ¶
func NewCurrencyRatesService(name string, c client.Client) CurrencyRatesService
type CurrencyRatesServiceHandler ¶
type CurrencyRatesServiceHandler interface { GetRateCurrentCommon(context.Context, *GetRateCurrentCommonRequest, *RateData) error GetRateByDateCommon(context.Context, *GetRateByDateCommonRequest, *RateData) error GetRateCurrentForMerchant(context.Context, *GetRateCurrentForMerchantRequest, *RateData) error GetRateByDateForMerchant(context.Context, *GetRateByDateForMerchantRequest, *RateData) error ExchangeCurrencyCurrentCommon(context.Context, *ExchangeCurrencyCurrentCommonRequest, *ExchangeCurrencyResponse) error ExchangeCurrencyCurrentForMerchant(context.Context, *ExchangeCurrencyCurrentForMerchantRequest, *ExchangeCurrencyResponse) error ExchangeCurrencyByDateCommon(context.Context, *ExchangeCurrencyByDateCommonRequest, *ExchangeCurrencyResponse) error ExchangeCurrencyByDateForMerchant(context.Context, *ExchangeCurrencyByDateForMerchantRequest, *ExchangeCurrencyResponse) error GetCommonRateCorrectionRule(context.Context, *CommonCorrectionRuleRequest, *CorrectionRule) error GetMerchantRateCorrectionRule(context.Context, *MerchantCorrectionRuleRequest, *CorrectionRule) error AddCommonRateCorrectionRule(context.Context, *CommonCorrectionRule, *EmptyResponse) error AddMerchantRateCorrectionRule(context.Context, *CorrectionRule, *EmptyResponse) error GetSupportedCurrencies(context.Context, *EmptyRequest, *CurrenciesList) error GetSettlementCurrencies(context.Context, *EmptyRequest, *CurrenciesList) error GetPriceCurrencies(context.Context, *EmptyRequest, *CurrenciesList) error GetVatCurrencies(context.Context, *EmptyRequest, *CurrenciesList) error GetAccountingCurrencies(context.Context, *EmptyRequest, *CurrenciesList) error GetCurrenciesPrecision(context.Context, *EmptyRequest, *CurrenciesPrecisionResponse) error }
type EmptyRequest ¶
type EmptyRequest struct {
// contains filtered or unexported fields
}
func (*EmptyRequest) Descriptor
deprecated
func (*EmptyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) ProtoReflect ¶
func (x *EmptyRequest) ProtoReflect() protoreflect.Message
func (*EmptyRequest) Reset ¶
func (x *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (x *EmptyRequest) String() string
type EmptyResponse ¶
type EmptyResponse struct {
// contains filtered or unexported fields
}
func (*EmptyResponse) Descriptor
deprecated
func (*EmptyResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
func (*EmptyResponse) ProtoMessage ¶
func (*EmptyResponse) ProtoMessage()
func (*EmptyResponse) ProtoReflect ¶
func (x *EmptyResponse) ProtoReflect() protoreflect.Message
func (*EmptyResponse) Reset ¶
func (x *EmptyResponse) Reset()
func (*EmptyResponse) String ¶
func (x *EmptyResponse) String() string
type ExchangeCurrencyByDateCommonRequest ¶
type ExchangeCurrencyByDateCommonRequest struct { //@inject_tag: validate:"required,alpha,len=3" From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,alpha,len=3" To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbanks stock cardpay" RateType string `` /* 151-byte string literal not displayed */ //@inject_tag: validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF" Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty" validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF"` // @inject_tag: validate:"numeric,gte=0" Amount float64 `protobuf:"fixed64,6,opt,name=amount,proto3" json:"amount,omitempty" validate:"numeric,gte=0"` //@inject_tag: validate:"required" Datetime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=datetime,proto3" json:"datetime,omitempty" validate:"required"` // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ExchangeCurrencyByDateCommonRequest) Descriptor
deprecated
func (*ExchangeCurrencyByDateCommonRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeCurrencyByDateCommonRequest.ProtoReflect.Descriptor instead.
func (*ExchangeCurrencyByDateCommonRequest) GetAmount ¶
func (x *ExchangeCurrencyByDateCommonRequest) GetAmount() float64
func (*ExchangeCurrencyByDateCommonRequest) GetDatetime ¶
func (x *ExchangeCurrencyByDateCommonRequest) GetDatetime() *timestamp.Timestamp
func (*ExchangeCurrencyByDateCommonRequest) GetExchangeDirection ¶
func (x *ExchangeCurrencyByDateCommonRequest) GetExchangeDirection() string
func (*ExchangeCurrencyByDateCommonRequest) GetFrom ¶
func (x *ExchangeCurrencyByDateCommonRequest) GetFrom() string
func (*ExchangeCurrencyByDateCommonRequest) GetRateType ¶
func (x *ExchangeCurrencyByDateCommonRequest) GetRateType() string
func (*ExchangeCurrencyByDateCommonRequest) GetSource ¶
func (x *ExchangeCurrencyByDateCommonRequest) GetSource() string
func (*ExchangeCurrencyByDateCommonRequest) GetTo ¶
func (x *ExchangeCurrencyByDateCommonRequest) GetTo() string
func (*ExchangeCurrencyByDateCommonRequest) ProtoMessage ¶
func (*ExchangeCurrencyByDateCommonRequest) ProtoMessage()
func (*ExchangeCurrencyByDateCommonRequest) ProtoReflect ¶
func (x *ExchangeCurrencyByDateCommonRequest) ProtoReflect() protoreflect.Message
func (*ExchangeCurrencyByDateCommonRequest) Reset ¶
func (x *ExchangeCurrencyByDateCommonRequest) Reset()
func (*ExchangeCurrencyByDateCommonRequest) String ¶
func (x *ExchangeCurrencyByDateCommonRequest) String() string
type ExchangeCurrencyByDateForMerchantRequest ¶
type ExchangeCurrencyByDateForMerchantRequest struct { //@inject_tag: validate:"required,alpha,len=3" From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,alpha,len=3" To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbanks stock cardpay" RateType string `` /* 151-byte string literal not displayed */ //@inject_tag: validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF" Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty" validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF"` // @inject_tag: validate:"numeric,gte=0" Amount float64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty" validate:"numeric,gte=0"` //@inject_tag: validate:"omitempty,hexadecimal,len=24" MerchantId string `` /* 131-byte string literal not displayed */ //@inject_tag: validate:"required" Datetime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=datetime,proto3" json:"datetime,omitempty" validate:"required"` // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ExchangeCurrencyByDateForMerchantRequest) Descriptor
deprecated
func (*ExchangeCurrencyByDateForMerchantRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeCurrencyByDateForMerchantRequest.ProtoReflect.Descriptor instead.
func (*ExchangeCurrencyByDateForMerchantRequest) GetAmount ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) GetAmount() float64
func (*ExchangeCurrencyByDateForMerchantRequest) GetDatetime ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) GetDatetime() *timestamp.Timestamp
func (*ExchangeCurrencyByDateForMerchantRequest) GetExchangeDirection ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) GetExchangeDirection() string
func (*ExchangeCurrencyByDateForMerchantRequest) GetFrom ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) GetFrom() string
func (*ExchangeCurrencyByDateForMerchantRequest) GetMerchantId ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) GetMerchantId() string
func (*ExchangeCurrencyByDateForMerchantRequest) GetRateType ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) GetRateType() string
func (*ExchangeCurrencyByDateForMerchantRequest) GetSource ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) GetSource() string
func (*ExchangeCurrencyByDateForMerchantRequest) GetTo ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) GetTo() string
func (*ExchangeCurrencyByDateForMerchantRequest) ProtoMessage ¶
func (*ExchangeCurrencyByDateForMerchantRequest) ProtoMessage()
func (*ExchangeCurrencyByDateForMerchantRequest) ProtoReflect ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) ProtoReflect() protoreflect.Message
func (*ExchangeCurrencyByDateForMerchantRequest) Reset ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) Reset()
func (*ExchangeCurrencyByDateForMerchantRequest) String ¶
func (x *ExchangeCurrencyByDateForMerchantRequest) String() string
type ExchangeCurrencyCurrentCommonRequest ¶
type ExchangeCurrencyCurrentCommonRequest struct { //@inject_tag: validate:"required,alpha,len=3" From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,alpha,len=3" To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbanks stock cardpay" RateType string `` /* 151-byte string literal not displayed */ Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` // @inject_tag: validate:"numeric,gte=0" Amount float64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty" validate:"numeric,gte=0"` // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ExchangeCurrencyCurrentCommonRequest) Descriptor
deprecated
func (*ExchangeCurrencyCurrentCommonRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeCurrencyCurrentCommonRequest.ProtoReflect.Descriptor instead.
func (*ExchangeCurrencyCurrentCommonRequest) GetAmount ¶
func (x *ExchangeCurrencyCurrentCommonRequest) GetAmount() float64
func (*ExchangeCurrencyCurrentCommonRequest) GetExchangeDirection ¶
func (x *ExchangeCurrencyCurrentCommonRequest) GetExchangeDirection() string
func (*ExchangeCurrencyCurrentCommonRequest) GetFrom ¶
func (x *ExchangeCurrencyCurrentCommonRequest) GetFrom() string
func (*ExchangeCurrencyCurrentCommonRequest) GetRateType ¶
func (x *ExchangeCurrencyCurrentCommonRequest) GetRateType() string
func (*ExchangeCurrencyCurrentCommonRequest) GetSource ¶
func (x *ExchangeCurrencyCurrentCommonRequest) GetSource() string
func (*ExchangeCurrencyCurrentCommonRequest) GetTo ¶
func (x *ExchangeCurrencyCurrentCommonRequest) GetTo() string
func (*ExchangeCurrencyCurrentCommonRequest) ProtoMessage ¶
func (*ExchangeCurrencyCurrentCommonRequest) ProtoMessage()
func (*ExchangeCurrencyCurrentCommonRequest) ProtoReflect ¶
func (x *ExchangeCurrencyCurrentCommonRequest) ProtoReflect() protoreflect.Message
func (*ExchangeCurrencyCurrentCommonRequest) Reset ¶
func (x *ExchangeCurrencyCurrentCommonRequest) Reset()
func (*ExchangeCurrencyCurrentCommonRequest) String ¶
func (x *ExchangeCurrencyCurrentCommonRequest) String() string
type ExchangeCurrencyCurrentForMerchantRequest ¶
type ExchangeCurrencyCurrentForMerchantRequest struct { //@inject_tag: validate:"required,alpha,len=3" From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,alpha,len=3" To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbanks stock cardpay" RateType string `` /* 151-byte string literal not displayed */ //@inject_tag: validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF" Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty" validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF"` // @inject_tag: validate:"numeric,gte=0" Amount float64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty" validate:"numeric,gte=0"` //@inject_tag: validate:"omitempty,hexadecimal,len=24" MerchantId string `` /* 131-byte string literal not displayed */ // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ExchangeCurrencyCurrentForMerchantRequest) Descriptor
deprecated
func (*ExchangeCurrencyCurrentForMerchantRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeCurrencyCurrentForMerchantRequest.ProtoReflect.Descriptor instead.
func (*ExchangeCurrencyCurrentForMerchantRequest) GetAmount ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) GetAmount() float64
func (*ExchangeCurrencyCurrentForMerchantRequest) GetExchangeDirection ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) GetExchangeDirection() string
func (*ExchangeCurrencyCurrentForMerchantRequest) GetFrom ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) GetFrom() string
func (*ExchangeCurrencyCurrentForMerchantRequest) GetMerchantId ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) GetMerchantId() string
func (*ExchangeCurrencyCurrentForMerchantRequest) GetRateType ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) GetRateType() string
func (*ExchangeCurrencyCurrentForMerchantRequest) GetSource ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) GetSource() string
func (*ExchangeCurrencyCurrentForMerchantRequest) GetTo ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) GetTo() string
func (*ExchangeCurrencyCurrentForMerchantRequest) ProtoMessage ¶
func (*ExchangeCurrencyCurrentForMerchantRequest) ProtoMessage()
func (*ExchangeCurrencyCurrentForMerchantRequest) ProtoReflect ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) ProtoReflect() protoreflect.Message
func (*ExchangeCurrencyCurrentForMerchantRequest) Reset ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) Reset()
func (*ExchangeCurrencyCurrentForMerchantRequest) String ¶
func (x *ExchangeCurrencyCurrentForMerchantRequest) String() string
type ExchangeCurrencyResponse ¶
type ExchangeCurrencyResponse struct { // @inject_tag: validate:"numeric,gte=0" ExchangedAmount float64 `` /* 133-byte string literal not displayed */ //@inject_tag: validate:"required,numeric,gt=0" json:"rate" bson:"exchange_rate" ExchangeRate float64 `` /* 134-byte string literal not displayed */ // @inject_tag: validate:"omitempty,numeric,gte=-100,lte=100" json:"correction" Correction float64 `protobuf:"fixed64,3,opt,name=correction,proto3" json:"correction" validate:"omitempty,numeric,gte=-100,lte=100"` //@inject_tag: validate:"required,numeric,gt=0" json:"original_rate" OriginalRate float64 `protobuf:"fixed64,4,opt,name=original_rate,json=originalRate,proto3" json:"original_rate" validate:"required,numeric,gt=0"` // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ExchangeCurrencyResponse) Descriptor
deprecated
func (*ExchangeCurrencyResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeCurrencyResponse.ProtoReflect.Descriptor instead.
func (*ExchangeCurrencyResponse) GetCorrection ¶
func (x *ExchangeCurrencyResponse) GetCorrection() float64
func (*ExchangeCurrencyResponse) GetExchangeDirection ¶
func (x *ExchangeCurrencyResponse) GetExchangeDirection() string
func (*ExchangeCurrencyResponse) GetExchangeRate ¶
func (x *ExchangeCurrencyResponse) GetExchangeRate() float64
func (*ExchangeCurrencyResponse) GetExchangedAmount ¶
func (x *ExchangeCurrencyResponse) GetExchangedAmount() float64
func (*ExchangeCurrencyResponse) GetOriginalRate ¶
func (x *ExchangeCurrencyResponse) GetOriginalRate() float64
func (*ExchangeCurrencyResponse) ProtoMessage ¶
func (*ExchangeCurrencyResponse) ProtoMessage()
func (*ExchangeCurrencyResponse) ProtoReflect ¶
func (x *ExchangeCurrencyResponse) ProtoReflect() protoreflect.Message
func (*ExchangeCurrencyResponse) Reset ¶
func (x *ExchangeCurrencyResponse) Reset()
func (*ExchangeCurrencyResponse) String ¶
func (x *ExchangeCurrencyResponse) String() string
type GetRateByDateCommonRequest ¶
type GetRateByDateCommonRequest struct { //@inject_tag: validate:"required,alpha,len=3" From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,alpha,len=3" To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbank stock cardpay" RateType string `` /* 150-byte string literal not displayed */ //@inject_tag: validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF" Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty" validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF"` //@inject_tag: validate:"required" Datetime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=datetime,proto3" json:"datetime,omitempty" validate:"required"` // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetRateByDateCommonRequest) Descriptor
deprecated
func (*GetRateByDateCommonRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRateByDateCommonRequest.ProtoReflect.Descriptor instead.
func (*GetRateByDateCommonRequest) GetDatetime ¶
func (x *GetRateByDateCommonRequest) GetDatetime() *timestamp.Timestamp
func (*GetRateByDateCommonRequest) GetExchangeDirection ¶
func (x *GetRateByDateCommonRequest) GetExchangeDirection() string
func (*GetRateByDateCommonRequest) GetFrom ¶
func (x *GetRateByDateCommonRequest) GetFrom() string
func (*GetRateByDateCommonRequest) GetRateType ¶
func (x *GetRateByDateCommonRequest) GetRateType() string
func (*GetRateByDateCommonRequest) GetSource ¶
func (x *GetRateByDateCommonRequest) GetSource() string
func (*GetRateByDateCommonRequest) GetTo ¶
func (x *GetRateByDateCommonRequest) GetTo() string
func (*GetRateByDateCommonRequest) ProtoMessage ¶
func (*GetRateByDateCommonRequest) ProtoMessage()
func (*GetRateByDateCommonRequest) ProtoReflect ¶
func (x *GetRateByDateCommonRequest) ProtoReflect() protoreflect.Message
func (*GetRateByDateCommonRequest) Reset ¶
func (x *GetRateByDateCommonRequest) Reset()
func (*GetRateByDateCommonRequest) String ¶
func (x *GetRateByDateCommonRequest) String() string
type GetRateByDateForMerchantRequest ¶
type GetRateByDateForMerchantRequest struct { //@inject_tag: validate:"required,alpha,len=3" From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,alpha,len=3" To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbank stock cardpay" RateType string `` /* 150-byte string literal not displayed */ //@inject_tag: validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF" Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty" validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF"` //@inject_tag: validate:"required" Datetime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=datetime,proto3" json:"datetime,omitempty" validate:"required"` //@inject_tag: validate:"omitempty,hexadecimal,len=24" MerchantId string `` /* 131-byte string literal not displayed */ // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetRateByDateForMerchantRequest) Descriptor
deprecated
func (*GetRateByDateForMerchantRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRateByDateForMerchantRequest.ProtoReflect.Descriptor instead.
func (*GetRateByDateForMerchantRequest) GetDatetime ¶
func (x *GetRateByDateForMerchantRequest) GetDatetime() *timestamp.Timestamp
func (*GetRateByDateForMerchantRequest) GetExchangeDirection ¶
func (x *GetRateByDateForMerchantRequest) GetExchangeDirection() string
func (*GetRateByDateForMerchantRequest) GetFrom ¶
func (x *GetRateByDateForMerchantRequest) GetFrom() string
func (*GetRateByDateForMerchantRequest) GetMerchantId ¶
func (x *GetRateByDateForMerchantRequest) GetMerchantId() string
func (*GetRateByDateForMerchantRequest) GetRateType ¶
func (x *GetRateByDateForMerchantRequest) GetRateType() string
func (*GetRateByDateForMerchantRequest) GetSource ¶
func (x *GetRateByDateForMerchantRequest) GetSource() string
func (*GetRateByDateForMerchantRequest) GetTo ¶
func (x *GetRateByDateForMerchantRequest) GetTo() string
func (*GetRateByDateForMerchantRequest) ProtoMessage ¶
func (*GetRateByDateForMerchantRequest) ProtoMessage()
func (*GetRateByDateForMerchantRequest) ProtoReflect ¶
func (x *GetRateByDateForMerchantRequest) ProtoReflect() protoreflect.Message
func (*GetRateByDateForMerchantRequest) Reset ¶
func (x *GetRateByDateForMerchantRequest) Reset()
func (*GetRateByDateForMerchantRequest) String ¶
func (x *GetRateByDateForMerchantRequest) String() string
type GetRateCurrentCommonRequest ¶
type GetRateCurrentCommonRequest struct { //@inject_tag: validate:"required,alpha,len=3" From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,alpha,len=3" To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbank stock cardpay" RateType string `` /* 150-byte string literal not displayed */ //@inject_tag: validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF" Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty" validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF"` // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetRateCurrentCommonRequest) Descriptor
deprecated
func (*GetRateCurrentCommonRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRateCurrentCommonRequest.ProtoReflect.Descriptor instead.
func (*GetRateCurrentCommonRequest) GetExchangeDirection ¶
func (x *GetRateCurrentCommonRequest) GetExchangeDirection() string
func (*GetRateCurrentCommonRequest) GetFrom ¶
func (x *GetRateCurrentCommonRequest) GetFrom() string
func (*GetRateCurrentCommonRequest) GetRateType ¶
func (x *GetRateCurrentCommonRequest) GetRateType() string
func (*GetRateCurrentCommonRequest) GetSource ¶
func (x *GetRateCurrentCommonRequest) GetSource() string
func (*GetRateCurrentCommonRequest) GetTo ¶
func (x *GetRateCurrentCommonRequest) GetTo() string
func (*GetRateCurrentCommonRequest) ProtoMessage ¶
func (*GetRateCurrentCommonRequest) ProtoMessage()
func (*GetRateCurrentCommonRequest) ProtoReflect ¶
func (x *GetRateCurrentCommonRequest) ProtoReflect() protoreflect.Message
func (*GetRateCurrentCommonRequest) Reset ¶
func (x *GetRateCurrentCommonRequest) Reset()
func (*GetRateCurrentCommonRequest) String ¶
func (x *GetRateCurrentCommonRequest) String() string
type GetRateCurrentForMerchantRequest ¶
type GetRateCurrentForMerchantRequest struct { //@inject_tag: validate:"required,alpha,len=3" From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,alpha,len=3" To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" validate:"required,alpha,len=3"` //@inject_tag: validate:"required,oneof=oxr paysuper centralbank stock cardpay" RateType string `` /* 150-byte string literal not displayed */ //@inject_tag: validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF" Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty" validate:"omitempty,oneof=CBAU CBPL CBCA CBEU CBRF"` //@inject_tag: validate:"omitempty,hexadecimal,len=24" MerchantId string `` /* 131-byte string literal not displayed */ // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetRateCurrentForMerchantRequest) Descriptor
deprecated
func (*GetRateCurrentForMerchantRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRateCurrentForMerchantRequest.ProtoReflect.Descriptor instead.
func (*GetRateCurrentForMerchantRequest) GetExchangeDirection ¶
func (x *GetRateCurrentForMerchantRequest) GetExchangeDirection() string
func (*GetRateCurrentForMerchantRequest) GetFrom ¶
func (x *GetRateCurrentForMerchantRequest) GetFrom() string
func (*GetRateCurrentForMerchantRequest) GetMerchantId ¶
func (x *GetRateCurrentForMerchantRequest) GetMerchantId() string
func (*GetRateCurrentForMerchantRequest) GetRateType ¶
func (x *GetRateCurrentForMerchantRequest) GetRateType() string
func (*GetRateCurrentForMerchantRequest) GetSource ¶
func (x *GetRateCurrentForMerchantRequest) GetSource() string
func (*GetRateCurrentForMerchantRequest) GetTo ¶
func (x *GetRateCurrentForMerchantRequest) GetTo() string
func (*GetRateCurrentForMerchantRequest) ProtoMessage ¶
func (*GetRateCurrentForMerchantRequest) ProtoMessage()
func (*GetRateCurrentForMerchantRequest) ProtoReflect ¶
func (x *GetRateCurrentForMerchantRequest) ProtoReflect() protoreflect.Message
func (*GetRateCurrentForMerchantRequest) Reset ¶
func (x *GetRateCurrentForMerchantRequest) Reset()
func (*GetRateCurrentForMerchantRequest) String ¶
func (x *GetRateCurrentForMerchantRequest) String() string
type MerchantCorrectionRuleRequest ¶
type MerchantCorrectionRuleRequest struct { //@inject_tag: validate:"required,oneof=oxr paysuper centralbank stock cardpay" RateType string `` /* 150-byte string literal not displayed */ //@inject_tag: validate:"omitempty,hexadecimal,len=24" MerchantId string `` /* 131-byte string literal not displayed */ // @inject_tag: validate:"required,oneof=sell buy" json:"exchange_direction" bson:"exchange_direction" ExchangeDirection string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MerchantCorrectionRuleRequest) Descriptor
deprecated
func (*MerchantCorrectionRuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use MerchantCorrectionRuleRequest.ProtoReflect.Descriptor instead.
func (*MerchantCorrectionRuleRequest) GetExchangeDirection ¶
func (x *MerchantCorrectionRuleRequest) GetExchangeDirection() string
func (*MerchantCorrectionRuleRequest) GetMerchantId ¶
func (x *MerchantCorrectionRuleRequest) GetMerchantId() string
func (*MerchantCorrectionRuleRequest) GetRateType ¶
func (x *MerchantCorrectionRuleRequest) GetRateType() string
func (*MerchantCorrectionRuleRequest) ProtoMessage ¶
func (*MerchantCorrectionRuleRequest) ProtoMessage()
func (*MerchantCorrectionRuleRequest) ProtoReflect ¶
func (x *MerchantCorrectionRuleRequest) ProtoReflect() protoreflect.Message
func (*MerchantCorrectionRuleRequest) Reset ¶
func (x *MerchantCorrectionRuleRequest) Reset()
func (*MerchantCorrectionRuleRequest) String ¶
func (x *MerchantCorrectionRuleRequest) String() string
type RateData ¶
type RateData struct { //@inject_tag: validate:"required,hexadecimal,len=24" json:"id" bson:"_id" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" validate:"required,hexadecimal,len=24" bson:"_id"` //@inject_tag: validate:"required" json:"created_at" bson:"created_at" CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at" validate:"required" bson:"created_at"` //@inject_tag: validate:"required,alpha,len=6" json:"pair" bson:"pair" Pair string `protobuf:"bytes,3,opt,name=pair,proto3" json:"pair" validate:"required,alpha,len=6" bson:"pair"` //@inject_tag: validate:"required,numeric,gt=0" json:"rate" bson:"rate" Rate float64 `protobuf:"fixed64,4,opt,name=rate,proto3" json:"rate" validate:"required,numeric,gt=0" bson:"rate"` //@inject_tag: validate:"required,alpha" json:"source" bson:"source" Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source" validate:"required,alpha" bson:"source"` //@inject_tag: validate:"numeric" json:"volume" bson:"volume" Volume float64 `protobuf:"fixed64,6,opt,name=volume,proto3" json:"volume" validate:"numeric" bson:"volume"` // contains filtered or unexported fields }
func (*RateData) Descriptor
deprecated
func (*RateData) GetCreatedAt ¶
func (*RateData) ProtoMessage ¶
func (*RateData) ProtoMessage()
func (*RateData) ProtoReflect ¶
func (x *RateData) ProtoReflect() protoreflect.Message