Skip to content

Commit

Permalink
Merge pull request #248 from Code-Hex/add/safe-update
Browse files Browse the repository at this point in the history
Support safe-update
  • Loading branch information
nukosuke authored Dec 21, 2022
2 parents 174d617 + e6ed498 commit bc19467
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zendesk/ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ type Ticket struct {
// Requester is POST only and can be used to create a ticket for a nonexistent requester
Requester *Requester `json:"requester,omitempty"`

// safe update fields
// https://developer.zendesk.com/documentation/ticketing/managing-tickets/creating-and-updating-tickets/#protecting-against-ticket-update-collisions
UpdatedStamp *time.Time `json:"updated_stamp,omitempty"`
SafeUpdate bool `json:"safe_update,omitempty"`

// TODO: TicketAudit (POST only) #126
}

Expand Down

0 comments on commit bc19467

Please sign in to comment.