From 8e823d72c85a6ca5478d5e557395bc8438707599 Mon Sep 17 00:00:00 2001 From: Robert Gordon Date: Fri, 16 Jun 2023 14:12:52 +0100 Subject: [PATCH] chore: add InboundPriority --- Readme.md | 2 ++ inbound.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Readme.md b/Readme.md index 70519fe..a75f262 100644 --- a/Readme.md +++ b/Readme.md @@ -993,6 +993,7 @@ func main() { MatchFilter: &mailersend.MatchFilter{ Type: "match_all", }, + InboundPriority: 1, CatchFilter: &mailersend.CatchFilter{}, Forwards: []mailersend.Forwards{ { @@ -1030,6 +1031,7 @@ func main() { Name: "Example Route", DomainEnabled: *mailersend.Bool(true), InboundDomain: "inbound.example.com", + InboundPriority: 1, MatchFilter: &mailersend.MatchFilter{ Type: "match_all", }, diff --git a/inbound.go b/inbound.go index 044b181..1bc69a8 100644 --- a/inbound.go +++ b/inbound.go @@ -28,6 +28,7 @@ type inbound struct { Address string `json:"address"` Domain string `json:"domain"` DNSCheckedAt interface{} `json:"dns_checked_at"` + Priority int `json:"priority"` Enabled bool `json:"enabled"` Filters []filters `json:"filters"` Forwards []forwards `json:"forwards"` @@ -68,6 +69,7 @@ type CreateInboundOptions struct { InboundDomain string `json:"inbound_domain,omitempty"` InboundAddress string `json:"inbound_address,omitempty"` InboundSubdomain string `json:"inbound_subdomain,omitempty"` + InboundPriority int `json:"inbound_priority,omitempty"` MatchFilter *MatchFilter `json:"match_filter,omitempty"` CatchFilter *CatchFilter `json:"catch_filter,omitempty"` Forwards []Forwards `json:"forwards"`