mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-24 22:06:03 +03:00
Add BillingInfo model to ResponseInfo (#59)
This commit is contained in:
parent
cdbf1d6e33
commit
1e51894cf4
14
response.go
14
response.go
@ -405,6 +405,20 @@ type IntegrationModuleEditResponse struct {
|
||||
type ResponseInfo struct {
|
||||
MgTransportInfo MgInfo `json:"mgTransport,omitempty"`
|
||||
MgBotInfo MgInfo `json:"mgBot,omitempty"`
|
||||
BillingInfo *BillingInfo `json:"billingInfo,omitempty"`
|
||||
}
|
||||
|
||||
type BillingInfo struct {
|
||||
Price float64 `json:"price,omitempty"`
|
||||
PriceWithDiscount float64 `json:"priceWithDiscount,omitempty"`
|
||||
BillingType string `json:"billingType,omitempty"`
|
||||
Currency *BillingInfoCurrency `json:"currency,omitempty"`
|
||||
}
|
||||
|
||||
type BillingInfoCurrency struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
ShortName string `json:"shortName,omitempty"`
|
||||
Code string `json:"code,omitempty"`
|
||||
}
|
||||
|
||||
// MgInfo type.
|
||||
|
Loading…
Reference in New Issue
Block a user