Skip to content

Commit

Permalink
Added Missing properties in UsageCharge Object
Browse files Browse the repository at this point in the history
* Added Currency, UpdatedAt and RecurringApplicationChargeId properties
  • Loading branch information
deepsidhu1313 committed Jul 19, 2024
1 parent e0f9e0d commit 63110c9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions usagecharge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63110c9

Please sign in to comment.