Skip to content

Commit 821528f

Browse files
authored
Add support for returning customer_id in plan response (#361)
* Change ACCAPI to localhost for testing * Add changes to accept customerID in response from accapi * Revert "Change ACCAPI to localhost for testing" This reverts commit c17e61a.
1 parent 436008a commit 821528f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

util/billing.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ type ClusterPlan struct {
124124
NumberOfMachines int64 `json:"number_of_machines"`
125125
SubscriptionCanceled bool `json:"subscription_canceled"`
126126
CreatedAt int64 `json:"created_at"`
127+
CustomerID string `json:"customer_id"`
127128
}
128129

129130
// ArcUsageResponse stores the response from ACCAPI
@@ -175,6 +176,7 @@ type ArcInstanceDetails struct {
175176
FeaturePipelines bool `json:"feature_pipelines"`
176177
ClusterID string `json:"cluster_id"`
177178
NumberOfMachines int64 `json:"number_of_machines"`
179+
CustomerID string `json:"customer_id"`
178180
}
179181

180182
// SetDefaultTier sets the default tier when billing is disabled

0 commit comments

Comments
 (0)