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
18
response.go
18
response.go
@ -403,8 +403,22 @@ type IntegrationModuleEditResponse struct {
|
|||||||
|
|
||||||
// ResponseInfo type.
|
// ResponseInfo type.
|
||||||
type ResponseInfo struct {
|
type ResponseInfo struct {
|
||||||
MgTransportInfo MgInfo `json:"mgTransport,omitempty"`
|
MgTransportInfo MgInfo `json:"mgTransport,omitempty"`
|
||||||
MgBotInfo MgInfo `json:"mgBot,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.
|
// MgInfo type.
|
||||||
|
Loading…
Reference in New Issue
Block a user