From 63110c9869c7f106eeb3538a08cf500a291988d6 Mon Sep 17 00:00:00 2001 From: Navdeep Singh Sidhu Date: Fri, 19 Jul 2024 17:17:19 -0500 Subject: [PATCH] Added Missing properties in UsageCharge Object * Added Currency, UpdatedAt and RecurringApplicationChargeId properties --- usagecharge.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/usagecharge.go b/usagecharge.go index b69cb707..a0aa4103 100644 --- a/usagecharge.go +++ b/usagecharge.go @@ -27,13 +27,16 @@ type UsageChargeServiceOp struct { // UsageCharge represents a Shopify UsageCharge. type UsageCharge struct { - BalanceRemaining *decimal.Decimal `json:"balance_remaining,omitempty"` - BalanceUsed *decimal.Decimal `json:"balance_used,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - Description string `json:"description,omitempty"` - Id uint64 `json:"id,omitempty"` - Price *decimal.Decimal `json:"price,omitempty"` - RiskLevel *decimal.Decimal `json:"risk_level,omitempty"` + BalanceRemaining *decimal.Decimal `json:"balance_remaining,omitempty"` + BalanceUsed *decimal.Decimal `json:"balance_used,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Description string `json:"description,omitempty"` + Currency string `json:"currency,omitempty"` + Id uint64 `json:"id,omitempty"` + RecurringApplicationChargeId uint64 `json:"recurring_application_charge_id,omitempty"` + Price *decimal.Decimal `json:"price,omitempty"` + RiskLevel *decimal.Decimal `json:"risk_level,omitempty"` } // UsageChargeResource represents the result from the