From 5b8b792c4c49528f96305b062ea4b1d20d0e4e81 Mon Sep 17 00:00:00 2001 From: Maria A Nunez Date: Wed, 28 Oct 2020 16:46:28 -0400 Subject: [PATCH] Added Subscription missing field for LastInvoice (#16111) --- model/cloud.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/model/cloud.go b/model/cloud.go index 0347aaa9d9..511fac3a0c 100644 --- a/model/cloud.go +++ b/model/cloud.go @@ -73,16 +73,17 @@ type PaymentMethod struct { // Subscription model represents a subscription on the system. type Subscription struct { - ID string `json:"id"` - CustomerID string `json:"customer_id"` - ProductID string `json:"product_id"` - AddOns []string `json:"add_ons"` - StartAt int64 `json:"start_at"` - EndAt int64 `json:"end_at"` - CreateAt int64 `json:"create_at"` - Seats int `json:"seats"` - DNS string `json:"dns"` - IsPaidTier string `json:"is_paid_tier"` + ID string `json:"id"` + CustomerID string `json:"customer_id"` + ProductID string `json:"product_id"` + AddOns []string `json:"add_ons"` + StartAt int64 `json:"start_at"` + EndAt int64 `json:"end_at"` + CreateAt int64 `json:"create_at"` + Seats int `json:"seats"` + DNS string `json:"dns"` + IsPaidTier string `json:"is_paid_tier"` + LastInvoice *Invoice `json:"last_invoice"` } // Invoice model represents a cloud invoice