From 1e51894cf459b67cc6640a8ced00cdc85bf47b63 Mon Sep 17 00:00:00 2001 From: Alex Gridnev Date: Wed, 15 Dec 2021 13:09:57 +0300 Subject: [PATCH] Add BillingInfo model to ResponseInfo (#59) --- response.go | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/response.go b/response.go index a38d276..8933be1 100644 --- a/response.go +++ b/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.