@@ -704,6 +704,9 @@ type AccountSummary struct {
704
704
// The ID of the account.
705
705
AccountID * string `json:"account_id" validate:"required"`
706
706
707
+ // The list of account resources for the month.
708
+ AccountResources []Resource `json:"account_resources,omitempty"`
709
+
707
710
// The month in which usages were incurred. Represented in yyyy-mm format.
708
711
Month * string `json:"month" validate:"required"`
709
712
@@ -722,6 +725,9 @@ type AccountSummary struct {
722
725
// Support-related charges.
723
726
Support []SupportSummary `json:"support" validate:"required"`
724
727
728
+ // The list of support resources for the month.
729
+ SupportResources []interface {} `json:"support_resources,omitempty"`
730
+
725
731
// A summary of charges and credits related to a subscription.
726
732
Subscription * SubscriptionSummary `json:"subscription" validate:"required"`
727
733
}
@@ -733,6 +739,10 @@ func UnmarshalAccountSummary(m map[string]json.RawMessage, result interface{}) (
733
739
if err != nil {
734
740
return
735
741
}
742
+ err = core .UnmarshalModel (m , "account_resources" , & obj .AccountResources , UnmarshalResource )
743
+ if err != nil {
744
+ return
745
+ }
736
746
err = core .UnmarshalPrimitive (m , "month" , & obj .Month )
737
747
if err != nil {
738
748
return
@@ -757,6 +767,10 @@ func UnmarshalAccountSummary(m map[string]json.RawMessage, result interface{}) (
757
767
if err != nil {
758
768
return
759
769
}
770
+ err = core .UnmarshalPrimitive (m , "support_resources" , & obj .SupportResources )
771
+ if err != nil {
772
+ return
773
+ }
760
774
err = core .UnmarshalModel (m , "subscription" , & obj .Subscription , UnmarshalSubscriptionSummary )
761
775
if err != nil {
762
776
return
@@ -1965,6 +1979,8 @@ type Plan struct {
1965
1979
// The pricing region for the plan.
1966
1980
PricingRegion * string `json:"pricing_region,omitempty"`
1967
1981
1982
+ PricingPlanID * string `json:"pricing_plan_id,omitempty"`
1983
+
1968
1984
// Indicates if the plan charges are billed to the customer.
1969
1985
Billable * bool `json:"billable" validate:"required"`
1970
1986
@@ -1999,6 +2015,10 @@ func UnmarshalPlan(m map[string]json.RawMessage, result interface{}) (err error)
1999
2015
if err != nil {
2000
2016
return
2001
2017
}
2018
+ err = core .UnmarshalPrimitive (m , "pricing_plan_id" , & obj .PricingPlanID )
2019
+ if err != nil {
2020
+ return
2021
+ }
2002
2022
err = core .UnmarshalPrimitive (m , "billable" , & obj .Billable )
2003
2023
if err != nil {
2004
2024
return
0 commit comments