Skip to content

Commit

Permalink
Merge pull request #17 from cloudloyalty/offer_bonuses_added_expire_at
Browse files Browse the repository at this point in the history
Added AvailableAt/ExpireAt for offer bonuses
  • Loading branch information
luza authored Nov 21, 2023
2 parents 0ebec8d + ccb2a5e commit 7d57ee7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions models_v2.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cloudloyalty_client

import (
"time"

"github.com/shopspring/decimal"
)

Expand Down Expand Up @@ -118,11 +120,13 @@ type CalculationResultRowBonuses struct {
}

type CalculationResultRowOffer struct {
ID int `json:"id"`
Code string `json:"code"`
Name string `json:"name"`
Bonuses int `json:"bonuses,omitempty"`
Amount decimal.Decimal `json:"amount,omitempty"`
ID int `json:"id"`
Code string `json:"code"`
Name string `json:"name"`
Bonuses int `json:"bonuses,omitempty"`
AvailableAt *time.Time `json:"availableAt,omitempty"`
ExpireAt *time.Time `json:"expireAt,omitempty"`
Amount decimal.Decimal `json:"amount,omitempty"`
}

type CalculationResultSummary struct {
Expand Down

0 comments on commit 7d57ee7

Please sign in to comment.