more functions

This commit is contained in:
matst80
2025-11-20 21:34:39 +01:00
parent 60cd6cfd51
commit 729c67f992
6 changed files with 122 additions and 75 deletions

View File

@@ -78,6 +78,12 @@ type SubscriptionDetails struct {
Meta json.RawMessage `json:"data,omitempty"`
}
type Notice struct {
Timestamp time.Time `json:"timestamp"`
Message string `json:"message"`
Code *string `json:"code,omitempty"`
}
type Marking struct {
Type uint32 `json:"type"`
Text string `json:"text"`
@@ -104,7 +110,7 @@ type CartGrain struct {
Vouchers []*Voucher `json:"vouchers,omitempty"`
Notifications []CartNotification `json:"cartNotification,omitempty"`
SubscriptionDetails map[string]*SubscriptionDetails `json:"subscriptionDetails,omitempty"`
PaymentDeclinedAt time.Time `json:"paymentDeclinedAt,omitempty"`
PaymentDeclinedNotices []Notice `json:"paymentDeclinedNotices,omitempty"`
ConfirmationViewCount int `json:"confirmationViewCount,omitempty"`
ConfirmationLastViewedAt time.Time `json:"confirmationLastViewedAt,omitempty"`
CheckoutOrderId string `json:"checkoutOrderId,omitempty"`