mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-28 15:56:05 +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.
|
||||
type ResponseInfo struct {
|
||||
MgTransportInfo MgInfo `json:"mgTransport,omitempty"`
|
||||
MgBotInfo MgInfo `json:"mgBot,omitempty"`
|
||||
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