From d85a4f174efd48e08d30038b8012356767ee065c Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 24 Apr 2024 18:02:20 +0000 Subject: [PATCH] deploy: 44239c31623aedd328417f7e4e265c8f7874f408 --- Mailjet.html | 76 +++++++++---------- Mailjet/Address.html | 12 +-- Mailjet/AddressList.html | 10 +-- Mailjet/Campaign.html | 12 +-- Mailjet/Campaign/Details.html | 2 +- Mailjet/Campaign/FindPath.html | 2 +- Mailjet/Campaign/FindResponse.html | 2 +- Mailjet/Campaign/ListPath.html | 2 +- Mailjet/Campaign/ListResponse.html | 2 +- Mailjet/Campaign/ResponseData.html | 2 +- Mailjet/Campaign/UpdatePath.html | 2 +- Mailjet/Campaign/UpdateResponse.html | 2 +- Mailjet/Campaigndraft.html | 16 ++-- Mailjet/Campaigndraft/CreatePath.html | 2 +- Mailjet/Campaigndraft/CreateResponse.html | 2 +- Mailjet/Campaigndraft/Detailcontent.html | 8 +- .../Campaigndraft/Detailcontent/FindPath.html | 2 +- .../Detailcontent/FindResponse.html | 2 +- .../Detailcontent/ResponseData.html | 2 +- Mailjet/Campaigndraft/Draft.html | 2 +- Mailjet/Campaigndraft/FindPath.html | 2 +- Mailjet/Campaigndraft/FindResponse.html | 2 +- Mailjet/Campaigndraft/ListPath.html | 2 +- Mailjet/Campaigndraft/ListResponse.html | 2 +- Mailjet/Campaigndraft/ResponseData.html | 2 +- Mailjet/Campaigndraft/UpdatePath.html | 2 +- Mailjet/Campaigndraft/UpdateResponse.html | 2 +- Mailjet/Client.html | 12 +-- Mailjet/Config.html | 36 ++++----- Mailjet/Contact.html | 18 ++--- Mailjet/Contact/CreatePath.html | 2 +- Mailjet/Contact/CreateResponse.html | 2 +- Mailjet/Contact/Details.html | 2 +- Mailjet/Contact/FindPath.html | 2 +- Mailjet/Contact/FindResponse.html | 2 +- Mailjet/Contact/List.html | 6 +- Mailjet/Contact/List/Details.html | 2 +- Mailjet/Contact/List/ListPath.html | 2 +- Mailjet/Contact/List/ListResponse.html | 2 +- Mailjet/Contact/List/ResponseData.html | 2 +- Mailjet/Contact/ListPath.html | 2 +- Mailjet/Contact/ListResponse.html | 2 +- Mailjet/Contact/Managecontactlists.html | 4 +- .../Managecontactlists/ContactList.html | 2 +- .../Managecontactlists/ContactLists.html | 2 +- Mailjet/Contact/ResponseData.html | 2 +- Mailjet/Contact/UpdatePath.html | 2 +- Mailjet/Contact/UpdateResponse.html | 2 +- Mailjet/Contactfilter.html | 16 ++-- Mailjet/Contactfilter/CreatePath.html | 2 +- Mailjet/Contactfilter/CreateResponse.html | 2 +- Mailjet/Contactfilter/DeletePath.html | 2 +- Mailjet/Contactfilter/Filter.html | 2 +- Mailjet/Contactfilter/FindPath.html | 2 +- Mailjet/Contactfilter/FindResponse.html | 2 +- Mailjet/Contactfilter/ListPath.html | 2 +- Mailjet/Contactfilter/ListResponse.html | 2 +- Mailjet/Contactfilter/ResponseData.html | 2 +- Mailjet/Contactfilter/UpdatePath.html | 2 +- Mailjet/Contactfilter/UpdateResponse.html | 2 +- Mailjet/Contactlist.html | 16 ++-- Mailjet/Contactlist/CreatePath.html | 2 +- Mailjet/Contactlist/CreateResponse.html | 2 +- Mailjet/Contactlist/DeletePath.html | 2 +- Mailjet/Contactlist/Details.html | 2 +- Mailjet/Contactlist/FindPath.html | 2 +- Mailjet/Contactlist/FindResponse.html | 2 +- Mailjet/Contactlist/ListPath.html | 2 +- Mailjet/Contactlist/ListResponse.html | 2 +- Mailjet/Contactlist/ResponseData.html | 2 +- Mailjet/Contactlist/UpdatePath.html | 2 +- Mailjet/Contactlist/UpdateResponse.html | 2 +- Mailjet/DNS.html | 10 +-- Mailjet/DNS/Check.html | 4 +- Mailjet/DNS/Check/Details.html | 2 +- Mailjet/DNS/Check/ResponseData.html | 2 +- Mailjet/DNS/FindPath.html | 2 +- Mailjet/DNS/FindResponse.html | 2 +- Mailjet/DNS/ListPath.html | 2 +- Mailjet/DNS/ListResponse.html | 2 +- Mailjet/DNS/ResponseData.html | 2 +- Mailjet/DNS/Settings.html | 2 +- Mailjet/Eventcallbackurl.html | 16 ++-- Mailjet/Eventcallbackurl/CreatePath.html | 2 +- Mailjet/Eventcallbackurl/CreateResponse.html | 2 +- Mailjet/Eventcallbackurl/DeletePath.html | 2 +- Mailjet/Eventcallbackurl/FindPath.html | 2 +- Mailjet/Eventcallbackurl/FindResponse.html | 2 +- Mailjet/Eventcallbackurl/ListPath.html | 2 +- Mailjet/Eventcallbackurl/ListResponse.html | 2 +- Mailjet/Eventcallbackurl/ResponseData.html | 2 +- Mailjet/Eventcallbackurl/UpdatePath.html | 2 +- Mailjet/Eventcallbackurl/UpdateResponse.html | 2 +- Mailjet/Eventcallbackurl/Webhook.html | 2 +- Mailjet/Exception.html | 2 +- Mailjet/Exception/ErrorInfo.html | 2 +- Mailjet/Exception/ErrorInfoArray.html | 2 +- Mailjet/InvalidEmailAddressException.html | 2 +- Mailjet/Json.html | 8 +- Mailjet/Json/Fields.html | 4 +- Mailjet/Json/NilableTime.html | 10 +-- Mailjet/Listrecipient.html | 16 ++-- Mailjet/Listrecipient/CreatePath.html | 2 +- Mailjet/Listrecipient/CreateResponse.html | 2 +- Mailjet/Listrecipient/DeletePath.html | 2 +- Mailjet/Listrecipient/FindPath.html | 2 +- Mailjet/Listrecipient/FindResponse.html | 2 +- Mailjet/Listrecipient/Join.html | 2 +- Mailjet/Listrecipient/ListPath.html | 2 +- Mailjet/Listrecipient/ListResponse.html | 2 +- Mailjet/Listrecipient/ResponseData.html | 2 +- Mailjet/Listrecipient/UpdatePath.html | 2 +- Mailjet/Listrecipient/UpdateResponse.html | 2 +- Mailjet/Message.html | 8 +- Mailjet/Message/Details.html | 2 +- Mailjet/Message/FindPath.html | 2 +- Mailjet/Message/FindResponse.html | 2 +- Mailjet/Message/ListPath.html | 2 +- Mailjet/Message/ListResponse.html | 2 +- Mailjet/Message/ResponseData.html | 2 +- Mailjet/Messagehistory.html | 6 +- Mailjet/Messagehistory/Event.html | 2 +- Mailjet/Messagehistory/ListPath.html | 2 +- Mailjet/Messagehistory/ListResponse.html | 2 +- Mailjet/Messagehistory/ResponseData.html | 2 +- Mailjet/Messageinformation.html | 8 +- Mailjet/Messageinformation/FindPath.html | 2 +- Mailjet/Messageinformation/FindResponse.html | 2 +- Mailjet/Messageinformation/Info.html | 2 +- Mailjet/Messageinformation/ListPath.html | 2 +- Mailjet/Messageinformation/ListResponse.html | 2 +- Mailjet/Messageinformation/ResponseData.html | 2 +- Mailjet/Metasender.html | 14 ++-- Mailjet/Metasender/CreatePath.html | 2 +- Mailjet/Metasender/CreateResponse.html | 2 +- Mailjet/Metasender/Details.html | 2 +- Mailjet/Metasender/FindPath.html | 2 +- Mailjet/Metasender/FindResponse.html | 2 +- Mailjet/Metasender/ListPath.html | 2 +- Mailjet/Metasender/ListResponse.html | 2 +- Mailjet/Metasender/ResponseData.html | 2 +- Mailjet/Metasender/UpdatePath.html | 2 +- Mailjet/Metasender/UpdateResponse.html | 2 +- Mailjet/MethodNotAllowedException.html | 2 +- Mailjet/MissingApiCredentialsException.html | 2 +- Mailjet/ParamsMissingException.html | 2 +- Mailjet/Path.html | 10 +-- Mailjet/RequestException.html | 22 +++--- Mailjet/RequestTimeoutException.html | 2 +- Mailjet/Resource.html | 16 ++-- Mailjet/ResourceId.html | 2 +- Mailjet/ResourceNotFoundException.html | 2 +- Mailjet/Send.html | 4 +- Mailjet/Send/DeliveryError.html | 2 +- Mailjet/Send/DeliveryReceipt.html | 2 +- Mailjet/Send/ResponseMessage.html | 2 +- Mailjet/Send/SentMessage.html | 2 +- Mailjet/SendV3.html | 4 +- Mailjet/SendV3_1.html | 4 +- Mailjet/Sender.html | 18 ++--- Mailjet/Sender/Address.html | 2 +- Mailjet/Sender/CreatePath.html | 2 +- Mailjet/Sender/CreateResponse.html | 2 +- Mailjet/Sender/DeletePath.html | 2 +- Mailjet/Sender/FindPath.html | 2 +- Mailjet/Sender/FindResponse.html | 2 +- Mailjet/Sender/ListPath.html | 2 +- Mailjet/Sender/ListResponse.html | 2 +- Mailjet/Sender/ResponseData.html | 2 +- Mailjet/Sender/UpdatePath.html | 2 +- Mailjet/Sender/UpdateResponse.html | 2 +- Mailjet/Sender/Validate.html | 4 +- Mailjet/Statcounters.html | 12 +-- Mailjet/Statcounters/Counters.html | 2 +- Mailjet/Statcounters/ListPath.html | 2 +- Mailjet/Statcounters/ListResponse.html | 2 +- Mailjet/Statcounters/ResponseData.html | 2 +- Mailjet/Template.html | 18 ++--- Mailjet/Template/CreatePath.html | 2 +- Mailjet/Template/CreateResponse.html | 2 +- Mailjet/Template/DeletePath.html | 2 +- Mailjet/Template/Detailcontent.html | 12 +-- Mailjet/Template/Detailcontent/FindPath.html | 2 +- .../Template/Detailcontent/FindResponse.html | 2 +- .../Template/Detailcontent/ResponseData.html | 2 +- .../Template/Detailcontent/UpdatePath.html | 2 +- .../Detailcontent/UpdateResponse.html | 2 +- Mailjet/Template/Details.html | 2 +- Mailjet/Template/FindPath.html | 2 +- Mailjet/Template/FindResponse.html | 2 +- Mailjet/Template/ListPath.html | 2 +- Mailjet/Template/ListResponse.html | 2 +- Mailjet/Template/ResponseData.html | 2 +- Mailjet/Template/UpdatePath.html | 2 +- Mailjet/Template/UpdateResponse.html | 2 +- Mailjet/Utilities.html | 16 ++-- index.html | 4 +- index.json | 2 +- search-index.js | 2 +- 199 files changed, 407 insertions(+), 407 deletions(-) diff --git a/Mailjet.html b/Mailjet.html index 3145ae9..0a5bbf8 100644 --- a/Mailjet.html +++ b/Mailjet.html @@ -1199,245 +1199,245 @@

- + mailjet.cr
- + mailjet/alias.cr
- + mailjet/client.cr
- + mailjet/config.cr
- + mailjet/elements/address.cr
- + mailjet/elements/address_list.cr
- + mailjet/exception.cr
- + mailjet/json/fields.cr
- + mailjet/json/nilable_time.cr
- + mailjet/path.cr
- + mailjet/resource.cr
- + mailjet/resources/campaign.cr
- + mailjet/resources/campaigndraft.cr
- + mailjet/resources/campaigndraft/detailcontent.cr
- + mailjet/resources/contact.cr
- + mailjet/resources/contact/list.cr
- + mailjet/resources/contact/managecontactlists.cr
- + mailjet/resources/contactfilter.cr
- + mailjet/resources/contactlist.cr
- + mailjet/resources/dns.cr
- + mailjet/resources/dns/check.cr
- + mailjet/resources/eventcallbackurl.cr
- + mailjet/resources/listrecipient.cr
- + mailjet/resources/message.cr
- + mailjet/resources/messagehistory.cr
- + mailjet/resources/messageinformation.cr
- + mailjet/resources/metasender.cr
- + mailjet/resources/send.cr
- + mailjet/resources/sender.cr
- + mailjet/resources/sender/validate.cr
- + mailjet/resources/statcounters.cr
- + mailjet/resources/template.cr
- + mailjet/resources/template/detailcontent.cr
- + mailjet/utilities.cr
- + mailjet/version.cr @@ -1590,7 +1590,7 @@


- [View source] + [View source]
@@ -1618,7 +1618,7 @@


- [View source] + [View source]
@@ -1648,7 +1648,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Address.html b/Mailjet/Address.html index 8787785..f88ff83 100644 --- a/Mailjet/Address.html +++ b/Mailjet/Address.html @@ -1199,7 +1199,7 @@

- + mailjet/elements/address.cr @@ -1331,7 +1331,7 @@


- [View source] + [View source]
@@ -1347,7 +1347,7 @@


- [View source] + [View source]
@@ -1379,7 +1379,7 @@


- [View source] + [View source]
@@ -1395,7 +1395,7 @@


- [View source] + [View source]
@@ -1411,7 +1411,7 @@


- [View source] + [View source]
diff --git a/Mailjet/AddressList.html b/Mailjet/AddressList.html index beee060..20d51b3 100644 --- a/Mailjet/AddressList.html +++ b/Mailjet/AddressList.html @@ -1199,7 +1199,7 @@

- + mailjet/elements/address_list.cr @@ -1338,7 +1338,7 @@


- [View source] + [View source]
@@ -1368,7 +1368,7 @@


- [View source] + [View source]
@@ -1396,7 +1396,7 @@


- [View source] + [View source]
@@ -1412,7 +1412,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Campaign.html b/Mailjet/Campaign.html index 80fa04d..45b9061 100644 --- a/Mailjet/Campaign.html +++ b/Mailjet/Campaign.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/campaign.cr @@ -1412,7 +1412,7 @@


- [View source] + [View source]
@@ -1434,7 +1434,7 @@


- [View source] + [View source]
@@ -1456,7 +1456,7 @@


- [View source] + [View source]
@@ -1481,7 +1481,7 @@


- [View source] + [View source]
@@ -1506,7 +1506,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Campaign/Details.html b/Mailjet/Campaign/Details.html index 50c6af1..1c037c7 100644 --- a/Mailjet/Campaign/Details.html +++ b/Mailjet/Campaign/Details.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/campaign.cr diff --git a/Mailjet/Campaign/FindPath.html b/Mailjet/Campaign/FindPath.html index 93a4856..9a7575e 100644 --- a/Mailjet/Campaign/FindPath.html +++ b/Mailjet/Campaign/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/campaign.cr diff --git a/Mailjet/Campaign/FindResponse.html b/Mailjet/Campaign/FindResponse.html index 1c9abd2..ea07415 100644 --- a/Mailjet/Campaign/FindResponse.html +++ b/Mailjet/Campaign/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/campaign.cr diff --git a/Mailjet/Campaign/ListPath.html b/Mailjet/Campaign/ListPath.html index 334c4d4..a0ac388 100644 --- a/Mailjet/Campaign/ListPath.html +++ b/Mailjet/Campaign/ListPath.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/campaign.cr diff --git a/Mailjet/Campaign/ListResponse.html b/Mailjet/Campaign/ListResponse.html index de3a508..1edbd75 100644 --- a/Mailjet/Campaign/ListResponse.html +++ b/Mailjet/Campaign/ListResponse.html @@ -1228,7 +1228,7 @@

- + mailjet/resources/campaign.cr diff --git a/Mailjet/Campaign/ResponseData.html b/Mailjet/Campaign/ResponseData.html index 7b8baea..46102ec 100644 --- a/Mailjet/Campaign/ResponseData.html +++ b/Mailjet/Campaign/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/campaign.cr diff --git a/Mailjet/Campaign/UpdatePath.html b/Mailjet/Campaign/UpdatePath.html index 349a2e9..cabb574 100644 --- a/Mailjet/Campaign/UpdatePath.html +++ b/Mailjet/Campaign/UpdatePath.html @@ -1214,7 +1214,7 @@

- + mailjet/resources/campaign.cr diff --git a/Mailjet/Campaign/UpdateResponse.html b/Mailjet/Campaign/UpdateResponse.html index 98603c7..f3c39d6 100644 --- a/Mailjet/Campaign/UpdateResponse.html +++ b/Mailjet/Campaign/UpdateResponse.html @@ -1230,7 +1230,7 @@

- + mailjet/resources/campaign.cr diff --git a/Mailjet/Campaigndraft.html b/Mailjet/Campaigndraft.html index 29d0bae..a3420a5 100644 --- a/Mailjet/Campaigndraft.html +++ b/Mailjet/Campaigndraft.html @@ -1213,14 +1213,14 @@

- + mailjet/resources/campaigndraft.cr
- + mailjet/resources/campaigndraft/detailcontent.cr @@ -1426,7 +1426,7 @@


- [View source] + [View source]
@@ -1451,7 +1451,7 @@


- [View source] + [View source]
@@ -1473,7 +1473,7 @@


- [View source] + [View source]
@@ -1495,7 +1495,7 @@


- [View source] + [View source]
@@ -1519,7 +1519,7 @@


- [View source] + [View source]
@@ -1543,7 +1543,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Campaigndraft/CreatePath.html b/Mailjet/Campaigndraft/CreatePath.html index 5cae6b6..19ab47f 100644 --- a/Mailjet/Campaigndraft/CreatePath.html +++ b/Mailjet/Campaigndraft/CreatePath.html @@ -1214,7 +1214,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Campaigndraft/CreateResponse.html b/Mailjet/Campaigndraft/CreateResponse.html index 72ab90b..ee5da11 100644 --- a/Mailjet/Campaigndraft/CreateResponse.html +++ b/Mailjet/Campaigndraft/CreateResponse.html @@ -1230,7 +1230,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Campaigndraft/Detailcontent.html b/Mailjet/Campaigndraft/Detailcontent.html index 3c97d45..c7efdda 100644 --- a/Mailjet/Campaigndraft/Detailcontent.html +++ b/Mailjet/Campaigndraft/Detailcontent.html @@ -1199,7 +1199,7 @@

- + mailjet/resources/campaigndraft/detailcontent.cr @@ -1392,7 +1392,7 @@


- [View source] + [View source]
@@ -1414,7 +1414,7 @@


- [View source] + [View source]
@@ -1436,7 +1436,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Campaigndraft/Detailcontent/FindPath.html b/Mailjet/Campaigndraft/Detailcontent/FindPath.html index d176c10..06c94fc 100644 --- a/Mailjet/Campaigndraft/Detailcontent/FindPath.html +++ b/Mailjet/Campaigndraft/Detailcontent/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/campaigndraft/detailcontent.cr diff --git a/Mailjet/Campaigndraft/Detailcontent/FindResponse.html b/Mailjet/Campaigndraft/Detailcontent/FindResponse.html index 9205492..8484e82 100644 --- a/Mailjet/Campaigndraft/Detailcontent/FindResponse.html +++ b/Mailjet/Campaigndraft/Detailcontent/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/campaigndraft/detailcontent.cr diff --git a/Mailjet/Campaigndraft/Detailcontent/ResponseData.html b/Mailjet/Campaigndraft/Detailcontent/ResponseData.html index 0d0b9e0..e8af499 100644 --- a/Mailjet/Campaigndraft/Detailcontent/ResponseData.html +++ b/Mailjet/Campaigndraft/Detailcontent/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/campaigndraft/detailcontent.cr diff --git a/Mailjet/Campaigndraft/Draft.html b/Mailjet/Campaigndraft/Draft.html index e3abe2b..13f126b 100644 --- a/Mailjet/Campaigndraft/Draft.html +++ b/Mailjet/Campaigndraft/Draft.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Campaigndraft/FindPath.html b/Mailjet/Campaigndraft/FindPath.html index bf27bc3..79514a6 100644 --- a/Mailjet/Campaigndraft/FindPath.html +++ b/Mailjet/Campaigndraft/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Campaigndraft/FindResponse.html b/Mailjet/Campaigndraft/FindResponse.html index 4bf734d..cedd331 100644 --- a/Mailjet/Campaigndraft/FindResponse.html +++ b/Mailjet/Campaigndraft/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Campaigndraft/ListPath.html b/Mailjet/Campaigndraft/ListPath.html index 65b3bce..617fc0e 100644 --- a/Mailjet/Campaigndraft/ListPath.html +++ b/Mailjet/Campaigndraft/ListPath.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Campaigndraft/ListResponse.html b/Mailjet/Campaigndraft/ListResponse.html index cb4417d..c445b71 100644 --- a/Mailjet/Campaigndraft/ListResponse.html +++ b/Mailjet/Campaigndraft/ListResponse.html @@ -1228,7 +1228,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Campaigndraft/ResponseData.html b/Mailjet/Campaigndraft/ResponseData.html index 97dda6e..d876746 100644 --- a/Mailjet/Campaigndraft/ResponseData.html +++ b/Mailjet/Campaigndraft/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Campaigndraft/UpdatePath.html b/Mailjet/Campaigndraft/UpdatePath.html index 14e3305..997cb05 100644 --- a/Mailjet/Campaigndraft/UpdatePath.html +++ b/Mailjet/Campaigndraft/UpdatePath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Campaigndraft/UpdateResponse.html b/Mailjet/Campaigndraft/UpdateResponse.html index ac058e4..4f634fb 100644 --- a/Mailjet/Campaigndraft/UpdateResponse.html +++ b/Mailjet/Campaigndraft/UpdateResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/campaigndraft.cr diff --git a/Mailjet/Client.html b/Mailjet/Client.html index b8e77fb..34c67eb 100644 --- a/Mailjet/Client.html +++ b/Mailjet/Client.html @@ -1199,7 +1199,7 @@

- + mailjet/client.cr @@ -1355,7 +1355,7 @@


- [View source] + [View source]
@@ -1388,7 +1388,7 @@


- [View source] + [View source]
@@ -1418,7 +1418,7 @@


- [View source] + [View source]
@@ -1434,7 +1434,7 @@


- [View source] + [View source]
@@ -1450,7 +1450,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Config.html b/Mailjet/Config.html index 9c3c91b..a2ebc38 100644 --- a/Mailjet/Config.html +++ b/Mailjet/Config.html @@ -1197,7 +1197,7 @@

- + mailjet/config.cr @@ -1340,7 +1340,7 @@


- [View source] + [View source]
@@ -1356,7 +1356,7 @@


- [View source] + [View source]
@@ -1372,7 +1372,7 @@


- [View source] + [View source]
@@ -1388,7 +1388,7 @@


- [View source] + [View source]
@@ -1404,7 +1404,7 @@


- [View source] + [View source]
@@ -1420,7 +1420,7 @@


- [View source] + [View source]
@@ -1436,7 +1436,7 @@


- [View source] + [View source]
@@ -1452,7 +1452,7 @@


- [View source] + [View source]
@@ -1468,7 +1468,7 @@


- [View source] + [View source]
@@ -1484,7 +1484,7 @@


- [View source] + [View source]
@@ -1500,7 +1500,7 @@


- [View source] + [View source]
@@ -1516,7 +1516,7 @@


- [View source] + [View source]
@@ -1532,7 +1532,7 @@


- [View source] + [View source]
@@ -1548,7 +1548,7 @@


- [View source] + [View source]
@@ -1564,7 +1564,7 @@


- [View source] + [View source]
@@ -1580,7 +1580,7 @@


- [View source] + [View source]
@@ -1596,7 +1596,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Contact.html b/Mailjet/Contact.html index e3172e0..07e16ee 100644 --- a/Mailjet/Contact.html +++ b/Mailjet/Contact.html @@ -1212,21 +1212,21 @@

- + mailjet/resources/contact.cr
- + mailjet/resources/contact/list.cr
- + mailjet/resources/contact/managecontactlists.cr @@ -1433,7 +1433,7 @@


- [View source] + [View source]
@@ -1459,7 +1459,7 @@


- [View source] + [View source]
@@ -1481,7 +1481,7 @@


- [View source] + [View source]
@@ -1503,7 +1503,7 @@


- [View source] + [View source]
@@ -1528,7 +1528,7 @@


- [View source] + [View source]
@@ -1553,7 +1553,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Contact/CreatePath.html b/Mailjet/Contact/CreatePath.html index 957ca2f..d3fa236 100644 --- a/Mailjet/Contact/CreatePath.html +++ b/Mailjet/Contact/CreatePath.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contact/CreateResponse.html b/Mailjet/Contact/CreateResponse.html index 23d4a79..3b73eb6 100644 --- a/Mailjet/Contact/CreateResponse.html +++ b/Mailjet/Contact/CreateResponse.html @@ -1231,7 +1231,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contact/Details.html b/Mailjet/Contact/Details.html index 7d9790c..be62e91 100644 --- a/Mailjet/Contact/Details.html +++ b/Mailjet/Contact/Details.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contact/FindPath.html b/Mailjet/Contact/FindPath.html index 92d7724..249fdad 100644 --- a/Mailjet/Contact/FindPath.html +++ b/Mailjet/Contact/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contact/FindResponse.html b/Mailjet/Contact/FindResponse.html index 86af7f6..def07cb 100644 --- a/Mailjet/Contact/FindResponse.html +++ b/Mailjet/Contact/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contact/List.html b/Mailjet/Contact/List.html index 9a0f3d7..b702f4a 100644 --- a/Mailjet/Contact/List.html +++ b/Mailjet/Contact/List.html @@ -1214,7 +1214,7 @@

- + mailjet/resources/contact/list.cr @@ -1392,7 +1392,7 @@


- [View source] + [View source]
@@ -1415,7 +1415,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Contact/List/Details.html b/Mailjet/Contact/List/Details.html index 5515909..ee682c8 100644 --- a/Mailjet/Contact/List/Details.html +++ b/Mailjet/Contact/List/Details.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/contact/list.cr diff --git a/Mailjet/Contact/List/ListPath.html b/Mailjet/Contact/List/ListPath.html index aaf5e7f..a567596 100644 --- a/Mailjet/Contact/List/ListPath.html +++ b/Mailjet/Contact/List/ListPath.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/contact/list.cr diff --git a/Mailjet/Contact/List/ListResponse.html b/Mailjet/Contact/List/ListResponse.html index 3efe2f9..cad2c05 100644 --- a/Mailjet/Contact/List/ListResponse.html +++ b/Mailjet/Contact/List/ListResponse.html @@ -1228,7 +1228,7 @@

- + mailjet/resources/contact/list.cr diff --git a/Mailjet/Contact/List/ResponseData.html b/Mailjet/Contact/List/ResponseData.html index 36299d6..828d26d 100644 --- a/Mailjet/Contact/List/ResponseData.html +++ b/Mailjet/Contact/List/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/contact/list.cr diff --git a/Mailjet/Contact/ListPath.html b/Mailjet/Contact/ListPath.html index 6c40a58..7646fea 100644 --- a/Mailjet/Contact/ListPath.html +++ b/Mailjet/Contact/ListPath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contact/ListResponse.html b/Mailjet/Contact/ListResponse.html index 7a77f7b..cc4c46a 100644 --- a/Mailjet/Contact/ListResponse.html +++ b/Mailjet/Contact/ListResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contact/Managecontactlists.html b/Mailjet/Contact/Managecontactlists.html index c8907dc..136208d 100644 --- a/Mailjet/Contact/Managecontactlists.html +++ b/Mailjet/Contact/Managecontactlists.html @@ -1214,7 +1214,7 @@

- + mailjet/resources/contact/managecontactlists.cr @@ -1390,7 +1390,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Contact/Managecontactlists/ContactList.html b/Mailjet/Contact/Managecontactlists/ContactList.html index f448a10..cfb5e1c 100644 --- a/Mailjet/Contact/Managecontactlists/ContactList.html +++ b/Mailjet/Contact/Managecontactlists/ContactList.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/contact/managecontactlists.cr diff --git a/Mailjet/Contact/Managecontactlists/ContactLists.html b/Mailjet/Contact/Managecontactlists/ContactLists.html index 5888b7d..f0d6c47 100644 --- a/Mailjet/Contact/Managecontactlists/ContactLists.html +++ b/Mailjet/Contact/Managecontactlists/ContactLists.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/contact/managecontactlists.cr diff --git a/Mailjet/Contact/ResponseData.html b/Mailjet/Contact/ResponseData.html index 425d491..c7ef315 100644 --- a/Mailjet/Contact/ResponseData.html +++ b/Mailjet/Contact/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contact/UpdatePath.html b/Mailjet/Contact/UpdatePath.html index 773fbea..6c12acc 100644 --- a/Mailjet/Contact/UpdatePath.html +++ b/Mailjet/Contact/UpdatePath.html @@ -1214,7 +1214,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contact/UpdateResponse.html b/Mailjet/Contact/UpdateResponse.html index 37b4560..c3174ee 100644 --- a/Mailjet/Contact/UpdateResponse.html +++ b/Mailjet/Contact/UpdateResponse.html @@ -1230,7 +1230,7 @@

- + mailjet/resources/contact.cr diff --git a/Mailjet/Contactfilter.html b/Mailjet/Contactfilter.html index 4f18e3f..8415479 100644 --- a/Mailjet/Contactfilter.html +++ b/Mailjet/Contactfilter.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/contactfilter.cr @@ -1428,7 +1428,7 @@


- [View source] + [View source]
@@ -1454,7 +1454,7 @@


- [View source] + [View source]
@@ -1476,7 +1476,7 @@


- [View source] + [View source]
@@ -1498,7 +1498,7 @@


- [View source] + [View source]
@@ -1520,7 +1520,7 @@


- [View source] + [View source]
@@ -1546,7 +1546,7 @@


- [View source] + [View source]
@@ -1572,7 +1572,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Contactfilter/CreatePath.html b/Mailjet/Contactfilter/CreatePath.html index efc9fa0..2423ba2 100644 --- a/Mailjet/Contactfilter/CreatePath.html +++ b/Mailjet/Contactfilter/CreatePath.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/CreateResponse.html b/Mailjet/Contactfilter/CreateResponse.html index 1eef9f6..913093c 100644 --- a/Mailjet/Contactfilter/CreateResponse.html +++ b/Mailjet/Contactfilter/CreateResponse.html @@ -1231,7 +1231,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/DeletePath.html b/Mailjet/Contactfilter/DeletePath.html index 9f733a0..2a0dee9 100644 --- a/Mailjet/Contactfilter/DeletePath.html +++ b/Mailjet/Contactfilter/DeletePath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/Filter.html b/Mailjet/Contactfilter/Filter.html index 86a8be7..09495fb 100644 --- a/Mailjet/Contactfilter/Filter.html +++ b/Mailjet/Contactfilter/Filter.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/FindPath.html b/Mailjet/Contactfilter/FindPath.html index 32a9349..146297a 100644 --- a/Mailjet/Contactfilter/FindPath.html +++ b/Mailjet/Contactfilter/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/FindResponse.html b/Mailjet/Contactfilter/FindResponse.html index dcc4bd5..5cff4ef 100644 --- a/Mailjet/Contactfilter/FindResponse.html +++ b/Mailjet/Contactfilter/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/ListPath.html b/Mailjet/Contactfilter/ListPath.html index 333441e..e1057c5 100644 --- a/Mailjet/Contactfilter/ListPath.html +++ b/Mailjet/Contactfilter/ListPath.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/ListResponse.html b/Mailjet/Contactfilter/ListResponse.html index 3f9c5f4..20c3878 100644 --- a/Mailjet/Contactfilter/ListResponse.html +++ b/Mailjet/Contactfilter/ListResponse.html @@ -1228,7 +1228,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/ResponseData.html b/Mailjet/Contactfilter/ResponseData.html index 93b0af4..c13a269 100644 --- a/Mailjet/Contactfilter/ResponseData.html +++ b/Mailjet/Contactfilter/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/UpdatePath.html b/Mailjet/Contactfilter/UpdatePath.html index 19cc11a..fac7fb5 100644 --- a/Mailjet/Contactfilter/UpdatePath.html +++ b/Mailjet/Contactfilter/UpdatePath.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactfilter/UpdateResponse.html b/Mailjet/Contactfilter/UpdateResponse.html index 308d389..4fca846 100644 --- a/Mailjet/Contactfilter/UpdateResponse.html +++ b/Mailjet/Contactfilter/UpdateResponse.html @@ -1231,7 +1231,7 @@

- + mailjet/resources/contactfilter.cr diff --git a/Mailjet/Contactlist.html b/Mailjet/Contactlist.html index e6a890c..ec8d3c6 100644 --- a/Mailjet/Contactlist.html +++ b/Mailjet/Contactlist.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/contactlist.cr @@ -1426,7 +1426,7 @@


- [View source] + [View source]
@@ -1450,7 +1450,7 @@


- [View source] + [View source]
@@ -1472,7 +1472,7 @@


- [View source] + [View source]
@@ -1494,7 +1494,7 @@


- [View source] + [View source]
@@ -1516,7 +1516,7 @@


- [View source] + [View source]
@@ -1540,7 +1540,7 @@


- [View source] + [View source]
@@ -1564,7 +1564,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Contactlist/CreatePath.html b/Mailjet/Contactlist/CreatePath.html index 218857f..ad392f2 100644 --- a/Mailjet/Contactlist/CreatePath.html +++ b/Mailjet/Contactlist/CreatePath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/CreateResponse.html b/Mailjet/Contactlist/CreateResponse.html index ef22018..5fa33ca 100644 --- a/Mailjet/Contactlist/CreateResponse.html +++ b/Mailjet/Contactlist/CreateResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/DeletePath.html b/Mailjet/Contactlist/DeletePath.html index d09a756..4850aaf 100644 --- a/Mailjet/Contactlist/DeletePath.html +++ b/Mailjet/Contactlist/DeletePath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/Details.html b/Mailjet/Contactlist/Details.html index 5eabe4c..33349ab 100644 --- a/Mailjet/Contactlist/Details.html +++ b/Mailjet/Contactlist/Details.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/FindPath.html b/Mailjet/Contactlist/FindPath.html index 404eeab..4a9b442 100644 --- a/Mailjet/Contactlist/FindPath.html +++ b/Mailjet/Contactlist/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/FindResponse.html b/Mailjet/Contactlist/FindResponse.html index 6231255..58d8fc2 100644 --- a/Mailjet/Contactlist/FindResponse.html +++ b/Mailjet/Contactlist/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/ListPath.html b/Mailjet/Contactlist/ListPath.html index a2b00d2..dac4e8f 100644 --- a/Mailjet/Contactlist/ListPath.html +++ b/Mailjet/Contactlist/ListPath.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/ListResponse.html b/Mailjet/Contactlist/ListResponse.html index 6195832..9128f5e 100644 --- a/Mailjet/Contactlist/ListResponse.html +++ b/Mailjet/Contactlist/ListResponse.html @@ -1228,7 +1228,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/ResponseData.html b/Mailjet/Contactlist/ResponseData.html index bbef288..372de1f 100644 --- a/Mailjet/Contactlist/ResponseData.html +++ b/Mailjet/Contactlist/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/UpdatePath.html b/Mailjet/Contactlist/UpdatePath.html index 58ae5a4..4ede2e9 100644 --- a/Mailjet/Contactlist/UpdatePath.html +++ b/Mailjet/Contactlist/UpdatePath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/Contactlist/UpdateResponse.html b/Mailjet/Contactlist/UpdateResponse.html index 98a465f..c79e8e1 100644 --- a/Mailjet/Contactlist/UpdateResponse.html +++ b/Mailjet/Contactlist/UpdateResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/contactlist.cr diff --git a/Mailjet/DNS.html b/Mailjet/DNS.html index ad08737..507702c 100644 --- a/Mailjet/DNS.html +++ b/Mailjet/DNS.html @@ -1214,14 +1214,14 @@

- + mailjet/resources/dns.cr
- + mailjet/resources/dns/check.cr @@ -1406,7 +1406,7 @@


- [View source] + [View source]
@@ -1428,7 +1428,7 @@


- [View source] + [View source]
@@ -1450,7 +1450,7 @@


- [View source] + [View source]
diff --git a/Mailjet/DNS/Check.html b/Mailjet/DNS/Check.html index 3cb09c9..494078b 100644 --- a/Mailjet/DNS/Check.html +++ b/Mailjet/DNS/Check.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/dns/check.cr @@ -1382,7 +1382,7 @@


- [View source] + [View source]
diff --git a/Mailjet/DNS/Check/Details.html b/Mailjet/DNS/Check/Details.html index 4ea19bc..556d4ba 100644 --- a/Mailjet/DNS/Check/Details.html +++ b/Mailjet/DNS/Check/Details.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/dns/check.cr diff --git a/Mailjet/DNS/Check/ResponseData.html b/Mailjet/DNS/Check/ResponseData.html index 9f916e8..17b0ccc 100644 --- a/Mailjet/DNS/Check/ResponseData.html +++ b/Mailjet/DNS/Check/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/dns/check.cr diff --git a/Mailjet/DNS/FindPath.html b/Mailjet/DNS/FindPath.html index 52303c8..6573788 100644 --- a/Mailjet/DNS/FindPath.html +++ b/Mailjet/DNS/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/dns.cr diff --git a/Mailjet/DNS/FindResponse.html b/Mailjet/DNS/FindResponse.html index 1c900d9..1710c34 100644 --- a/Mailjet/DNS/FindResponse.html +++ b/Mailjet/DNS/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/dns.cr diff --git a/Mailjet/DNS/ListPath.html b/Mailjet/DNS/ListPath.html index e6f9725..205f43a 100644 --- a/Mailjet/DNS/ListPath.html +++ b/Mailjet/DNS/ListPath.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/dns.cr diff --git a/Mailjet/DNS/ListResponse.html b/Mailjet/DNS/ListResponse.html index b4a7d50..d7b217f 100644 --- a/Mailjet/DNS/ListResponse.html +++ b/Mailjet/DNS/ListResponse.html @@ -1228,7 +1228,7 @@

- + mailjet/resources/dns.cr diff --git a/Mailjet/DNS/ResponseData.html b/Mailjet/DNS/ResponseData.html index 463578e..19d72d9 100644 --- a/Mailjet/DNS/ResponseData.html +++ b/Mailjet/DNS/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/dns.cr diff --git a/Mailjet/DNS/Settings.html b/Mailjet/DNS/Settings.html index 545a8e5..3d847e9 100644 --- a/Mailjet/DNS/Settings.html +++ b/Mailjet/DNS/Settings.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/dns.cr diff --git a/Mailjet/Eventcallbackurl.html b/Mailjet/Eventcallbackurl.html index ccb5bcd..29e2f1c 100644 --- a/Mailjet/Eventcallbackurl.html +++ b/Mailjet/Eventcallbackurl.html @@ -1214,7 +1214,7 @@

- + mailjet/resources/eventcallbackurl.cr @@ -1427,7 +1427,7 @@


- [View source] + [View source]
@@ -1455,7 +1455,7 @@


- [View source] + [View source]
@@ -1477,7 +1477,7 @@


- [View source] + [View source]
@@ -1499,7 +1499,7 @@


- [View source] + [View source]
@@ -1521,7 +1521,7 @@


- [View source] + [View source]
@@ -1549,7 +1549,7 @@


- [View source] + [View source]
@@ -1577,7 +1577,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Eventcallbackurl/CreatePath.html b/Mailjet/Eventcallbackurl/CreatePath.html index c4f0ab5..c98b8a9 100644 --- a/Mailjet/Eventcallbackurl/CreatePath.html +++ b/Mailjet/Eventcallbackurl/CreatePath.html @@ -1217,7 +1217,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/CreateResponse.html b/Mailjet/Eventcallbackurl/CreateResponse.html index 1ea5b67..6bd7779 100644 --- a/Mailjet/Eventcallbackurl/CreateResponse.html +++ b/Mailjet/Eventcallbackurl/CreateResponse.html @@ -1233,7 +1233,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/DeletePath.html b/Mailjet/Eventcallbackurl/DeletePath.html index 2a6475b..21d3415 100644 --- a/Mailjet/Eventcallbackurl/DeletePath.html +++ b/Mailjet/Eventcallbackurl/DeletePath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/FindPath.html b/Mailjet/Eventcallbackurl/FindPath.html index 01bb4f2..1d3c3e5 100644 --- a/Mailjet/Eventcallbackurl/FindPath.html +++ b/Mailjet/Eventcallbackurl/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/FindResponse.html b/Mailjet/Eventcallbackurl/FindResponse.html index e6e1444..9bffb17 100644 --- a/Mailjet/Eventcallbackurl/FindResponse.html +++ b/Mailjet/Eventcallbackurl/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/ListPath.html b/Mailjet/Eventcallbackurl/ListPath.html index 1b95cc2..db2ee79 100644 --- a/Mailjet/Eventcallbackurl/ListPath.html +++ b/Mailjet/Eventcallbackurl/ListPath.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/ListResponse.html b/Mailjet/Eventcallbackurl/ListResponse.html index ad9ce15..a664aa9 100644 --- a/Mailjet/Eventcallbackurl/ListResponse.html +++ b/Mailjet/Eventcallbackurl/ListResponse.html @@ -1228,7 +1228,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/ResponseData.html b/Mailjet/Eventcallbackurl/ResponseData.html index 5d7f520..423b26b 100644 --- a/Mailjet/Eventcallbackurl/ResponseData.html +++ b/Mailjet/Eventcallbackurl/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/UpdatePath.html b/Mailjet/Eventcallbackurl/UpdatePath.html index e99e658..c8f6c76 100644 --- a/Mailjet/Eventcallbackurl/UpdatePath.html +++ b/Mailjet/Eventcallbackurl/UpdatePath.html @@ -1217,7 +1217,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/UpdateResponse.html b/Mailjet/Eventcallbackurl/UpdateResponse.html index a41a7ca..cbd196f 100644 --- a/Mailjet/Eventcallbackurl/UpdateResponse.html +++ b/Mailjet/Eventcallbackurl/UpdateResponse.html @@ -1233,7 +1233,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Eventcallbackurl/Webhook.html b/Mailjet/Eventcallbackurl/Webhook.html index 2bd1aad..5324e9c 100644 --- a/Mailjet/Eventcallbackurl/Webhook.html +++ b/Mailjet/Eventcallbackurl/Webhook.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/eventcallbackurl.cr diff --git a/Mailjet/Exception.html b/Mailjet/Exception.html index e029799..1691c80 100644 --- a/Mailjet/Exception.html +++ b/Mailjet/Exception.html @@ -1223,7 +1223,7 @@

- + mailjet/exception.cr diff --git a/Mailjet/Exception/ErrorInfo.html b/Mailjet/Exception/ErrorInfo.html index 76f4970..61fa171 100644 --- a/Mailjet/Exception/ErrorInfo.html +++ b/Mailjet/Exception/ErrorInfo.html @@ -1207,7 +1207,7 @@

- + mailjet/exception.cr diff --git a/Mailjet/Exception/ErrorInfoArray.html b/Mailjet/Exception/ErrorInfoArray.html index 3d52571..bf94c98 100644 --- a/Mailjet/Exception/ErrorInfoArray.html +++ b/Mailjet/Exception/ErrorInfoArray.html @@ -1207,7 +1207,7 @@

- + mailjet/exception.cr diff --git a/Mailjet/InvalidEmailAddressException.html b/Mailjet/InvalidEmailAddressException.html index 69cae81..217942f 100644 --- a/Mailjet/InvalidEmailAddressException.html +++ b/Mailjet/InvalidEmailAddressException.html @@ -1199,7 +1199,7 @@

- + mailjet/exception.cr diff --git a/Mailjet/Json.html b/Mailjet/Json.html index c5c1f9b..761aa2a 100644 --- a/Mailjet/Json.html +++ b/Mailjet/Json.html @@ -1199,14 +1199,14 @@

- + mailjet/json/fields.cr
- + mailjet/json/nilable_time.cr @@ -1323,7 +1323,7 @@


- [View source] + [View source]
@@ -1355,7 +1355,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Json/Fields.html b/Mailjet/Json/Fields.html index 658c981..f29fbad 100644 --- a/Mailjet/Json/Fields.html +++ b/Mailjet/Json/Fields.html @@ -1355,7 +1355,7 @@

- + mailjet/json/fields.cr @@ -1420,7 +1420,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Json/NilableTime.html b/Mailjet/Json/NilableTime.html index 6334be3..0be64f9 100644 --- a/Mailjet/Json/NilableTime.html +++ b/Mailjet/Json/NilableTime.html @@ -1199,7 +1199,7 @@

- + mailjet/json/nilable_time.cr @@ -1338,7 +1338,7 @@


- [View source] + [View source]
@@ -1366,7 +1366,7 @@


- [View source] + [View source]
@@ -1382,7 +1382,7 @@


- [View source] + [View source]
@@ -1412,7 +1412,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Listrecipient.html b/Mailjet/Listrecipient.html index 9d7fe9f..79416f5 100644 --- a/Mailjet/Listrecipient.html +++ b/Mailjet/Listrecipient.html @@ -1218,7 +1218,7 @@

- + mailjet/resources/listrecipient.cr @@ -1435,7 +1435,7 @@


- [View source] + [View source]
@@ -1461,7 +1461,7 @@


- [View source] + [View source]
@@ -1483,7 +1483,7 @@


- [View source] + [View source]
@@ -1505,7 +1505,7 @@


- [View source] + [View source]
@@ -1527,7 +1527,7 @@


- [View source] + [View source]
@@ -1551,7 +1551,7 @@


- [View source] + [View source]
@@ -1575,7 +1575,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Listrecipient/CreatePath.html b/Mailjet/Listrecipient/CreatePath.html index 5da61e6..6c47550 100644 --- a/Mailjet/Listrecipient/CreatePath.html +++ b/Mailjet/Listrecipient/CreatePath.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/CreateResponse.html b/Mailjet/Listrecipient/CreateResponse.html index 3b7a988..6e4fbc3 100644 --- a/Mailjet/Listrecipient/CreateResponse.html +++ b/Mailjet/Listrecipient/CreateResponse.html @@ -1231,7 +1231,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/DeletePath.html b/Mailjet/Listrecipient/DeletePath.html index f617193..fdbdb67 100644 --- a/Mailjet/Listrecipient/DeletePath.html +++ b/Mailjet/Listrecipient/DeletePath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/FindPath.html b/Mailjet/Listrecipient/FindPath.html index ff2c8cd..f1eaca5 100644 --- a/Mailjet/Listrecipient/FindPath.html +++ b/Mailjet/Listrecipient/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/FindResponse.html b/Mailjet/Listrecipient/FindResponse.html index 959e15b..1160e42 100644 --- a/Mailjet/Listrecipient/FindResponse.html +++ b/Mailjet/Listrecipient/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/Join.html b/Mailjet/Listrecipient/Join.html index f5ed179..a1cf239 100644 --- a/Mailjet/Listrecipient/Join.html +++ b/Mailjet/Listrecipient/Join.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/ListPath.html b/Mailjet/Listrecipient/ListPath.html index bac7703..471c5bc 100644 --- a/Mailjet/Listrecipient/ListPath.html +++ b/Mailjet/Listrecipient/ListPath.html @@ -1216,7 +1216,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/ListResponse.html b/Mailjet/Listrecipient/ListResponse.html index 997be23..6ec4dbb 100644 --- a/Mailjet/Listrecipient/ListResponse.html +++ b/Mailjet/Listrecipient/ListResponse.html @@ -1232,7 +1232,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/ResponseData.html b/Mailjet/Listrecipient/ResponseData.html index 1948874..3b61061 100644 --- a/Mailjet/Listrecipient/ResponseData.html +++ b/Mailjet/Listrecipient/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/UpdatePath.html b/Mailjet/Listrecipient/UpdatePath.html index 70ab406..0a27098 100644 --- a/Mailjet/Listrecipient/UpdatePath.html +++ b/Mailjet/Listrecipient/UpdatePath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Listrecipient/UpdateResponse.html b/Mailjet/Listrecipient/UpdateResponse.html index 2c22a95..33edb90 100644 --- a/Mailjet/Listrecipient/UpdateResponse.html +++ b/Mailjet/Listrecipient/UpdateResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/listrecipient.cr diff --git a/Mailjet/Message.html b/Mailjet/Message.html index bbc2edc..eaa310c 100644 --- a/Mailjet/Message.html +++ b/Mailjet/Message.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/message.cr @@ -1399,7 +1399,7 @@


- [View source] + [View source]
@@ -1421,7 +1421,7 @@


- [View source] + [View source]
@@ -1443,7 +1443,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Message/Details.html b/Mailjet/Message/Details.html index 152ab83..3eff529 100644 --- a/Mailjet/Message/Details.html +++ b/Mailjet/Message/Details.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/message.cr diff --git a/Mailjet/Message/FindPath.html b/Mailjet/Message/FindPath.html index 214fc8d..f48b595 100644 --- a/Mailjet/Message/FindPath.html +++ b/Mailjet/Message/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/message.cr diff --git a/Mailjet/Message/FindResponse.html b/Mailjet/Message/FindResponse.html index fba2d74..b4197b3 100644 --- a/Mailjet/Message/FindResponse.html +++ b/Mailjet/Message/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/message.cr diff --git a/Mailjet/Message/ListPath.html b/Mailjet/Message/ListPath.html index b586f08..3dbb9de 100644 --- a/Mailjet/Message/ListPath.html +++ b/Mailjet/Message/ListPath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/message.cr diff --git a/Mailjet/Message/ListResponse.html b/Mailjet/Message/ListResponse.html index c37ae23..ee76032 100644 --- a/Mailjet/Message/ListResponse.html +++ b/Mailjet/Message/ListResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/message.cr diff --git a/Mailjet/Message/ResponseData.html b/Mailjet/Message/ResponseData.html index a55e671..11f1ecd 100644 --- a/Mailjet/Message/ResponseData.html +++ b/Mailjet/Message/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/message.cr diff --git a/Mailjet/Messagehistory.html b/Mailjet/Messagehistory.html index 8d8cbaf..4559df7 100644 --- a/Mailjet/Messagehistory.html +++ b/Mailjet/Messagehistory.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/messagehistory.cr @@ -1391,7 +1391,7 @@


- [View source] + [View source]
@@ -1416,7 +1416,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Messagehistory/Event.html b/Mailjet/Messagehistory/Event.html index fdfc924..0fb882c 100644 --- a/Mailjet/Messagehistory/Event.html +++ b/Mailjet/Messagehistory/Event.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/messagehistory.cr diff --git a/Mailjet/Messagehistory/ListPath.html b/Mailjet/Messagehistory/ListPath.html index 7c4b46b..e1ca2db 100644 --- a/Mailjet/Messagehistory/ListPath.html +++ b/Mailjet/Messagehistory/ListPath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/messagehistory.cr diff --git a/Mailjet/Messagehistory/ListResponse.html b/Mailjet/Messagehistory/ListResponse.html index d6e14f4..12110f4 100644 --- a/Mailjet/Messagehistory/ListResponse.html +++ b/Mailjet/Messagehistory/ListResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/messagehistory.cr diff --git a/Mailjet/Messagehistory/ResponseData.html b/Mailjet/Messagehistory/ResponseData.html index 5c216e6..655c033 100644 --- a/Mailjet/Messagehistory/ResponseData.html +++ b/Mailjet/Messagehistory/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/messagehistory.cr diff --git a/Mailjet/Messageinformation.html b/Mailjet/Messageinformation.html index f0fb60a..fafa3c5 100644 --- a/Mailjet/Messageinformation.html +++ b/Mailjet/Messageinformation.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/messageinformation.cr @@ -1401,7 +1401,7 @@


- [View source] + [View source]
@@ -1425,7 +1425,7 @@


- [View source] + [View source]
@@ -1449,7 +1449,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Messageinformation/FindPath.html b/Mailjet/Messageinformation/FindPath.html index f6b589b..438fb80 100644 --- a/Mailjet/Messageinformation/FindPath.html +++ b/Mailjet/Messageinformation/FindPath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/messageinformation.cr diff --git a/Mailjet/Messageinformation/FindResponse.html b/Mailjet/Messageinformation/FindResponse.html index 01cb93c..1b2b7cd 100644 --- a/Mailjet/Messageinformation/FindResponse.html +++ b/Mailjet/Messageinformation/FindResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/messageinformation.cr diff --git a/Mailjet/Messageinformation/Info.html b/Mailjet/Messageinformation/Info.html index aa99a9a..720b773 100644 --- a/Mailjet/Messageinformation/Info.html +++ b/Mailjet/Messageinformation/Info.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/messageinformation.cr diff --git a/Mailjet/Messageinformation/ListPath.html b/Mailjet/Messageinformation/ListPath.html index cef0c5b..60d3757 100644 --- a/Mailjet/Messageinformation/ListPath.html +++ b/Mailjet/Messageinformation/ListPath.html @@ -1216,7 +1216,7 @@

- + mailjet/resources/messageinformation.cr diff --git a/Mailjet/Messageinformation/ListResponse.html b/Mailjet/Messageinformation/ListResponse.html index 72bedd7..2ec6865 100644 --- a/Mailjet/Messageinformation/ListResponse.html +++ b/Mailjet/Messageinformation/ListResponse.html @@ -1232,7 +1232,7 @@

- + mailjet/resources/messageinformation.cr diff --git a/Mailjet/Messageinformation/ResponseData.html b/Mailjet/Messageinformation/ResponseData.html index ab88468..3540973 100644 --- a/Mailjet/Messageinformation/ResponseData.html +++ b/Mailjet/Messageinformation/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/messageinformation.cr diff --git a/Mailjet/Metasender.html b/Mailjet/Metasender.html index 2479b8b..3076591 100644 --- a/Mailjet/Metasender.html +++ b/Mailjet/Metasender.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/metasender.cr @@ -1419,7 +1419,7 @@


- [View source] + [View source]
@@ -1444,7 +1444,7 @@


- [View source] + [View source]
@@ -1466,7 +1466,7 @@


- [View source] + [View source]
@@ -1488,7 +1488,7 @@


- [View source] + [View source]
@@ -1512,7 +1512,7 @@


- [View source] + [View source]
@@ -1536,7 +1536,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Metasender/CreatePath.html b/Mailjet/Metasender/CreatePath.html index 3a4daa1..caec0fa 100644 --- a/Mailjet/Metasender/CreatePath.html +++ b/Mailjet/Metasender/CreatePath.html @@ -1214,7 +1214,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/Metasender/CreateResponse.html b/Mailjet/Metasender/CreateResponse.html index 97ff401..d7e0ced 100644 --- a/Mailjet/Metasender/CreateResponse.html +++ b/Mailjet/Metasender/CreateResponse.html @@ -1230,7 +1230,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/Metasender/Details.html b/Mailjet/Metasender/Details.html index 9d17bbf..75e439a 100644 --- a/Mailjet/Metasender/Details.html +++ b/Mailjet/Metasender/Details.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/Metasender/FindPath.html b/Mailjet/Metasender/FindPath.html index d3704f7..6cda533 100644 --- a/Mailjet/Metasender/FindPath.html +++ b/Mailjet/Metasender/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/Metasender/FindResponse.html b/Mailjet/Metasender/FindResponse.html index 8970093..aecfc3b 100644 --- a/Mailjet/Metasender/FindResponse.html +++ b/Mailjet/Metasender/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/Metasender/ListPath.html b/Mailjet/Metasender/ListPath.html index ea42cf3..83add77 100644 --- a/Mailjet/Metasender/ListPath.html +++ b/Mailjet/Metasender/ListPath.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/Metasender/ListResponse.html b/Mailjet/Metasender/ListResponse.html index ecafd39..6748ea4 100644 --- a/Mailjet/Metasender/ListResponse.html +++ b/Mailjet/Metasender/ListResponse.html @@ -1228,7 +1228,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/Metasender/ResponseData.html b/Mailjet/Metasender/ResponseData.html index c14aba3..8c70189 100644 --- a/Mailjet/Metasender/ResponseData.html +++ b/Mailjet/Metasender/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/Metasender/UpdatePath.html b/Mailjet/Metasender/UpdatePath.html index e130670..b0adb4b 100644 --- a/Mailjet/Metasender/UpdatePath.html +++ b/Mailjet/Metasender/UpdatePath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/Metasender/UpdateResponse.html b/Mailjet/Metasender/UpdateResponse.html index f802427..5227d2f 100644 --- a/Mailjet/Metasender/UpdateResponse.html +++ b/Mailjet/Metasender/UpdateResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/metasender.cr diff --git a/Mailjet/MethodNotAllowedException.html b/Mailjet/MethodNotAllowedException.html index 253a991..baaf55d 100644 --- a/Mailjet/MethodNotAllowedException.html +++ b/Mailjet/MethodNotAllowedException.html @@ -1199,7 +1199,7 @@

- + mailjet/exception.cr diff --git a/Mailjet/MissingApiCredentialsException.html b/Mailjet/MissingApiCredentialsException.html index dee41a8..5700aaf 100644 --- a/Mailjet/MissingApiCredentialsException.html +++ b/Mailjet/MissingApiCredentialsException.html @@ -1199,7 +1199,7 @@

- + mailjet/exception.cr diff --git a/Mailjet/ParamsMissingException.html b/Mailjet/ParamsMissingException.html index 9e9145a..393e416 100644 --- a/Mailjet/ParamsMissingException.html +++ b/Mailjet/ParamsMissingException.html @@ -1199,7 +1199,7 @@

- + mailjet/exception.cr diff --git a/Mailjet/Path.html b/Mailjet/Path.html index fd5800b..70830b6 100644 --- a/Mailjet/Path.html +++ b/Mailjet/Path.html @@ -1325,7 +1325,7 @@

- + mailjet/path.cr @@ -1454,7 +1454,7 @@


- [View source] + [View source]
@@ -1486,7 +1486,7 @@


- [View source] + [View source]
@@ -1502,7 +1502,7 @@


- [View source] + [View source]
@@ -1531,7 +1531,7 @@


- [View source] + [View source]
diff --git a/Mailjet/RequestException.html b/Mailjet/RequestException.html index abd25d8..45688bd 100644 --- a/Mailjet/RequestException.html +++ b/Mailjet/RequestException.html @@ -1234,7 +1234,7 @@

- + mailjet/exception.cr @@ -1406,7 +1406,7 @@


- [View source] + [View source]
@@ -1438,7 +1438,7 @@


- [View source] + [View source]
@@ -1454,7 +1454,7 @@


- [View source] + [View source]
@@ -1470,7 +1470,7 @@


- [View source] + [View source]
@@ -1486,7 +1486,7 @@


- [View source] + [View source]
@@ -1502,7 +1502,7 @@


- [View source] + [View source]
@@ -1518,7 +1518,7 @@


- [View source] + [View source]
@@ -1534,7 +1534,7 @@


- [View source] + [View source]
@@ -1550,7 +1550,7 @@


- [View source] + [View source]
@@ -1579,7 +1579,7 @@


- [View source] + [View source]
diff --git a/Mailjet/RequestTimeoutException.html b/Mailjet/RequestTimeoutException.html index 4c43a09..31c93b1 100644 --- a/Mailjet/RequestTimeoutException.html +++ b/Mailjet/RequestTimeoutException.html @@ -1199,7 +1199,7 @@

- + mailjet/exception.cr diff --git a/Mailjet/Resource.html b/Mailjet/Resource.html index df9bd49..35dd712 100644 --- a/Mailjet/Resource.html +++ b/Mailjet/Resource.html @@ -1255,7 +1255,7 @@

- + mailjet/resource.cr @@ -1409,7 +1409,7 @@


- [View source] + [View source]
@@ -1439,7 +1439,7 @@


- [View source] + [View source]
@@ -1455,7 +1455,7 @@


- [View source] + [View source]
@@ -1471,7 +1471,7 @@


- [View source] + [View source]
@@ -1487,7 +1487,7 @@


- [View source] + [View source]
@@ -1503,7 +1503,7 @@


- [View source] + [View source]
@@ -1531,7 +1531,7 @@


- [View source] + [View source]
diff --git a/Mailjet/ResourceId.html b/Mailjet/ResourceId.html index bbb3d63..be2bd1c 100644 --- a/Mailjet/ResourceId.html +++ b/Mailjet/ResourceId.html @@ -1207,7 +1207,7 @@

- + mailjet/alias.cr diff --git a/Mailjet/ResourceNotFoundException.html b/Mailjet/ResourceNotFoundException.html index b4c07b3..ebe7b87 100644 --- a/Mailjet/ResourceNotFoundException.html +++ b/Mailjet/ResourceNotFoundException.html @@ -1199,7 +1199,7 @@

- + mailjet/exception.cr diff --git a/Mailjet/Send.html b/Mailjet/Send.html index 8cbafaf..9ccf233 100644 --- a/Mailjet/Send.html +++ b/Mailjet/Send.html @@ -1230,7 +1230,7 @@

- + mailjet/resources/send.cr @@ -1402,7 +1402,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Send/DeliveryError.html b/Mailjet/Send/DeliveryError.html index 4775fdd..74b2a61 100644 --- a/Mailjet/Send/DeliveryError.html +++ b/Mailjet/Send/DeliveryError.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/send.cr diff --git a/Mailjet/Send/DeliveryReceipt.html b/Mailjet/Send/DeliveryReceipt.html index beeb284..9ac8216 100644 --- a/Mailjet/Send/DeliveryReceipt.html +++ b/Mailjet/Send/DeliveryReceipt.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/send.cr diff --git a/Mailjet/Send/ResponseMessage.html b/Mailjet/Send/ResponseMessage.html index e9136b0..eaff1a9 100644 --- a/Mailjet/Send/ResponseMessage.html +++ b/Mailjet/Send/ResponseMessage.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/send.cr diff --git a/Mailjet/Send/SentMessage.html b/Mailjet/Send/SentMessage.html index 05ece62..c6c6a76 100644 --- a/Mailjet/Send/SentMessage.html +++ b/Mailjet/Send/SentMessage.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/send.cr diff --git a/Mailjet/SendV3.html b/Mailjet/SendV3.html index 0b733f2..8e59ec2 100644 --- a/Mailjet/SendV3.html +++ b/Mailjet/SendV3.html @@ -1199,7 +1199,7 @@

- + mailjet/resources/send.cr @@ -1395,7 +1395,7 @@


- [View source] + [View source]
diff --git a/Mailjet/SendV3_1.html b/Mailjet/SendV3_1.html index 601f447..5ddc4a8 100644 --- a/Mailjet/SendV3_1.html +++ b/Mailjet/SendV3_1.html @@ -1199,7 +1199,7 @@

- + mailjet/resources/send.cr @@ -1395,7 +1395,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Sender.html b/Mailjet/Sender.html index c71bf89..c29bb4e 100644 --- a/Mailjet/Sender.html +++ b/Mailjet/Sender.html @@ -1212,14 +1212,14 @@

- + mailjet/resources/sender.cr
- + mailjet/resources/sender/validate.cr @@ -1433,7 +1433,7 @@


- [View source] + [View source]
@@ -1460,7 +1460,7 @@


- [View source] + [View source]
@@ -1482,7 +1482,7 @@


- [View source] + [View source]
@@ -1504,7 +1504,7 @@


- [View source] + [View source]
@@ -1526,7 +1526,7 @@


- [View source] + [View source]
@@ -1553,7 +1553,7 @@


- [View source] + [View source]
@@ -1580,7 +1580,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Sender/Address.html b/Mailjet/Sender/Address.html index 0249ad0..7627f99 100644 --- a/Mailjet/Sender/Address.html +++ b/Mailjet/Sender/Address.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/CreatePath.html b/Mailjet/Sender/CreatePath.html index 982e40d..acfb5a2 100644 --- a/Mailjet/Sender/CreatePath.html +++ b/Mailjet/Sender/CreatePath.html @@ -1216,7 +1216,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/CreateResponse.html b/Mailjet/Sender/CreateResponse.html index 1369112..7cd0533 100644 --- a/Mailjet/Sender/CreateResponse.html +++ b/Mailjet/Sender/CreateResponse.html @@ -1232,7 +1232,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/DeletePath.html b/Mailjet/Sender/DeletePath.html index ff211f2..2ab8721 100644 --- a/Mailjet/Sender/DeletePath.html +++ b/Mailjet/Sender/DeletePath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/FindPath.html b/Mailjet/Sender/FindPath.html index e3a73a0..3344d7f 100644 --- a/Mailjet/Sender/FindPath.html +++ b/Mailjet/Sender/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/FindResponse.html b/Mailjet/Sender/FindResponse.html index 959d277..8d1c86e 100644 --- a/Mailjet/Sender/FindResponse.html +++ b/Mailjet/Sender/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/ListPath.html b/Mailjet/Sender/ListPath.html index 4cf5582..ef0a2f3 100644 --- a/Mailjet/Sender/ListPath.html +++ b/Mailjet/Sender/ListPath.html @@ -1213,7 +1213,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/ListResponse.html b/Mailjet/Sender/ListResponse.html index 302f0b2..5646156 100644 --- a/Mailjet/Sender/ListResponse.html +++ b/Mailjet/Sender/ListResponse.html @@ -1229,7 +1229,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/ResponseData.html b/Mailjet/Sender/ResponseData.html index 4be9ac7..b8d8c6a 100644 --- a/Mailjet/Sender/ResponseData.html +++ b/Mailjet/Sender/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/UpdatePath.html b/Mailjet/Sender/UpdatePath.html index ae957ce..9ef4f75 100644 --- a/Mailjet/Sender/UpdatePath.html +++ b/Mailjet/Sender/UpdatePath.html @@ -1216,7 +1216,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/UpdateResponse.html b/Mailjet/Sender/UpdateResponse.html index 60f7c62..121b154 100644 --- a/Mailjet/Sender/UpdateResponse.html +++ b/Mailjet/Sender/UpdateResponse.html @@ -1232,7 +1232,7 @@

- + mailjet/resources/sender.cr diff --git a/Mailjet/Sender/Validate.html b/Mailjet/Sender/Validate.html index 1b5c7d4..aaf7ade 100644 --- a/Mailjet/Sender/Validate.html +++ b/Mailjet/Sender/Validate.html @@ -1214,7 +1214,7 @@

- + mailjet/resources/sender/validate.cr @@ -1389,7 +1389,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Statcounters.html b/Mailjet/Statcounters.html index d738719..d7f5e16 100644 --- a/Mailjet/Statcounters.html +++ b/Mailjet/Statcounters.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/statcounters.cr @@ -1415,7 +1415,7 @@


- [View source] + [View source]
@@ -1443,7 +1443,7 @@


- [View source] + [View source]
@@ -1471,7 +1471,7 @@


- [View source] + [View source]
@@ -1494,7 +1494,7 @@


- [View source] + [View source]
@@ -1519,7 +1519,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Statcounters/Counters.html b/Mailjet/Statcounters/Counters.html index bfc706d..45c3ee0 100644 --- a/Mailjet/Statcounters/Counters.html +++ b/Mailjet/Statcounters/Counters.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/statcounters.cr diff --git a/Mailjet/Statcounters/ListPath.html b/Mailjet/Statcounters/ListPath.html index 35226f2..e921986 100644 --- a/Mailjet/Statcounters/ListPath.html +++ b/Mailjet/Statcounters/ListPath.html @@ -1216,7 +1216,7 @@

- + mailjet/resources/statcounters.cr diff --git a/Mailjet/Statcounters/ListResponse.html b/Mailjet/Statcounters/ListResponse.html index 6cd825e..840e878 100644 --- a/Mailjet/Statcounters/ListResponse.html +++ b/Mailjet/Statcounters/ListResponse.html @@ -1232,7 +1232,7 @@

- + mailjet/resources/statcounters.cr diff --git a/Mailjet/Statcounters/ResponseData.html b/Mailjet/Statcounters/ResponseData.html index 0588269..b1b1fbf 100644 --- a/Mailjet/Statcounters/ResponseData.html +++ b/Mailjet/Statcounters/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/statcounters.cr diff --git a/Mailjet/Template.html b/Mailjet/Template.html index 08c0810..f9d540d 100644 --- a/Mailjet/Template.html +++ b/Mailjet/Template.html @@ -1214,14 +1214,14 @@

- + mailjet/resources/template.cr
- + mailjet/resources/template/detailcontent.cr @@ -1434,7 +1434,7 @@


- [View source] + [View source]
@@ -1464,7 +1464,7 @@


- [View source] + [View source]
@@ -1486,7 +1486,7 @@


- [View source] + [View source]
@@ -1508,7 +1508,7 @@


- [View source] + [View source]
@@ -1530,7 +1530,7 @@


- [View source] + [View source]
@@ -1560,7 +1560,7 @@


- [View source] + [View source]
@@ -1590,7 +1590,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Template/CreatePath.html b/Mailjet/Template/CreatePath.html index 2435d9b..3f1b28c 100644 --- a/Mailjet/Template/CreatePath.html +++ b/Mailjet/Template/CreatePath.html @@ -1219,7 +1219,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/CreateResponse.html b/Mailjet/Template/CreateResponse.html index f4ca326..43a8be9 100644 --- a/Mailjet/Template/CreateResponse.html +++ b/Mailjet/Template/CreateResponse.html @@ -1235,7 +1235,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/DeletePath.html b/Mailjet/Template/DeletePath.html index d659941..4d0736e 100644 --- a/Mailjet/Template/DeletePath.html +++ b/Mailjet/Template/DeletePath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/Detailcontent.html b/Mailjet/Template/Detailcontent.html index c1204be..a69c04e 100644 --- a/Mailjet/Template/Detailcontent.html +++ b/Mailjet/Template/Detailcontent.html @@ -1199,7 +1199,7 @@

- + mailjet/resources/template/detailcontent.cr @@ -1405,7 +1405,7 @@


- [View source] + [View source]
@@ -1427,7 +1427,7 @@


- [View source] + [View source]
@@ -1449,7 +1449,7 @@


- [View source] + [View source]
@@ -1479,7 +1479,7 @@


- [View source] + [View source]
@@ -1509,7 +1509,7 @@


- [View source] + [View source]
diff --git a/Mailjet/Template/Detailcontent/FindPath.html b/Mailjet/Template/Detailcontent/FindPath.html index 4e651dd..7db1ef0 100644 --- a/Mailjet/Template/Detailcontent/FindPath.html +++ b/Mailjet/Template/Detailcontent/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/template/detailcontent.cr diff --git a/Mailjet/Template/Detailcontent/FindResponse.html b/Mailjet/Template/Detailcontent/FindResponse.html index 1bf84f2..cb1fd97 100644 --- a/Mailjet/Template/Detailcontent/FindResponse.html +++ b/Mailjet/Template/Detailcontent/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/template/detailcontent.cr diff --git a/Mailjet/Template/Detailcontent/ResponseData.html b/Mailjet/Template/Detailcontent/ResponseData.html index 3adb423..21d6eab 100644 --- a/Mailjet/Template/Detailcontent/ResponseData.html +++ b/Mailjet/Template/Detailcontent/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/template/detailcontent.cr diff --git a/Mailjet/Template/Detailcontent/UpdatePath.html b/Mailjet/Template/Detailcontent/UpdatePath.html index 61c4890..a161ba4 100644 --- a/Mailjet/Template/Detailcontent/UpdatePath.html +++ b/Mailjet/Template/Detailcontent/UpdatePath.html @@ -1219,7 +1219,7 @@

- + mailjet/resources/template/detailcontent.cr diff --git a/Mailjet/Template/Detailcontent/UpdateResponse.html b/Mailjet/Template/Detailcontent/UpdateResponse.html index db6198b..3abe5fa 100644 --- a/Mailjet/Template/Detailcontent/UpdateResponse.html +++ b/Mailjet/Template/Detailcontent/UpdateResponse.html @@ -1235,7 +1235,7 @@

- + mailjet/resources/template/detailcontent.cr diff --git a/Mailjet/Template/Details.html b/Mailjet/Template/Details.html index 3766d0f..bbfb147 100644 --- a/Mailjet/Template/Details.html +++ b/Mailjet/Template/Details.html @@ -1215,7 +1215,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/FindPath.html b/Mailjet/Template/FindPath.html index 4a5430f..82cbc2f 100644 --- a/Mailjet/Template/FindPath.html +++ b/Mailjet/Template/FindPath.html @@ -1211,7 +1211,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/FindResponse.html b/Mailjet/Template/FindResponse.html index 26afa33..a75277c 100644 --- a/Mailjet/Template/FindResponse.html +++ b/Mailjet/Template/FindResponse.html @@ -1227,7 +1227,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/ListPath.html b/Mailjet/Template/ListPath.html index f4f6068..61dce76 100644 --- a/Mailjet/Template/ListPath.html +++ b/Mailjet/Template/ListPath.html @@ -1212,7 +1212,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/ListResponse.html b/Mailjet/Template/ListResponse.html index 0344cc1..6d02d5a 100644 --- a/Mailjet/Template/ListResponse.html +++ b/Mailjet/Template/ListResponse.html @@ -1228,7 +1228,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/ResponseData.html b/Mailjet/Template/ResponseData.html index 88caa66..ada9522 100644 --- a/Mailjet/Template/ResponseData.html +++ b/Mailjet/Template/ResponseData.html @@ -1207,7 +1207,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/UpdatePath.html b/Mailjet/Template/UpdatePath.html index 7fd169f..65f4da1 100644 --- a/Mailjet/Template/UpdatePath.html +++ b/Mailjet/Template/UpdatePath.html @@ -1219,7 +1219,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Template/UpdateResponse.html b/Mailjet/Template/UpdateResponse.html index 729a01f..9d02574 100644 --- a/Mailjet/Template/UpdateResponse.html +++ b/Mailjet/Template/UpdateResponse.html @@ -1235,7 +1235,7 @@

- + mailjet/resources/template.cr diff --git a/Mailjet/Utilities.html b/Mailjet/Utilities.html index 61d1b5c..0c06804 100644 --- a/Mailjet/Utilities.html +++ b/Mailjet/Utilities.html @@ -1199,7 +1199,7 @@

- + mailjet/utilities.cr @@ -1353,7 +1353,7 @@


- [View source] + [View source]
@@ -1381,7 +1381,7 @@


- [View source] + [View source]
@@ -1397,7 +1397,7 @@


- [View source] + [View source]
@@ -1413,7 +1413,7 @@


- [View source] + [View source]
@@ -1429,7 +1429,7 @@


- [View source] + [View source]
@@ -1445,7 +1445,7 @@


- [View source] + [View source]
@@ -1475,7 +1475,7 @@


- [View source] + [View source]
diff --git a/index.html b/index.html index b684c04..9dd6a91 100644 --- a/index.html +++ b/index.html @@ -1316,9 +1316,9 @@

Contributing

    -
  1. Fork it (https://github.com/wout/mailjet/fork)
  2. +
  3. Fork it (https://github.com/wout/mailjet.cr/fork)
  4. Create your feature branch (git checkout -b my-new-feature)
  5. -
  6. Commit your changes (git commit -am 'Add some feature')
  7. +
  8. Commit your changes (git commit -am 'feat: add some feature')
  9. Push to the branch (git push origin my-new-feature)
  10. Create a new Pull Request
diff --git a/index.json b/index.json index edc2b91..4cf6a86 100644 --- a/index.json +++ b/index.json @@ -1 +1 @@ -{"repository_name":"mailjet","body":"# Mailjet API client for Crystal\n\nMailjet is an email platform for teams to send transactional & marketing emails.\nIt is a GDPR compliant and ISO 27001 certified Email Service Provider.\n\n![GitHub](https://img.shields.io/github/license/wout/mollie.cr)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/wout/mailjet.cr)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/wout/mailjet.cr/ci.yml?branch=master)\n\n## Disclaimer\n\nThis is the unofficial [Crystal](https://crystal-lang.org/) shard for Mailjet.\nThe majority of the API is covered, but some parts still need to be added.\n\n## Requirements\n\nTo use the Mailjet API client, you will need a free\n[Mailjet account](https://app.mailjet.com/signup).\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n```yaml\ndependencies:\n mailjet:\n github: wout/mailjet.cr\n```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"mailjet\"\n```\n\n### Send your first email\n\n```crystal\nresponse = Mailjet::SendV3_1.message({\n \"From\": {\n \"Email\": \"from@email.com\",\n \"Name\": \"Me\",\n },\n \"To\": [\n {\n \"Email\": \"to@email.com\",\n \"Name\": \"You\",\n },\n ],\n \"Subject\": \"My first Mailjet Email!\",\n \"TextPart\": \"Greetings from Mailjet!\",\n \"HTMLPart\": <<-HTML\n

\n Dear passenger 1, welcome to\n Mailjet!\n

\n
\n May the delivery force be with you!\n HTML\n})\n\nputs response.status\n# => \"success\"\n```\n\n### Send multiple messages\n\n```crystal\nresponse = Mailjet::SendV3_1.messages([\n {...},\n {...}\n])\n\nputs response.first.status\n# => \"success\"\n```\n\n### Retrieve sent messages\n\nNow, let’s view the status of the sent message and its configuration specifics.\n\n```crystal\nmessage = Mailjet::Message.find(576460754655154659)\nputs message.status\n# => \"opened\"\n```\n\n### View message history\n\nYou can track important events linked to the sent emails, for example whether\nthe recipient opened the message, or clicked on a link within.\n\n```crystal\nevents = Mailjet::Messagehistory.all(576460754655154659)\nputs events.first.event_type\n# => \"sent\"\nputs events.last.event_type\n# => \"opened\"\n```\n\n### Retrieve Statistics\n\nThe Mailjet API also has a variety of resources that help retrieve aggregated\nstatistics for key performance indicators like opens, clicks, unsubscribes, etc.\n\nLet's take a look at just one of those resources to give you a sample of the\ndata you can read - we’ll retrieve total aggregated statistics for your API key.\n\n```crystal\ncounters = Mailjet::Statcounters.by_api_key({\n counter_timing: \"event\",\n counter_resolution: \"hour\",\n from_ts: Time.local.at_beginning_of_day.to_unix,\n to_ts: Time.local.to_unix,\n})\nputs counters.first.event_opened_count\n# => 28\n```\n\n## Documentation\n\n- [Shard API Docs](https://wout.github.io/mailjet.cr/)\n\n## To-do\n\nMost of the API is covered, but the following endpoints are not:\n\n- [ ] All Message Events\n- [ ] Bulk contact management and CSV import\n- [ ] Parse\n- [ ] Settings\n- [ ] SMS\n- [ ] Statistics (only statcounters is done)\n- [ ] Webhook\n\n## Contributing\n\n1. Fork it ()\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [wout](https://github.com/wout) - creator and maintainer\n","program":{"html_id":"mailjet/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"locations":[],"repository_name":"mailjet","program":true,"enum":false,"alias":false,"const":false,"types":[{"html_id":"mailjet/Mailjet","path":"Mailjet.html","kind":"struct","full_name":"Mailjet","name":"Mailjet","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet.cr#L11"},{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/alias.cr#L1"},{"filename":"src/mailjet/client.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L1"},{"filename":"src/mailjet/config.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L1"},{"filename":"src/mailjet/elements/address.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L1"},{"filename":"src/mailjet/elements/address_list.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L1"},{"filename":"src/mailjet/exception.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L1"},{"filename":"src/mailjet/json/fields.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L1"},{"filename":"src/mailjet/json/nilable_time.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L1"},{"filename":"src/mailjet/path.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L1"},{"filename":"src/mailjet/resource.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L1"},{"filename":"src/mailjet/resources/campaign.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L1"},{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L1"},{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L3"},{"filename":"src/mailjet/resources/contact.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L1"},{"filename":"src/mailjet/resources/contact/list.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L1"},{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L1"},{"filename":"src/mailjet/resources/contactfilter.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L1"},{"filename":"src/mailjet/resources/contactlist.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L1"},{"filename":"src/mailjet/resources/dns.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L1"},{"filename":"src/mailjet/resources/dns/check.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L1"},{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L1"},{"filename":"src/mailjet/resources/listrecipient.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L1"},{"filename":"src/mailjet/resources/message.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L1"},{"filename":"src/mailjet/resources/messagehistory.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L1"},{"filename":"src/mailjet/resources/messageinformation.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L1"},{"filename":"src/mailjet/resources/metasender.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L1"},{"filename":"src/mailjet/resources/send.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L1"},{"filename":"src/mailjet/resources/sender.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L1"},{"filename":"src/mailjet/resources/sender/validate.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender/validate.cr#L1"},{"filename":"src/mailjet/resources/statcounters.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L1"},{"filename":"src/mailjet/resources/template.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L1"},{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L1"},{"filename":"src/mailjet/utilities.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L1"},{"filename":"src/mailjet/version.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/version.cr#L1"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"VERSION","name":"VERSION","value":"{{ (`shards version \\\"/home/runner/work/mailjet.cr/mailjet.cr/src/mailjet\\\"`).chomp.stringify }}"}],"class_methods":[{"html_id":"configure(&)-class-method","name":"configure","abstract":false,"location":{"filename":"src/mailjet.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet.cr#L12"},"def":{"name":"configure","yields":1,"block_arity":1,"visibility":"Public","body":"yield(Mailjet::Config)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/alias.cr#L1"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/alias.cr#L1"},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"mailjet/Mailjet/Address","path":"Mailjet/Address.html","kind":"struct","full_name":"Mailjet::Address","name":"Address","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/elements/address.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(address:String,display_name:String)-class-method","name":"new","abstract":false,"args":[{"name":"address","external_name":"address","restriction":"::String"},{"name":"display_name","external_name":"display_name","restriction":"::String"}],"args_string":"(address : String, display_name : String)","args_html":"(address : String, display_name : String)","location":{"filename":"src/mailjet/elements/address.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L13"},"def":{"name":"new","args":[{"name":"address","external_name":"address","restriction":"::String"},{"name":"display_name","external_name":"display_name","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address, display_name)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(address_list:String)-class-method","name":"new","abstract":false,"args":[{"name":"address_list","external_name":"address_list","restriction":"::String"}],"args_string":"(address_list : String)","args_html":"(address_list : String)","location":{"filename":"src/mailjet/elements/address.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L7"},"def":{"name":"new","args":[{"name":"address_list","external_name":"address_list","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address_list)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"address:String-instance-method","name":"address","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L3"},"def":{"name":"address","return_type":"String","visibility":"Public","body":"@address"}},{"html_id":"address_list:String-instance-method","name":"address_list","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L5"},"def":{"name":"address_list","return_type":"String","visibility":"Public","body":"@address_list"}},{"html_id":"display_name:String-instance-method","name":"display_name","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L4"},"def":{"name":"display_name","return_type":"String","visibility":"Public","body":"@display_name"}}]},{"html_id":"mailjet/Mailjet/AddressList","path":"Mailjet/AddressList.html","kind":"struct","full_name":"Mailjet::AddressList","name":"AddressList","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/elements/address_list.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(address_list:String)-class-method","name":"new","abstract":false,"args":[{"name":"address_list","external_name":"address_list","restriction":"String"}],"args_string":"(address_list : String)","args_html":"(address_list : String)","location":{"filename":"src/mailjet/elements/address_list.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L8"},"def":{"name":"new","args":[{"name":"address_list","external_name":"address_list","restriction":"String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address_list)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"address_list:String-instance-method","name":"address_list","abstract":false,"location":{"filename":"src/mailjet/elements/address_list.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L3"},"def":{"name":"address_list","return_type":"String","visibility":"Public","body":"@address_list"}},{"html_id":"addresses:Array(Address)-instance-method","name":"addresses","abstract":false,"location":{"filename":"src/mailjet/elements/address_list.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L4"},"def":{"name":"addresses","return_type":"Array(Address)","visibility":"Public","body":"@addresses"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","location":{"filename":"src/mailjet/elements/address_list.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L6"},"def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" addresses.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaign","path":"Mailjet/Campaign.html","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"When you send a campaign draft, a new campaign object is automatically\ncreated. Use the resources below to retrieve information about campaigns,\nmark selected campaigns as starred or delete them.\n\nhttps://dev.mailjet.com/email/reference/campaigns/sent-campaigns/\n","summary":"

When you send a campaign draft, a new campaign object is automatically created.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L37"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L37"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaign/Details","path":"Mailjet/Campaign/Details.html","kind":"struct","full_name":"Mailjet::Campaign::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"campaign_type:Int32-instance-method","name":"campaign_type","abstract":false,"def":{"name":"campaign_type","return_type":"Int32","visibility":"Public","body":"@campaign_type"}},{"html_id":"click_tracked:Int32-instance-method","name":"click_tracked","abstract":false,"def":{"name":"click_tracked","return_type":"Int32","visibility":"Public","body":"@click_tracked"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"custom_value:String-instance-method","name":"custom_value","abstract":false,"def":{"name":"custom_value","return_type":"String","visibility":"Public","body":"@custom_value"}},{"html_id":"first_message_id:Int64-instance-method","name":"first_message_id","abstract":false,"def":{"name":"first_message_id","return_type":"Int64","visibility":"Public","body":"@first_message_id"}},{"html_id":"from_email:String-instance-method","name":"from_email","abstract":false,"def":{"name":"from_email","return_type":"String","visibility":"Public","body":"@from_email"}},{"html_id":"from_id:Int32-instance-method","name":"from_id","abstract":false,"def":{"name":"from_id","return_type":"Int32","visibility":"Public","body":"@from_id"}},{"html_id":"from_name:String-instance-method","name":"from_name","abstract":false,"def":{"name":"from_name","return_type":"String","visibility":"Public","body":"@from_name"}},{"html_id":"has_html_count:Int32-instance-method","name":"has_html_count","abstract":false,"def":{"name":"has_html_count","return_type":"Int32","visibility":"Public","body":"@has_html_count"}},{"html_id":"has_txt_count:Int32-instance-method","name":"has_txt_count","abstract":false,"def":{"name":"has_txt_count","return_type":"Int32","visibility":"Public","body":"@has_txt_count"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_deleted:Bool-instance-method","name":"is_deleted","abstract":false,"def":{"name":"is_deleted","return_type":"Bool","visibility":"Public","body":"@is_deleted"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"news_letter_id:Int32-instance-method","name":"news_letter_id","abstract":false,"def":{"name":"news_letter_id","return_type":"Int32","visibility":"Public","body":"@news_letter_id"}},{"html_id":"open_tracked:Int32-instance-method","name":"open_tracked","abstract":false,"def":{"name":"open_tracked","return_type":"Int32","visibility":"Public","body":"@open_tracked"}},{"html_id":"segmentation_id:Int32-instance-method","name":"segmentation_id","abstract":false,"def":{"name":"segmentation_id","return_type":"Int32","visibility":"Public","body":"@segmentation_id"}},{"html_id":"send_end_at:Time-instance-method","name":"send_end_at","abstract":false,"def":{"name":"send_end_at","return_type":"Time","visibility":"Public","body":"@send_end_at"}},{"html_id":"send_start_at:Time-instance-method","name":"send_start_at","abstract":false,"def":{"name":"send_start_at","return_type":"Time","visibility":"Public","body":"@send_start_at"}},{"html_id":"spamass_score:String-instance-method","name":"spamass_score","abstract":false,"def":{"name":"spamass_score","return_type":"String","visibility":"Public","body":"@spamass_score"}},{"html_id":"status:Int32-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"Int32","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"unsubscribe_tracked_count:Int32-instance-method","name":"unsubscribe_tracked_count","abstract":false,"def":{"name":"unsubscribe_tracked_count","return_type":"Int32","visibility":"Public","body":"@unsubscribe_tracked_count"}},{"html_id":"workflow_id:Int32-instance-method","name":"workflow_id","abstract":false,"def":{"name":"workflow_id","return_type":"Int32","visibility":"Public","body":"@workflow_id"}}]},{"html_id":"mailjet/Mailjet/Campaign/FindPath","path":"Mailjet/Campaign/FindPath.html","kind":"struct","full_name":"Mailjet::Campaign::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/FindResponse","path":"Mailjet/Campaign/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaign::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaign/ListPath","path":"Mailjet/Campaign/ListPath.html","kind":"struct","full_name":"Mailjet::Campaign::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/ListResponse","path":"Mailjet/Campaign/ListResponse.html","kind":"struct","full_name":"Mailjet::Campaign::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaign/ResponseData","path":"Mailjet/Campaign/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaign::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Campaign::Details)","aliased_html":"Array(Mailjet::Campaign::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"}},{"html_id":"mailjet/Mailjet/Campaign/UpdatePath","path":"Mailjet/Campaign/UpdatePath.html","kind":"struct","full_name":"Mailjet::Campaign::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/UpdateResponse","path":"Mailjet/Campaign/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Campaign::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Campaigndraft","path":"Mailjet/Campaigndraft.html","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L9"},{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the contents of a campaign draft. It will be split between a Text\npart, HTML part, MJML content and/or additional headers.\n\nhttps://dev.mailjet.com/email/reference/campaigns/drafts/#v3_get_campaigndraft_draft_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/campaigns/drafts/#v3_post_campaigndraft_draft_ID_detailcontent\n","summary":"

Retrieve the contents of a campaign draft.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L38"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L48"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L48"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaigndraft/CreatePath","path":"Mailjet/Campaigndraft/CreatePath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/CreateResponse","path":"Mailjet/Campaigndraft/CreateResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","path":"Mailjet/Campaigndraft/Detailcontent.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"class_methods":[{"html_id":"create(id:ResourceId,payload:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"create","doc":"Create content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.create(12345, {\n \"Headers\": {\n \"Subject\": \"Hello There!\",\n \"From\": \"John Doe \",\n \"Reply-To\": \"\",\n },\n \"Html-part\": \"

Hello {{var:name}}

\",\n \"Text-part\": \"Hello {{var:name}}\",\n \"Mjml-part\": \"\",\n})\n```\n","summary":"

Create content for a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L40"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create(payload, {id: id}, client: client)"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindPath","path":"Mailjet/Campaigndraft/Detailcontent/FindPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},"doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindResponse","path":"Mailjet/Campaigndraft/Detailcontent/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},"doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/ResponseData","path":"Mailjet/Campaigndraft/Detailcontent/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaigndraft::Detailcontent::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L12"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(JSON::Any)","aliased_html":"Array(JSON::Any)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Draft","path":"Mailjet/Campaigndraft/Draft.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Draft","name":"Draft","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":50,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L50"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"ax_fraction:Int32-instance-method","name":"ax_fraction","abstract":false,"def":{"name":"ax_fraction","return_type":"Int32","visibility":"Public","body":"@ax_fraction"}},{"html_id":"ax_fraction_name:String-instance-method","name":"ax_fraction_name","abstract":false,"def":{"name":"ax_fraction_name","return_type":"String","visibility":"Public","body":"@ax_fraction_name"}},{"html_id":"contacts_list_id:Union(Int32,Nil)-instance-method","name":"contacts_list_id","abstract":false,"def":{"name":"contacts_list_id","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@contacts_list_id"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"current:Int32-instance-method","name":"current","abstract":false,"def":{"name":"current","return_type":"Int32","visibility":"Public","body":"@current"}},{"html_id":"delivered_at:Union(Time,Nil)-instance-method","name":"delivered_at","abstract":false,"def":{"name":"delivered_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@delivered_at"}},{"html_id":"edit_mode:String-instance-method","name":"edit_mode","abstract":false,"def":{"name":"edit_mode","return_type":"String","visibility":"Public","body":"@edit_mode"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"is_text_part_included:Bool-instance-method","name":"is_text_part_included","abstract":false,"def":{"name":"is_text_part_included","return_type":"Bool","visibility":"Public","body":"@is_text_part_included"}},{"html_id":"locale:String-instance-method","name":"locale","abstract":false,"def":{"name":"locale","return_type":"String","visibility":"Public","body":"@locale"}},{"html_id":"modified_at:Union(Time,Nil)-instance-method","name":"modified_at","abstract":false,"def":{"name":"modified_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@modified_at"}},{"html_id":"preset:JSON::Any-instance-method","name":"preset","abstract":false,"def":{"name":"preset","return_type":"JSON::Any","visibility":"Public","body":"@preset"}},{"html_id":"sender:String-instance-method","name":"sender","abstract":false,"def":{"name":"sender","return_type":"String","visibility":"Public","body":"@sender"}},{"html_id":"sender_email:String-instance-method","name":"sender_email","abstract":false,"def":{"name":"sender_email","return_type":"String","visibility":"Public","body":"@sender_email"}},{"html_id":"sender_name:String-instance-method","name":"sender_name","abstract":false,"def":{"name":"sender_name","return_type":"String","visibility":"Public","body":"@sender_name"}},{"html_id":"status:Int32-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"Int32","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"template_id:Union(Int32,Nil)-instance-method","name":"template_id","abstract":false,"def":{"name":"template_id","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@template_id"}},{"html_id":"title:String-instance-method","name":"title","abstract":false,"def":{"name":"title","return_type":"String","visibility":"Public","body":"@title"}},{"html_id":"url:String-instance-method","name":"url","abstract":false,"def":{"name":"url","return_type":"String","visibility":"Public","body":"@url"}},{"html_id":"used:Bool-instance-method","name":"used","abstract":false,"def":{"name":"used","return_type":"Bool","visibility":"Public","body":"@used"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/FindPath","path":"Mailjet/Campaigndraft/FindPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/FindResponse","path":"Mailjet/Campaigndraft/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ListPath","path":"Mailjet/Campaigndraft/ListPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ListResponse","path":"Mailjet/Campaigndraft/ListResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ResponseData","path":"Mailjet/Campaigndraft/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaigndraft::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Campaigndraft::Draft)","aliased_html":"Array(Mailjet::Campaigndraft::Draft)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"}},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdatePath","path":"Mailjet/Campaigndraft/UpdatePath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdateResponse","path":"Mailjet/Campaigndraft/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Client","path":"Mailjet/Client.html","kind":"struct","full_name":"Mailjet::Client","name":"Client","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/client.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"with_credentials(api_key:String|Nil,secret_key:String|Nil)-class-method","name":"with_credentials","doc":"Create a new instance with given api credentials","summary":"

Create a new instance with given api credentials

","abstract":false,"args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"},{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"args_string":"(api_key : String | Nil, secret_key : String | Nil)","args_html":"(api_key : String | Nil, secret_key : String | Nil)","location":{"filename":"src/mailjet/client.cr","line_number":98,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L98"},"def":{"name":"with_credentials","args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"},{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"new(api_key, secret_key)"}}],"constructors":[{"html_id":"new(api_key:Nil|String=Config.api_key,secret_key:Nil|String=Config.secret_key)-class-method","name":"new","doc":"Initialize with credentials\n\n```\nclient = Mailjet::Client.new(\"my_key\", \"my_secret\")\n```\n\nOr without, if credentials are configured globally:\n\n```\nclient = Mailjet::Client.new\n```","summary":"

Initialize with credentials

","abstract":false,"args":[{"name":"api_key","default_value":"Config.api_key","external_name":"api_key","restriction":"::Nil | ::String"},{"name":"secret_key","default_value":"Config.secret_key","external_name":"secret_key","restriction":"::Nil | ::String"}],"args_string":"(api_key : Nil | String = Config.api_key, secret_key : Nil | String = Config.secret_key)","args_html":"(api_key : Nil | String = Config.api_key, secret_key : Nil | String = Config.secret_key)","location":{"filename":"src/mailjet/client.cr","line_number":17,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L17"},"def":{"name":"new","args":[{"name":"api_key","default_value":"Config.api_key","external_name":"api_key","restriction":"::Nil | ::String"},{"name":"secret_key","default_value":"Config.secret_key","external_name":"secret_key","restriction":"::Nil | ::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(api_key, secret_key)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"api_key:String|Nil-instance-method","name":"api_key","abstract":false,"location":{"filename":"src/mailjet/client.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L3"},"def":{"name":"api_key","return_type":"String | ::Nil","visibility":"Public","body":"@api_key"}},{"html_id":"handle_api_call(method:String,path:String,query:Hash|NamedTuple={}ofString=>String,payload:Hash|NamedTuple={}ofString=>String,headers:Hash|NamedTuple={}ofString=>String)-instance-method","name":"handle_api_call","abstract":false,"args":[{"name":"method","external_name":"method","restriction":"String"},{"name":"path","external_name":"path","restriction":"String"},{"name":"query","default_value":"{} of String => String","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"{} of String => String","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"headers","default_value":"{} of String => String","external_name":"headers","restriction":"Hash | NamedTuple"}],"args_string":"(method : String, path : String, query : Hash | NamedTuple = {} of String => String, payload : Hash | NamedTuple = {} of String => String, headers : Hash | NamedTuple = {} of String => String)","args_html":"(method : String, path : String, query : Hash | NamedTuple = {} of String => String, payload : Hash | NamedTuple = {} of String => String, headers : Hash | NamedTuple = {} of String => String)","location":{"filename":"src/mailjet/client.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L27"},"def":{"name":"handle_api_call","args":[{"name":"method","external_name":"method","restriction":"String"},{"name":"path","external_name":"path","restriction":"String"},{"name":"query","default_value":"{} of String => String","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"{} of String => String","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"headers","default_value":"{} of String => String","external_name":"headers","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"client = http_client(URI.parse(Config.end_point))\nrequest_headers = http_headers\nheaders.each do |key, value|\n request_headers[key.to_s] = value\nend\nif query.empty?\nelse\n path = path + \"?#{Utilities.query_parameterize(query)}\"\nend\nbegin\n if {\"GET\", \"DELETE\"}.includes?(method)\n response = client.exec(method, path, headers: request_headers)\n else\n payload = payload.to_h.reject! do |_, v|\n v.nil?\n end.to_json\n response = client.exec(method, path, headers: request_headers, body: payload)\n end\n render(response)\nrescue e : IO::TimeoutError\n raise(RequestTimeoutException.new(e.message))\nrescue e : IO::EOFError\n raise(Exception.new(e.message))\nend\n"}},{"html_id":"secret_key:String|Nil-instance-method","name":"secret_key","abstract":false,"location":{"filename":"src/mailjet/client.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L4"},"def":{"name":"secret_key","return_type":"String | ::Nil","visibility":"Public","body":"@secret_key"}}]},{"html_id":"mailjet/Mailjet/Config","path":"Mailjet/Config.html","kind":"module","full_name":"Mailjet::Config","name":"Config","abstract":false,"locations":[{"filename":"src/mailjet/config.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"api_key:String|Nil-class-method","name":"api_key","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L3"},"def":{"name":"api_key","return_type":"String | ::Nil","visibility":"Public","body":"@@api_key"}},{"html_id":"api_key=(api_key:String|Nil)-class-method","name":"api_key=","abstract":false,"args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"}],"args_string":"(api_key : String | Nil)","args_html":"(api_key : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L3"},"def":{"name":"api_key=","args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@api_key = api_key"}},{"html_id":"api_version:String-class-method","name":"api_version","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L4"},"def":{"name":"api_version","return_type":"String","visibility":"Public","body":"@@api_version"}},{"html_id":"api_version=(api_version:String)-class-method","name":"api_version=","abstract":false,"args":[{"name":"api_version","external_name":"api_version","restriction":"String"}],"args_string":"(api_version : String)","args_html":"(api_version : String)","location":{"filename":"src/mailjet/config.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L4"},"def":{"name":"api_version=","args":[{"name":"api_version","external_name":"api_version","restriction":"String"}],"visibility":"Public","body":"@@api_version = api_version"}},{"html_id":"default_from:String|Nil-class-method","name":"default_from","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L5"},"def":{"name":"default_from","return_type":"String | ::Nil","visibility":"Public","body":"@@default_from"}},{"html_id":"default_from=(email:String)-class-method","name":"default_from=","abstract":false,"args":[{"name":"email","external_name":"email","restriction":"String"}],"args_string":"(email : String)","args_html":"(email : String)","location":{"filename":"src/mailjet/config.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L12"},"def":{"name":"default_from=","args":[{"name":"email","external_name":"email","restriction":"String"}],"visibility":"Public","body":"if email.match(/.+\\@.+\\..+/)\nelse\n raise(InvalidEmailAddressException.new)\nend\n@@default_from = email\n"}},{"html_id":"default_from=(default_from:String|Nil)-class-method","name":"default_from=","abstract":false,"args":[{"name":"default_from","external_name":"default_from","restriction":"String | ::Nil"}],"args_string":"(default_from : String | Nil)","args_html":"(default_from : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L5"},"def":{"name":"default_from=","args":[{"name":"default_from","external_name":"default_from","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@default_from = default_from"}},{"html_id":"end_point:String-class-method","name":"end_point","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L6"},"def":{"name":"end_point","return_type":"String","visibility":"Public","body":"@@end_point"}},{"html_id":"end_point=(end_point:String)-class-method","name":"end_point=","abstract":false,"args":[{"name":"end_point","external_name":"end_point","restriction":"String"}],"args_string":"(end_point : String)","args_html":"(end_point : String)","location":{"filename":"src/mailjet/config.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L6"},"def":{"name":"end_point=","args":[{"name":"end_point","external_name":"end_point","restriction":"String"}],"visibility":"Public","body":"@@end_point = end_point"}},{"html_id":"open_timeout:Time::Span-class-method","name":"open_timeout","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L7"},"def":{"name":"open_timeout","return_type":"Time::Span","visibility":"Public","body":"@@open_timeout"}},{"html_id":"open_timeout=(open_timeout:Time::Span)-class-method","name":"open_timeout=","abstract":false,"args":[{"name":"open_timeout","external_name":"open_timeout","restriction":"Time::Span"}],"args_string":"(open_timeout : Time::Span)","args_html":"(open_timeout : Time::Span)","location":{"filename":"src/mailjet/config.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L7"},"def":{"name":"open_timeout=","args":[{"name":"open_timeout","external_name":"open_timeout","restriction":"Time::Span"}],"visibility":"Public","body":"@@open_timeout = open_timeout"}},{"html_id":"read_timeout:Time::Span-class-method","name":"read_timeout","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L8"},"def":{"name":"read_timeout","return_type":"Time::Span","visibility":"Public","body":"@@read_timeout"}},{"html_id":"read_timeout=(read_timeout:Time::Span)-class-method","name":"read_timeout=","abstract":false,"args":[{"name":"read_timeout","external_name":"read_timeout","restriction":"Time::Span"}],"args_string":"(read_timeout : Time::Span)","args_html":"(read_timeout : Time::Span)","location":{"filename":"src/mailjet/config.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L8"},"def":{"name":"read_timeout=","args":[{"name":"read_timeout","external_name":"read_timeout","restriction":"Time::Span"}],"visibility":"Public","body":"@@read_timeout = read_timeout"}},{"html_id":"sandbox_mode=(sandbox_mode:Bool)-class-method","name":"sandbox_mode=","abstract":false,"args":[{"name":"sandbox_mode","external_name":"sandbox_mode","restriction":"Bool"}],"args_string":"(sandbox_mode : Bool)","args_html":"(sandbox_mode : Bool)","location":{"filename":"src/mailjet/config.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L10"},"def":{"name":"sandbox_mode=","args":[{"name":"sandbox_mode","external_name":"sandbox_mode","restriction":"Bool"}],"visibility":"Public","body":"@@sandbox_mode = sandbox_mode"}},{"html_id":"sandbox_mode?:Bool-class-method","name":"sandbox_mode?","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L10"},"def":{"name":"sandbox_mode?","return_type":"Bool","visibility":"Public","body":"@@sandbox_mode"}},{"html_id":"secret_key:String|Nil-class-method","name":"secret_key","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L9"},"def":{"name":"secret_key","return_type":"String | ::Nil","visibility":"Public","body":"@@secret_key"}},{"html_id":"secret_key=(secret_key:String|Nil)-class-method","name":"secret_key=","abstract":false,"args":[{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"args_string":"(secret_key : String | Nil)","args_html":"(secret_key : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L9"},"def":{"name":"secret_key=","args":[{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@secret_key = secret_key"}}]},{"html_id":"mailjet/Mailjet/Contact","path":"Mailjet/Contact.html","kind":"struct","full_name":"Mailjet::Contact","name":"Contact","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L7"},{"filename":"src/mailjet/resources/contact/list.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L2"},{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Contact objects represent the email addresses you intend to send (or have\nalready sent) messages to.\n\nhttps://dev.mailjet.com/email/reference/contacts/contact/\n","summary":"

Contact objects represent the email addresses you intend to send (or have already sent) messages to.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L38"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L49"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L49"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/CreatePath","path":"Mailjet/Contact/CreatePath.html","kind":"struct","full_name":"Mailjet::Contact::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/CreateResponse","path":"Mailjet/Contact/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contact::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contact/Details","path":"Mailjet/Contact/Details.html","kind":"struct","full_name":"Mailjet::Contact::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":51,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L51"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:String-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"String","visibility":"Public","body":"@created_at"}},{"html_id":"delivered_count:Int32-instance-method","name":"delivered_count","abstract":false,"def":{"name":"delivered_count","return_type":"Int32","visibility":"Public","body":"@delivered_count"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"exclusion_from_campaigns_updated_at:Union(Time,Nil)-instance-method","name":"exclusion_from_campaigns_updated_at","abstract":false,"def":{"name":"exclusion_from_campaigns_updated_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@exclusion_from_campaigns_updated_at"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_excluded_from_campaigns:Bool-instance-method","name":"is_excluded_from_campaigns","abstract":false,"def":{"name":"is_excluded_from_campaigns","return_type":"Bool","visibility":"Public","body":"@is_excluded_from_campaigns"}},{"html_id":"is_opt_in_pending:Bool-instance-method","name":"is_opt_in_pending","abstract":false,"def":{"name":"is_opt_in_pending","return_type":"Bool","visibility":"Public","body":"@is_opt_in_pending"}},{"html_id":"is_spam_complaining:Bool-instance-method","name":"is_spam_complaining","abstract":false,"def":{"name":"is_spam_complaining","return_type":"Bool","visibility":"Public","body":"@is_spam_complaining"}},{"html_id":"last_activity_at:Union(Time,Nil)-instance-method","name":"last_activity_at","abstract":false,"def":{"name":"last_activity_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_activity_at"}},{"html_id":"last_update_at:Union(Time,Nil)-instance-method","name":"last_update_at","abstract":false,"def":{"name":"last_update_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_update_at"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"unsubscribed_at:Union(Time,Nil)-instance-method","name":"unsubscribed_at","abstract":false,"def":{"name":"unsubscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_at"}},{"html_id":"unsubscribed_by:Union(Time,Nil)-instance-method","name":"unsubscribed_by","abstract":false,"def":{"name":"unsubscribed_by","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_by"}}]},{"html_id":"mailjet/Mailjet/Contact/FindPath","path":"Mailjet/Contact/FindPath.html","kind":"struct","full_name":"Mailjet::Contact::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/FindResponse","path":"Mailjet/Contact/FindResponse.html","kind":"struct","full_name":"Mailjet::Contact::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contact/List","path":"Mailjet/Contact/List.html","kind":"struct","full_name":"Mailjet::Contact::List","name":"List","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Retrieve all contact lists for a specific contact. You will receive\ninformation on the status of the contact for each list. Information about\nlists deleted within the last 60 days will be returned as well, since\nthose are soft-deleted and can be reinstated.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_contact_contact_ID_getcontactslists\n","summary":"

Retrieve all contact lists for a specific contact.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L20"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"all(contact_id:ResourceId,client:Client=Client.new)-class-method","name":"all","doc":"Convenience method allowing to pass the contact id and returning the\narray of lists directly\n\n```\ncontactlists = Mailjet::Contact::List.all(52856551)\n```\n","summary":"

Convenience method allowing to pass the contact id and returning the array of lists directly

","abstract":false,"args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(contact_id : ResourceId, client : Client = Client.new)","args_html":"(contact_id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact/list.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L29"},"def":{"name":"all","args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(params: {contact_id: contact_id}, client: client).data"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/List/Details","path":"Mailjet/Contact/List/Details.html","kind":"struct","full_name":"Mailjet::Contact::List::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"is_active:Bool-instance-method","name":"is_active","abstract":false,"def":{"name":"is_active","return_type":"Bool","visibility":"Public","body":"@is_active"}},{"html_id":"is_unsub:Bool-instance-method","name":"is_unsub","abstract":false,"def":{"name":"is_unsub","return_type":"Bool","visibility":"Public","body":"@is_unsub"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"subscribed_at:Time-instance-method","name":"subscribed_at","abstract":false,"def":{"name":"subscribed_at","return_type":"Time","visibility":"Public","body":"@subscribed_at"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ListPath","path":"Mailjet/Contact/List/ListPath.html","kind":"struct","full_name":"Mailjet::Contact::List::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ListResponse","path":"Mailjet/Contact/List/ListResponse.html","kind":"struct","full_name":"Mailjet::Contact::List::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ResponseData","path":"Mailjet/Contact/List/ResponseData.html","kind":"alias","full_name":"Mailjet::Contact::List::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contact::List::Details)","aliased_html":"Array(Mailjet::Contact::List::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"}}]},{"html_id":"mailjet/Mailjet/Contact/ListPath","path":"Mailjet/Contact/ListPath.html","kind":"struct","full_name":"Mailjet::Contact::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/ListResponse","path":"Mailjet/Contact/ListResponse.html","kind":"struct","full_name":"Mailjet::Contact::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","path":"Mailjet/Contact/Managecontactlists.html","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Manage the presence and subscription status of a contact for multiple\ncontact lists. Select the contact lists, as well as the desired action to\nbe performed on each one - add, remove or unsub. The contact should\nalready be present in the global contact list.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_post_contact_contact_ID_managecontactslists\n","summary":"

Manage the presence and subscription status of a contact for multiple contact lists.

","class_methods":[{"html_id":"create(contact_id:ResourceId,contacts_lists:Array)-class-method","name":"create","doc":"Manage the presence and subscription status of a contact for multiple\ncontact lists.\n\n```\ncontact_lists = Mailjet::Contact::Managecontactlists.create(54321987, [\n {list_id: 23847, action: \"addnoforce\"},\n {list_id: 26484, action: \"addforce\"},\n])\nputs contact_lists.first.list_id\n# => 23847\n```\n","summary":"

Manage the presence and subscription status of a contact for multiple contact lists.

","abstract":false,"args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"contacts_lists","external_name":"contacts_lists","restriction":"Array"}],"args_string":"(contact_id : ResourceId, contacts_lists : Array)","args_html":"(contact_id : ResourceId, contacts_lists : Array)","location":{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L28"},"def":{"name":"create","args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"contacts_lists","external_name":"contacts_lists","restriction":"Array"}],"visibility":"Public","body":"(create({contacts_lists: contacts_lists}, {contact_id: contact_id}))[\"ContactsLists\"]"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactList","path":"Mailjet/Contact/Managecontactlists/ContactList.html","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists::ContactList","name":"ContactList","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"action:String-instance-method","name":"action","abstract":false,"def":{"name":"action","return_type":"String","visibility":"Public","body":"@action"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}}]},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactLists","path":"Mailjet/Contact/Managecontactlists/ContactLists.html","kind":"alias","full_name":"Mailjet::Contact::Managecontactlists::ContactLists","name":"ContactLists","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Hash(String, Array(Mailjet::Contact::Managecontactlists::ContactList)))","aliased_html":"Array(Hash(String, Array(Mailjet::Contact::Managecontactlists::ContactList)))","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"}}]},{"html_id":"mailjet/Mailjet/Contact/ResponseData","path":"Mailjet/Contact/ResponseData.html","kind":"alias","full_name":"Mailjet::Contact::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contact::Details)","aliased_html":"Array(Mailjet::Contact::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"}},{"html_id":"mailjet/Mailjet/Contact/UpdatePath","path":"Mailjet/Contact/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contact::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/UpdateResponse","path":"Mailjet/Contact/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contact::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Contactfilter","path":"Mailjet/Contactfilter.html","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Segmentation is an extremely useful tool used to target a specific group of\ncustomers with a dedicated campaign. Create segments based on contact\nproperties or the contact activity (opens, clicks). Segmentation helps you\nfocus your campaigns on specific demographics, create re-engagement\ncampaigns, etc.\n\nhttps://dev.mailjet.com/email/reference/segmentation/\n","summary":"

Segmentation is an extremely useful tool used to target a specific group of customers with a dedicated campaign.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L20"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L40"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a contactfilter\n\n```\nMailjet::Contactfilter.delete(112334)\n```\n","summary":"

Delete a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L60"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L28"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L28"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L52"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L52"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contactfilter/CreatePath","path":"Mailjet/Contactfilter/CreatePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/CreateResponse","path":"Mailjet/Contactfilter/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/DeletePath","path":"Mailjet/Contactfilter/DeletePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Delete a contactfilter\n\n```\nMailjet::Contactfilter.delete(112334)\n```\n","summary":"

Delete a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/Filter","path":"Mailjet/Contactfilter/Filter.html","kind":"struct","full_name":"Mailjet::Contactfilter::Filter","name":"Filter","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":62,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L62"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"expression:String-instance-method","name":"expression","abstract":false,"def":{"name":"expression","return_type":"String","visibility":"Public","body":"@expression"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/FindPath","path":"Mailjet/Contactfilter/FindPath.html","kind":"struct","full_name":"Mailjet::Contactfilter::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L28"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/FindResponse","path":"Mailjet/Contactfilter/FindResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L28"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ListPath","path":"Mailjet/Contactfilter/ListPath.html","kind":"struct","full_name":"Mailjet::Contactfilter::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ListResponse","path":"Mailjet/Contactfilter/ListResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ResponseData","path":"Mailjet/Contactfilter/ResponseData.html","kind":"alias","full_name":"Mailjet::Contactfilter::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contactfilter::Filter)","aliased_html":"Array(Mailjet::Contactfilter::Filter)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"}},{"html_id":"mailjet/Mailjet/Contactfilter/UpdatePath","path":"Mailjet/Contactfilter/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/UpdateResponse","path":"Mailjet/Contactfilter/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Contactlist","path":"Mailjet/Contactlist.html","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Contact List objects help you organize your contacts into lists. Every time\nyou send a campaign you must select a recipient contact list. Segmentation\ncan help you target a portion of that list.\n\nhttps://dev.mailjet.com/email/reference/contacts/contact-list/\n","summary":"

Contact List objects help you organize your contacts into lists.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L36"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a contactlist\n\n```\nMailjet::Contactlist.delete(123456789)\n```\n","summary":"

Delete a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":54,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L54"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L46"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L46"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contactlist/CreatePath","path":"Mailjet/Contactlist/CreatePath.html","kind":"struct","full_name":"Mailjet::Contactlist::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/CreateResponse","path":"Mailjet/Contactlist/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactlist/DeletePath","path":"Mailjet/Contactlist/DeletePath.html","kind":"struct","full_name":"Mailjet::Contactlist::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":54,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L54"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Delete a contactlist\n\n```\nMailjet::Contactlist.delete(123456789)\n```\n","summary":"

Delete a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/Details","path":"Mailjet/Contactlist/Details.html","kind":"struct","full_name":"Mailjet::Contactlist::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":56,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L56"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"address:String-instance-method","name":"address","abstract":false,"def":{"name":"address","return_type":"String","visibility":"Public","body":"@address"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_deleted:Bool-instance-method","name":"is_deleted","abstract":false,"def":{"name":"is_deleted","return_type":"Bool","visibility":"Public","body":"@is_deleted"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"subscriber_count:Int32-instance-method","name":"subscriber_count","abstract":false,"def":{"name":"subscriber_count","return_type":"Int32","visibility":"Public","body":"@subscriber_count"}}]},{"html_id":"mailjet/Mailjet/Contactlist/FindPath","path":"Mailjet/Contactlist/FindPath.html","kind":"struct","full_name":"Mailjet::Contactlist::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/FindResponse","path":"Mailjet/Contactlist/FindResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ListPath","path":"Mailjet/Contactlist/ListPath.html","kind":"struct","full_name":"Mailjet::Contactlist::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ListResponse","path":"Mailjet/Contactlist/ListResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ResponseData","path":"Mailjet/Contactlist/ResponseData.html","kind":"alias","full_name":"Mailjet::Contactlist::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contactlist::Details)","aliased_html":"Array(Mailjet::Contactlist::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"}},{"html_id":"mailjet/Mailjet/Contactlist/UpdatePath","path":"Mailjet/Contactlist/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contactlist::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/UpdateResponse","path":"Mailjet/Contactlist/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/DNS","path":"Mailjet/DNS.html","kind":"struct","full_name":"Mailjet::DNS","name":"DNS","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L9"},{"filename":"src/mailjet/resources/dns/check.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Whenever you register a new sender or metasender address with a new domain\nname, a new DNS object is created for this domain. Use the resources below\nto retrieve the DNS records you need to complete a successful domain\nvalidation and SPF / DKIM authentication.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/dns/\n","summary":"

Whenever you register a new sender or metasender address with a new domain name, a new DNS object is created for this domain.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/DNS/Check","path":"Mailjet/DNS/Check.html","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Perform a DNS validation of a sender domain. The Mailjet API will check\nfor a TXT record in the domain's DNS zone file.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/dns/#v3_post_dns_dns_ID_check\n","summary":"

Perform a DNS validation of a sender domain.

","class_methods":[{"html_id":"create(id:ResourceId,client:Client=Client.new)-class-method","name":"create","doc":"Check validit of a DNS record\n\n```\ncontact = Mailjet::DNS::Check.create(123456789)\n```\n","summary":"

Check validit of a DNS record

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns/check.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L20"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create({} of String => String, {id: id}, client)"}}],"types":[{"html_id":"mailjet/Mailjet/DNS/Check/Details","path":"Mailjet/DNS/Check/Details.html","kind":"struct","full_name":"Mailjet::DNS::Check::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"dkim_errors:Array(String)-instance-method","name":"dkim_errors","abstract":false,"def":{"name":"dkim_errors","return_type":"Array(String)","visibility":"Public","body":"@dkim_errors"}},{"html_id":"dkim_record_current_value:String-instance-method","name":"dkim_record_current_value","abstract":false,"def":{"name":"dkim_record_current_value","return_type":"String","visibility":"Public","body":"@dkim_record_current_value"}},{"html_id":"dkim_status:String-instance-method","name":"dkim_status","abstract":false,"def":{"name":"dkim_status","return_type":"String","visibility":"Public","body":"@dkim_status"}},{"html_id":"spf_errors:Array(String)-instance-method","name":"spf_errors","abstract":false,"def":{"name":"spf_errors","return_type":"Array(String)","visibility":"Public","body":"@spf_errors"}},{"html_id":"spf_records_current_values:Array(String)-instance-method","name":"spf_records_current_values","abstract":false,"def":{"name":"spf_records_current_values","return_type":"Array(String)","visibility":"Public","body":"@spf_records_current_values"}},{"html_id":"spf_status:String-instance-method","name":"spf_status","abstract":false,"def":{"name":"spf_status","return_type":"String","visibility":"Public","body":"@spf_status"}}]},{"html_id":"mailjet/Mailjet/DNS/Check/ResponseData","path":"Mailjet/DNS/Check/ResponseData.html","kind":"alias","full_name":"Mailjet::DNS::Check::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::DNS::Check::Details)","aliased_html":"Array(Mailjet::DNS::Check::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"}}]},{"html_id":"mailjet/Mailjet/DNS/FindPath","path":"Mailjet/DNS/FindPath.html","kind":"struct","full_name":"Mailjet::DNS::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/DNS/FindResponse","path":"Mailjet/DNS/FindResponse.html","kind":"struct","full_name":"Mailjet::DNS::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/DNS/ListPath","path":"Mailjet/DNS/ListPath.html","kind":"struct","full_name":"Mailjet::DNS::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/DNS/ListResponse","path":"Mailjet/DNS/ListResponse.html","kind":"struct","full_name":"Mailjet::DNS::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/DNS/ResponseData","path":"Mailjet/DNS/ResponseData.html","kind":"alias","full_name":"Mailjet::DNS::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::DNS::Settings)","aliased_html":"Array(Mailjet::DNS::Settings)","const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"}},{"html_id":"mailjet/Mailjet/DNS/Settings","path":"Mailjet/DNS/Settings.html","kind":"struct","full_name":"Mailjet::DNS::Settings","name":"Settings","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L29"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"dkim_record_name:String-instance-method","name":"dkim_record_name","abstract":false,"def":{"name":"dkim_record_name","return_type":"String","visibility":"Public","body":"@dkim_record_name"}},{"html_id":"dkim_record_value:String-instance-method","name":"dkim_record_value","abstract":false,"def":{"name":"dkim_record_value","return_type":"String","visibility":"Public","body":"@dkim_record_value"}},{"html_id":"dkim_status:String-instance-method","name":"dkim_status","abstract":false,"def":{"name":"dkim_status","return_type":"String","visibility":"Public","body":"@dkim_status"}},{"html_id":"domain:String-instance-method","name":"domain","abstract":false,"def":{"name":"domain","return_type":"String","visibility":"Public","body":"@domain"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_check_in_progress:Bool-instance-method","name":"is_check_in_progress","abstract":false,"def":{"name":"is_check_in_progress","return_type":"Bool","visibility":"Public","body":"@is_check_in_progress"}},{"html_id":"last_check_at:Union(Time,Nil)-instance-method","name":"last_check_at","abstract":false,"def":{"name":"last_check_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_check_at"}},{"html_id":"owner_ship_token:String-instance-method","name":"owner_ship_token","abstract":false,"def":{"name":"owner_ship_token","return_type":"String","visibility":"Public","body":"@owner_ship_token"}},{"html_id":"owner_ship_token_record_name:String-instance-method","name":"owner_ship_token_record_name","abstract":false,"def":{"name":"owner_ship_token_record_name","return_type":"String","visibility":"Public","body":"@owner_ship_token_record_name"}},{"html_id":"spf_record_value:String-instance-method","name":"spf_record_value","abstract":false,"def":{"name":"spf_record_value","return_type":"String","visibility":"Public","body":"@spf_record_value"}},{"html_id":"spf_status:String-instance-method","name":"spf_status","abstract":false,"def":{"name":"spf_status","return_type":"String","visibility":"Public","body":"@spf_status"}}]}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl","path":"Mailjet/Eventcallbackurl.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"The resources below helps you track email delivery and engagement events and\nforward the information to a webhook URL of your choice. You can use this\ndata to create additional workflows - react to spam reports, identify\nbounced email addresses, sync unsubscribed contacts, etc.\n\nhttps://dev.mailjet.com/email/reference/webhook/\n","summary":"

The resources below helps you track email delivery and engagement events and forward the information to a webhook URL of your choice.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L41"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a eventcallbackurl\n\n```\nMailjet::Eventcallbackurl.delete(112334)\n```\n","summary":"

Delete a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":63,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L63"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L55"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L55"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreatePath","path":"Mailjet/Eventcallbackurl/CreatePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L41"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreateResponse","path":"Mailjet/Eventcallbackurl/CreateResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L41"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/DeletePath","path":"Mailjet/Eventcallbackurl/DeletePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":63,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L63"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Delete a eventcallbackurl\n\n```\nMailjet::Eventcallbackurl.delete(112334)\n```\n","summary":"

Delete a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindPath","path":"Mailjet/Eventcallbackurl/FindPath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindResponse","path":"Mailjet/Eventcallbackurl/FindResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListPath","path":"Mailjet/Eventcallbackurl/ListPath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListResponse","path":"Mailjet/Eventcallbackurl/ListResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ResponseData","path":"Mailjet/Eventcallbackurl/ResponseData.html","kind":"alias","full_name":"Mailjet::Eventcallbackurl::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Eventcallbackurl::Webhook)","aliased_html":"Array(Mailjet::Eventcallbackurl::Webhook)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"}},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdatePath","path":"Mailjet/Eventcallbackurl/UpdatePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L55"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdateResponse","path":"Mailjet/Eventcallbackurl/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L55"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/Webhook","path":"Mailjet/Eventcallbackurl/Webhook.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::Webhook","name":"Webhook","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L65"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"api_key_id:Int32-instance-method","name":"api_key_id","abstract":false,"def":{"name":"api_key_id","return_type":"Int32","visibility":"Public","body":"@api_key_id"}},{"html_id":"event_type:String-instance-method","name":"event_type","abstract":false,"def":{"name":"event_type","return_type":"String","visibility":"Public","body":"@event_type"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_backup:Bool-instance-method","name":"is_backup","abstract":false,"def":{"name":"is_backup","return_type":"Bool","visibility":"Public","body":"@is_backup"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"url:String-instance-method","name":"url","abstract":false,"def":{"name":"url","return_type":"String","visibility":"Public","body":"@url"}},{"html_id":"version:Int32-instance-method","name":"version","abstract":false,"def":{"name":"version","return_type":"Int32","visibility":"Public","body":"@version"}}]}]},{"html_id":"mailjet/Mailjet/Exception","path":"Mailjet/Exception.html","kind":"class","full_name":"Mailjet::Exception","name":"Exception","abstract":false,"superclass":{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/InvalidEmailAddressException","kind":"class","full_name":"Mailjet::InvalidEmailAddressException","name":"InvalidEmailAddressException"},{"html_id":"mailjet/Mailjet/MethodNotAllowedException","kind":"class","full_name":"Mailjet::MethodNotAllowedException","name":"MethodNotAllowedException"},{"html_id":"mailjet/Mailjet/MissingApiCredentialsException","kind":"class","full_name":"Mailjet::MissingApiCredentialsException","name":"MissingApiCredentialsException"},{"html_id":"mailjet/Mailjet/ParamsMissingException","kind":"class","full_name":"Mailjet::ParamsMissingException","name":"ParamsMissingException"},{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},{"html_id":"mailjet/Mailjet/RequestTimeoutException","kind":"class","full_name":"Mailjet::RequestTimeoutException","name":"RequestTimeoutException"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"types":[{"html_id":"mailjet/Mailjet/Exception/ErrorInfo","path":"Mailjet/Exception/ErrorInfo.html","kind":"alias","full_name":"Mailjet::Exception::ErrorInfo","name":"ErrorInfo","abstract":false,"locations":[{"filename":"src/mailjet/exception.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L4"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"(Hash(String, Array(Hash(String, Int32 | String))) | String | Nil)","aliased_html":"Hash(String, Array(Hash(String, Int32 | String))) | String | Nil","const":false,"namespace":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"}},{"html_id":"mailjet/Mailjet/Exception/ErrorInfoArray","path":"Mailjet/Exception/ErrorInfoArray.html","kind":"alias","full_name":"Mailjet::Exception::ErrorInfoArray","name":"ErrorInfoArray","abstract":false,"locations":[{"filename":"src/mailjet/exception.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Hash(String, Array(Hash(String, Int32 | String)))","aliased_html":"Hash(String, Array(Hash(String, Int32 | String)))","const":false,"namespace":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"}}]},{"html_id":"mailjet/Mailjet/InvalidEmailAddressException","path":"Mailjet/InvalidEmailAddressException.html","kind":"class","full_name":"Mailjet::InvalidEmailAddressException","name":"InvalidEmailAddressException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":44,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L44"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Json","path":"Mailjet/Json.html","kind":"struct","full_name":"Mailjet::Json","name":"Json","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L2"},{"filename":"src/mailjet/json/nilable_time.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"mailjet/Mailjet/Json/Fields","path":"Mailjet/Json/Fields.html","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields","abstract":false,"locations":[{"filename":"src/mailjet/json/fields.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"including_types":[{"html_id":"mailjet/Mailjet/Campaign/Details","kind":"struct","full_name":"Mailjet::Campaign::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Campaign/FindResponse","kind":"struct","full_name":"Mailjet::Campaign::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaign/ListResponse","kind":"struct","full_name":"Mailjet::Campaign::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Campaign/UpdateResponse","kind":"struct","full_name":"Mailjet::Campaign::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/CreateResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/Draft","kind":"struct","full_name":"Mailjet::Campaigndraft::Draft","name":"Draft"},{"html_id":"mailjet/Mailjet/Campaigndraft/FindResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/ListResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdateResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contact/CreateResponse","kind":"struct","full_name":"Mailjet::Contact::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contact/Details","kind":"struct","full_name":"Mailjet::Contact::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contact/FindResponse","kind":"struct","full_name":"Mailjet::Contact::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contact/List/Details","kind":"struct","full_name":"Mailjet::Contact::List::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contact/List/ListResponse","kind":"struct","full_name":"Mailjet::Contact::List::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contact/ListResponse","kind":"struct","full_name":"Mailjet::Contact::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactList","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists::ContactList","name":"ContactList"},{"html_id":"mailjet/Mailjet/Contact/UpdateResponse","kind":"struct","full_name":"Mailjet::Contact::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/CreateResponse","kind":"struct","full_name":"Mailjet::Contactfilter::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/Filter","kind":"struct","full_name":"Mailjet::Contactfilter::Filter","name":"Filter"},{"html_id":"mailjet/Mailjet/Contactfilter/FindResponse","kind":"struct","full_name":"Mailjet::Contactfilter::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/ListResponse","kind":"struct","full_name":"Mailjet::Contactfilter::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/UpdateResponse","kind":"struct","full_name":"Mailjet::Contactfilter::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contactlist/CreateResponse","kind":"struct","full_name":"Mailjet::Contactlist::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contactlist/Details","kind":"struct","full_name":"Mailjet::Contactlist::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contactlist/FindResponse","kind":"struct","full_name":"Mailjet::Contactlist::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contactlist/ListResponse","kind":"struct","full_name":"Mailjet::Contactlist::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contactlist/UpdateResponse","kind":"struct","full_name":"Mailjet::Contactlist::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/DNS/Check/Details","kind":"struct","full_name":"Mailjet::DNS::Check::Details","name":"Details"},{"html_id":"mailjet/Mailjet/DNS/FindResponse","kind":"struct","full_name":"Mailjet::DNS::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/DNS/ListResponse","kind":"struct","full_name":"Mailjet::DNS::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/DNS/Settings","kind":"struct","full_name":"Mailjet::DNS::Settings","name":"Settings"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreateResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdateResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/Webhook","kind":"struct","full_name":"Mailjet::Eventcallbackurl::Webhook","name":"Webhook"},{"html_id":"mailjet/Mailjet/Listrecipient/CreateResponse","kind":"struct","full_name":"Mailjet::Listrecipient::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/FindResponse","kind":"struct","full_name":"Mailjet::Listrecipient::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/Join","kind":"struct","full_name":"Mailjet::Listrecipient::Join","name":"Join"},{"html_id":"mailjet/Mailjet/Listrecipient/ListResponse","kind":"struct","full_name":"Mailjet::Listrecipient::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/UpdateResponse","kind":"struct","full_name":"Mailjet::Listrecipient::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Message/Details","kind":"struct","full_name":"Mailjet::Message::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Message/FindResponse","kind":"struct","full_name":"Mailjet::Message::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Message/ListResponse","kind":"struct","full_name":"Mailjet::Message::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Messagehistory/Event","kind":"struct","full_name":"Mailjet::Messagehistory::Event","name":"Event"},{"html_id":"mailjet/Mailjet/Messagehistory/ListResponse","kind":"struct","full_name":"Mailjet::Messagehistory::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Messageinformation/FindResponse","kind":"struct","full_name":"Mailjet::Messageinformation::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Messageinformation/Info","kind":"struct","full_name":"Mailjet::Messageinformation::Info","name":"Info"},{"html_id":"mailjet/Mailjet/Messageinformation/ListResponse","kind":"struct","full_name":"Mailjet::Messageinformation::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Metasender/CreateResponse","kind":"struct","full_name":"Mailjet::Metasender::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Metasender/Details","kind":"struct","full_name":"Mailjet::Metasender::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Metasender/FindResponse","kind":"struct","full_name":"Mailjet::Metasender::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Metasender/ListResponse","kind":"struct","full_name":"Mailjet::Metasender::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Metasender/UpdateResponse","kind":"struct","full_name":"Mailjet::Metasender::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Send/DeliveryError","kind":"struct","full_name":"Mailjet::Send::DeliveryError","name":"DeliveryError"},{"html_id":"mailjet/Mailjet/Send/DeliveryReceipt","kind":"struct","full_name":"Mailjet::Send::DeliveryReceipt","name":"DeliveryReceipt"},{"html_id":"mailjet/Mailjet/Send/ResponseMessage","kind":"struct","full_name":"Mailjet::Send::ResponseMessage","name":"ResponseMessage"},{"html_id":"mailjet/Mailjet/Send/SentMessage","kind":"struct","full_name":"Mailjet::Send::SentMessage","name":"SentMessage"},{"html_id":"mailjet/Mailjet/Sender/Address","kind":"struct","full_name":"Mailjet::Sender::Address","name":"Address"},{"html_id":"mailjet/Mailjet/Sender/CreateResponse","kind":"struct","full_name":"Mailjet::Sender::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Sender/FindResponse","kind":"struct","full_name":"Mailjet::Sender::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Sender/ListResponse","kind":"struct","full_name":"Mailjet::Sender::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Sender/UpdateResponse","kind":"struct","full_name":"Mailjet::Sender::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Statcounters/Counters","kind":"struct","full_name":"Mailjet::Statcounters::Counters","name":"Counters"},{"html_id":"mailjet/Mailjet/Statcounters/ListResponse","kind":"struct","full_name":"Mailjet::Statcounters::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Template/CreateResponse","kind":"struct","full_name":"Mailjet::Template::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindResponse","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdateResponse","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Template/Details","kind":"struct","full_name":"Mailjet::Template::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Template/FindResponse","kind":"struct","full_name":"Mailjet::Template::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Template/ListResponse","kind":"struct","full_name":"Mailjet::Template::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Template/UpdateResponse","kind":"struct","full_name":"Mailjet::Template::UpdateResponse","name":"UpdateResponse"}],"namespace":{"html_id":"mailjet/Mailjet/Json","kind":"struct","full_name":"Mailjet::Json","name":"Json"},"macros":[{"html_id":"json_fields(mapping)-macro","name":"json_fields","abstract":false,"args":[{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(mapping)","args_html":"(mapping)","location":{"filename":"src/mailjet/json/fields.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L8"},"def":{"name":"json_fields","args":[{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% for name, type in mapping %}\n {% underscored = (name.gsub(/-/, \"_\")).underscore %}\n\n {% if type.id.starts_with?('{') %}\n @[JSON::Field(key: {{ name.id }},\n converter: {{ type[:converter].id }})]\n {% type = type[:type] %}\n {% else %}{% if [\"::Union(Time, ::Nil)\".id].includes?(type.id) %}\n @[JSON::Field(key: {{ name.id }},\n converter: Mailjet::Json::NilableTime)]\n {% else %}\n @[JSON::Field(key: {{ name.id }})]\n {% end %}{% end %}\n\n getter {{ underscored.id }} : {{ type }}\n {% end %}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Json/NilableTime","path":"Mailjet/Json/NilableTime.html","kind":"struct","full_name":"Mailjet::Json::NilableTime","name":"NilableTime","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Json","kind":"struct","full_name":"Mailjet::Json","name":"Json"},"class_methods":[{"html_id":"from_json(value:JSON::PullParser)-class-method","name":"from_json","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"JSON::PullParser"}],"args_string":"(value : JSON::PullParser)","args_html":"(value : JSON::PullParser)","location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L4"},"def":{"name":"from_json","args":[{"name":"value","external_name":"value","restriction":"JSON::PullParser"}],"visibility":"Public","body":"if value.kind.string? && (!(time_value = value.read_string).blank?)\n Time.parse_rfc3339(time_value.to_s)\nelse\n nil\nend"}},{"html_id":"to_json(value:self,json:JSON::Builder)-class-method","name":"to_json","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"self"},{"name":"json","external_name":"json","restriction":"JSON::Builder"}],"args_string":"(value : self, json : JSON::Builder)","args_html":"(value : self, json : JSON::Builder)","location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L12"},"def":{"name":"to_json","args":[{"name":"value","external_name":"value","restriction":"self"},{"name":"json","external_name":"json","restriction":"JSON::Builder"}],"visibility":"Public","body":"json.string(value.to_rfc3339)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L3"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L3"},"def":{"name":"initialize","visibility":"Public","body":""}}]}]},{"html_id":"mailjet/Mailjet/Listrecipient","path":"Mailjet/Listrecipient.html","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L13"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"A list recipient object manages the relationship between a contact and a\ncontactslist - every instance of a contact being added to a list creates a\nnew list recipient. Both the contact and the list need to be created\nbeforehand.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_listrecipient\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_listrecipient_listrecipient_ID\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions/#v3_post_listrecipient\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_put_listrecipient_listrecipient_ID\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_delete_listrecipient_listrecipient_ID\n","summary":"

A list recipient object manages the relationship between a contact and a contactslist - every instance of a contact being added to a list creates a new list recipient.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L27"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L47"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a listrecipient\n\n```\nMailjet::Listrecipient.delete(12345)\n```\n","summary":"

Delete a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L65"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L35"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L35"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L57"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L57"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Listrecipient/CreatePath","path":"Mailjet/Listrecipient/CreatePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/CreateResponse","path":"Mailjet/Listrecipient/CreateResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/DeletePath","path":"Mailjet/Listrecipient/DeletePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L65"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Delete a listrecipient\n\n```\nMailjet::Listrecipient.delete(12345)\n```\n","summary":"

Delete a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/FindPath","path":"Mailjet/Listrecipient/FindPath.html","kind":"struct","full_name":"Mailjet::Listrecipient::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L35"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/FindResponse","path":"Mailjet/Listrecipient/FindResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L35"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/Join","path":"Mailjet/Listrecipient/Join.html","kind":"struct","full_name":"Mailjet::Listrecipient::Join","name":"Join","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":67,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L67"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_active:Bool-instance-method","name":"is_active","abstract":false,"def":{"name":"is_active","return_type":"Bool","visibility":"Public","body":"@is_active"}},{"html_id":"is_unsubscribed:Bool-instance-method","name":"is_unsubscribed","abstract":false,"def":{"name":"is_unsubscribed","return_type":"Bool","visibility":"Public","body":"@is_unsubscribed"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"list_name:String-instance-method","name":"list_name","abstract":false,"def":{"name":"list_name","return_type":"String","visibility":"Public","body":"@list_name"}},{"html_id":"subscribed_at:Union(Time,Nil)-instance-method","name":"subscribed_at","abstract":false,"def":{"name":"subscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@subscribed_at"}},{"html_id":"unsubscribed_at:Union(Time,Nil)-instance-method","name":"unsubscribed_at","abstract":false,"def":{"name":"unsubscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_at"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ListPath","path":"Mailjet/Listrecipient/ListPath.html","kind":"struct","full_name":"Mailjet::Listrecipient::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ListResponse","path":"Mailjet/Listrecipient/ListResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ResponseData","path":"Mailjet/Listrecipient/ResponseData.html","kind":"alias","full_name":"Mailjet::Listrecipient::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":14,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L14"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Listrecipient::Join)","aliased_html":"Array(Mailjet::Listrecipient::Join)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"}},{"html_id":"mailjet/Mailjet/Listrecipient/UpdatePath","path":"Mailjet/Listrecipient/UpdatePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L57"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/UpdateResponse","path":"Mailjet/Listrecipient/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L57"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Message","path":"Mailjet/Message.html","kind":"struct","full_name":"Mailjet::Message","name":"Message","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Every time you send an email via Mailjet, a new message object is created.\nThe resources below help you retrieve details about these messages - sending\ntime, delivery and contact engagement info, recipients, message size, etc.\n\nhttps://dev.mailjet.com/email/reference/messages/\n","summary":"

Every time you send an email via Mailjet, a new message object is created.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L23"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L31"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L31"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Message/Details","path":"Mailjet/Message/Details.html","kind":"struct","full_name":"Mailjet::Message::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L33"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"arrived_at:Time-instance-method","name":"arrived_at","abstract":false,"def":{"name":"arrived_at","return_type":"Time","visibility":"Public","body":"@arrived_at"}},{"html_id":"attachment_count:Int32-instance-method","name":"attachment_count","abstract":false,"def":{"name":"attachment_count","return_type":"Int32","visibility":"Public","body":"@attachment_count"}},{"html_id":"attempt_count:Int32-instance-method","name":"attempt_count","abstract":false,"def":{"name":"attempt_count","return_type":"Int32","visibility":"Public","body":"@attempt_count"}},{"html_id":"contact_alt:String-instance-method","name":"contact_alt","abstract":false,"def":{"name":"contact_alt","return_type":"String","visibility":"Public","body":"@contact_alt"}},{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"delay:Int32-instance-method","name":"delay","abstract":false,"def":{"name":"delay","return_type":"Int32","visibility":"Public","body":"@delay"}},{"html_id":"destination_id:Int32-instance-method","name":"destination_id","abstract":false,"def":{"name":"destination_id","return_type":"Int32","visibility":"Public","body":"@destination_id"}},{"html_id":"filter_time:Int32-instance-method","name":"filter_time","abstract":false,"def":{"name":"filter_time","return_type":"Int32","visibility":"Public","body":"@filter_time"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_click_tracked:Bool-instance-method","name":"is_click_tracked","abstract":false,"def":{"name":"is_click_tracked","return_type":"Bool","visibility":"Public","body":"@is_click_tracked"}},{"html_id":"is_html_part_included:Bool-instance-method","name":"is_html_part_included","abstract":false,"def":{"name":"is_html_part_included","return_type":"Bool","visibility":"Public","body":"@is_html_part_included"}},{"html_id":"is_open_tracked:Bool-instance-method","name":"is_open_tracked","abstract":false,"def":{"name":"is_open_tracked","return_type":"Bool","visibility":"Public","body":"@is_open_tracked"}},{"html_id":"is_text_part_included:Bool-instance-method","name":"is_text_part_included","abstract":false,"def":{"name":"is_text_part_included","return_type":"Bool","visibility":"Public","body":"@is_text_part_included"}},{"html_id":"is_unsub_tracked:Bool-instance-method","name":"is_unsub_tracked","abstract":false,"def":{"name":"is_unsub_tracked","return_type":"Bool","visibility":"Public","body":"@is_unsub_tracked"}},{"html_id":"message_size:Int32-instance-method","name":"message_size","abstract":false,"def":{"name":"message_size","return_type":"Int32","visibility":"Public","body":"@message_size"}},{"html_id":"sender_id:Int32-instance-method","name":"sender_id","abstract":false,"def":{"name":"sender_id","return_type":"Int32","visibility":"Public","body":"@sender_id"}},{"html_id":"spamass_rules:String-instance-method","name":"spamass_rules","abstract":false,"def":{"name":"spamass_rules","return_type":"String","visibility":"Public","body":"@spamass_rules"}},{"html_id":"spamassassin_score:Int32-instance-method","name":"spamassassin_score","abstract":false,"def":{"name":"spamassassin_score","return_type":"Int32","visibility":"Public","body":"@spamassassin_score"}},{"html_id":"state_permanent:Bool-instance-method","name":"state_permanent","abstract":false,"def":{"name":"state_permanent","return_type":"Bool","visibility":"Public","body":"@state_permanent"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"uuid:String-instance-method","name":"uuid","abstract":false,"def":{"name":"uuid","return_type":"String","visibility":"Public","body":"@uuid"}}]},{"html_id":"mailjet/Mailjet/Message/FindPath","path":"Mailjet/Message/FindPath.html","kind":"struct","full_name":"Mailjet::Message::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Message/FindResponse","path":"Mailjet/Message/FindResponse.html","kind":"struct","full_name":"Mailjet::Message::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Message/ListPath","path":"Mailjet/Message/ListPath.html","kind":"struct","full_name":"Mailjet::Message::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L23"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Message/ListResponse","path":"Mailjet/Message/ListResponse.html","kind":"struct","full_name":"Mailjet::Message::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L23"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Message/ResponseData","path":"Mailjet/Message/ResponseData.html","kind":"alias","full_name":"Mailjet::Message::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Message::Details)","aliased_html":"Array(Mailjet::Message::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"}}]},{"html_id":"mailjet/Mailjet/Messagehistory","path":"Mailjet/Messagehistory.html","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the event history (sending, open, click etc.) for a specific\nmessage.\n\nhttps://dev.mailjet.com/email/reference/messages/#v3_get_messagehistory_message_ID\n","summary":"

Retrieve the event history (sending, open, click etc.) for a specific message.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"all(id:Int64|String,client:Client=Client.new)-class-method","name":"all","doc":"Convenience method allowing to pass the message id and returning the array\nof events directly\n\n```\nevents = Mailjet::Messagehistory.all(576460754655154659)\nevents.first.event_type\n# => \"opened\"\n```\n","summary":"

Convenience method allowing to pass the message id and returning the array of events directly

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"Int64 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : Int64 | String, client : Client = Client.new)","args_html":"(id : Int64 | String, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messagehistory.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L29"},"def":{"name":"all","args":[{"name":"id","external_name":"id","restriction":"Int64 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(params: {id: id}, client: client).data"}}],"types":[{"html_id":"mailjet/Mailjet/Messagehistory/Event","path":"Mailjet/Messagehistory/Event.html","kind":"struct","full_name":"Mailjet::Messagehistory::Event","name":"Event","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"comment:String-instance-method","name":"comment","abstract":false,"def":{"name":"comment","return_type":"String","visibility":"Public","body":"@comment"}},{"html_id":"event_at:Time-instance-method","name":"event_at","abstract":false,"def":{"name":"event_at","return_type":"Time","visibility":"Public","body":"@event_at"}},{"html_id":"event_type:String-instance-method","name":"event_type","abstract":false,"def":{"name":"event_type","return_type":"String","visibility":"Public","body":"@event_type"}},{"html_id":"state:String-instance-method","name":"state","abstract":false,"def":{"name":"state","return_type":"String","visibility":"Public","body":"@state"}},{"html_id":"useragent:String-instance-method","name":"useragent","abstract":false,"def":{"name":"useragent","return_type":"String","visibility":"Public","body":"@useragent"}},{"html_id":"useragent_id:Int32-instance-method","name":"useragent_id","abstract":false,"def":{"name":"useragent_id","return_type":"Int32","visibility":"Public","body":"@useragent_id"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ListPath","path":"Mailjet/Messagehistory/ListPath.html","kind":"struct","full_name":"Mailjet::Messagehistory::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ListResponse","path":"Mailjet/Messagehistory/ListResponse.html","kind":"struct","full_name":"Mailjet::Messagehistory::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ResponseData","path":"Mailjet/Messagehistory/ResponseData.html","kind":"alias","full_name":"Mailjet::Messagehistory::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Messagehistory::Event)","aliased_html":"Array(Mailjet::Messagehistory::Event)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"}}]},{"html_id":"mailjet/Mailjet/Messageinformation","path":"Mailjet/Messageinformation.html","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve sending / size / spam information about all messages.\n\nhttps://dev.mailjet.com/email/reference/messages#v3_get_messageinformation\nhttps://dev.mailjet.com/email/reference/messages/#v3_get_messageinformation_message_ID\n","summary":"

Retrieve sending / size / spam information about all messages.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L21"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L31"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L31"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Messageinformation/FindPath","path":"Mailjet/Messageinformation/FindPath.html","kind":"struct","full_name":"Mailjet::Messageinformation::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/FindResponse","path":"Mailjet/Messageinformation/FindResponse.html","kind":"struct","full_name":"Mailjet::Messageinformation::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/Info","path":"Mailjet/Messageinformation/Info.html","kind":"struct","full_name":"Mailjet::Messageinformation::Info","name":"Info","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L33"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"campaign_id:Int32-instance-method","name":"campaign_id","abstract":false,"def":{"name":"campaign_id","return_type":"Int32","visibility":"Public","body":"@campaign_id"}},{"html_id":"click_tracked_count:Int32-instance-method","name":"click_tracked_count","abstract":false,"def":{"name":"click_tracked_count","return_type":"Int32","visibility":"Public","body":"@click_tracked_count"}},{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"message_size:Int32-instance-method","name":"message_size","abstract":false,"def":{"name":"message_size","return_type":"Int32","visibility":"Public","body":"@message_size"}},{"html_id":"open_tracked_count:Int32-instance-method","name":"open_tracked_count","abstract":false,"def":{"name":"open_tracked_count","return_type":"Int32","visibility":"Public","body":"@open_tracked_count"}},{"html_id":"queued_count:Int32-instance-method","name":"queued_count","abstract":false,"def":{"name":"queued_count","return_type":"Int32","visibility":"Public","body":"@queued_count"}},{"html_id":"send_end_at:Time-instance-method","name":"send_end_at","abstract":false,"def":{"name":"send_end_at","return_type":"Time","visibility":"Public","body":"@send_end_at"}},{"html_id":"sent_count:Int32-instance-method","name":"sent_count","abstract":false,"def":{"name":"sent_count","return_type":"Int32","visibility":"Public","body":"@sent_count"}},{"html_id":"spam_assassin_rules:Hash(String,String|Int32)-instance-method","name":"spam_assassin_rules","abstract":false,"def":{"name":"spam_assassin_rules","return_type":"Hash(String, String | Int32)","visibility":"Public","body":"@spam_assassin_rules"}},{"html_id":"spam_assassin_score:Int32-instance-method","name":"spam_assassin_score","abstract":false,"def":{"name":"spam_assassin_score","return_type":"Int32","visibility":"Public","body":"@spam_assassin_score"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ListPath","path":"Mailjet/Messageinformation/ListPath.html","kind":"struct","full_name":"Mailjet::Messageinformation::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ListResponse","path":"Mailjet/Messageinformation/ListResponse.html","kind":"struct","full_name":"Mailjet::Messageinformation::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ResponseData","path":"Mailjet/Messageinformation/ResponseData.html","kind":"alias","full_name":"Mailjet::Messageinformation::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Messageinformation::Info)","aliased_html":"Array(Mailjet::Messageinformation::Info)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"}}]},{"html_id":"mailjet/Mailjet/Metasender","path":"Mailjet/Metasender.html","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Metasender objects are senders, which can be used on the master account as\nwell as all sub-account API Keys. Use the resources below to manage your\nmetasenders.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/metasender/\n","summary":"

Metasender objects are senders, which can be used on the master account as well as all sub-account API Keys.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L37"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L47"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L47"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Metasender/CreatePath","path":"Mailjet/Metasender/CreatePath.html","kind":"struct","full_name":"Mailjet::Metasender::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/CreateResponse","path":"Mailjet/Metasender/CreateResponse.html","kind":"struct","full_name":"Mailjet::Metasender::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Metasender/Details","path":"Mailjet/Metasender/Details.html","kind":"struct","full_name":"Mailjet::Metasender::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"filename:String-instance-method","name":"filename","abstract":false,"def":{"name":"filename","return_type":"String","visibility":"Public","body":"@filename"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_enabled:Bool-instance-method","name":"is_enabled","abstract":false,"def":{"name":"is_enabled","return_type":"Bool","visibility":"Public","body":"@is_enabled"}}]},{"html_id":"mailjet/Mailjet/Metasender/FindPath","path":"Mailjet/Metasender/FindPath.html","kind":"struct","full_name":"Mailjet::Metasender::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/FindResponse","path":"Mailjet/Metasender/FindResponse.html","kind":"struct","full_name":"Mailjet::Metasender::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Metasender/ListPath","path":"Mailjet/Metasender/ListPath.html","kind":"struct","full_name":"Mailjet::Metasender::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/ListResponse","path":"Mailjet/Metasender/ListResponse.html","kind":"struct","full_name":"Mailjet::Metasender::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Metasender/ResponseData","path":"Mailjet/Metasender/ResponseData.html","kind":"alias","full_name":"Mailjet::Metasender::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Metasender::Details)","aliased_html":"Array(Mailjet::Metasender::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"}},{"html_id":"mailjet/Mailjet/Metasender/UpdatePath","path":"Mailjet/Metasender/UpdatePath.html","kind":"struct","full_name":"Mailjet::Metasender::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/UpdateResponse","path":"Mailjet/Metasender/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Metasender::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/MethodNotAllowedException","path":"Mailjet/MethodNotAllowedException.html","kind":"class","full_name":"Mailjet::MethodNotAllowedException","name":"MethodNotAllowedException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/MissingApiCredentialsException","path":"Mailjet/MissingApiCredentialsException.html","kind":"class","full_name":"Mailjet::MissingApiCredentialsException","name":"MissingApiCredentialsException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/ParamsMissingException","path":"Mailjet/ParamsMissingException.html","kind":"class","full_name":"Mailjet::ParamsMissingException","name":"ParamsMissingException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Path","path":"Mailjet/Path.html","kind":"struct","full_name":"Mailjet::Path","name":"Path","abstract":true,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/path.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/Campaign/FindPath","kind":"struct","full_name":"Mailjet::Campaign::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaign/ListPath","kind":"struct","full_name":"Mailjet::Campaign::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Campaign/UpdatePath","kind":"struct","full_name":"Mailjet::Campaign::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Campaigndraft/CreatePath","kind":"struct","full_name":"Mailjet::Campaigndraft::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindPath","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/FindPath","kind":"struct","full_name":"Mailjet::Campaigndraft::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/ListPath","kind":"struct","full_name":"Mailjet::Campaigndraft::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdatePath","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contact/CreatePath","kind":"struct","full_name":"Mailjet::Contact::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contact/FindPath","kind":"struct","full_name":"Mailjet::Contact::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contact/List/ListPath","kind":"struct","full_name":"Mailjet::Contact::List::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contact/ListPath","kind":"struct","full_name":"Mailjet::Contact::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contact/UpdatePath","kind":"struct","full_name":"Mailjet::Contact::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contactfilter/CreatePath","kind":"struct","full_name":"Mailjet::Contactfilter::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contactfilter/DeletePath","kind":"struct","full_name":"Mailjet::Contactfilter::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Contactfilter/FindPath","kind":"struct","full_name":"Mailjet::Contactfilter::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contactfilter/ListPath","kind":"struct","full_name":"Mailjet::Contactfilter::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contactfilter/UpdatePath","kind":"struct","full_name":"Mailjet::Contactfilter::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contactlist/CreatePath","kind":"struct","full_name":"Mailjet::Contactlist::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contactlist/DeletePath","kind":"struct","full_name":"Mailjet::Contactlist::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Contactlist/FindPath","kind":"struct","full_name":"Mailjet::Contactlist::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contactlist/ListPath","kind":"struct","full_name":"Mailjet::Contactlist::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contactlist/UpdatePath","kind":"struct","full_name":"Mailjet::Contactlist::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/DNS/FindPath","kind":"struct","full_name":"Mailjet::DNS::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/DNS/ListPath","kind":"struct","full_name":"Mailjet::DNS::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreatePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/DeletePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindPath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListPath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdatePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Listrecipient/CreatePath","kind":"struct","full_name":"Mailjet::Listrecipient::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Listrecipient/DeletePath","kind":"struct","full_name":"Mailjet::Listrecipient::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Listrecipient/FindPath","kind":"struct","full_name":"Mailjet::Listrecipient::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Listrecipient/ListPath","kind":"struct","full_name":"Mailjet::Listrecipient::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Listrecipient/UpdatePath","kind":"struct","full_name":"Mailjet::Listrecipient::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Message/FindPath","kind":"struct","full_name":"Mailjet::Message::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Message/ListPath","kind":"struct","full_name":"Mailjet::Message::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Messagehistory/ListPath","kind":"struct","full_name":"Mailjet::Messagehistory::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Messageinformation/FindPath","kind":"struct","full_name":"Mailjet::Messageinformation::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Messageinformation/ListPath","kind":"struct","full_name":"Mailjet::Messageinformation::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Metasender/CreatePath","kind":"struct","full_name":"Mailjet::Metasender::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Metasender/FindPath","kind":"struct","full_name":"Mailjet::Metasender::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Metasender/ListPath","kind":"struct","full_name":"Mailjet::Metasender::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Metasender/UpdatePath","kind":"struct","full_name":"Mailjet::Metasender::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Sender/CreatePath","kind":"struct","full_name":"Mailjet::Sender::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Sender/DeletePath","kind":"struct","full_name":"Mailjet::Sender::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Sender/FindPath","kind":"struct","full_name":"Mailjet::Sender::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Sender/ListPath","kind":"struct","full_name":"Mailjet::Sender::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Sender/UpdatePath","kind":"struct","full_name":"Mailjet::Sender::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Statcounters/ListPath","kind":"struct","full_name":"Mailjet::Statcounters::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Template/CreatePath","kind":"struct","full_name":"Mailjet::Template::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Template/DeletePath","kind":"struct","full_name":"Mailjet::Template::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindPath","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdatePath","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Template/FindPath","kind":"struct","full_name":"Mailjet::Template::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Template/ListPath","kind":"struct","full_name":"Mailjet::Template::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Template/UpdatePath","kind":"struct","full_name":"Mailjet::Template::UpdatePath","name":"UpdatePath"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(params:Hash|NamedTuple=Hash(String,String).new)-class-method","name":"new","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new)","location":{"filename":"src/mailjet/path.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L7"},"def":{"name":"new","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"_ = allocate\n_.initialize(params)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"params:Hash(String,String)-instance-method","name":"params","abstract":false,"location":{"filename":"src/mailjet/path.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L3"},"def":{"name":"params","return_type":"Hash(String, String)","visibility":"Public","body":"@params"}},{"html_id":"pattern-instance-method","name":"pattern","abstract":true,"location":{"filename":"src/mailjet/path.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L5"},"def":{"name":"pattern","visibility":"Public","body":""}},{"html_id":"to_s:String-instance-method","name":"to_s","doc":"Returns a nicely readable and concise string representation of this object,\ntypically intended for users.\n\nThis method should usually **not** be overridden. It delegates to\n`#to_s(IO)` which can be overridden for custom implementations.\n\nAlso see `#inspect`.","summary":"

Returns a nicely readable and concise string representation of this object, typically intended for users.

","abstract":false,"location":{"filename":"src/mailjet/path.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L11"},"def":{"name":"to_s","return_type":"String","visibility":"Public","body":"path = \"/:version/#{pattern.lchop(\"/\")}\"\n(path.scan(/:([a-z_]+)/)).each do |match|\n if value = @params[match[1]]?\n path = path.gsub(match[0], value)\n else\n raise(ParamsMissingException.new(\"Missing param \\\"#{match[1]}\\\"\"))\n end\nend\npath\n"}}]},{"html_id":"mailjet/Mailjet/RequestException","path":"Mailjet/RequestException.html","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":22,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L22"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/ResourceNotFoundException","kind":"class","full_name":"Mailjet::ResourceNotFoundException","name":"ResourceNotFoundException"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"The error info value may return anything from a string to an array of\nhashes, so some juggling is needed to drill down to the actual errors. Here\nis an example:\n\n```\ncase exception.error_info\nwhen String\n puts exception.error_info\nwhen Mailjet::Exception::ErrorInfoArray\n if contactslists = exception.error_info[\"ContactsLists\"]?\n puts contactslists.map(&.[\"Error\"]).join(\", \")\n end\nend\n```\n","summary":"

The error info value may return anything from a string to an array of hashes, so some juggling is needed to drill down to the actual errors.

","constructors":[{"html_id":"new(__temp_78:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"__temp_78","external_name":"__temp_78","restriction":"::JSON::PullParser"}],"args_string":"(__temp_78 : JSON::PullParser)","args_html":"(__temp_78 : JSON::PullParser)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"new","args":[{"name":"__temp_78","external_name":"__temp_78","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"_ = allocate\n_.initialize(__temp_78)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"error_info:Exception::ErrorInfo-instance-method","name":"error_info","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"error_info","return_type":"Exception::ErrorInfo","visibility":"Public","body":"@error_info"}},{"html_id":"error_info=(_error_info:Exception::ErrorInfo)-instance-method","name":"error_info=","abstract":false,"args":[{"name":"_error_info","external_name":"_error_info","restriction":"Exception::ErrorInfo"}],"args_string":"(_error_info : Exception::ErrorInfo)","args_html":"(_error_info : Exception::ErrorInfo)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"error_info=","args":[{"name":"_error_info","external_name":"_error_info","restriction":"Exception::ErrorInfo"}],"visibility":"Public","body":"@error_info = _error_info"}},{"html_id":"error_message:Union(String,Nil)-instance-method","name":"error_message","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"error_message","return_type":"::Union(String, ::Nil)","visibility":"Public","body":"@error_message"}},{"html_id":"error_message=(_error_message:Union(String,Nil))-instance-method","name":"error_message=","abstract":false,"args":[{"name":"_error_message","external_name":"_error_message","restriction":"::Union(String, ::Nil)"}],"args_string":"(_error_message : Union(String, Nil))","args_html":"(_error_message : Union(String, Nil))","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"error_message=","args":[{"name":"_error_message","external_name":"_error_message","restriction":"::Union(String, ::Nil)"}],"visibility":"Public","body":"@error_message = _error_message"}},{"html_id":"message-instance-method","name":"message","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L29"},"def":{"name":"message","visibility":"Public","body":"\"#{error_message} (#{status_code})\""}},{"html_id":"status_code:Union(Int32,Nil)-instance-method","name":"status_code","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"status_code","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@status_code"}},{"html_id":"status_code=(_status_code:Union(Int32,Nil))-instance-method","name":"status_code=","abstract":false,"args":[{"name":"_status_code","external_name":"_status_code","restriction":"::Union(Int32, ::Nil)"}],"args_string":"(_status_code : Union(Int32, Nil))","args_html":"(_status_code : Union(Int32, Nil))","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"status_code=","args":[{"name":"_status_code","external_name":"_status_code","restriction":"::Union(Int32, ::Nil)"}],"visibility":"Public","body":"@status_code = _status_code"}},{"html_id":"to_json(json:JSON::Builder)-instance-method","name":"to_json","abstract":false,"args":[{"name":"json","external_name":"json","restriction":"::JSON::Builder"}],"args_string":"(json : JSON::Builder)","args_html":"(json : JSON::Builder)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"to_json","args":[{"name":"json","external_name":"json","restriction":"::JSON::Builder"}],"visibility":"Public","body":"json.object do\n _error_message = @error_message\n if _error_message.nil?\n else\n json.field(\"ErrorMessage\") do\n _error_message.to_json(json)\n end\n end\n _error_info = @error_info\n if _error_info.nil?\n else\n json.field(\"ErrorInfo\") do\n _error_info.to_json(json)\n end\n end\n _status_code = @status_code\n if _status_code.nil?\n else\n json.field(\"StatusCode\") do\n _status_code.to_json(json)\n end\n end\nend"}},{"html_id":"to_s-instance-method","name":"to_s","doc":"Returns a nicely readable and concise string representation of this object,\ntypically intended for users.\n\nThis method should usually **not** be overridden. It delegates to\n`#to_s(IO)` which can be overridden for custom implementations.\n\nAlso see `#inspect`.","summary":"

Returns a nicely readable and concise string representation of this object, typically intended for users.

","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L33"},"def":{"name":"to_s","visibility":"Public","body":"message"}}]},{"html_id":"mailjet/Mailjet/RequestTimeoutException","path":"Mailjet/RequestTimeoutException.html","kind":"class","full_name":"Mailjet::RequestTimeoutException","name":"RequestTimeoutException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Resource","path":"Mailjet/Resource.html","kind":"struct","full_name":"Mailjet::Resource","name":"Resource","abstract":true,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"},{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"},{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},{"html_id":"mailjet/Mailjet/Sender/Validate","kind":"struct","full_name":"Mailjet::Sender::Validate","name":"Validate"},{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}],"macros":[{"html_id":"can_create(pattern,mapping)-macro","name":"can_create","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":70,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L70"},"def":{"name":"can_create","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.create(\n payload : Hash | NamedTuple,\n params : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = CreatePath.new(params).to_s\n response = client.handle_api_call(\"POST\", path,\n payload: Utilities.to_camelcased_hash(payload))\n\n CreateResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n\n struct CreateResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct CreatePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_delete(pattern)-macro","name":"can_delete","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""}],"args_string":"(pattern)","args_html":"(pattern)","location":{"filename":"src/mailjet/resource.cr","line_number":138,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L138"},"def":{"name":"can_delete","args":[{"name":"pattern","external_name":"pattern","restriction":""}],"visibility":"Public","body":" def self.delete(\n id : ResourceId,\n client : Client = Client.new\n )\n path = DeletePath.new(\n{id: id}).to_s\n client.handle_api_call(\"DELETE\", path)\n nil\n \nend\n\n struct DeletePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_find(pattern,mapping)-macro","name":"can_find","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":34,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L34"},"def":{"name":"can_find","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.find(\n params : Hash | NamedTuple = Hash(String, String).new,\n query : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = FindPath.new(params).to_s\n response = client.handle_api_call(\"GET\", path, query: query)\n\n FindResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n\n def self.find(\n id : ResourceId,\n query : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n find(\n{id: id}, query: query, client: client)\n \nend\n\n struct FindResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct FindPath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_list(pattern,mapping)-macro","name":"can_list","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L3"},"def":{"name":"can_list","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Count: Int32, Data: mapping, Total: Int32} %}\n {% end %}\n\n\n def self.all(\n query : Hash | NamedTuple = Hash(String, String).new,\n params : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = ListPath.new(params).to_s\n response = client.handle_api_call(\"GET\", path, query: query)\n\n ListResponse.from_json(response)\n \nend\n\n struct ListResponse\n include Mailjet::Json::Fields\n\n \n{% if mapping.keys.includes?(\"Data\".id) %}\n forward_missing_to data\n {% end %}\n\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct ListPath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_update(pattern,mapping)-macro","name":"can_update","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":99,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L99"},"def":{"name":"can_update","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.update(\n params : Hash | NamedTuple = Hash(String, String).new,\n payload : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = UpdatePath.new(params).to_s\n response = client.handle_api_call(\"PUT\", path,\n payload: Utilities.to_camelcased_hash(payload))\n\n unless response.empty?\n UpdateResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n \nend\n\n def self.update(\n id : ResourceId,\n payload : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n update(\n{id: id}, payload: payload, client: client)\n \nend\n\n struct UpdateResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct UpdatePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}}]},{"html_id":"mailjet/Mailjet/ResourceId","path":"Mailjet/ResourceId.html","kind":"alias","full_name":"Mailjet::ResourceId","name":"ResourceId","abstract":false,"locations":[{"filename":"src/mailjet/alias.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/alias.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"(Int32 | Int64 | String)","aliased_html":"Int32 | Int64 | String","const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/ResourceNotFoundException","path":"Mailjet/ResourceNotFoundException.html","kind":"class","full_name":"Mailjet::ResourceNotFoundException","name":"ResourceNotFoundException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},"ancestors":[{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Send","path":"Mailjet/Send.html","kind":"struct","full_name":"Mailjet::Send","name":"Send","abstract":true,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/SendV3","kind":"struct","full_name":"Mailjet::SendV3","name":"SendV3"},{"html_id":"mailjet/Mailjet/SendV3_1","kind":"struct","full_name":"Mailjet::SendV3_1","name":"SendV3_1"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Send API v3 and v3.1 are part of Mailjet's transactional messaging suite.\nSend API v3.1 (`Mailjet::SendV3_1`) gives more detailed feedback information\non your sendings, while Send API v3 (`Mailjet::SendV3`) gives you a higher\nsending limit per single API call.\n\nhttps://dev.mailjet.com/email/reference/send-emails/\n","summary":"

Send API v3 and v3.1 are part of Mailjet's transactional messaging suite.

","class_methods":[{"html_id":"message(message:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"message","doc":"Deliver a single message\n\n```\nMailjet::SendV3.message({...})\n# or\nMailjet::SendV3_1.message({...})\n```\n","summary":"

Deliver a single message

","abstract":false,"args":[{"name":"message","external_name":"message","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(message : Hash | NamedTuple, client : Client = Client.new)","args_html":"(message : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L18"},"def":{"name":"message","args":[{"name":"message","external_name":"message","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(self.messages([message], client)).first"}}],"types":[{"html_id":"mailjet/Mailjet/Send/DeliveryError","path":"Mailjet/Send/DeliveryError.html","kind":"struct","full_name":"Mailjet::Send::DeliveryError","name":"DeliveryError","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":59,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L59"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"error_code:String-instance-method","name":"error_code","abstract":false,"def":{"name":"error_code","return_type":"String","visibility":"Public","body":"@error_code"}},{"html_id":"error_identifier:String-instance-method","name":"error_identifier","abstract":false,"def":{"name":"error_identifier","return_type":"String","visibility":"Public","body":"@error_identifier"}},{"html_id":"error_message:String-instance-method","name":"error_message","abstract":false,"def":{"name":"error_message","return_type":"String","visibility":"Public","body":"@error_message"}},{"html_id":"error_related_to:Array(String)-instance-method","name":"error_related_to","abstract":false,"def":{"name":"error_related_to","return_type":"Array(String)","visibility":"Public","body":"@error_related_to"}},{"html_id":"status_code:Int32-instance-method","name":"status_code","abstract":false,"def":{"name":"status_code","return_type":"Int32","visibility":"Public","body":"@status_code"}}]},{"html_id":"mailjet/Mailjet/Send/DeliveryReceipt","path":"Mailjet/Send/DeliveryReceipt.html","kind":"struct","full_name":"Mailjet::Send::DeliveryReceipt","name":"DeliveryReceipt","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"message_href:String-instance-method","name":"message_href","abstract":false,"def":{"name":"message_href","return_type":"String","visibility":"Public","body":"@message_href"}},{"html_id":"message_id:Int64-instance-method","name":"message_id","abstract":false,"def":{"name":"message_id","return_type":"Int64","visibility":"Public","body":"@message_id"}},{"html_id":"message_uuid:String-instance-method","name":"message_uuid","abstract":false,"def":{"name":"message_uuid","return_type":"String","visibility":"Public","body":"@message_uuid"}}]},{"html_id":"mailjet/Mailjet/Send/ResponseMessage","path":"Mailjet/Send/ResponseMessage.html","kind":"struct","full_name":"Mailjet::Send::ResponseMessage","name":"ResponseMessage","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":25,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L25"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"bcc:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"bcc","abstract":false,"def":{"name":"bcc","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@bcc"}},{"html_id":"cc:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"cc","abstract":false,"def":{"name":"cc","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@cc"}},{"html_id":"custom_id:Union(String,Nil)-instance-method","name":"custom_id","abstract":false,"def":{"name":"custom_id","return_type":"::Union(String, ::Nil)","visibility":"Public","body":"@custom_id"}},{"html_id":"errors:Union(Array(DeliveryError),Nil)-instance-method","name":"errors","abstract":false,"def":{"name":"errors","return_type":"::Union(Array(DeliveryError), ::Nil)","visibility":"Public","body":"@errors"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"to:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"to","abstract":false,"def":{"name":"to","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@to"}}]},{"html_id":"mailjet/Mailjet/Send/SentMessage","path":"Mailjet/Send/SentMessage.html","kind":"struct","full_name":"Mailjet::Send::SentMessage","name":"SentMessage","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"message_id:Int64-instance-method","name":"message_id","abstract":false,"def":{"name":"message_id","return_type":"Int64","visibility":"Public","body":"@message_id"}},{"html_id":"message_uuid:String-instance-method","name":"message_uuid","abstract":false,"def":{"name":"message_uuid","return_type":"String","visibility":"Public","body":"@message_uuid"}}]}]},{"html_id":"mailjet/Mailjet/Sender","path":"Mailjet/Sender.html","kind":"struct","full_name":"Mailjet::Sender","name":"Sender","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L7"},{"filename":"src/mailjet/resources/sender/validate.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender/validate.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Senders objects are used to select the From email address for the emails\nyou are sending. Use the resources below to manage and validate your senders.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/sender/\n","summary":"

Senders objects are used to select the From email address for the emails you are sending.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L39"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a sender\n\n```\nMailjet::Sender.delete(1324)\n```\n","summary":"

Delete a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L60"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L52"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L52"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Sender/Address","path":"Mailjet/Sender/Address.html","kind":"struct","full_name":"Mailjet::Sender::Address","name":"Address","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":62,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L62"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"dnsid:Int64-instance-method","name":"dnsid","abstract":false,"def":{"name":"dnsid","return_type":"Int64","visibility":"Public","body":"@dnsid"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"email_type:String-instance-method","name":"email_type","abstract":false,"def":{"name":"email_type","return_type":"String","visibility":"Public","body":"@email_type"}},{"html_id":"filename:String-instance-method","name":"filename","abstract":false,"def":{"name":"filename","return_type":"String","visibility":"Public","body":"@filename"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_default_sender:Bool-instance-method","name":"is_default_sender","abstract":false,"def":{"name":"is_default_sender","return_type":"Bool","visibility":"Public","body":"@is_default_sender"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}}]},{"html_id":"mailjet/Mailjet/Sender/CreatePath","path":"Mailjet/Sender/CreatePath.html","kind":"struct","full_name":"Mailjet::Sender::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/CreateResponse","path":"Mailjet/Sender/CreateResponse.html","kind":"struct","full_name":"Mailjet::Sender::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/DeletePath","path":"Mailjet/Sender/DeletePath.html","kind":"struct","full_name":"Mailjet::Sender::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Delete a sender\n\n```\nMailjet::Sender.delete(1324)\n```\n","summary":"

Delete a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/FindPath","path":"Mailjet/Sender/FindPath.html","kind":"struct","full_name":"Mailjet::Sender::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/FindResponse","path":"Mailjet/Sender/FindResponse.html","kind":"struct","full_name":"Mailjet::Sender::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/ListPath","path":"Mailjet/Sender/ListPath.html","kind":"struct","full_name":"Mailjet::Sender::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/ListResponse","path":"Mailjet/Sender/ListResponse.html","kind":"struct","full_name":"Mailjet::Sender::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Sender/ResponseData","path":"Mailjet/Sender/ResponseData.html","kind":"alias","full_name":"Mailjet::Sender::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Sender::Address)","aliased_html":"Array(Mailjet::Sender::Address)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"}},{"html_id":"mailjet/Mailjet/Sender/UpdatePath","path":"Mailjet/Sender/UpdatePath.html","kind":"struct","full_name":"Mailjet::Sender::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/UpdateResponse","path":"Mailjet/Sender/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Sender::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/Validate","path":"Mailjet/Sender/Validate.html","kind":"struct","full_name":"Mailjet::Sender::Validate","name":"Validate","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender/validate.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender/validate.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Validate a registered sender email address or domain. A sender domain\n(*@domain.com) is validated by checking the caller's rights, the existence\nof a metasender for that domain or by searching for the ownership token on\nthe domain root or in the DNS.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/sender#v3_post_sender_sender_ID_validate\n","summary":"

Validate a registered sender email address or domain.

","class_methods":[{"html_id":"create(sender_id:ResourceId,client:Client=Client.new)-class-method","name":"create","doc":"Check if sender is validated\n\n```\nvalidation = Mailjet::Sender::Validate.create(12345)\nputs validation.validation_method\n# => \"ActivationEmail\"\n```\n\nNote: If the user is already activated, a http status 400 will be\nreturned, which will result in a `Mailjet::RequestException` to be\nraised.\n","summary":"

Check if sender is validated

","abstract":false,"args":[{"name":"sender_id","external_name":"sender_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(sender_id : ResourceId, client : Client = Client.new)","args_html":"(sender_id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender/validate.cr","line_number":30,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender/validate.cr#L30"},"def":{"name":"create","args":[{"name":"sender_id","external_name":"sender_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create({} of String => String, {sender_id: sender_id}, client)"}}]}]},{"html_id":"mailjet/Mailjet/SendV3","path":"Mailjet/SendV3.html","kind":"struct","full_name":"Mailjet::SendV3","name":"SendV3","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"ancestors":[{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":72,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L72"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"messages(messages:Array(Hash)|Array(NamedTuple),client:Client=Client.new)-class-method","name":"messages","doc":"Deliver an array of messages\n\n```\nmessages = [\n {...},\n {...},\n]\nMailjet::SendV3.messages(messages)\n```\n","summary":"

Deliver an array of messages

","abstract":false,"args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","args_html":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":86,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L86"},"def":{"name":"messages","args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(create({Messages: messages}, params: {version: \"v3\"}, client: client)).sent"}}]},{"html_id":"mailjet/Mailjet/SendV3_1","path":"Mailjet/SendV3_1.html","kind":"struct","full_name":"Mailjet::SendV3_1","name":"SendV3_1","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"ancestors":[{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":98,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L98"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"messages(messages:Array(Hash)|Array(NamedTuple),client:Client=Client.new)-class-method","name":"messages","doc":"Deliver an array of messages\n\n```\nmessages = [\n {...},\n {...},\n]\nMailjet::SendV3_1.messages(messages)\n```\n","summary":"

Deliver an array of messages

","abstract":false,"args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","args_html":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":112,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L112"},"def":{"name":"messages","args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(create({Messages: messages}, params: {version: \"v3.1\"}, client: client)).messages"}}]},{"html_id":"mailjet/Mailjet/Statcounters","path":"Mailjet/Statcounters.html","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Get aggregated statistics for a specific campaign, list, API Key or sender\nemail address. Both message-based and event-based stats can be retrieved.\n\nhttps://dev.mailjet.com/email/reference/statistics#v3_get_statcounters\n","summary":"

Get aggregated statistics for a specific campaign, list, API Key or sender email address.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L21"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"by_api_key(query:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"by_api_key","doc":"Convenience method to retrieve statistics at current API key level\n\n```\nresponse = Mailjet::Statcounters.by_api_key({\n counter_timing: \"event\",\n counter_resolution: \"hour\",\n from_ts: Time.local.at_beginning_of_week.to_unix,\n to_ts: Time.local.to_unix,\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at current API key level

","abstract":false,"args":[{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L35"},"def":{"name":"by_api_key","args":[{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_source => \"api_key\"}), client: client)"}},{"html_id":"by_campaign(campaign_id:Int32|String,query:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"by_campaign","doc":"Convenience method to retrieve statistics at campaign level\n\n```\nresponse = Mailjet::Statcounters.by_campaign(123456, {\n counter_timing: \"event\",\n counter_resolution: \"day\",\n from_ts: Time.local.at_beginning_of_day.to_unix,\n to_ts: Time.local.to_unix,\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at campaign level

","abstract":false,"args":[{"name":"campaign_id","external_name":"campaign_id","restriction":"Int32 | String"},{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(campaign_id : Int32 | String, query : Hash | NamedTuple, client : Client = Client.new)","args_html":"(campaign_id : Int32 | String, query : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":56,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L56"},"def":{"name":"by_campaign","args":[{"name":"campaign_id","external_name":"campaign_id","restriction":"Int32 | String"},{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_source => \"campaign\", :source_id => campaign_id}), client: client)"}},{"html_id":"by_list(list_id:Int32|String,client:Client=Client.new)-class-method","name":"by_list","doc":"Convenience method to retrieve statistics at list level\n\n```\nresponse = Mailjet::Statcounters.by_list(123456)\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at list level

","abstract":false,"args":[{"name":"list_id","external_name":"list_id","restriction":"Int32 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(list_id : Int32 | String, client : Client = Client.new)","args_html":"(list_id : Int32 | String, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":74,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L74"},"def":{"name":"by_list","args":[{"name":"list_id","external_name":"list_id","restriction":"Int32 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: {:counter_timing => \"message\", :counter_resolution => \"lifetime\", :counter_source => \"list\", :source_id => list_id}, client: client)"}},{"html_id":"by_sender(sender_id:Int32|String,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"by_sender","doc":"Convenience method to retrieve statistics at sender level\n\n```\nresponse = Mailjet::Statcounters.by_sender(123456, {\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at sender level

","abstract":false,"args":[{"name":"sender_id","external_name":"sender_id","restriction":"Int32 | String"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(sender_id : Int32 | String, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(sender_id : Int32 | String, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":95,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L95"},"def":{"name":"by_sender","args":[{"name":"sender_id","external_name":"sender_id","restriction":"Int32 | String"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_timing => \"message\", :counter_source => \"sender\", :source_id => sender_id}), client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Statcounters/Counters","path":"Mailjet/Statcounters/Counters.html","kind":"struct","full_name":"Mailjet::Statcounters::Counters","name":"Counters","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":107,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L107"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"api_key_id:Int32-instance-method","name":"api_key_id","abstract":false,"def":{"name":"api_key_id","return_type":"Int32","visibility":"Public","body":"@api_key_id"}},{"html_id":"event_click_delay:Int32-instance-method","name":"event_click_delay","abstract":false,"def":{"name":"event_click_delay","return_type":"Int32","visibility":"Public","body":"@event_click_delay"}},{"html_id":"event_clicked_count:Int32-instance-method","name":"event_clicked_count","abstract":false,"def":{"name":"event_clicked_count","return_type":"Int32","visibility":"Public","body":"@event_clicked_count"}},{"html_id":"event_open_delay:Int32-instance-method","name":"event_open_delay","abstract":false,"def":{"name":"event_open_delay","return_type":"Int32","visibility":"Public","body":"@event_open_delay"}},{"html_id":"event_opened_count:Int32-instance-method","name":"event_opened_count","abstract":false,"def":{"name":"event_opened_count","return_type":"Int32","visibility":"Public","body":"@event_opened_count"}},{"html_id":"event_spam_count:Int32-instance-method","name":"event_spam_count","abstract":false,"def":{"name":"event_spam_count","return_type":"Int32","visibility":"Public","body":"@event_spam_count"}},{"html_id":"event_unsubscribed_count:Int32-instance-method","name":"event_unsubscribed_count","abstract":false,"def":{"name":"event_unsubscribed_count","return_type":"Int32","visibility":"Public","body":"@event_unsubscribed_count"}},{"html_id":"event_workflow_exited_count:Int32-instance-method","name":"event_workflow_exited_count","abstract":false,"def":{"name":"event_workflow_exited_count","return_type":"Int32","visibility":"Public","body":"@event_workflow_exited_count"}},{"html_id":"message_blocked_count:Int32-instance-method","name":"message_blocked_count","abstract":false,"def":{"name":"message_blocked_count","return_type":"Int32","visibility":"Public","body":"@message_blocked_count"}},{"html_id":"message_clicked_count:Int32-instance-method","name":"message_clicked_count","abstract":false,"def":{"name":"message_clicked_count","return_type":"Int32","visibility":"Public","body":"@message_clicked_count"}},{"html_id":"message_deferred_count:Int32-instance-method","name":"message_deferred_count","abstract":false,"def":{"name":"message_deferred_count","return_type":"Int32","visibility":"Public","body":"@message_deferred_count"}},{"html_id":"message_hard_bounced_count:Int32-instance-method","name":"message_hard_bounced_count","abstract":false,"def":{"name":"message_hard_bounced_count","return_type":"Int32","visibility":"Public","body":"@message_hard_bounced_count"}},{"html_id":"message_opened_count:Int32-instance-method","name":"message_opened_count","abstract":false,"def":{"name":"message_opened_count","return_type":"Int32","visibility":"Public","body":"@message_opened_count"}},{"html_id":"message_queued_count:Int32-instance-method","name":"message_queued_count","abstract":false,"def":{"name":"message_queued_count","return_type":"Int32","visibility":"Public","body":"@message_queued_count"}},{"html_id":"message_sent_count:Int32-instance-method","name":"message_sent_count","abstract":false,"def":{"name":"message_sent_count","return_type":"Int32","visibility":"Public","body":"@message_sent_count"}},{"html_id":"message_soft_bounced_count:Int32-instance-method","name":"message_soft_bounced_count","abstract":false,"def":{"name":"message_soft_bounced_count","return_type":"Int32","visibility":"Public","body":"@message_soft_bounced_count"}},{"html_id":"message_spam_count:Int32-instance-method","name":"message_spam_count","abstract":false,"def":{"name":"message_spam_count","return_type":"Int32","visibility":"Public","body":"@message_spam_count"}},{"html_id":"message_unsubscribed_count:Int32-instance-method","name":"message_unsubscribed_count","abstract":false,"def":{"name":"message_unsubscribed_count","return_type":"Int32","visibility":"Public","body":"@message_unsubscribed_count"}},{"html_id":"message_work_flow_exited_count:Int32-instance-method","name":"message_work_flow_exited_count","abstract":false,"def":{"name":"message_work_flow_exited_count","return_type":"Int32","visibility":"Public","body":"@message_work_flow_exited_count"}},{"html_id":"source_id:Int32-instance-method","name":"source_id","abstract":false,"def":{"name":"source_id","return_type":"Int32","visibility":"Public","body":"@source_id"}},{"html_id":"timeslice:String-instance-method","name":"timeslice","abstract":false,"def":{"name":"timeslice","return_type":"String","visibility":"Public","body":"@timeslice"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ListPath","path":"Mailjet/Statcounters/ListPath.html","kind":"struct","full_name":"Mailjet::Statcounters::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ListResponse","path":"Mailjet/Statcounters/ListResponse.html","kind":"struct","full_name":"Mailjet::Statcounters::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ResponseData","path":"Mailjet/Statcounters/ResponseData.html","kind":"alias","full_name":"Mailjet::Statcounters::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Statcounters::Counters)","aliased_html":"Array(Mailjet::Statcounters::Counters)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"}}]},{"html_id":"mailjet/Mailjet/Template","path":"Mailjet/Template.html","kind":"struct","full_name":"Mailjet::Template","name":"Template","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L8"},{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the contents of an email template. It will be split between a Text\npart, HTML part, MJML content and/or additional headers.\n\nhttps://dev.mailjet.com/email/reference/templates/#v3_get_template_template_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/templates/#v3_post_template_template_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/templates/#v3_put_template_template_ID_detailcontent\n","summary":"

Retrieve the contents of an email template.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L42"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a template\n\n```\nMailjet::Template.delete(123456789)\n```\n","summary":"

Delete a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":66,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L66"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L58"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L58"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Template/CreatePath","path":"Mailjet/Template/CreatePath.html","kind":"struct","full_name":"Mailjet::Template::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/CreateResponse","path":"Mailjet/Template/CreateResponse.html","kind":"struct","full_name":"Mailjet::Template::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/DeletePath","path":"Mailjet/Template/DeletePath.html","kind":"struct","full_name":"Mailjet::Template::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":66,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L66"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Delete a template\n\n```\nMailjet::Template.delete(123456789)\n```\n","summary":"

Delete a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent","path":"Mailjet/Template/Detailcontent.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"class_methods":[{"html_id":"create(id:ResourceId,payload:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"create","doc":"Create content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.create(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L38"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create(payload, {id: id}, client: client)"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L19"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L19"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L60"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L60"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindPath","path":"Mailjet/Template/Detailcontent/FindPath.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindResponse","path":"Mailjet/Template/Detailcontent/FindResponse.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/ResponseData","path":"Mailjet/Template/Detailcontent/ResponseData.html","kind":"alias","full_name":"Mailjet::Template::Detailcontent::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(JSON::Any)","aliased_html":"Array(JSON::Any)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"}},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdatePath","path":"Mailjet/Template/Detailcontent/UpdatePath.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdateResponse","path":"Mailjet/Template/Detailcontent/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Template/Details","path":"Mailjet/Template/Details.html","kind":"struct","full_name":"Mailjet::Template::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":68,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L68"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"author:String-instance-method","name":"author","abstract":false,"def":{"name":"author","return_type":"String","visibility":"Public","body":"@author"}},{"html_id":"categories:Array(String)-instance-method","name":"categories","abstract":false,"def":{"name":"categories","return_type":"Array(String)","visibility":"Public","body":"@categories"}},{"html_id":"copyright:String-instance-method","name":"copyright","abstract":false,"def":{"name":"copyright","return_type":"String","visibility":"Public","body":"@copyright"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"edit_mode:Int32-instance-method","name":"edit_mode","abstract":false,"def":{"name":"edit_mode","return_type":"Int32","visibility":"Public","body":"@edit_mode"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"is_text_part_generation_enabled:Bool-instance-method","name":"is_text_part_generation_enabled","abstract":false,"def":{"name":"is_text_part_generation_enabled","return_type":"Bool","visibility":"Public","body":"@is_text_part_generation_enabled"}},{"html_id":"last_updated_at:Time-instance-method","name":"last_updated_at","abstract":false,"def":{"name":"last_updated_at","return_type":"Time","visibility":"Public","body":"@last_updated_at"}},{"html_id":"locale:String-instance-method","name":"locale","abstract":false,"def":{"name":"locale","return_type":"String","visibility":"Public","body":"@locale"}},{"html_id":"locale_list:Union(Array(String),Nil)-instance-method","name":"locale_list","abstract":false,"def":{"name":"locale_list","return_type":"::Union(Array(String), ::Nil)","visibility":"Public","body":"@locale_list"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"owner_id:Int32-instance-method","name":"owner_id","abstract":false,"def":{"name":"owner_id","return_type":"Int32","visibility":"Public","body":"@owner_id"}},{"html_id":"owner_type:String-instance-method","name":"owner_type","abstract":false,"def":{"name":"owner_type","return_type":"String","visibility":"Public","body":"@owner_type"}},{"html_id":"presets:JSON::Any-instance-method","name":"presets","abstract":false,"def":{"name":"presets","return_type":"JSON::Any","visibility":"Public","body":"@presets"}},{"html_id":"previews:Array(Int32)-instance-method","name":"previews","abstract":false,"def":{"name":"previews","return_type":"Array(Int32)","visibility":"Public","body":"@previews"}},{"html_id":"purposes:Array(String)-instance-method","name":"purposes","abstract":false,"def":{"name":"purposes","return_type":"Array(String)","visibility":"Public","body":"@purposes"}}]},{"html_id":"mailjet/Mailjet/Template/FindPath","path":"Mailjet/Template/FindPath.html","kind":"struct","full_name":"Mailjet::Template::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/FindResponse","path":"Mailjet/Template/FindResponse.html","kind":"struct","full_name":"Mailjet::Template::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/ListPath","path":"Mailjet/Template/ListPath.html","kind":"struct","full_name":"Mailjet::Template::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/ListResponse","path":"Mailjet/Template/ListResponse.html","kind":"struct","full_name":"Mailjet::Template::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Template/ResponseData","path":"Mailjet/Template/ResponseData.html","kind":"alias","full_name":"Mailjet::Template::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Template::Details)","aliased_html":"Array(Mailjet::Template::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"}},{"html_id":"mailjet/Mailjet/Template/UpdatePath","path":"Mailjet/Template/UpdatePath.html","kind":"struct","full_name":"Mailjet::Template::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L58"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/UpdateResponse","path":"Mailjet/Template/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Template::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L58"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Utilities","path":"Mailjet/Utilities.html","kind":"struct","full_name":"Mailjet::Utilities","name":"Utilities","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"query_parameterize(value:Hash|NamedTuple):String-class-method","name":"query_parameterize","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple) : String","args_html":"(value : Hash | NamedTuple) : String","location":{"filename":"src/mailjet/utilities.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L23"},"def":{"name":"query_parameterize","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"return_type":"String","visibility":"Public","body":"query = to_camelcased_hash(to_stringified_hash(value))\nHTTP::Params.encode(query)\n"}},{"html_id":"to_camelcased_hash(value:Hash|NamedTuple)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple)","args_html":"(value : Hash | NamedTuple)","location":{"filename":"src/mailjet/utilities.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L7"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"value.to_h.transform_keys() do |__arg2|\n __arg2.to_s.camelcase\nend.transform_values do |v|\n to_camelcased_hash(v)\nend"}},{"html_id":"to_camelcased_hash(value:Array)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Array"}],"args_string":"(value : Array)","args_html":"(value : Array)","location":{"filename":"src/mailjet/utilities.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L13"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Array"}],"visibility":"Public","body":"value.map do |v|\n to_camelcased_hash(v)\nend"}},{"html_id":"to_camelcased_hash(value:Bool|Int32|String|Nil)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Bool | Int32 | String | ::Nil"}],"args_string":"(value : Bool | Int32 | String | Nil)","args_html":"(value : Bool | Int32 | String | Nil)","location":{"filename":"src/mailjet/utilities.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L19"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Bool | Int32 | String | ::Nil"}],"visibility":"Public","body":"value"}},{"html_id":"to_stringified_hash(value:Hash|NamedTuple)-class-method","name":"to_stringified_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple)","args_html":"(value : Hash | NamedTuple)","location":{"filename":"src/mailjet/utilities.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L3"},"def":{"name":"to_stringified_hash","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"value.to_h.transform_keys(&.to_s).transform_values(&.to_s)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}]}]}]}} \ No newline at end of file +{"repository_name":"mailjet","body":"# Mailjet API client for Crystal\n\nMailjet is an email platform for teams to send transactional & marketing emails.\nIt is a GDPR compliant and ISO 27001 certified Email Service Provider.\n\n![GitHub](https://img.shields.io/github/license/wout/mollie.cr)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/wout/mailjet.cr)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/wout/mailjet.cr/ci.yml?branch=master)\n\n## Disclaimer\n\nThis is the unofficial [Crystal](https://crystal-lang.org/) shard for Mailjet.\nThe majority of the API is covered, but some parts still need to be added.\n\n## Requirements\n\nTo use the Mailjet API client, you will need a free\n[Mailjet account](https://app.mailjet.com/signup).\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n```yaml\ndependencies:\n mailjet:\n github: wout/mailjet.cr\n```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"mailjet\"\n```\n\n### Send your first email\n\n```crystal\nresponse = Mailjet::SendV3_1.message({\n \"From\": {\n \"Email\": \"from@email.com\",\n \"Name\": \"Me\",\n },\n \"To\": [\n {\n \"Email\": \"to@email.com\",\n \"Name\": \"You\",\n },\n ],\n \"Subject\": \"My first Mailjet Email!\",\n \"TextPart\": \"Greetings from Mailjet!\",\n \"HTMLPart\": <<-HTML\n

\n Dear passenger 1, welcome to\n Mailjet!\n

\n
\n May the delivery force be with you!\n HTML\n})\n\nputs response.status\n# => \"success\"\n```\n\n### Send multiple messages\n\n```crystal\nresponse = Mailjet::SendV3_1.messages([\n {...},\n {...}\n])\n\nputs response.first.status\n# => \"success\"\n```\n\n### Retrieve sent messages\n\nNow, let’s view the status of the sent message and its configuration specifics.\n\n```crystal\nmessage = Mailjet::Message.find(576460754655154659)\nputs message.status\n# => \"opened\"\n```\n\n### View message history\n\nYou can track important events linked to the sent emails, for example whether\nthe recipient opened the message, or clicked on a link within.\n\n```crystal\nevents = Mailjet::Messagehistory.all(576460754655154659)\nputs events.first.event_type\n# => \"sent\"\nputs events.last.event_type\n# => \"opened\"\n```\n\n### Retrieve Statistics\n\nThe Mailjet API also has a variety of resources that help retrieve aggregated\nstatistics for key performance indicators like opens, clicks, unsubscribes, etc.\n\nLet's take a look at just one of those resources to give you a sample of the\ndata you can read - we’ll retrieve total aggregated statistics for your API key.\n\n```crystal\ncounters = Mailjet::Statcounters.by_api_key({\n counter_timing: \"event\",\n counter_resolution: \"hour\",\n from_ts: Time.local.at_beginning_of_day.to_unix,\n to_ts: Time.local.to_unix,\n})\nputs counters.first.event_opened_count\n# => 28\n```\n\n## Documentation\n\n- [Shard API Docs](https://wout.github.io/mailjet.cr/)\n\n## To-do\n\nMost of the API is covered, but the following endpoints are not:\n\n- [ ] All Message Events\n- [ ] Bulk contact management and CSV import\n- [ ] Parse\n- [ ] Settings\n- [ ] SMS\n- [ ] Statistics (only statcounters is done)\n- [ ] Webhook\n\n## Contributing\n\n1. Fork it ()\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'feat: add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [wout](https://github.com/wout) - creator and maintainer\n","program":{"html_id":"mailjet/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"locations":[],"repository_name":"mailjet","program":true,"enum":false,"alias":false,"const":false,"types":[{"html_id":"mailjet/Mailjet","path":"Mailjet.html","kind":"struct","full_name":"Mailjet","name":"Mailjet","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet.cr#L11"},{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/alias.cr#L1"},{"filename":"src/mailjet/client.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L1"},{"filename":"src/mailjet/config.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L1"},{"filename":"src/mailjet/elements/address.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L1"},{"filename":"src/mailjet/elements/address_list.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L1"},{"filename":"src/mailjet/exception.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L1"},{"filename":"src/mailjet/json/fields.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L1"},{"filename":"src/mailjet/json/nilable_time.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L1"},{"filename":"src/mailjet/path.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L1"},{"filename":"src/mailjet/resource.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L1"},{"filename":"src/mailjet/resources/campaign.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L1"},{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L1"},{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L3"},{"filename":"src/mailjet/resources/contact.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L1"},{"filename":"src/mailjet/resources/contact/list.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L1"},{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L1"},{"filename":"src/mailjet/resources/contactfilter.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L1"},{"filename":"src/mailjet/resources/contactlist.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L1"},{"filename":"src/mailjet/resources/dns.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L1"},{"filename":"src/mailjet/resources/dns/check.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L1"},{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L1"},{"filename":"src/mailjet/resources/listrecipient.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L1"},{"filename":"src/mailjet/resources/message.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L1"},{"filename":"src/mailjet/resources/messagehistory.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L1"},{"filename":"src/mailjet/resources/messageinformation.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L1"},{"filename":"src/mailjet/resources/metasender.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L1"},{"filename":"src/mailjet/resources/send.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L1"},{"filename":"src/mailjet/resources/sender.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L1"},{"filename":"src/mailjet/resources/sender/validate.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender/validate.cr#L1"},{"filename":"src/mailjet/resources/statcounters.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L1"},{"filename":"src/mailjet/resources/template.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L1"},{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L1"},{"filename":"src/mailjet/utilities.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L1"},{"filename":"src/mailjet/version.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/version.cr#L1"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"VERSION","name":"VERSION","value":"{{ (`shards version \\\"/home/runner/work/mailjet.cr/mailjet.cr/src/mailjet\\\"`).chomp.stringify }}"}],"class_methods":[{"html_id":"configure(&)-class-method","name":"configure","abstract":false,"location":{"filename":"src/mailjet.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet.cr#L12"},"def":{"name":"configure","yields":1,"block_arity":1,"visibility":"Public","body":"yield(Mailjet::Config)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/alias.cr#L1"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/alias.cr#L1"},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"mailjet/Mailjet/Address","path":"Mailjet/Address.html","kind":"struct","full_name":"Mailjet::Address","name":"Address","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/elements/address.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(address:String,display_name:String)-class-method","name":"new","abstract":false,"args":[{"name":"address","external_name":"address","restriction":"::String"},{"name":"display_name","external_name":"display_name","restriction":"::String"}],"args_string":"(address : String, display_name : String)","args_html":"(address : String, display_name : String)","location":{"filename":"src/mailjet/elements/address.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L13"},"def":{"name":"new","args":[{"name":"address","external_name":"address","restriction":"::String"},{"name":"display_name","external_name":"display_name","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address, display_name)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(address_list:String)-class-method","name":"new","abstract":false,"args":[{"name":"address_list","external_name":"address_list","restriction":"::String"}],"args_string":"(address_list : String)","args_html":"(address_list : String)","location":{"filename":"src/mailjet/elements/address.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L7"},"def":{"name":"new","args":[{"name":"address_list","external_name":"address_list","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address_list)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"address:String-instance-method","name":"address","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L3"},"def":{"name":"address","return_type":"String","visibility":"Public","body":"@address"}},{"html_id":"address_list:String-instance-method","name":"address_list","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L5"},"def":{"name":"address_list","return_type":"String","visibility":"Public","body":"@address_list"}},{"html_id":"display_name:String-instance-method","name":"display_name","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L4"},"def":{"name":"display_name","return_type":"String","visibility":"Public","body":"@display_name"}}]},{"html_id":"mailjet/Mailjet/AddressList","path":"Mailjet/AddressList.html","kind":"struct","full_name":"Mailjet::AddressList","name":"AddressList","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/elements/address_list.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(address_list:String)-class-method","name":"new","abstract":false,"args":[{"name":"address_list","external_name":"address_list","restriction":"String"}],"args_string":"(address_list : String)","args_html":"(address_list : String)","location":{"filename":"src/mailjet/elements/address_list.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L8"},"def":{"name":"new","args":[{"name":"address_list","external_name":"address_list","restriction":"String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address_list)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"address_list:String-instance-method","name":"address_list","abstract":false,"location":{"filename":"src/mailjet/elements/address_list.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L3"},"def":{"name":"address_list","return_type":"String","visibility":"Public","body":"@address_list"}},{"html_id":"addresses:Array(Address)-instance-method","name":"addresses","abstract":false,"location":{"filename":"src/mailjet/elements/address_list.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L4"},"def":{"name":"addresses","return_type":"Array(Address)","visibility":"Public","body":"@addresses"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","location":{"filename":"src/mailjet/elements/address_list.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L6"},"def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" addresses.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaign","path":"Mailjet/Campaign.html","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"When you send a campaign draft, a new campaign object is automatically\ncreated. Use the resources below to retrieve information about campaigns,\nmark selected campaigns as starred or delete them.\n\nhttps://dev.mailjet.com/email/reference/campaigns/sent-campaigns/\n","summary":"

When you send a campaign draft, a new campaign object is automatically created.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L37"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L37"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaign/Details","path":"Mailjet/Campaign/Details.html","kind":"struct","full_name":"Mailjet::Campaign::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"campaign_type:Int32-instance-method","name":"campaign_type","abstract":false,"def":{"name":"campaign_type","return_type":"Int32","visibility":"Public","body":"@campaign_type"}},{"html_id":"click_tracked:Int32-instance-method","name":"click_tracked","abstract":false,"def":{"name":"click_tracked","return_type":"Int32","visibility":"Public","body":"@click_tracked"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"custom_value:String-instance-method","name":"custom_value","abstract":false,"def":{"name":"custom_value","return_type":"String","visibility":"Public","body":"@custom_value"}},{"html_id":"first_message_id:Int64-instance-method","name":"first_message_id","abstract":false,"def":{"name":"first_message_id","return_type":"Int64","visibility":"Public","body":"@first_message_id"}},{"html_id":"from_email:String-instance-method","name":"from_email","abstract":false,"def":{"name":"from_email","return_type":"String","visibility":"Public","body":"@from_email"}},{"html_id":"from_id:Int32-instance-method","name":"from_id","abstract":false,"def":{"name":"from_id","return_type":"Int32","visibility":"Public","body":"@from_id"}},{"html_id":"from_name:String-instance-method","name":"from_name","abstract":false,"def":{"name":"from_name","return_type":"String","visibility":"Public","body":"@from_name"}},{"html_id":"has_html_count:Int32-instance-method","name":"has_html_count","abstract":false,"def":{"name":"has_html_count","return_type":"Int32","visibility":"Public","body":"@has_html_count"}},{"html_id":"has_txt_count:Int32-instance-method","name":"has_txt_count","abstract":false,"def":{"name":"has_txt_count","return_type":"Int32","visibility":"Public","body":"@has_txt_count"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_deleted:Bool-instance-method","name":"is_deleted","abstract":false,"def":{"name":"is_deleted","return_type":"Bool","visibility":"Public","body":"@is_deleted"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"news_letter_id:Int32-instance-method","name":"news_letter_id","abstract":false,"def":{"name":"news_letter_id","return_type":"Int32","visibility":"Public","body":"@news_letter_id"}},{"html_id":"open_tracked:Int32-instance-method","name":"open_tracked","abstract":false,"def":{"name":"open_tracked","return_type":"Int32","visibility":"Public","body":"@open_tracked"}},{"html_id":"segmentation_id:Int32-instance-method","name":"segmentation_id","abstract":false,"def":{"name":"segmentation_id","return_type":"Int32","visibility":"Public","body":"@segmentation_id"}},{"html_id":"send_end_at:Time-instance-method","name":"send_end_at","abstract":false,"def":{"name":"send_end_at","return_type":"Time","visibility":"Public","body":"@send_end_at"}},{"html_id":"send_start_at:Time-instance-method","name":"send_start_at","abstract":false,"def":{"name":"send_start_at","return_type":"Time","visibility":"Public","body":"@send_start_at"}},{"html_id":"spamass_score:String-instance-method","name":"spamass_score","abstract":false,"def":{"name":"spamass_score","return_type":"String","visibility":"Public","body":"@spamass_score"}},{"html_id":"status:Int32-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"Int32","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"unsubscribe_tracked_count:Int32-instance-method","name":"unsubscribe_tracked_count","abstract":false,"def":{"name":"unsubscribe_tracked_count","return_type":"Int32","visibility":"Public","body":"@unsubscribe_tracked_count"}},{"html_id":"workflow_id:Int32-instance-method","name":"workflow_id","abstract":false,"def":{"name":"workflow_id","return_type":"Int32","visibility":"Public","body":"@workflow_id"}}]},{"html_id":"mailjet/Mailjet/Campaign/FindPath","path":"Mailjet/Campaign/FindPath.html","kind":"struct","full_name":"Mailjet::Campaign::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/FindResponse","path":"Mailjet/Campaign/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaign::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaign/ListPath","path":"Mailjet/Campaign/ListPath.html","kind":"struct","full_name":"Mailjet::Campaign::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/ListResponse","path":"Mailjet/Campaign/ListResponse.html","kind":"struct","full_name":"Mailjet::Campaign::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaign/ResponseData","path":"Mailjet/Campaign/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaign::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Campaign::Details)","aliased_html":"Array(Mailjet::Campaign::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"}},{"html_id":"mailjet/Mailjet/Campaign/UpdatePath","path":"Mailjet/Campaign/UpdatePath.html","kind":"struct","full_name":"Mailjet::Campaign::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/UpdateResponse","path":"Mailjet/Campaign/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Campaign::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Campaigndraft","path":"Mailjet/Campaigndraft.html","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L9"},{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the contents of a campaign draft. It will be split between a Text\npart, HTML part, MJML content and/or additional headers.\n\nhttps://dev.mailjet.com/email/reference/campaigns/drafts/#v3_get_campaigndraft_draft_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/campaigns/drafts/#v3_post_campaigndraft_draft_ID_detailcontent\n","summary":"

Retrieve the contents of a campaign draft.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L38"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L48"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L48"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaigndraft/CreatePath","path":"Mailjet/Campaigndraft/CreatePath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/CreateResponse","path":"Mailjet/Campaigndraft/CreateResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","path":"Mailjet/Campaigndraft/Detailcontent.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"class_methods":[{"html_id":"create(id:ResourceId,payload:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"create","doc":"Create content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.create(12345, {\n \"Headers\": {\n \"Subject\": \"Hello There!\",\n \"From\": \"John Doe \",\n \"Reply-To\": \"\",\n },\n \"Html-part\": \"

Hello {{var:name}}

\",\n \"Text-part\": \"Hello {{var:name}}\",\n \"Mjml-part\": \"\",\n})\n```\n","summary":"

Create content for a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L40"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create(payload, {id: id}, client: client)"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindPath","path":"Mailjet/Campaigndraft/Detailcontent/FindPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},"doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindResponse","path":"Mailjet/Campaigndraft/Detailcontent/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},"doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/ResponseData","path":"Mailjet/Campaigndraft/Detailcontent/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaigndraft::Detailcontent::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L12"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(JSON::Any)","aliased_html":"Array(JSON::Any)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Draft","path":"Mailjet/Campaigndraft/Draft.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Draft","name":"Draft","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":50,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L50"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"ax_fraction:Int32-instance-method","name":"ax_fraction","abstract":false,"def":{"name":"ax_fraction","return_type":"Int32","visibility":"Public","body":"@ax_fraction"}},{"html_id":"ax_fraction_name:String-instance-method","name":"ax_fraction_name","abstract":false,"def":{"name":"ax_fraction_name","return_type":"String","visibility":"Public","body":"@ax_fraction_name"}},{"html_id":"contacts_list_id:Union(Int32,Nil)-instance-method","name":"contacts_list_id","abstract":false,"def":{"name":"contacts_list_id","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@contacts_list_id"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"current:Int32-instance-method","name":"current","abstract":false,"def":{"name":"current","return_type":"Int32","visibility":"Public","body":"@current"}},{"html_id":"delivered_at:Union(Time,Nil)-instance-method","name":"delivered_at","abstract":false,"def":{"name":"delivered_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@delivered_at"}},{"html_id":"edit_mode:String-instance-method","name":"edit_mode","abstract":false,"def":{"name":"edit_mode","return_type":"String","visibility":"Public","body":"@edit_mode"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"is_text_part_included:Bool-instance-method","name":"is_text_part_included","abstract":false,"def":{"name":"is_text_part_included","return_type":"Bool","visibility":"Public","body":"@is_text_part_included"}},{"html_id":"locale:String-instance-method","name":"locale","abstract":false,"def":{"name":"locale","return_type":"String","visibility":"Public","body":"@locale"}},{"html_id":"modified_at:Union(Time,Nil)-instance-method","name":"modified_at","abstract":false,"def":{"name":"modified_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@modified_at"}},{"html_id":"preset:JSON::Any-instance-method","name":"preset","abstract":false,"def":{"name":"preset","return_type":"JSON::Any","visibility":"Public","body":"@preset"}},{"html_id":"sender:String-instance-method","name":"sender","abstract":false,"def":{"name":"sender","return_type":"String","visibility":"Public","body":"@sender"}},{"html_id":"sender_email:String-instance-method","name":"sender_email","abstract":false,"def":{"name":"sender_email","return_type":"String","visibility":"Public","body":"@sender_email"}},{"html_id":"sender_name:String-instance-method","name":"sender_name","abstract":false,"def":{"name":"sender_name","return_type":"String","visibility":"Public","body":"@sender_name"}},{"html_id":"status:Int32-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"Int32","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"template_id:Union(Int32,Nil)-instance-method","name":"template_id","abstract":false,"def":{"name":"template_id","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@template_id"}},{"html_id":"title:String-instance-method","name":"title","abstract":false,"def":{"name":"title","return_type":"String","visibility":"Public","body":"@title"}},{"html_id":"url:String-instance-method","name":"url","abstract":false,"def":{"name":"url","return_type":"String","visibility":"Public","body":"@url"}},{"html_id":"used:Bool-instance-method","name":"used","abstract":false,"def":{"name":"used","return_type":"Bool","visibility":"Public","body":"@used"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/FindPath","path":"Mailjet/Campaigndraft/FindPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/FindResponse","path":"Mailjet/Campaigndraft/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ListPath","path":"Mailjet/Campaigndraft/ListPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ListResponse","path":"Mailjet/Campaigndraft/ListResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ResponseData","path":"Mailjet/Campaigndraft/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaigndraft::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Campaigndraft::Draft)","aliased_html":"Array(Mailjet::Campaigndraft::Draft)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"}},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdatePath","path":"Mailjet/Campaigndraft/UpdatePath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdateResponse","path":"Mailjet/Campaigndraft/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Client","path":"Mailjet/Client.html","kind":"struct","full_name":"Mailjet::Client","name":"Client","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/client.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"with_credentials(api_key:String|Nil,secret_key:String|Nil)-class-method","name":"with_credentials","doc":"Create a new instance with given api credentials","summary":"

Create a new instance with given api credentials

","abstract":false,"args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"},{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"args_string":"(api_key : String | Nil, secret_key : String | Nil)","args_html":"(api_key : String | Nil, secret_key : String | Nil)","location":{"filename":"src/mailjet/client.cr","line_number":98,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L98"},"def":{"name":"with_credentials","args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"},{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"new(api_key, secret_key)"}}],"constructors":[{"html_id":"new(api_key:Nil|String=Config.api_key,secret_key:Nil|String=Config.secret_key)-class-method","name":"new","doc":"Initialize with credentials\n\n```\nclient = Mailjet::Client.new(\"my_key\", \"my_secret\")\n```\n\nOr without, if credentials are configured globally:\n\n```\nclient = Mailjet::Client.new\n```","summary":"

Initialize with credentials

","abstract":false,"args":[{"name":"api_key","default_value":"Config.api_key","external_name":"api_key","restriction":"::Nil | ::String"},{"name":"secret_key","default_value":"Config.secret_key","external_name":"secret_key","restriction":"::Nil | ::String"}],"args_string":"(api_key : Nil | String = Config.api_key, secret_key : Nil | String = Config.secret_key)","args_html":"(api_key : Nil | String = Config.api_key, secret_key : Nil | String = Config.secret_key)","location":{"filename":"src/mailjet/client.cr","line_number":17,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L17"},"def":{"name":"new","args":[{"name":"api_key","default_value":"Config.api_key","external_name":"api_key","restriction":"::Nil | ::String"},{"name":"secret_key","default_value":"Config.secret_key","external_name":"secret_key","restriction":"::Nil | ::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(api_key, secret_key)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"api_key:String|Nil-instance-method","name":"api_key","abstract":false,"location":{"filename":"src/mailjet/client.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L3"},"def":{"name":"api_key","return_type":"String | ::Nil","visibility":"Public","body":"@api_key"}},{"html_id":"handle_api_call(method:String,path:String,query:Hash|NamedTuple={}ofString=>String,payload:Hash|NamedTuple={}ofString=>String,headers:Hash|NamedTuple={}ofString=>String)-instance-method","name":"handle_api_call","abstract":false,"args":[{"name":"method","external_name":"method","restriction":"String"},{"name":"path","external_name":"path","restriction":"String"},{"name":"query","default_value":"{} of String => String","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"{} of String => String","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"headers","default_value":"{} of String => String","external_name":"headers","restriction":"Hash | NamedTuple"}],"args_string":"(method : String, path : String, query : Hash | NamedTuple = {} of String => String, payload : Hash | NamedTuple = {} of String => String, headers : Hash | NamedTuple = {} of String => String)","args_html":"(method : String, path : String, query : Hash | NamedTuple = {} of String => String, payload : Hash | NamedTuple = {} of String => String, headers : Hash | NamedTuple = {} of String => String)","location":{"filename":"src/mailjet/client.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L27"},"def":{"name":"handle_api_call","args":[{"name":"method","external_name":"method","restriction":"String"},{"name":"path","external_name":"path","restriction":"String"},{"name":"query","default_value":"{} of String => String","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"{} of String => String","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"headers","default_value":"{} of String => String","external_name":"headers","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"client = http_client(URI.parse(Config.end_point))\nrequest_headers = http_headers\nheaders.each do |key, value|\n request_headers[key.to_s] = value\nend\nif query.empty?\nelse\n path = path + \"?#{Utilities.query_parameterize(query)}\"\nend\nbegin\n if {\"GET\", \"DELETE\"}.includes?(method)\n response = client.exec(method, path, headers: request_headers)\n else\n payload = payload.to_h.reject! do |_, v|\n v.nil?\n end.to_json\n response = client.exec(method, path, headers: request_headers, body: payload)\n end\n render(response)\nrescue e : IO::TimeoutError\n raise(RequestTimeoutException.new(e.message))\nrescue e : IO::EOFError\n raise(Exception.new(e.message))\nend\n"}},{"html_id":"secret_key:String|Nil-instance-method","name":"secret_key","abstract":false,"location":{"filename":"src/mailjet/client.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L4"},"def":{"name":"secret_key","return_type":"String | ::Nil","visibility":"Public","body":"@secret_key"}}]},{"html_id":"mailjet/Mailjet/Config","path":"Mailjet/Config.html","kind":"module","full_name":"Mailjet::Config","name":"Config","abstract":false,"locations":[{"filename":"src/mailjet/config.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"api_key:String|Nil-class-method","name":"api_key","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L3"},"def":{"name":"api_key","return_type":"String | ::Nil","visibility":"Public","body":"@@api_key"}},{"html_id":"api_key=(api_key:String|Nil)-class-method","name":"api_key=","abstract":false,"args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"}],"args_string":"(api_key : String | Nil)","args_html":"(api_key : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L3"},"def":{"name":"api_key=","args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@api_key = api_key"}},{"html_id":"api_version:String-class-method","name":"api_version","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L4"},"def":{"name":"api_version","return_type":"String","visibility":"Public","body":"@@api_version"}},{"html_id":"api_version=(api_version:String)-class-method","name":"api_version=","abstract":false,"args":[{"name":"api_version","external_name":"api_version","restriction":"String"}],"args_string":"(api_version : String)","args_html":"(api_version : String)","location":{"filename":"src/mailjet/config.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L4"},"def":{"name":"api_version=","args":[{"name":"api_version","external_name":"api_version","restriction":"String"}],"visibility":"Public","body":"@@api_version = api_version"}},{"html_id":"default_from:String|Nil-class-method","name":"default_from","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L5"},"def":{"name":"default_from","return_type":"String | ::Nil","visibility":"Public","body":"@@default_from"}},{"html_id":"default_from=(email:String)-class-method","name":"default_from=","abstract":false,"args":[{"name":"email","external_name":"email","restriction":"String"}],"args_string":"(email : String)","args_html":"(email : String)","location":{"filename":"src/mailjet/config.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L12"},"def":{"name":"default_from=","args":[{"name":"email","external_name":"email","restriction":"String"}],"visibility":"Public","body":"if email.match(/.+\\@.+\\..+/)\nelse\n raise(InvalidEmailAddressException.new)\nend\n@@default_from = email\n"}},{"html_id":"default_from=(default_from:String|Nil)-class-method","name":"default_from=","abstract":false,"args":[{"name":"default_from","external_name":"default_from","restriction":"String | ::Nil"}],"args_string":"(default_from : String | Nil)","args_html":"(default_from : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L5"},"def":{"name":"default_from=","args":[{"name":"default_from","external_name":"default_from","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@default_from = default_from"}},{"html_id":"end_point:String-class-method","name":"end_point","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L6"},"def":{"name":"end_point","return_type":"String","visibility":"Public","body":"@@end_point"}},{"html_id":"end_point=(end_point:String)-class-method","name":"end_point=","abstract":false,"args":[{"name":"end_point","external_name":"end_point","restriction":"String"}],"args_string":"(end_point : String)","args_html":"(end_point : String)","location":{"filename":"src/mailjet/config.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L6"},"def":{"name":"end_point=","args":[{"name":"end_point","external_name":"end_point","restriction":"String"}],"visibility":"Public","body":"@@end_point = end_point"}},{"html_id":"open_timeout:Time::Span-class-method","name":"open_timeout","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L7"},"def":{"name":"open_timeout","return_type":"Time::Span","visibility":"Public","body":"@@open_timeout"}},{"html_id":"open_timeout=(open_timeout:Time::Span)-class-method","name":"open_timeout=","abstract":false,"args":[{"name":"open_timeout","external_name":"open_timeout","restriction":"Time::Span"}],"args_string":"(open_timeout : Time::Span)","args_html":"(open_timeout : Time::Span)","location":{"filename":"src/mailjet/config.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L7"},"def":{"name":"open_timeout=","args":[{"name":"open_timeout","external_name":"open_timeout","restriction":"Time::Span"}],"visibility":"Public","body":"@@open_timeout = open_timeout"}},{"html_id":"read_timeout:Time::Span-class-method","name":"read_timeout","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L8"},"def":{"name":"read_timeout","return_type":"Time::Span","visibility":"Public","body":"@@read_timeout"}},{"html_id":"read_timeout=(read_timeout:Time::Span)-class-method","name":"read_timeout=","abstract":false,"args":[{"name":"read_timeout","external_name":"read_timeout","restriction":"Time::Span"}],"args_string":"(read_timeout : Time::Span)","args_html":"(read_timeout : Time::Span)","location":{"filename":"src/mailjet/config.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L8"},"def":{"name":"read_timeout=","args":[{"name":"read_timeout","external_name":"read_timeout","restriction":"Time::Span"}],"visibility":"Public","body":"@@read_timeout = read_timeout"}},{"html_id":"sandbox_mode=(sandbox_mode:Bool)-class-method","name":"sandbox_mode=","abstract":false,"args":[{"name":"sandbox_mode","external_name":"sandbox_mode","restriction":"Bool"}],"args_string":"(sandbox_mode : Bool)","args_html":"(sandbox_mode : Bool)","location":{"filename":"src/mailjet/config.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L10"},"def":{"name":"sandbox_mode=","args":[{"name":"sandbox_mode","external_name":"sandbox_mode","restriction":"Bool"}],"visibility":"Public","body":"@@sandbox_mode = sandbox_mode"}},{"html_id":"sandbox_mode?:Bool-class-method","name":"sandbox_mode?","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L10"},"def":{"name":"sandbox_mode?","return_type":"Bool","visibility":"Public","body":"@@sandbox_mode"}},{"html_id":"secret_key:String|Nil-class-method","name":"secret_key","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L9"},"def":{"name":"secret_key","return_type":"String | ::Nil","visibility":"Public","body":"@@secret_key"}},{"html_id":"secret_key=(secret_key:String|Nil)-class-method","name":"secret_key=","abstract":false,"args":[{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"args_string":"(secret_key : String | Nil)","args_html":"(secret_key : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L9"},"def":{"name":"secret_key=","args":[{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@secret_key = secret_key"}}]},{"html_id":"mailjet/Mailjet/Contact","path":"Mailjet/Contact.html","kind":"struct","full_name":"Mailjet::Contact","name":"Contact","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L7"},{"filename":"src/mailjet/resources/contact/list.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L2"},{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Contact objects represent the email addresses you intend to send (or have\nalready sent) messages to.\n\nhttps://dev.mailjet.com/email/reference/contacts/contact/\n","summary":"

Contact objects represent the email addresses you intend to send (or have already sent) messages to.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L38"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L49"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L49"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/CreatePath","path":"Mailjet/Contact/CreatePath.html","kind":"struct","full_name":"Mailjet::Contact::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/CreateResponse","path":"Mailjet/Contact/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contact::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contact/Details","path":"Mailjet/Contact/Details.html","kind":"struct","full_name":"Mailjet::Contact::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":51,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L51"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:String-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"String","visibility":"Public","body":"@created_at"}},{"html_id":"delivered_count:Int32-instance-method","name":"delivered_count","abstract":false,"def":{"name":"delivered_count","return_type":"Int32","visibility":"Public","body":"@delivered_count"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"exclusion_from_campaigns_updated_at:Union(Time,Nil)-instance-method","name":"exclusion_from_campaigns_updated_at","abstract":false,"def":{"name":"exclusion_from_campaigns_updated_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@exclusion_from_campaigns_updated_at"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_excluded_from_campaigns:Bool-instance-method","name":"is_excluded_from_campaigns","abstract":false,"def":{"name":"is_excluded_from_campaigns","return_type":"Bool","visibility":"Public","body":"@is_excluded_from_campaigns"}},{"html_id":"is_opt_in_pending:Bool-instance-method","name":"is_opt_in_pending","abstract":false,"def":{"name":"is_opt_in_pending","return_type":"Bool","visibility":"Public","body":"@is_opt_in_pending"}},{"html_id":"is_spam_complaining:Bool-instance-method","name":"is_spam_complaining","abstract":false,"def":{"name":"is_spam_complaining","return_type":"Bool","visibility":"Public","body":"@is_spam_complaining"}},{"html_id":"last_activity_at:Union(Time,Nil)-instance-method","name":"last_activity_at","abstract":false,"def":{"name":"last_activity_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_activity_at"}},{"html_id":"last_update_at:Union(Time,Nil)-instance-method","name":"last_update_at","abstract":false,"def":{"name":"last_update_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_update_at"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"unsubscribed_at:Union(Time,Nil)-instance-method","name":"unsubscribed_at","abstract":false,"def":{"name":"unsubscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_at"}},{"html_id":"unsubscribed_by:Union(Time,Nil)-instance-method","name":"unsubscribed_by","abstract":false,"def":{"name":"unsubscribed_by","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_by"}}]},{"html_id":"mailjet/Mailjet/Contact/FindPath","path":"Mailjet/Contact/FindPath.html","kind":"struct","full_name":"Mailjet::Contact::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/FindResponse","path":"Mailjet/Contact/FindResponse.html","kind":"struct","full_name":"Mailjet::Contact::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contact/List","path":"Mailjet/Contact/List.html","kind":"struct","full_name":"Mailjet::Contact::List","name":"List","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Retrieve all contact lists for a specific contact. You will receive\ninformation on the status of the contact for each list. Information about\nlists deleted within the last 60 days will be returned as well, since\nthose are soft-deleted and can be reinstated.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_contact_contact_ID_getcontactslists\n","summary":"

Retrieve all contact lists for a specific contact.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L20"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"all(contact_id:ResourceId,client:Client=Client.new)-class-method","name":"all","doc":"Convenience method allowing to pass the contact id and returning the\narray of lists directly\n\n```\ncontactlists = Mailjet::Contact::List.all(52856551)\n```\n","summary":"

Convenience method allowing to pass the contact id and returning the array of lists directly

","abstract":false,"args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(contact_id : ResourceId, client : Client = Client.new)","args_html":"(contact_id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact/list.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L29"},"def":{"name":"all","args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(params: {contact_id: contact_id}, client: client).data"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/List/Details","path":"Mailjet/Contact/List/Details.html","kind":"struct","full_name":"Mailjet::Contact::List::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"is_active:Bool-instance-method","name":"is_active","abstract":false,"def":{"name":"is_active","return_type":"Bool","visibility":"Public","body":"@is_active"}},{"html_id":"is_unsub:Bool-instance-method","name":"is_unsub","abstract":false,"def":{"name":"is_unsub","return_type":"Bool","visibility":"Public","body":"@is_unsub"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"subscribed_at:Time-instance-method","name":"subscribed_at","abstract":false,"def":{"name":"subscribed_at","return_type":"Time","visibility":"Public","body":"@subscribed_at"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ListPath","path":"Mailjet/Contact/List/ListPath.html","kind":"struct","full_name":"Mailjet::Contact::List::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ListResponse","path":"Mailjet/Contact/List/ListResponse.html","kind":"struct","full_name":"Mailjet::Contact::List::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ResponseData","path":"Mailjet/Contact/List/ResponseData.html","kind":"alias","full_name":"Mailjet::Contact::List::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contact::List::Details)","aliased_html":"Array(Mailjet::Contact::List::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"}}]},{"html_id":"mailjet/Mailjet/Contact/ListPath","path":"Mailjet/Contact/ListPath.html","kind":"struct","full_name":"Mailjet::Contact::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/ListResponse","path":"Mailjet/Contact/ListResponse.html","kind":"struct","full_name":"Mailjet::Contact::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","path":"Mailjet/Contact/Managecontactlists.html","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Manage the presence and subscription status of a contact for multiple\ncontact lists. Select the contact lists, as well as the desired action to\nbe performed on each one - add, remove or unsub. The contact should\nalready be present in the global contact list.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_post_contact_contact_ID_managecontactslists\n","summary":"

Manage the presence and subscription status of a contact for multiple contact lists.

","class_methods":[{"html_id":"create(contact_id:ResourceId,contacts_lists:Array)-class-method","name":"create","doc":"Manage the presence and subscription status of a contact for multiple\ncontact lists.\n\n```\ncontact_lists = Mailjet::Contact::Managecontactlists.create(54321987, [\n {list_id: 23847, action: \"addnoforce\"},\n {list_id: 26484, action: \"addforce\"},\n])\nputs contact_lists.first.list_id\n# => 23847\n```\n","summary":"

Manage the presence and subscription status of a contact for multiple contact lists.

","abstract":false,"args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"contacts_lists","external_name":"contacts_lists","restriction":"Array"}],"args_string":"(contact_id : ResourceId, contacts_lists : Array)","args_html":"(contact_id : ResourceId, contacts_lists : Array)","location":{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L28"},"def":{"name":"create","args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"contacts_lists","external_name":"contacts_lists","restriction":"Array"}],"visibility":"Public","body":"(create({contacts_lists: contacts_lists}, {contact_id: contact_id}))[\"ContactsLists\"]"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactList","path":"Mailjet/Contact/Managecontactlists/ContactList.html","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists::ContactList","name":"ContactList","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"action:String-instance-method","name":"action","abstract":false,"def":{"name":"action","return_type":"String","visibility":"Public","body":"@action"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}}]},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactLists","path":"Mailjet/Contact/Managecontactlists/ContactLists.html","kind":"alias","full_name":"Mailjet::Contact::Managecontactlists::ContactLists","name":"ContactLists","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Hash(String, Array(Mailjet::Contact::Managecontactlists::ContactList)))","aliased_html":"Array(Hash(String, Array(Mailjet::Contact::Managecontactlists::ContactList)))","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"}}]},{"html_id":"mailjet/Mailjet/Contact/ResponseData","path":"Mailjet/Contact/ResponseData.html","kind":"alias","full_name":"Mailjet::Contact::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contact::Details)","aliased_html":"Array(Mailjet::Contact::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"}},{"html_id":"mailjet/Mailjet/Contact/UpdatePath","path":"Mailjet/Contact/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contact::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/UpdateResponse","path":"Mailjet/Contact/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contact::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Contactfilter","path":"Mailjet/Contactfilter.html","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Segmentation is an extremely useful tool used to target a specific group of\ncustomers with a dedicated campaign. Create segments based on contact\nproperties or the contact activity (opens, clicks). Segmentation helps you\nfocus your campaigns on specific demographics, create re-engagement\ncampaigns, etc.\n\nhttps://dev.mailjet.com/email/reference/segmentation/\n","summary":"

Segmentation is an extremely useful tool used to target a specific group of customers with a dedicated campaign.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L20"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L40"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a contactfilter\n\n```\nMailjet::Contactfilter.delete(112334)\n```\n","summary":"

Delete a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L60"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L28"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L28"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L52"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L52"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contactfilter/CreatePath","path":"Mailjet/Contactfilter/CreatePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/CreateResponse","path":"Mailjet/Contactfilter/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/DeletePath","path":"Mailjet/Contactfilter/DeletePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Delete a contactfilter\n\n```\nMailjet::Contactfilter.delete(112334)\n```\n","summary":"

Delete a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/Filter","path":"Mailjet/Contactfilter/Filter.html","kind":"struct","full_name":"Mailjet::Contactfilter::Filter","name":"Filter","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":62,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L62"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"expression:String-instance-method","name":"expression","abstract":false,"def":{"name":"expression","return_type":"String","visibility":"Public","body":"@expression"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/FindPath","path":"Mailjet/Contactfilter/FindPath.html","kind":"struct","full_name":"Mailjet::Contactfilter::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L28"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/FindResponse","path":"Mailjet/Contactfilter/FindResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L28"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ListPath","path":"Mailjet/Contactfilter/ListPath.html","kind":"struct","full_name":"Mailjet::Contactfilter::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ListResponse","path":"Mailjet/Contactfilter/ListResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ResponseData","path":"Mailjet/Contactfilter/ResponseData.html","kind":"alias","full_name":"Mailjet::Contactfilter::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contactfilter::Filter)","aliased_html":"Array(Mailjet::Contactfilter::Filter)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"}},{"html_id":"mailjet/Mailjet/Contactfilter/UpdatePath","path":"Mailjet/Contactfilter/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/UpdateResponse","path":"Mailjet/Contactfilter/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Contactlist","path":"Mailjet/Contactlist.html","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Contact List objects help you organize your contacts into lists. Every time\nyou send a campaign you must select a recipient contact list. Segmentation\ncan help you target a portion of that list.\n\nhttps://dev.mailjet.com/email/reference/contacts/contact-list/\n","summary":"

Contact List objects help you organize your contacts into lists.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L36"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a contactlist\n\n```\nMailjet::Contactlist.delete(123456789)\n```\n","summary":"

Delete a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":54,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L54"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L46"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L46"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contactlist/CreatePath","path":"Mailjet/Contactlist/CreatePath.html","kind":"struct","full_name":"Mailjet::Contactlist::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/CreateResponse","path":"Mailjet/Contactlist/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactlist/DeletePath","path":"Mailjet/Contactlist/DeletePath.html","kind":"struct","full_name":"Mailjet::Contactlist::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":54,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L54"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Delete a contactlist\n\n```\nMailjet::Contactlist.delete(123456789)\n```\n","summary":"

Delete a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/Details","path":"Mailjet/Contactlist/Details.html","kind":"struct","full_name":"Mailjet::Contactlist::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":56,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L56"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"address:String-instance-method","name":"address","abstract":false,"def":{"name":"address","return_type":"String","visibility":"Public","body":"@address"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_deleted:Bool-instance-method","name":"is_deleted","abstract":false,"def":{"name":"is_deleted","return_type":"Bool","visibility":"Public","body":"@is_deleted"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"subscriber_count:Int32-instance-method","name":"subscriber_count","abstract":false,"def":{"name":"subscriber_count","return_type":"Int32","visibility":"Public","body":"@subscriber_count"}}]},{"html_id":"mailjet/Mailjet/Contactlist/FindPath","path":"Mailjet/Contactlist/FindPath.html","kind":"struct","full_name":"Mailjet::Contactlist::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/FindResponse","path":"Mailjet/Contactlist/FindResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ListPath","path":"Mailjet/Contactlist/ListPath.html","kind":"struct","full_name":"Mailjet::Contactlist::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ListResponse","path":"Mailjet/Contactlist/ListResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ResponseData","path":"Mailjet/Contactlist/ResponseData.html","kind":"alias","full_name":"Mailjet::Contactlist::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contactlist::Details)","aliased_html":"Array(Mailjet::Contactlist::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"}},{"html_id":"mailjet/Mailjet/Contactlist/UpdatePath","path":"Mailjet/Contactlist/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contactlist::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/UpdateResponse","path":"Mailjet/Contactlist/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/DNS","path":"Mailjet/DNS.html","kind":"struct","full_name":"Mailjet::DNS","name":"DNS","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L9"},{"filename":"src/mailjet/resources/dns/check.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Whenever you register a new sender or metasender address with a new domain\nname, a new DNS object is created for this domain. Use the resources below\nto retrieve the DNS records you need to complete a successful domain\nvalidation and SPF / DKIM authentication.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/dns/\n","summary":"

Whenever you register a new sender or metasender address with a new domain name, a new DNS object is created for this domain.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/DNS/Check","path":"Mailjet/DNS/Check.html","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Perform a DNS validation of a sender domain. The Mailjet API will check\nfor a TXT record in the domain's DNS zone file.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/dns/#v3_post_dns_dns_ID_check\n","summary":"

Perform a DNS validation of a sender domain.

","class_methods":[{"html_id":"create(id:ResourceId,client:Client=Client.new)-class-method","name":"create","doc":"Check validit of a DNS record\n\n```\ncontact = Mailjet::DNS::Check.create(123456789)\n```\n","summary":"

Check validit of a DNS record

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns/check.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L20"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create({} of String => String, {id: id}, client)"}}],"types":[{"html_id":"mailjet/Mailjet/DNS/Check/Details","path":"Mailjet/DNS/Check/Details.html","kind":"struct","full_name":"Mailjet::DNS::Check::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"dkim_errors:Array(String)-instance-method","name":"dkim_errors","abstract":false,"def":{"name":"dkim_errors","return_type":"Array(String)","visibility":"Public","body":"@dkim_errors"}},{"html_id":"dkim_record_current_value:String-instance-method","name":"dkim_record_current_value","abstract":false,"def":{"name":"dkim_record_current_value","return_type":"String","visibility":"Public","body":"@dkim_record_current_value"}},{"html_id":"dkim_status:String-instance-method","name":"dkim_status","abstract":false,"def":{"name":"dkim_status","return_type":"String","visibility":"Public","body":"@dkim_status"}},{"html_id":"spf_errors:Array(String)-instance-method","name":"spf_errors","abstract":false,"def":{"name":"spf_errors","return_type":"Array(String)","visibility":"Public","body":"@spf_errors"}},{"html_id":"spf_records_current_values:Array(String)-instance-method","name":"spf_records_current_values","abstract":false,"def":{"name":"spf_records_current_values","return_type":"Array(String)","visibility":"Public","body":"@spf_records_current_values"}},{"html_id":"spf_status:String-instance-method","name":"spf_status","abstract":false,"def":{"name":"spf_status","return_type":"String","visibility":"Public","body":"@spf_status"}}]},{"html_id":"mailjet/Mailjet/DNS/Check/ResponseData","path":"Mailjet/DNS/Check/ResponseData.html","kind":"alias","full_name":"Mailjet::DNS::Check::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::DNS::Check::Details)","aliased_html":"Array(Mailjet::DNS::Check::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"}}]},{"html_id":"mailjet/Mailjet/DNS/FindPath","path":"Mailjet/DNS/FindPath.html","kind":"struct","full_name":"Mailjet::DNS::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/DNS/FindResponse","path":"Mailjet/DNS/FindResponse.html","kind":"struct","full_name":"Mailjet::DNS::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/DNS/ListPath","path":"Mailjet/DNS/ListPath.html","kind":"struct","full_name":"Mailjet::DNS::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/DNS/ListResponse","path":"Mailjet/DNS/ListResponse.html","kind":"struct","full_name":"Mailjet::DNS::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/DNS/ResponseData","path":"Mailjet/DNS/ResponseData.html","kind":"alias","full_name":"Mailjet::DNS::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::DNS::Settings)","aliased_html":"Array(Mailjet::DNS::Settings)","const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"}},{"html_id":"mailjet/Mailjet/DNS/Settings","path":"Mailjet/DNS/Settings.html","kind":"struct","full_name":"Mailjet::DNS::Settings","name":"Settings","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L29"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"dkim_record_name:String-instance-method","name":"dkim_record_name","abstract":false,"def":{"name":"dkim_record_name","return_type":"String","visibility":"Public","body":"@dkim_record_name"}},{"html_id":"dkim_record_value:String-instance-method","name":"dkim_record_value","abstract":false,"def":{"name":"dkim_record_value","return_type":"String","visibility":"Public","body":"@dkim_record_value"}},{"html_id":"dkim_status:String-instance-method","name":"dkim_status","abstract":false,"def":{"name":"dkim_status","return_type":"String","visibility":"Public","body":"@dkim_status"}},{"html_id":"domain:String-instance-method","name":"domain","abstract":false,"def":{"name":"domain","return_type":"String","visibility":"Public","body":"@domain"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_check_in_progress:Bool-instance-method","name":"is_check_in_progress","abstract":false,"def":{"name":"is_check_in_progress","return_type":"Bool","visibility":"Public","body":"@is_check_in_progress"}},{"html_id":"last_check_at:Union(Time,Nil)-instance-method","name":"last_check_at","abstract":false,"def":{"name":"last_check_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_check_at"}},{"html_id":"owner_ship_token:String-instance-method","name":"owner_ship_token","abstract":false,"def":{"name":"owner_ship_token","return_type":"String","visibility":"Public","body":"@owner_ship_token"}},{"html_id":"owner_ship_token_record_name:String-instance-method","name":"owner_ship_token_record_name","abstract":false,"def":{"name":"owner_ship_token_record_name","return_type":"String","visibility":"Public","body":"@owner_ship_token_record_name"}},{"html_id":"spf_record_value:String-instance-method","name":"spf_record_value","abstract":false,"def":{"name":"spf_record_value","return_type":"String","visibility":"Public","body":"@spf_record_value"}},{"html_id":"spf_status:String-instance-method","name":"spf_status","abstract":false,"def":{"name":"spf_status","return_type":"String","visibility":"Public","body":"@spf_status"}}]}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl","path":"Mailjet/Eventcallbackurl.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"The resources below helps you track email delivery and engagement events and\nforward the information to a webhook URL of your choice. You can use this\ndata to create additional workflows - react to spam reports, identify\nbounced email addresses, sync unsubscribed contacts, etc.\n\nhttps://dev.mailjet.com/email/reference/webhook/\n","summary":"

The resources below helps you track email delivery and engagement events and forward the information to a webhook URL of your choice.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L41"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a eventcallbackurl\n\n```\nMailjet::Eventcallbackurl.delete(112334)\n```\n","summary":"

Delete a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":63,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L63"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L55"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L55"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreatePath","path":"Mailjet/Eventcallbackurl/CreatePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L41"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreateResponse","path":"Mailjet/Eventcallbackurl/CreateResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L41"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/DeletePath","path":"Mailjet/Eventcallbackurl/DeletePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":63,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L63"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Delete a eventcallbackurl\n\n```\nMailjet::Eventcallbackurl.delete(112334)\n```\n","summary":"

Delete a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindPath","path":"Mailjet/Eventcallbackurl/FindPath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindResponse","path":"Mailjet/Eventcallbackurl/FindResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListPath","path":"Mailjet/Eventcallbackurl/ListPath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListResponse","path":"Mailjet/Eventcallbackurl/ListResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ResponseData","path":"Mailjet/Eventcallbackurl/ResponseData.html","kind":"alias","full_name":"Mailjet::Eventcallbackurl::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Eventcallbackurl::Webhook)","aliased_html":"Array(Mailjet::Eventcallbackurl::Webhook)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"}},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdatePath","path":"Mailjet/Eventcallbackurl/UpdatePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L55"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdateResponse","path":"Mailjet/Eventcallbackurl/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L55"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/Webhook","path":"Mailjet/Eventcallbackurl/Webhook.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::Webhook","name":"Webhook","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L65"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"api_key_id:Int32-instance-method","name":"api_key_id","abstract":false,"def":{"name":"api_key_id","return_type":"Int32","visibility":"Public","body":"@api_key_id"}},{"html_id":"event_type:String-instance-method","name":"event_type","abstract":false,"def":{"name":"event_type","return_type":"String","visibility":"Public","body":"@event_type"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_backup:Bool-instance-method","name":"is_backup","abstract":false,"def":{"name":"is_backup","return_type":"Bool","visibility":"Public","body":"@is_backup"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"url:String-instance-method","name":"url","abstract":false,"def":{"name":"url","return_type":"String","visibility":"Public","body":"@url"}},{"html_id":"version:Int32-instance-method","name":"version","abstract":false,"def":{"name":"version","return_type":"Int32","visibility":"Public","body":"@version"}}]}]},{"html_id":"mailjet/Mailjet/Exception","path":"Mailjet/Exception.html","kind":"class","full_name":"Mailjet::Exception","name":"Exception","abstract":false,"superclass":{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/InvalidEmailAddressException","kind":"class","full_name":"Mailjet::InvalidEmailAddressException","name":"InvalidEmailAddressException"},{"html_id":"mailjet/Mailjet/MethodNotAllowedException","kind":"class","full_name":"Mailjet::MethodNotAllowedException","name":"MethodNotAllowedException"},{"html_id":"mailjet/Mailjet/MissingApiCredentialsException","kind":"class","full_name":"Mailjet::MissingApiCredentialsException","name":"MissingApiCredentialsException"},{"html_id":"mailjet/Mailjet/ParamsMissingException","kind":"class","full_name":"Mailjet::ParamsMissingException","name":"ParamsMissingException"},{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},{"html_id":"mailjet/Mailjet/RequestTimeoutException","kind":"class","full_name":"Mailjet::RequestTimeoutException","name":"RequestTimeoutException"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"types":[{"html_id":"mailjet/Mailjet/Exception/ErrorInfo","path":"Mailjet/Exception/ErrorInfo.html","kind":"alias","full_name":"Mailjet::Exception::ErrorInfo","name":"ErrorInfo","abstract":false,"locations":[{"filename":"src/mailjet/exception.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L4"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"(Hash(String, Array(Hash(String, Int32 | String))) | String | Nil)","aliased_html":"Hash(String, Array(Hash(String, Int32 | String))) | String | Nil","const":false,"namespace":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"}},{"html_id":"mailjet/Mailjet/Exception/ErrorInfoArray","path":"Mailjet/Exception/ErrorInfoArray.html","kind":"alias","full_name":"Mailjet::Exception::ErrorInfoArray","name":"ErrorInfoArray","abstract":false,"locations":[{"filename":"src/mailjet/exception.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Hash(String, Array(Hash(String, Int32 | String)))","aliased_html":"Hash(String, Array(Hash(String, Int32 | String)))","const":false,"namespace":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"}}]},{"html_id":"mailjet/Mailjet/InvalidEmailAddressException","path":"Mailjet/InvalidEmailAddressException.html","kind":"class","full_name":"Mailjet::InvalidEmailAddressException","name":"InvalidEmailAddressException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":44,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L44"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Json","path":"Mailjet/Json.html","kind":"struct","full_name":"Mailjet::Json","name":"Json","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L2"},{"filename":"src/mailjet/json/nilable_time.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"mailjet/Mailjet/Json/Fields","path":"Mailjet/Json/Fields.html","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields","abstract":false,"locations":[{"filename":"src/mailjet/json/fields.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"including_types":[{"html_id":"mailjet/Mailjet/Campaign/Details","kind":"struct","full_name":"Mailjet::Campaign::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Campaign/FindResponse","kind":"struct","full_name":"Mailjet::Campaign::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaign/ListResponse","kind":"struct","full_name":"Mailjet::Campaign::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Campaign/UpdateResponse","kind":"struct","full_name":"Mailjet::Campaign::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/CreateResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/Draft","kind":"struct","full_name":"Mailjet::Campaigndraft::Draft","name":"Draft"},{"html_id":"mailjet/Mailjet/Campaigndraft/FindResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/ListResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdateResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contact/CreateResponse","kind":"struct","full_name":"Mailjet::Contact::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contact/Details","kind":"struct","full_name":"Mailjet::Contact::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contact/FindResponse","kind":"struct","full_name":"Mailjet::Contact::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contact/List/Details","kind":"struct","full_name":"Mailjet::Contact::List::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contact/List/ListResponse","kind":"struct","full_name":"Mailjet::Contact::List::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contact/ListResponse","kind":"struct","full_name":"Mailjet::Contact::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactList","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists::ContactList","name":"ContactList"},{"html_id":"mailjet/Mailjet/Contact/UpdateResponse","kind":"struct","full_name":"Mailjet::Contact::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/CreateResponse","kind":"struct","full_name":"Mailjet::Contactfilter::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/Filter","kind":"struct","full_name":"Mailjet::Contactfilter::Filter","name":"Filter"},{"html_id":"mailjet/Mailjet/Contactfilter/FindResponse","kind":"struct","full_name":"Mailjet::Contactfilter::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/ListResponse","kind":"struct","full_name":"Mailjet::Contactfilter::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/UpdateResponse","kind":"struct","full_name":"Mailjet::Contactfilter::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contactlist/CreateResponse","kind":"struct","full_name":"Mailjet::Contactlist::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contactlist/Details","kind":"struct","full_name":"Mailjet::Contactlist::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contactlist/FindResponse","kind":"struct","full_name":"Mailjet::Contactlist::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contactlist/ListResponse","kind":"struct","full_name":"Mailjet::Contactlist::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contactlist/UpdateResponse","kind":"struct","full_name":"Mailjet::Contactlist::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/DNS/Check/Details","kind":"struct","full_name":"Mailjet::DNS::Check::Details","name":"Details"},{"html_id":"mailjet/Mailjet/DNS/FindResponse","kind":"struct","full_name":"Mailjet::DNS::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/DNS/ListResponse","kind":"struct","full_name":"Mailjet::DNS::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/DNS/Settings","kind":"struct","full_name":"Mailjet::DNS::Settings","name":"Settings"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreateResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdateResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/Webhook","kind":"struct","full_name":"Mailjet::Eventcallbackurl::Webhook","name":"Webhook"},{"html_id":"mailjet/Mailjet/Listrecipient/CreateResponse","kind":"struct","full_name":"Mailjet::Listrecipient::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/FindResponse","kind":"struct","full_name":"Mailjet::Listrecipient::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/Join","kind":"struct","full_name":"Mailjet::Listrecipient::Join","name":"Join"},{"html_id":"mailjet/Mailjet/Listrecipient/ListResponse","kind":"struct","full_name":"Mailjet::Listrecipient::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/UpdateResponse","kind":"struct","full_name":"Mailjet::Listrecipient::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Message/Details","kind":"struct","full_name":"Mailjet::Message::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Message/FindResponse","kind":"struct","full_name":"Mailjet::Message::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Message/ListResponse","kind":"struct","full_name":"Mailjet::Message::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Messagehistory/Event","kind":"struct","full_name":"Mailjet::Messagehistory::Event","name":"Event"},{"html_id":"mailjet/Mailjet/Messagehistory/ListResponse","kind":"struct","full_name":"Mailjet::Messagehistory::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Messageinformation/FindResponse","kind":"struct","full_name":"Mailjet::Messageinformation::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Messageinformation/Info","kind":"struct","full_name":"Mailjet::Messageinformation::Info","name":"Info"},{"html_id":"mailjet/Mailjet/Messageinformation/ListResponse","kind":"struct","full_name":"Mailjet::Messageinformation::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Metasender/CreateResponse","kind":"struct","full_name":"Mailjet::Metasender::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Metasender/Details","kind":"struct","full_name":"Mailjet::Metasender::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Metasender/FindResponse","kind":"struct","full_name":"Mailjet::Metasender::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Metasender/ListResponse","kind":"struct","full_name":"Mailjet::Metasender::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Metasender/UpdateResponse","kind":"struct","full_name":"Mailjet::Metasender::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Send/DeliveryError","kind":"struct","full_name":"Mailjet::Send::DeliveryError","name":"DeliveryError"},{"html_id":"mailjet/Mailjet/Send/DeliveryReceipt","kind":"struct","full_name":"Mailjet::Send::DeliveryReceipt","name":"DeliveryReceipt"},{"html_id":"mailjet/Mailjet/Send/ResponseMessage","kind":"struct","full_name":"Mailjet::Send::ResponseMessage","name":"ResponseMessage"},{"html_id":"mailjet/Mailjet/Send/SentMessage","kind":"struct","full_name":"Mailjet::Send::SentMessage","name":"SentMessage"},{"html_id":"mailjet/Mailjet/Sender/Address","kind":"struct","full_name":"Mailjet::Sender::Address","name":"Address"},{"html_id":"mailjet/Mailjet/Sender/CreateResponse","kind":"struct","full_name":"Mailjet::Sender::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Sender/FindResponse","kind":"struct","full_name":"Mailjet::Sender::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Sender/ListResponse","kind":"struct","full_name":"Mailjet::Sender::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Sender/UpdateResponse","kind":"struct","full_name":"Mailjet::Sender::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Statcounters/Counters","kind":"struct","full_name":"Mailjet::Statcounters::Counters","name":"Counters"},{"html_id":"mailjet/Mailjet/Statcounters/ListResponse","kind":"struct","full_name":"Mailjet::Statcounters::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Template/CreateResponse","kind":"struct","full_name":"Mailjet::Template::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindResponse","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdateResponse","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Template/Details","kind":"struct","full_name":"Mailjet::Template::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Template/FindResponse","kind":"struct","full_name":"Mailjet::Template::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Template/ListResponse","kind":"struct","full_name":"Mailjet::Template::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Template/UpdateResponse","kind":"struct","full_name":"Mailjet::Template::UpdateResponse","name":"UpdateResponse"}],"namespace":{"html_id":"mailjet/Mailjet/Json","kind":"struct","full_name":"Mailjet::Json","name":"Json"},"macros":[{"html_id":"json_fields(mapping)-macro","name":"json_fields","abstract":false,"args":[{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(mapping)","args_html":"(mapping)","location":{"filename":"src/mailjet/json/fields.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L8"},"def":{"name":"json_fields","args":[{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% for name, type in mapping %}\n {% underscored = (name.gsub(/-/, \"_\")).underscore %}\n\n {% if type.id.starts_with?('{') %}\n @[JSON::Field(key: {{ name.id }},\n converter: {{ type[:converter].id }})]\n {% type = type[:type] %}\n {% else %}{% if [\"::Union(Time, ::Nil)\".id].includes?(type.id) %}\n @[JSON::Field(key: {{ name.id }},\n converter: Mailjet::Json::NilableTime)]\n {% else %}\n @[JSON::Field(key: {{ name.id }})]\n {% end %}{% end %}\n\n getter {{ underscored.id }} : {{ type }}\n {% end %}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Json/NilableTime","path":"Mailjet/Json/NilableTime.html","kind":"struct","full_name":"Mailjet::Json::NilableTime","name":"NilableTime","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Json","kind":"struct","full_name":"Mailjet::Json","name":"Json"},"class_methods":[{"html_id":"from_json(value:JSON::PullParser)-class-method","name":"from_json","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"JSON::PullParser"}],"args_string":"(value : JSON::PullParser)","args_html":"(value : JSON::PullParser)","location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L4"},"def":{"name":"from_json","args":[{"name":"value","external_name":"value","restriction":"JSON::PullParser"}],"visibility":"Public","body":"if value.kind.string? && (!(time_value = value.read_string).blank?)\n Time.parse_rfc3339(time_value.to_s)\nelse\n nil\nend"}},{"html_id":"to_json(value:self,json:JSON::Builder)-class-method","name":"to_json","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"self"},{"name":"json","external_name":"json","restriction":"JSON::Builder"}],"args_string":"(value : self, json : JSON::Builder)","args_html":"(value : self, json : JSON::Builder)","location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L12"},"def":{"name":"to_json","args":[{"name":"value","external_name":"value","restriction":"self"},{"name":"json","external_name":"json","restriction":"JSON::Builder"}],"visibility":"Public","body":"json.string(value.to_rfc3339)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L3"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L3"},"def":{"name":"initialize","visibility":"Public","body":""}}]}]},{"html_id":"mailjet/Mailjet/Listrecipient","path":"Mailjet/Listrecipient.html","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L13"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"A list recipient object manages the relationship between a contact and a\ncontactslist - every instance of a contact being added to a list creates a\nnew list recipient. Both the contact and the list need to be created\nbeforehand.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_listrecipient\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_listrecipient_listrecipient_ID\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions/#v3_post_listrecipient\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_put_listrecipient_listrecipient_ID\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_delete_listrecipient_listrecipient_ID\n","summary":"

A list recipient object manages the relationship between a contact and a contactslist - every instance of a contact being added to a list creates a new list recipient.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L27"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L47"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a listrecipient\n\n```\nMailjet::Listrecipient.delete(12345)\n```\n","summary":"

Delete a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L65"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L35"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L35"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L57"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L57"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Listrecipient/CreatePath","path":"Mailjet/Listrecipient/CreatePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/CreateResponse","path":"Mailjet/Listrecipient/CreateResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/DeletePath","path":"Mailjet/Listrecipient/DeletePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L65"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Delete a listrecipient\n\n```\nMailjet::Listrecipient.delete(12345)\n```\n","summary":"

Delete a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/FindPath","path":"Mailjet/Listrecipient/FindPath.html","kind":"struct","full_name":"Mailjet::Listrecipient::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L35"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/FindResponse","path":"Mailjet/Listrecipient/FindResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L35"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/Join","path":"Mailjet/Listrecipient/Join.html","kind":"struct","full_name":"Mailjet::Listrecipient::Join","name":"Join","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":67,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L67"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_active:Bool-instance-method","name":"is_active","abstract":false,"def":{"name":"is_active","return_type":"Bool","visibility":"Public","body":"@is_active"}},{"html_id":"is_unsubscribed:Bool-instance-method","name":"is_unsubscribed","abstract":false,"def":{"name":"is_unsubscribed","return_type":"Bool","visibility":"Public","body":"@is_unsubscribed"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"list_name:String-instance-method","name":"list_name","abstract":false,"def":{"name":"list_name","return_type":"String","visibility":"Public","body":"@list_name"}},{"html_id":"subscribed_at:Union(Time,Nil)-instance-method","name":"subscribed_at","abstract":false,"def":{"name":"subscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@subscribed_at"}},{"html_id":"unsubscribed_at:Union(Time,Nil)-instance-method","name":"unsubscribed_at","abstract":false,"def":{"name":"unsubscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_at"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ListPath","path":"Mailjet/Listrecipient/ListPath.html","kind":"struct","full_name":"Mailjet::Listrecipient::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ListResponse","path":"Mailjet/Listrecipient/ListResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ResponseData","path":"Mailjet/Listrecipient/ResponseData.html","kind":"alias","full_name":"Mailjet::Listrecipient::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":14,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L14"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Listrecipient::Join)","aliased_html":"Array(Mailjet::Listrecipient::Join)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"}},{"html_id":"mailjet/Mailjet/Listrecipient/UpdatePath","path":"Mailjet/Listrecipient/UpdatePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L57"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/UpdateResponse","path":"Mailjet/Listrecipient/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L57"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Message","path":"Mailjet/Message.html","kind":"struct","full_name":"Mailjet::Message","name":"Message","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Every time you send an email via Mailjet, a new message object is created.\nThe resources below help you retrieve details about these messages - sending\ntime, delivery and contact engagement info, recipients, message size, etc.\n\nhttps://dev.mailjet.com/email/reference/messages/\n","summary":"

Every time you send an email via Mailjet, a new message object is created.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L23"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L31"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L31"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Message/Details","path":"Mailjet/Message/Details.html","kind":"struct","full_name":"Mailjet::Message::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L33"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"arrived_at:Time-instance-method","name":"arrived_at","abstract":false,"def":{"name":"arrived_at","return_type":"Time","visibility":"Public","body":"@arrived_at"}},{"html_id":"attachment_count:Int32-instance-method","name":"attachment_count","abstract":false,"def":{"name":"attachment_count","return_type":"Int32","visibility":"Public","body":"@attachment_count"}},{"html_id":"attempt_count:Int32-instance-method","name":"attempt_count","abstract":false,"def":{"name":"attempt_count","return_type":"Int32","visibility":"Public","body":"@attempt_count"}},{"html_id":"contact_alt:String-instance-method","name":"contact_alt","abstract":false,"def":{"name":"contact_alt","return_type":"String","visibility":"Public","body":"@contact_alt"}},{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"delay:Int32-instance-method","name":"delay","abstract":false,"def":{"name":"delay","return_type":"Int32","visibility":"Public","body":"@delay"}},{"html_id":"destination_id:Int32-instance-method","name":"destination_id","abstract":false,"def":{"name":"destination_id","return_type":"Int32","visibility":"Public","body":"@destination_id"}},{"html_id":"filter_time:Int32-instance-method","name":"filter_time","abstract":false,"def":{"name":"filter_time","return_type":"Int32","visibility":"Public","body":"@filter_time"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_click_tracked:Bool-instance-method","name":"is_click_tracked","abstract":false,"def":{"name":"is_click_tracked","return_type":"Bool","visibility":"Public","body":"@is_click_tracked"}},{"html_id":"is_html_part_included:Bool-instance-method","name":"is_html_part_included","abstract":false,"def":{"name":"is_html_part_included","return_type":"Bool","visibility":"Public","body":"@is_html_part_included"}},{"html_id":"is_open_tracked:Bool-instance-method","name":"is_open_tracked","abstract":false,"def":{"name":"is_open_tracked","return_type":"Bool","visibility":"Public","body":"@is_open_tracked"}},{"html_id":"is_text_part_included:Bool-instance-method","name":"is_text_part_included","abstract":false,"def":{"name":"is_text_part_included","return_type":"Bool","visibility":"Public","body":"@is_text_part_included"}},{"html_id":"is_unsub_tracked:Bool-instance-method","name":"is_unsub_tracked","abstract":false,"def":{"name":"is_unsub_tracked","return_type":"Bool","visibility":"Public","body":"@is_unsub_tracked"}},{"html_id":"message_size:Int32-instance-method","name":"message_size","abstract":false,"def":{"name":"message_size","return_type":"Int32","visibility":"Public","body":"@message_size"}},{"html_id":"sender_id:Int32-instance-method","name":"sender_id","abstract":false,"def":{"name":"sender_id","return_type":"Int32","visibility":"Public","body":"@sender_id"}},{"html_id":"spamass_rules:String-instance-method","name":"spamass_rules","abstract":false,"def":{"name":"spamass_rules","return_type":"String","visibility":"Public","body":"@spamass_rules"}},{"html_id":"spamassassin_score:Int32-instance-method","name":"spamassassin_score","abstract":false,"def":{"name":"spamassassin_score","return_type":"Int32","visibility":"Public","body":"@spamassassin_score"}},{"html_id":"state_permanent:Bool-instance-method","name":"state_permanent","abstract":false,"def":{"name":"state_permanent","return_type":"Bool","visibility":"Public","body":"@state_permanent"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"uuid:String-instance-method","name":"uuid","abstract":false,"def":{"name":"uuid","return_type":"String","visibility":"Public","body":"@uuid"}}]},{"html_id":"mailjet/Mailjet/Message/FindPath","path":"Mailjet/Message/FindPath.html","kind":"struct","full_name":"Mailjet::Message::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Message/FindResponse","path":"Mailjet/Message/FindResponse.html","kind":"struct","full_name":"Mailjet::Message::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Message/ListPath","path":"Mailjet/Message/ListPath.html","kind":"struct","full_name":"Mailjet::Message::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L23"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Message/ListResponse","path":"Mailjet/Message/ListResponse.html","kind":"struct","full_name":"Mailjet::Message::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L23"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Message/ResponseData","path":"Mailjet/Message/ResponseData.html","kind":"alias","full_name":"Mailjet::Message::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Message::Details)","aliased_html":"Array(Mailjet::Message::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"}}]},{"html_id":"mailjet/Mailjet/Messagehistory","path":"Mailjet/Messagehistory.html","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the event history (sending, open, click etc.) for a specific\nmessage.\n\nhttps://dev.mailjet.com/email/reference/messages/#v3_get_messagehistory_message_ID\n","summary":"

Retrieve the event history (sending, open, click etc.) for a specific message.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"all(id:Int64|String,client:Client=Client.new)-class-method","name":"all","doc":"Convenience method allowing to pass the message id and returning the array\nof events directly\n\n```\nevents = Mailjet::Messagehistory.all(576460754655154659)\nevents.first.event_type\n# => \"opened\"\n```\n","summary":"

Convenience method allowing to pass the message id and returning the array of events directly

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"Int64 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : Int64 | String, client : Client = Client.new)","args_html":"(id : Int64 | String, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messagehistory.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L29"},"def":{"name":"all","args":[{"name":"id","external_name":"id","restriction":"Int64 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(params: {id: id}, client: client).data"}}],"types":[{"html_id":"mailjet/Mailjet/Messagehistory/Event","path":"Mailjet/Messagehistory/Event.html","kind":"struct","full_name":"Mailjet::Messagehistory::Event","name":"Event","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"comment:String-instance-method","name":"comment","abstract":false,"def":{"name":"comment","return_type":"String","visibility":"Public","body":"@comment"}},{"html_id":"event_at:Time-instance-method","name":"event_at","abstract":false,"def":{"name":"event_at","return_type":"Time","visibility":"Public","body":"@event_at"}},{"html_id":"event_type:String-instance-method","name":"event_type","abstract":false,"def":{"name":"event_type","return_type":"String","visibility":"Public","body":"@event_type"}},{"html_id":"state:String-instance-method","name":"state","abstract":false,"def":{"name":"state","return_type":"String","visibility":"Public","body":"@state"}},{"html_id":"useragent:String-instance-method","name":"useragent","abstract":false,"def":{"name":"useragent","return_type":"String","visibility":"Public","body":"@useragent"}},{"html_id":"useragent_id:Int32-instance-method","name":"useragent_id","abstract":false,"def":{"name":"useragent_id","return_type":"Int32","visibility":"Public","body":"@useragent_id"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ListPath","path":"Mailjet/Messagehistory/ListPath.html","kind":"struct","full_name":"Mailjet::Messagehistory::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ListResponse","path":"Mailjet/Messagehistory/ListResponse.html","kind":"struct","full_name":"Mailjet::Messagehistory::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ResponseData","path":"Mailjet/Messagehistory/ResponseData.html","kind":"alias","full_name":"Mailjet::Messagehistory::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Messagehistory::Event)","aliased_html":"Array(Mailjet::Messagehistory::Event)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"}}]},{"html_id":"mailjet/Mailjet/Messageinformation","path":"Mailjet/Messageinformation.html","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve sending / size / spam information about all messages.\n\nhttps://dev.mailjet.com/email/reference/messages#v3_get_messageinformation\nhttps://dev.mailjet.com/email/reference/messages/#v3_get_messageinformation_message_ID\n","summary":"

Retrieve sending / size / spam information about all messages.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L21"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L31"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L31"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Messageinformation/FindPath","path":"Mailjet/Messageinformation/FindPath.html","kind":"struct","full_name":"Mailjet::Messageinformation::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/FindResponse","path":"Mailjet/Messageinformation/FindResponse.html","kind":"struct","full_name":"Mailjet::Messageinformation::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/Info","path":"Mailjet/Messageinformation/Info.html","kind":"struct","full_name":"Mailjet::Messageinformation::Info","name":"Info","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L33"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"campaign_id:Int32-instance-method","name":"campaign_id","abstract":false,"def":{"name":"campaign_id","return_type":"Int32","visibility":"Public","body":"@campaign_id"}},{"html_id":"click_tracked_count:Int32-instance-method","name":"click_tracked_count","abstract":false,"def":{"name":"click_tracked_count","return_type":"Int32","visibility":"Public","body":"@click_tracked_count"}},{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"message_size:Int32-instance-method","name":"message_size","abstract":false,"def":{"name":"message_size","return_type":"Int32","visibility":"Public","body":"@message_size"}},{"html_id":"open_tracked_count:Int32-instance-method","name":"open_tracked_count","abstract":false,"def":{"name":"open_tracked_count","return_type":"Int32","visibility":"Public","body":"@open_tracked_count"}},{"html_id":"queued_count:Int32-instance-method","name":"queued_count","abstract":false,"def":{"name":"queued_count","return_type":"Int32","visibility":"Public","body":"@queued_count"}},{"html_id":"send_end_at:Time-instance-method","name":"send_end_at","abstract":false,"def":{"name":"send_end_at","return_type":"Time","visibility":"Public","body":"@send_end_at"}},{"html_id":"sent_count:Int32-instance-method","name":"sent_count","abstract":false,"def":{"name":"sent_count","return_type":"Int32","visibility":"Public","body":"@sent_count"}},{"html_id":"spam_assassin_rules:Hash(String,String|Int32)-instance-method","name":"spam_assassin_rules","abstract":false,"def":{"name":"spam_assassin_rules","return_type":"Hash(String, String | Int32)","visibility":"Public","body":"@spam_assassin_rules"}},{"html_id":"spam_assassin_score:Int32-instance-method","name":"spam_assassin_score","abstract":false,"def":{"name":"spam_assassin_score","return_type":"Int32","visibility":"Public","body":"@spam_assassin_score"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ListPath","path":"Mailjet/Messageinformation/ListPath.html","kind":"struct","full_name":"Mailjet::Messageinformation::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ListResponse","path":"Mailjet/Messageinformation/ListResponse.html","kind":"struct","full_name":"Mailjet::Messageinformation::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ResponseData","path":"Mailjet/Messageinformation/ResponseData.html","kind":"alias","full_name":"Mailjet::Messageinformation::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Messageinformation::Info)","aliased_html":"Array(Mailjet::Messageinformation::Info)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"}}]},{"html_id":"mailjet/Mailjet/Metasender","path":"Mailjet/Metasender.html","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Metasender objects are senders, which can be used on the master account as\nwell as all sub-account API Keys. Use the resources below to manage your\nmetasenders.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/metasender/\n","summary":"

Metasender objects are senders, which can be used on the master account as well as all sub-account API Keys.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L37"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L47"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L47"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Metasender/CreatePath","path":"Mailjet/Metasender/CreatePath.html","kind":"struct","full_name":"Mailjet::Metasender::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/CreateResponse","path":"Mailjet/Metasender/CreateResponse.html","kind":"struct","full_name":"Mailjet::Metasender::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Metasender/Details","path":"Mailjet/Metasender/Details.html","kind":"struct","full_name":"Mailjet::Metasender::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"filename:String-instance-method","name":"filename","abstract":false,"def":{"name":"filename","return_type":"String","visibility":"Public","body":"@filename"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_enabled:Bool-instance-method","name":"is_enabled","abstract":false,"def":{"name":"is_enabled","return_type":"Bool","visibility":"Public","body":"@is_enabled"}}]},{"html_id":"mailjet/Mailjet/Metasender/FindPath","path":"Mailjet/Metasender/FindPath.html","kind":"struct","full_name":"Mailjet::Metasender::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/FindResponse","path":"Mailjet/Metasender/FindResponse.html","kind":"struct","full_name":"Mailjet::Metasender::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Metasender/ListPath","path":"Mailjet/Metasender/ListPath.html","kind":"struct","full_name":"Mailjet::Metasender::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/ListResponse","path":"Mailjet/Metasender/ListResponse.html","kind":"struct","full_name":"Mailjet::Metasender::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Metasender/ResponseData","path":"Mailjet/Metasender/ResponseData.html","kind":"alias","full_name":"Mailjet::Metasender::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Metasender::Details)","aliased_html":"Array(Mailjet::Metasender::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"}},{"html_id":"mailjet/Mailjet/Metasender/UpdatePath","path":"Mailjet/Metasender/UpdatePath.html","kind":"struct","full_name":"Mailjet::Metasender::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/UpdateResponse","path":"Mailjet/Metasender/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Metasender::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/MethodNotAllowedException","path":"Mailjet/MethodNotAllowedException.html","kind":"class","full_name":"Mailjet::MethodNotAllowedException","name":"MethodNotAllowedException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/MissingApiCredentialsException","path":"Mailjet/MissingApiCredentialsException.html","kind":"class","full_name":"Mailjet::MissingApiCredentialsException","name":"MissingApiCredentialsException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/ParamsMissingException","path":"Mailjet/ParamsMissingException.html","kind":"class","full_name":"Mailjet::ParamsMissingException","name":"ParamsMissingException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Path","path":"Mailjet/Path.html","kind":"struct","full_name":"Mailjet::Path","name":"Path","abstract":true,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/path.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/Campaign/FindPath","kind":"struct","full_name":"Mailjet::Campaign::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaign/ListPath","kind":"struct","full_name":"Mailjet::Campaign::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Campaign/UpdatePath","kind":"struct","full_name":"Mailjet::Campaign::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Campaigndraft/CreatePath","kind":"struct","full_name":"Mailjet::Campaigndraft::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindPath","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/FindPath","kind":"struct","full_name":"Mailjet::Campaigndraft::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/ListPath","kind":"struct","full_name":"Mailjet::Campaigndraft::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdatePath","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contact/CreatePath","kind":"struct","full_name":"Mailjet::Contact::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contact/FindPath","kind":"struct","full_name":"Mailjet::Contact::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contact/List/ListPath","kind":"struct","full_name":"Mailjet::Contact::List::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contact/ListPath","kind":"struct","full_name":"Mailjet::Contact::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contact/UpdatePath","kind":"struct","full_name":"Mailjet::Contact::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contactfilter/CreatePath","kind":"struct","full_name":"Mailjet::Contactfilter::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contactfilter/DeletePath","kind":"struct","full_name":"Mailjet::Contactfilter::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Contactfilter/FindPath","kind":"struct","full_name":"Mailjet::Contactfilter::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contactfilter/ListPath","kind":"struct","full_name":"Mailjet::Contactfilter::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contactfilter/UpdatePath","kind":"struct","full_name":"Mailjet::Contactfilter::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contactlist/CreatePath","kind":"struct","full_name":"Mailjet::Contactlist::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contactlist/DeletePath","kind":"struct","full_name":"Mailjet::Contactlist::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Contactlist/FindPath","kind":"struct","full_name":"Mailjet::Contactlist::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contactlist/ListPath","kind":"struct","full_name":"Mailjet::Contactlist::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contactlist/UpdatePath","kind":"struct","full_name":"Mailjet::Contactlist::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/DNS/FindPath","kind":"struct","full_name":"Mailjet::DNS::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/DNS/ListPath","kind":"struct","full_name":"Mailjet::DNS::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreatePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/DeletePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindPath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListPath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdatePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Listrecipient/CreatePath","kind":"struct","full_name":"Mailjet::Listrecipient::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Listrecipient/DeletePath","kind":"struct","full_name":"Mailjet::Listrecipient::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Listrecipient/FindPath","kind":"struct","full_name":"Mailjet::Listrecipient::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Listrecipient/ListPath","kind":"struct","full_name":"Mailjet::Listrecipient::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Listrecipient/UpdatePath","kind":"struct","full_name":"Mailjet::Listrecipient::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Message/FindPath","kind":"struct","full_name":"Mailjet::Message::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Message/ListPath","kind":"struct","full_name":"Mailjet::Message::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Messagehistory/ListPath","kind":"struct","full_name":"Mailjet::Messagehistory::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Messageinformation/FindPath","kind":"struct","full_name":"Mailjet::Messageinformation::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Messageinformation/ListPath","kind":"struct","full_name":"Mailjet::Messageinformation::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Metasender/CreatePath","kind":"struct","full_name":"Mailjet::Metasender::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Metasender/FindPath","kind":"struct","full_name":"Mailjet::Metasender::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Metasender/ListPath","kind":"struct","full_name":"Mailjet::Metasender::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Metasender/UpdatePath","kind":"struct","full_name":"Mailjet::Metasender::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Sender/CreatePath","kind":"struct","full_name":"Mailjet::Sender::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Sender/DeletePath","kind":"struct","full_name":"Mailjet::Sender::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Sender/FindPath","kind":"struct","full_name":"Mailjet::Sender::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Sender/ListPath","kind":"struct","full_name":"Mailjet::Sender::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Sender/UpdatePath","kind":"struct","full_name":"Mailjet::Sender::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Statcounters/ListPath","kind":"struct","full_name":"Mailjet::Statcounters::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Template/CreatePath","kind":"struct","full_name":"Mailjet::Template::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Template/DeletePath","kind":"struct","full_name":"Mailjet::Template::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindPath","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdatePath","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Template/FindPath","kind":"struct","full_name":"Mailjet::Template::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Template/ListPath","kind":"struct","full_name":"Mailjet::Template::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Template/UpdatePath","kind":"struct","full_name":"Mailjet::Template::UpdatePath","name":"UpdatePath"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(params:Hash|NamedTuple=Hash(String,String).new)-class-method","name":"new","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new)","location":{"filename":"src/mailjet/path.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L7"},"def":{"name":"new","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"_ = allocate\n_.initialize(params)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"params:Hash(String,String)-instance-method","name":"params","abstract":false,"location":{"filename":"src/mailjet/path.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L3"},"def":{"name":"params","return_type":"Hash(String, String)","visibility":"Public","body":"@params"}},{"html_id":"pattern-instance-method","name":"pattern","abstract":true,"location":{"filename":"src/mailjet/path.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L5"},"def":{"name":"pattern","visibility":"Public","body":""}},{"html_id":"to_s:String-instance-method","name":"to_s","doc":"Returns a nicely readable and concise string representation of this object,\ntypically intended for users.\n\nThis method should usually **not** be overridden. It delegates to\n`#to_s(IO)` which can be overridden for custom implementations.\n\nAlso see `#inspect`.","summary":"

Returns a nicely readable and concise string representation of this object, typically intended for users.

","abstract":false,"location":{"filename":"src/mailjet/path.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L11"},"def":{"name":"to_s","return_type":"String","visibility":"Public","body":"path = \"/:version/#{pattern.lchop(\"/\")}\"\n(path.scan(/:([a-z_]+)/)).each do |match|\n if value = @params[match[1]]?\n path = path.gsub(match[0], value)\n else\n raise(ParamsMissingException.new(\"Missing param \\\"#{match[1]}\\\"\"))\n end\nend\npath\n"}}]},{"html_id":"mailjet/Mailjet/RequestException","path":"Mailjet/RequestException.html","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":22,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L22"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/ResourceNotFoundException","kind":"class","full_name":"Mailjet::ResourceNotFoundException","name":"ResourceNotFoundException"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"The error info value may return anything from a string to an array of\nhashes, so some juggling is needed to drill down to the actual errors. Here\nis an example:\n\n```\ncase exception.error_info\nwhen String\n puts exception.error_info\nwhen Mailjet::Exception::ErrorInfoArray\n if contactslists = exception.error_info[\"ContactsLists\"]?\n puts contactslists.map(&.[\"Error\"]).join(\", \")\n end\nend\n```\n","summary":"

The error info value may return anything from a string to an array of hashes, so some juggling is needed to drill down to the actual errors.

","constructors":[{"html_id":"new(__temp_78:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"__temp_78","external_name":"__temp_78","restriction":"::JSON::PullParser"}],"args_string":"(__temp_78 : JSON::PullParser)","args_html":"(__temp_78 : JSON::PullParser)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"new","args":[{"name":"__temp_78","external_name":"__temp_78","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"_ = allocate\n_.initialize(__temp_78)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"error_info:Exception::ErrorInfo-instance-method","name":"error_info","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"error_info","return_type":"Exception::ErrorInfo","visibility":"Public","body":"@error_info"}},{"html_id":"error_info=(_error_info:Exception::ErrorInfo)-instance-method","name":"error_info=","abstract":false,"args":[{"name":"_error_info","external_name":"_error_info","restriction":"Exception::ErrorInfo"}],"args_string":"(_error_info : Exception::ErrorInfo)","args_html":"(_error_info : Exception::ErrorInfo)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"error_info=","args":[{"name":"_error_info","external_name":"_error_info","restriction":"Exception::ErrorInfo"}],"visibility":"Public","body":"@error_info = _error_info"}},{"html_id":"error_message:Union(String,Nil)-instance-method","name":"error_message","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"error_message","return_type":"::Union(String, ::Nil)","visibility":"Public","body":"@error_message"}},{"html_id":"error_message=(_error_message:Union(String,Nil))-instance-method","name":"error_message=","abstract":false,"args":[{"name":"_error_message","external_name":"_error_message","restriction":"::Union(String, ::Nil)"}],"args_string":"(_error_message : Union(String, Nil))","args_html":"(_error_message : Union(String, Nil))","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"error_message=","args":[{"name":"_error_message","external_name":"_error_message","restriction":"::Union(String, ::Nil)"}],"visibility":"Public","body":"@error_message = _error_message"}},{"html_id":"message-instance-method","name":"message","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L29"},"def":{"name":"message","visibility":"Public","body":"\"#{error_message} (#{status_code})\""}},{"html_id":"status_code:Union(Int32,Nil)-instance-method","name":"status_code","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"status_code","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@status_code"}},{"html_id":"status_code=(_status_code:Union(Int32,Nil))-instance-method","name":"status_code=","abstract":false,"args":[{"name":"_status_code","external_name":"_status_code","restriction":"::Union(Int32, ::Nil)"}],"args_string":"(_status_code : Union(Int32, Nil))","args_html":"(_status_code : Union(Int32, Nil))","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"status_code=","args":[{"name":"_status_code","external_name":"_status_code","restriction":"::Union(Int32, ::Nil)"}],"visibility":"Public","body":"@status_code = _status_code"}},{"html_id":"to_json(json:JSON::Builder)-instance-method","name":"to_json","abstract":false,"args":[{"name":"json","external_name":"json","restriction":"::JSON::Builder"}],"args_string":"(json : JSON::Builder)","args_html":"(json : JSON::Builder)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"to_json","args":[{"name":"json","external_name":"json","restriction":"::JSON::Builder"}],"visibility":"Public","body":"json.object do\n _error_message = @error_message\n if _error_message.nil?\n else\n json.field(\"ErrorMessage\") do\n _error_message.to_json(json)\n end\n end\n _error_info = @error_info\n if _error_info.nil?\n else\n json.field(\"ErrorInfo\") do\n _error_info.to_json(json)\n end\n end\n _status_code = @status_code\n if _status_code.nil?\n else\n json.field(\"StatusCode\") do\n _status_code.to_json(json)\n end\n end\nend"}},{"html_id":"to_s-instance-method","name":"to_s","doc":"Returns a nicely readable and concise string representation of this object,\ntypically intended for users.\n\nThis method should usually **not** be overridden. It delegates to\n`#to_s(IO)` which can be overridden for custom implementations.\n\nAlso see `#inspect`.","summary":"

Returns a nicely readable and concise string representation of this object, typically intended for users.

","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L33"},"def":{"name":"to_s","visibility":"Public","body":"message"}}]},{"html_id":"mailjet/Mailjet/RequestTimeoutException","path":"Mailjet/RequestTimeoutException.html","kind":"class","full_name":"Mailjet::RequestTimeoutException","name":"RequestTimeoutException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Resource","path":"Mailjet/Resource.html","kind":"struct","full_name":"Mailjet::Resource","name":"Resource","abstract":true,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"},{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"},{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},{"html_id":"mailjet/Mailjet/Sender/Validate","kind":"struct","full_name":"Mailjet::Sender::Validate","name":"Validate"},{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}],"macros":[{"html_id":"can_create(pattern,mapping)-macro","name":"can_create","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":70,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L70"},"def":{"name":"can_create","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.create(\n payload : Hash | NamedTuple,\n params : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = CreatePath.new(params).to_s\n response = client.handle_api_call(\"POST\", path,\n payload: Utilities.to_camelcased_hash(payload))\n\n CreateResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n\n struct CreateResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct CreatePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_delete(pattern)-macro","name":"can_delete","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""}],"args_string":"(pattern)","args_html":"(pattern)","location":{"filename":"src/mailjet/resource.cr","line_number":138,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L138"},"def":{"name":"can_delete","args":[{"name":"pattern","external_name":"pattern","restriction":""}],"visibility":"Public","body":" def self.delete(\n id : ResourceId,\n client : Client = Client.new\n )\n path = DeletePath.new(\n{id: id}).to_s\n client.handle_api_call(\"DELETE\", path)\n nil\n \nend\n\n struct DeletePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_find(pattern,mapping)-macro","name":"can_find","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":34,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L34"},"def":{"name":"can_find","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.find(\n params : Hash | NamedTuple = Hash(String, String).new,\n query : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = FindPath.new(params).to_s\n response = client.handle_api_call(\"GET\", path, query: query)\n\n FindResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n\n def self.find(\n id : ResourceId,\n query : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n find(\n{id: id}, query: query, client: client)\n \nend\n\n struct FindResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct FindPath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_list(pattern,mapping)-macro","name":"can_list","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L3"},"def":{"name":"can_list","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Count: Int32, Data: mapping, Total: Int32} %}\n {% end %}\n\n\n def self.all(\n query : Hash | NamedTuple = Hash(String, String).new,\n params : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = ListPath.new(params).to_s\n response = client.handle_api_call(\"GET\", path, query: query)\n\n ListResponse.from_json(response)\n \nend\n\n struct ListResponse\n include Mailjet::Json::Fields\n\n \n{% if mapping.keys.includes?(\"Data\".id) %}\n forward_missing_to data\n {% end %}\n\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct ListPath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_update(pattern,mapping)-macro","name":"can_update","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":99,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L99"},"def":{"name":"can_update","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.update(\n params : Hash | NamedTuple = Hash(String, String).new,\n payload : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = UpdatePath.new(params).to_s\n response = client.handle_api_call(\"PUT\", path,\n payload: Utilities.to_camelcased_hash(payload))\n\n unless response.empty?\n UpdateResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n \nend\n\n def self.update(\n id : ResourceId,\n payload : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n update(\n{id: id}, payload: payload, client: client)\n \nend\n\n struct UpdateResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct UpdatePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}}]},{"html_id":"mailjet/Mailjet/ResourceId","path":"Mailjet/ResourceId.html","kind":"alias","full_name":"Mailjet::ResourceId","name":"ResourceId","abstract":false,"locations":[{"filename":"src/mailjet/alias.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/alias.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"(Int32 | Int64 | String)","aliased_html":"Int32 | Int64 | String","const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/ResourceNotFoundException","path":"Mailjet/ResourceNotFoundException.html","kind":"class","full_name":"Mailjet::ResourceNotFoundException","name":"ResourceNotFoundException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},"ancestors":[{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Send","path":"Mailjet/Send.html","kind":"struct","full_name":"Mailjet::Send","name":"Send","abstract":true,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/SendV3","kind":"struct","full_name":"Mailjet::SendV3","name":"SendV3"},{"html_id":"mailjet/Mailjet/SendV3_1","kind":"struct","full_name":"Mailjet::SendV3_1","name":"SendV3_1"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Send API v3 and v3.1 are part of Mailjet's transactional messaging suite.\nSend API v3.1 (`Mailjet::SendV3_1`) gives more detailed feedback information\non your sendings, while Send API v3 (`Mailjet::SendV3`) gives you a higher\nsending limit per single API call.\n\nhttps://dev.mailjet.com/email/reference/send-emails/\n","summary":"

Send API v3 and v3.1 are part of Mailjet's transactional messaging suite.

","class_methods":[{"html_id":"message(message:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"message","doc":"Deliver a single message\n\n```\nMailjet::SendV3.message({...})\n# or\nMailjet::SendV3_1.message({...})\n```\n","summary":"

Deliver a single message

","abstract":false,"args":[{"name":"message","external_name":"message","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(message : Hash | NamedTuple, client : Client = Client.new)","args_html":"(message : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L18"},"def":{"name":"message","args":[{"name":"message","external_name":"message","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(self.messages([message], client)).first"}}],"types":[{"html_id":"mailjet/Mailjet/Send/DeliveryError","path":"Mailjet/Send/DeliveryError.html","kind":"struct","full_name":"Mailjet::Send::DeliveryError","name":"DeliveryError","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":59,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L59"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"error_code:String-instance-method","name":"error_code","abstract":false,"def":{"name":"error_code","return_type":"String","visibility":"Public","body":"@error_code"}},{"html_id":"error_identifier:String-instance-method","name":"error_identifier","abstract":false,"def":{"name":"error_identifier","return_type":"String","visibility":"Public","body":"@error_identifier"}},{"html_id":"error_message:String-instance-method","name":"error_message","abstract":false,"def":{"name":"error_message","return_type":"String","visibility":"Public","body":"@error_message"}},{"html_id":"error_related_to:Array(String)-instance-method","name":"error_related_to","abstract":false,"def":{"name":"error_related_to","return_type":"Array(String)","visibility":"Public","body":"@error_related_to"}},{"html_id":"status_code:Int32-instance-method","name":"status_code","abstract":false,"def":{"name":"status_code","return_type":"Int32","visibility":"Public","body":"@status_code"}}]},{"html_id":"mailjet/Mailjet/Send/DeliveryReceipt","path":"Mailjet/Send/DeliveryReceipt.html","kind":"struct","full_name":"Mailjet::Send::DeliveryReceipt","name":"DeliveryReceipt","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"message_href:String-instance-method","name":"message_href","abstract":false,"def":{"name":"message_href","return_type":"String","visibility":"Public","body":"@message_href"}},{"html_id":"message_id:Int64-instance-method","name":"message_id","abstract":false,"def":{"name":"message_id","return_type":"Int64","visibility":"Public","body":"@message_id"}},{"html_id":"message_uuid:String-instance-method","name":"message_uuid","abstract":false,"def":{"name":"message_uuid","return_type":"String","visibility":"Public","body":"@message_uuid"}}]},{"html_id":"mailjet/Mailjet/Send/ResponseMessage","path":"Mailjet/Send/ResponseMessage.html","kind":"struct","full_name":"Mailjet::Send::ResponseMessage","name":"ResponseMessage","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":25,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L25"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"bcc:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"bcc","abstract":false,"def":{"name":"bcc","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@bcc"}},{"html_id":"cc:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"cc","abstract":false,"def":{"name":"cc","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@cc"}},{"html_id":"custom_id:Union(String,Nil)-instance-method","name":"custom_id","abstract":false,"def":{"name":"custom_id","return_type":"::Union(String, ::Nil)","visibility":"Public","body":"@custom_id"}},{"html_id":"errors:Union(Array(DeliveryError),Nil)-instance-method","name":"errors","abstract":false,"def":{"name":"errors","return_type":"::Union(Array(DeliveryError), ::Nil)","visibility":"Public","body":"@errors"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"to:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"to","abstract":false,"def":{"name":"to","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@to"}}]},{"html_id":"mailjet/Mailjet/Send/SentMessage","path":"Mailjet/Send/SentMessage.html","kind":"struct","full_name":"Mailjet::Send::SentMessage","name":"SentMessage","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"message_id:Int64-instance-method","name":"message_id","abstract":false,"def":{"name":"message_id","return_type":"Int64","visibility":"Public","body":"@message_id"}},{"html_id":"message_uuid:String-instance-method","name":"message_uuid","abstract":false,"def":{"name":"message_uuid","return_type":"String","visibility":"Public","body":"@message_uuid"}}]}]},{"html_id":"mailjet/Mailjet/Sender","path":"Mailjet/Sender.html","kind":"struct","full_name":"Mailjet::Sender","name":"Sender","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L7"},{"filename":"src/mailjet/resources/sender/validate.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender/validate.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Senders objects are used to select the From email address for the emails\nyou are sending. Use the resources below to manage and validate your senders.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/sender/\n","summary":"

Senders objects are used to select the From email address for the emails you are sending.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L39"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a sender\n\n```\nMailjet::Sender.delete(1324)\n```\n","summary":"

Delete a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L60"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L52"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L52"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Sender/Address","path":"Mailjet/Sender/Address.html","kind":"struct","full_name":"Mailjet::Sender::Address","name":"Address","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":62,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L62"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"dnsid:Int64-instance-method","name":"dnsid","abstract":false,"def":{"name":"dnsid","return_type":"Int64","visibility":"Public","body":"@dnsid"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"email_type:String-instance-method","name":"email_type","abstract":false,"def":{"name":"email_type","return_type":"String","visibility":"Public","body":"@email_type"}},{"html_id":"filename:String-instance-method","name":"filename","abstract":false,"def":{"name":"filename","return_type":"String","visibility":"Public","body":"@filename"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_default_sender:Bool-instance-method","name":"is_default_sender","abstract":false,"def":{"name":"is_default_sender","return_type":"Bool","visibility":"Public","body":"@is_default_sender"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}}]},{"html_id":"mailjet/Mailjet/Sender/CreatePath","path":"Mailjet/Sender/CreatePath.html","kind":"struct","full_name":"Mailjet::Sender::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/CreateResponse","path":"Mailjet/Sender/CreateResponse.html","kind":"struct","full_name":"Mailjet::Sender::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/DeletePath","path":"Mailjet/Sender/DeletePath.html","kind":"struct","full_name":"Mailjet::Sender::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Delete a sender\n\n```\nMailjet::Sender.delete(1324)\n```\n","summary":"

Delete a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/FindPath","path":"Mailjet/Sender/FindPath.html","kind":"struct","full_name":"Mailjet::Sender::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/FindResponse","path":"Mailjet/Sender/FindResponse.html","kind":"struct","full_name":"Mailjet::Sender::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/ListPath","path":"Mailjet/Sender/ListPath.html","kind":"struct","full_name":"Mailjet::Sender::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/ListResponse","path":"Mailjet/Sender/ListResponse.html","kind":"struct","full_name":"Mailjet::Sender::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Sender/ResponseData","path":"Mailjet/Sender/ResponseData.html","kind":"alias","full_name":"Mailjet::Sender::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Sender::Address)","aliased_html":"Array(Mailjet::Sender::Address)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"}},{"html_id":"mailjet/Mailjet/Sender/UpdatePath","path":"Mailjet/Sender/UpdatePath.html","kind":"struct","full_name":"Mailjet::Sender::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/UpdateResponse","path":"Mailjet/Sender/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Sender::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/Validate","path":"Mailjet/Sender/Validate.html","kind":"struct","full_name":"Mailjet::Sender::Validate","name":"Validate","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender/validate.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender/validate.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Validate a registered sender email address or domain. A sender domain\n(*@domain.com) is validated by checking the caller's rights, the existence\nof a metasender for that domain or by searching for the ownership token on\nthe domain root or in the DNS.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/sender#v3_post_sender_sender_ID_validate\n","summary":"

Validate a registered sender email address or domain.

","class_methods":[{"html_id":"create(sender_id:ResourceId,client:Client=Client.new)-class-method","name":"create","doc":"Check if sender is validated\n\n```\nvalidation = Mailjet::Sender::Validate.create(12345)\nputs validation.validation_method\n# => \"ActivationEmail\"\n```\n\nNote: If the user is already activated, a http status 400 will be\nreturned, which will result in a `Mailjet::RequestException` to be\nraised.\n","summary":"

Check if sender is validated

","abstract":false,"args":[{"name":"sender_id","external_name":"sender_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(sender_id : ResourceId, client : Client = Client.new)","args_html":"(sender_id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender/validate.cr","line_number":30,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender/validate.cr#L30"},"def":{"name":"create","args":[{"name":"sender_id","external_name":"sender_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create({} of String => String, {sender_id: sender_id}, client)"}}]}]},{"html_id":"mailjet/Mailjet/SendV3","path":"Mailjet/SendV3.html","kind":"struct","full_name":"Mailjet::SendV3","name":"SendV3","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"ancestors":[{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":72,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L72"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"messages(messages:Array(Hash)|Array(NamedTuple),client:Client=Client.new)-class-method","name":"messages","doc":"Deliver an array of messages\n\n```\nmessages = [\n {...},\n {...},\n]\nMailjet::SendV3.messages(messages)\n```\n","summary":"

Deliver an array of messages

","abstract":false,"args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","args_html":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":86,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L86"},"def":{"name":"messages","args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(create({Messages: messages}, params: {version: \"v3\"}, client: client)).sent"}}]},{"html_id":"mailjet/Mailjet/SendV3_1","path":"Mailjet/SendV3_1.html","kind":"struct","full_name":"Mailjet::SendV3_1","name":"SendV3_1","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"ancestors":[{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":98,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L98"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"messages(messages:Array(Hash)|Array(NamedTuple),client:Client=Client.new)-class-method","name":"messages","doc":"Deliver an array of messages\n\n```\nmessages = [\n {...},\n {...},\n]\nMailjet::SendV3_1.messages(messages)\n```\n","summary":"

Deliver an array of messages

","abstract":false,"args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","args_html":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":112,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L112"},"def":{"name":"messages","args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(create({Messages: messages}, params: {version: \"v3.1\"}, client: client)).messages"}}]},{"html_id":"mailjet/Mailjet/Statcounters","path":"Mailjet/Statcounters.html","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Get aggregated statistics for a specific campaign, list, API Key or sender\nemail address. Both message-based and event-based stats can be retrieved.\n\nhttps://dev.mailjet.com/email/reference/statistics#v3_get_statcounters\n","summary":"

Get aggregated statistics for a specific campaign, list, API Key or sender email address.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L21"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"by_api_key(query:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"by_api_key","doc":"Convenience method to retrieve statistics at current API key level\n\n```\nresponse = Mailjet::Statcounters.by_api_key({\n counter_timing: \"event\",\n counter_resolution: \"hour\",\n from_ts: Time.local.at_beginning_of_week.to_unix,\n to_ts: Time.local.to_unix,\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at current API key level

","abstract":false,"args":[{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L35"},"def":{"name":"by_api_key","args":[{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_source => \"api_key\"}), client: client)"}},{"html_id":"by_campaign(campaign_id:Int32|String,query:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"by_campaign","doc":"Convenience method to retrieve statistics at campaign level\n\n```\nresponse = Mailjet::Statcounters.by_campaign(123456, {\n counter_timing: \"event\",\n counter_resolution: \"day\",\n from_ts: Time.local.at_beginning_of_day.to_unix,\n to_ts: Time.local.to_unix,\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at campaign level

","abstract":false,"args":[{"name":"campaign_id","external_name":"campaign_id","restriction":"Int32 | String"},{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(campaign_id : Int32 | String, query : Hash | NamedTuple, client : Client = Client.new)","args_html":"(campaign_id : Int32 | String, query : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":56,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L56"},"def":{"name":"by_campaign","args":[{"name":"campaign_id","external_name":"campaign_id","restriction":"Int32 | String"},{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_source => \"campaign\", :source_id => campaign_id}), client: client)"}},{"html_id":"by_list(list_id:Int32|String,client:Client=Client.new)-class-method","name":"by_list","doc":"Convenience method to retrieve statistics at list level\n\n```\nresponse = Mailjet::Statcounters.by_list(123456)\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at list level

","abstract":false,"args":[{"name":"list_id","external_name":"list_id","restriction":"Int32 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(list_id : Int32 | String, client : Client = Client.new)","args_html":"(list_id : Int32 | String, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":74,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L74"},"def":{"name":"by_list","args":[{"name":"list_id","external_name":"list_id","restriction":"Int32 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: {:counter_timing => \"message\", :counter_resolution => \"lifetime\", :counter_source => \"list\", :source_id => list_id}, client: client)"}},{"html_id":"by_sender(sender_id:Int32|String,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"by_sender","doc":"Convenience method to retrieve statistics at sender level\n\n```\nresponse = Mailjet::Statcounters.by_sender(123456, {\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at sender level

","abstract":false,"args":[{"name":"sender_id","external_name":"sender_id","restriction":"Int32 | String"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(sender_id : Int32 | String, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(sender_id : Int32 | String, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":95,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L95"},"def":{"name":"by_sender","args":[{"name":"sender_id","external_name":"sender_id","restriction":"Int32 | String"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_timing => \"message\", :counter_source => \"sender\", :source_id => sender_id}), client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Statcounters/Counters","path":"Mailjet/Statcounters/Counters.html","kind":"struct","full_name":"Mailjet::Statcounters::Counters","name":"Counters","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":107,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L107"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"api_key_id:Int32-instance-method","name":"api_key_id","abstract":false,"def":{"name":"api_key_id","return_type":"Int32","visibility":"Public","body":"@api_key_id"}},{"html_id":"event_click_delay:Int32-instance-method","name":"event_click_delay","abstract":false,"def":{"name":"event_click_delay","return_type":"Int32","visibility":"Public","body":"@event_click_delay"}},{"html_id":"event_clicked_count:Int32-instance-method","name":"event_clicked_count","abstract":false,"def":{"name":"event_clicked_count","return_type":"Int32","visibility":"Public","body":"@event_clicked_count"}},{"html_id":"event_open_delay:Int32-instance-method","name":"event_open_delay","abstract":false,"def":{"name":"event_open_delay","return_type":"Int32","visibility":"Public","body":"@event_open_delay"}},{"html_id":"event_opened_count:Int32-instance-method","name":"event_opened_count","abstract":false,"def":{"name":"event_opened_count","return_type":"Int32","visibility":"Public","body":"@event_opened_count"}},{"html_id":"event_spam_count:Int32-instance-method","name":"event_spam_count","abstract":false,"def":{"name":"event_spam_count","return_type":"Int32","visibility":"Public","body":"@event_spam_count"}},{"html_id":"event_unsubscribed_count:Int32-instance-method","name":"event_unsubscribed_count","abstract":false,"def":{"name":"event_unsubscribed_count","return_type":"Int32","visibility":"Public","body":"@event_unsubscribed_count"}},{"html_id":"event_workflow_exited_count:Int32-instance-method","name":"event_workflow_exited_count","abstract":false,"def":{"name":"event_workflow_exited_count","return_type":"Int32","visibility":"Public","body":"@event_workflow_exited_count"}},{"html_id":"message_blocked_count:Int32-instance-method","name":"message_blocked_count","abstract":false,"def":{"name":"message_blocked_count","return_type":"Int32","visibility":"Public","body":"@message_blocked_count"}},{"html_id":"message_clicked_count:Int32-instance-method","name":"message_clicked_count","abstract":false,"def":{"name":"message_clicked_count","return_type":"Int32","visibility":"Public","body":"@message_clicked_count"}},{"html_id":"message_deferred_count:Int32-instance-method","name":"message_deferred_count","abstract":false,"def":{"name":"message_deferred_count","return_type":"Int32","visibility":"Public","body":"@message_deferred_count"}},{"html_id":"message_hard_bounced_count:Int32-instance-method","name":"message_hard_bounced_count","abstract":false,"def":{"name":"message_hard_bounced_count","return_type":"Int32","visibility":"Public","body":"@message_hard_bounced_count"}},{"html_id":"message_opened_count:Int32-instance-method","name":"message_opened_count","abstract":false,"def":{"name":"message_opened_count","return_type":"Int32","visibility":"Public","body":"@message_opened_count"}},{"html_id":"message_queued_count:Int32-instance-method","name":"message_queued_count","abstract":false,"def":{"name":"message_queued_count","return_type":"Int32","visibility":"Public","body":"@message_queued_count"}},{"html_id":"message_sent_count:Int32-instance-method","name":"message_sent_count","abstract":false,"def":{"name":"message_sent_count","return_type":"Int32","visibility":"Public","body":"@message_sent_count"}},{"html_id":"message_soft_bounced_count:Int32-instance-method","name":"message_soft_bounced_count","abstract":false,"def":{"name":"message_soft_bounced_count","return_type":"Int32","visibility":"Public","body":"@message_soft_bounced_count"}},{"html_id":"message_spam_count:Int32-instance-method","name":"message_spam_count","abstract":false,"def":{"name":"message_spam_count","return_type":"Int32","visibility":"Public","body":"@message_spam_count"}},{"html_id":"message_unsubscribed_count:Int32-instance-method","name":"message_unsubscribed_count","abstract":false,"def":{"name":"message_unsubscribed_count","return_type":"Int32","visibility":"Public","body":"@message_unsubscribed_count"}},{"html_id":"message_work_flow_exited_count:Int32-instance-method","name":"message_work_flow_exited_count","abstract":false,"def":{"name":"message_work_flow_exited_count","return_type":"Int32","visibility":"Public","body":"@message_work_flow_exited_count"}},{"html_id":"source_id:Int32-instance-method","name":"source_id","abstract":false,"def":{"name":"source_id","return_type":"Int32","visibility":"Public","body":"@source_id"}},{"html_id":"timeslice:String-instance-method","name":"timeslice","abstract":false,"def":{"name":"timeslice","return_type":"String","visibility":"Public","body":"@timeslice"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ListPath","path":"Mailjet/Statcounters/ListPath.html","kind":"struct","full_name":"Mailjet::Statcounters::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ListResponse","path":"Mailjet/Statcounters/ListResponse.html","kind":"struct","full_name":"Mailjet::Statcounters::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ResponseData","path":"Mailjet/Statcounters/ResponseData.html","kind":"alias","full_name":"Mailjet::Statcounters::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Statcounters::Counters)","aliased_html":"Array(Mailjet::Statcounters::Counters)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"}}]},{"html_id":"mailjet/Mailjet/Template","path":"Mailjet/Template.html","kind":"struct","full_name":"Mailjet::Template","name":"Template","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L8"},{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the contents of an email template. It will be split between a Text\npart, HTML part, MJML content and/or additional headers.\n\nhttps://dev.mailjet.com/email/reference/templates/#v3_get_template_template_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/templates/#v3_post_template_template_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/templates/#v3_put_template_template_ID_detailcontent\n","summary":"

Retrieve the contents of an email template.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L42"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a template\n\n```\nMailjet::Template.delete(123456789)\n```\n","summary":"

Delete a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":66,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L66"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L58"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L58"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Template/CreatePath","path":"Mailjet/Template/CreatePath.html","kind":"struct","full_name":"Mailjet::Template::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/CreateResponse","path":"Mailjet/Template/CreateResponse.html","kind":"struct","full_name":"Mailjet::Template::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/DeletePath","path":"Mailjet/Template/DeletePath.html","kind":"struct","full_name":"Mailjet::Template::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":66,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L66"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Delete a template\n\n```\nMailjet::Template.delete(123456789)\n```\n","summary":"

Delete a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent","path":"Mailjet/Template/Detailcontent.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"class_methods":[{"html_id":"create(id:ResourceId,payload:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"create","doc":"Create content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.create(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L38"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create(payload, {id: id}, client: client)"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L19"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L19"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L60"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L60"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindPath","path":"Mailjet/Template/Detailcontent/FindPath.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindResponse","path":"Mailjet/Template/Detailcontent/FindResponse.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/ResponseData","path":"Mailjet/Template/Detailcontent/ResponseData.html","kind":"alias","full_name":"Mailjet::Template::Detailcontent::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(JSON::Any)","aliased_html":"Array(JSON::Any)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"}},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdatePath","path":"Mailjet/Template/Detailcontent/UpdatePath.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdateResponse","path":"Mailjet/Template/Detailcontent/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Template/Details","path":"Mailjet/Template/Details.html","kind":"struct","full_name":"Mailjet::Template::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":68,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L68"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"author:String-instance-method","name":"author","abstract":false,"def":{"name":"author","return_type":"String","visibility":"Public","body":"@author"}},{"html_id":"categories:Array(String)-instance-method","name":"categories","abstract":false,"def":{"name":"categories","return_type":"Array(String)","visibility":"Public","body":"@categories"}},{"html_id":"copyright:String-instance-method","name":"copyright","abstract":false,"def":{"name":"copyright","return_type":"String","visibility":"Public","body":"@copyright"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"edit_mode:Int32-instance-method","name":"edit_mode","abstract":false,"def":{"name":"edit_mode","return_type":"Int32","visibility":"Public","body":"@edit_mode"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"is_text_part_generation_enabled:Bool-instance-method","name":"is_text_part_generation_enabled","abstract":false,"def":{"name":"is_text_part_generation_enabled","return_type":"Bool","visibility":"Public","body":"@is_text_part_generation_enabled"}},{"html_id":"last_updated_at:Time-instance-method","name":"last_updated_at","abstract":false,"def":{"name":"last_updated_at","return_type":"Time","visibility":"Public","body":"@last_updated_at"}},{"html_id":"locale:String-instance-method","name":"locale","abstract":false,"def":{"name":"locale","return_type":"String","visibility":"Public","body":"@locale"}},{"html_id":"locale_list:Union(Array(String),Nil)-instance-method","name":"locale_list","abstract":false,"def":{"name":"locale_list","return_type":"::Union(Array(String), ::Nil)","visibility":"Public","body":"@locale_list"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"owner_id:Int32-instance-method","name":"owner_id","abstract":false,"def":{"name":"owner_id","return_type":"Int32","visibility":"Public","body":"@owner_id"}},{"html_id":"owner_type:String-instance-method","name":"owner_type","abstract":false,"def":{"name":"owner_type","return_type":"String","visibility":"Public","body":"@owner_type"}},{"html_id":"presets:JSON::Any-instance-method","name":"presets","abstract":false,"def":{"name":"presets","return_type":"JSON::Any","visibility":"Public","body":"@presets"}},{"html_id":"previews:Array(Int32)-instance-method","name":"previews","abstract":false,"def":{"name":"previews","return_type":"Array(Int32)","visibility":"Public","body":"@previews"}},{"html_id":"purposes:Array(String)-instance-method","name":"purposes","abstract":false,"def":{"name":"purposes","return_type":"Array(String)","visibility":"Public","body":"@purposes"}}]},{"html_id":"mailjet/Mailjet/Template/FindPath","path":"Mailjet/Template/FindPath.html","kind":"struct","full_name":"Mailjet::Template::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/FindResponse","path":"Mailjet/Template/FindResponse.html","kind":"struct","full_name":"Mailjet::Template::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/ListPath","path":"Mailjet/Template/ListPath.html","kind":"struct","full_name":"Mailjet::Template::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/ListResponse","path":"Mailjet/Template/ListResponse.html","kind":"struct","full_name":"Mailjet::Template::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Template/ResponseData","path":"Mailjet/Template/ResponseData.html","kind":"alias","full_name":"Mailjet::Template::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Template::Details)","aliased_html":"Array(Mailjet::Template::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"}},{"html_id":"mailjet/Mailjet/Template/UpdatePath","path":"Mailjet/Template/UpdatePath.html","kind":"struct","full_name":"Mailjet::Template::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L58"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/UpdateResponse","path":"Mailjet/Template/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Template::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L58"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Utilities","path":"Mailjet/Utilities.html","kind":"struct","full_name":"Mailjet::Utilities","name":"Utilities","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"query_parameterize(value:Hash|NamedTuple):String-class-method","name":"query_parameterize","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple) : String","args_html":"(value : Hash | NamedTuple) : String","location":{"filename":"src/mailjet/utilities.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L23"},"def":{"name":"query_parameterize","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"return_type":"String","visibility":"Public","body":"query = to_camelcased_hash(to_stringified_hash(value))\nHTTP::Params.encode(query)\n"}},{"html_id":"to_camelcased_hash(value:Hash|NamedTuple)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple)","args_html":"(value : Hash | NamedTuple)","location":{"filename":"src/mailjet/utilities.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L7"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"value.to_h.transform_keys() do |__arg2|\n __arg2.to_s.camelcase\nend.transform_values do |v|\n to_camelcased_hash(v)\nend"}},{"html_id":"to_camelcased_hash(value:Array)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Array"}],"args_string":"(value : Array)","args_html":"(value : Array)","location":{"filename":"src/mailjet/utilities.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L13"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Array"}],"visibility":"Public","body":"value.map do |v|\n to_camelcased_hash(v)\nend"}},{"html_id":"to_camelcased_hash(value:Bool|Int32|String|Nil)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Bool | Int32 | String | ::Nil"}],"args_string":"(value : Bool | Int32 | String | Nil)","args_html":"(value : Bool | Int32 | String | Nil)","location":{"filename":"src/mailjet/utilities.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L19"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Bool | Int32 | String | ::Nil"}],"visibility":"Public","body":"value"}},{"html_id":"to_stringified_hash(value:Hash|NamedTuple)-class-method","name":"to_stringified_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple)","args_html":"(value : Hash | NamedTuple)","location":{"filename":"src/mailjet/utilities.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L3"},"def":{"name":"to_stringified_hash","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"value.to_h.transform_keys(&.to_s).transform_values(&.to_s)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}]}]}]}} \ No newline at end of file diff --git a/search-index.js b/search-index.js index 6bd0c60..91b8cee 100644 --- a/search-index.js +++ b/search-index.js @@ -1 +1 @@ -crystal_doc_search_index_callback({"repository_name":"mailjet","body":"# Mailjet API client for Crystal\n\nMailjet is an email platform for teams to send transactional & marketing emails.\nIt is a GDPR compliant and ISO 27001 certified Email Service Provider.\n\n![GitHub](https://img.shields.io/github/license/wout/mollie.cr)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/wout/mailjet.cr)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/wout/mailjet.cr/ci.yml?branch=master)\n\n## Disclaimer\n\nThis is the unofficial [Crystal](https://crystal-lang.org/) shard for Mailjet.\nThe majority of the API is covered, but some parts still need to be added.\n\n## Requirements\n\nTo use the Mailjet API client, you will need a free\n[Mailjet account](https://app.mailjet.com/signup).\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n```yaml\ndependencies:\n mailjet:\n github: wout/mailjet.cr\n```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"mailjet\"\n```\n\n### Send your first email\n\n```crystal\nresponse = Mailjet::SendV3_1.message({\n \"From\": {\n \"Email\": \"from@email.com\",\n \"Name\": \"Me\",\n },\n \"To\": [\n {\n \"Email\": \"to@email.com\",\n \"Name\": \"You\",\n },\n ],\n \"Subject\": \"My first Mailjet Email!\",\n \"TextPart\": \"Greetings from Mailjet!\",\n \"HTMLPart\": <<-HTML\n

\n Dear passenger 1, welcome to\n Mailjet!\n

\n
\n May the delivery force be with you!\n HTML\n})\n\nputs response.status\n# => \"success\"\n```\n\n### Send multiple messages\n\n```crystal\nresponse = Mailjet::SendV3_1.messages([\n {...},\n {...}\n])\n\nputs response.first.status\n# => \"success\"\n```\n\n### Retrieve sent messages\n\nNow, let’s view the status of the sent message and its configuration specifics.\n\n```crystal\nmessage = Mailjet::Message.find(576460754655154659)\nputs message.status\n# => \"opened\"\n```\n\n### View message history\n\nYou can track important events linked to the sent emails, for example whether\nthe recipient opened the message, or clicked on a link within.\n\n```crystal\nevents = Mailjet::Messagehistory.all(576460754655154659)\nputs events.first.event_type\n# => \"sent\"\nputs events.last.event_type\n# => \"opened\"\n```\n\n### Retrieve Statistics\n\nThe Mailjet API also has a variety of resources that help retrieve aggregated\nstatistics for key performance indicators like opens, clicks, unsubscribes, etc.\n\nLet's take a look at just one of those resources to give you a sample of the\ndata you can read - we’ll retrieve total aggregated statistics for your API key.\n\n```crystal\ncounters = Mailjet::Statcounters.by_api_key({\n counter_timing: \"event\",\n counter_resolution: \"hour\",\n from_ts: Time.local.at_beginning_of_day.to_unix,\n to_ts: Time.local.to_unix,\n})\nputs counters.first.event_opened_count\n# => 28\n```\n\n## Documentation\n\n- [Shard API Docs](https://wout.github.io/mailjet.cr/)\n\n## To-do\n\nMost of the API is covered, but the following endpoints are not:\n\n- [ ] All Message Events\n- [ ] Bulk contact management and CSV import\n- [ ] Parse\n- [ ] Settings\n- [ ] SMS\n- [ ] Statistics (only statcounters is done)\n- [ ] Webhook\n\n## Contributing\n\n1. Fork it ()\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [wout](https://github.com/wout) - creator and maintainer\n","program":{"html_id":"mailjet/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"locations":[],"repository_name":"mailjet","program":true,"enum":false,"alias":false,"const":false,"types":[{"html_id":"mailjet/Mailjet","path":"Mailjet.html","kind":"struct","full_name":"Mailjet","name":"Mailjet","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet.cr#L11"},{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/alias.cr#L1"},{"filename":"src/mailjet/client.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L1"},{"filename":"src/mailjet/config.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L1"},{"filename":"src/mailjet/elements/address.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L1"},{"filename":"src/mailjet/elements/address_list.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L1"},{"filename":"src/mailjet/exception.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L1"},{"filename":"src/mailjet/json/fields.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L1"},{"filename":"src/mailjet/json/nilable_time.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L1"},{"filename":"src/mailjet/path.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L1"},{"filename":"src/mailjet/resource.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L1"},{"filename":"src/mailjet/resources/campaign.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L1"},{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L1"},{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L3"},{"filename":"src/mailjet/resources/contact.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L1"},{"filename":"src/mailjet/resources/contact/list.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L1"},{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L1"},{"filename":"src/mailjet/resources/contactfilter.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L1"},{"filename":"src/mailjet/resources/contactlist.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L1"},{"filename":"src/mailjet/resources/dns.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L1"},{"filename":"src/mailjet/resources/dns/check.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L1"},{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L1"},{"filename":"src/mailjet/resources/listrecipient.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L1"},{"filename":"src/mailjet/resources/message.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L1"},{"filename":"src/mailjet/resources/messagehistory.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L1"},{"filename":"src/mailjet/resources/messageinformation.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L1"},{"filename":"src/mailjet/resources/metasender.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L1"},{"filename":"src/mailjet/resources/send.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L1"},{"filename":"src/mailjet/resources/sender.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L1"},{"filename":"src/mailjet/resources/sender/validate.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender/validate.cr#L1"},{"filename":"src/mailjet/resources/statcounters.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L1"},{"filename":"src/mailjet/resources/template.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L1"},{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L1"},{"filename":"src/mailjet/utilities.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L1"},{"filename":"src/mailjet/version.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/version.cr#L1"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"VERSION","name":"VERSION","value":"{{ (`shards version \\\"/home/runner/work/mailjet.cr/mailjet.cr/src/mailjet\\\"`).chomp.stringify }}"}],"class_methods":[{"html_id":"configure(&)-class-method","name":"configure","abstract":false,"location":{"filename":"src/mailjet.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet.cr#L12"},"def":{"name":"configure","yields":1,"block_arity":1,"visibility":"Public","body":"yield(Mailjet::Config)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/alias.cr#L1"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/alias.cr#L1"},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"mailjet/Mailjet/Address","path":"Mailjet/Address.html","kind":"struct","full_name":"Mailjet::Address","name":"Address","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/elements/address.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(address:String,display_name:String)-class-method","name":"new","abstract":false,"args":[{"name":"address","external_name":"address","restriction":"::String"},{"name":"display_name","external_name":"display_name","restriction":"::String"}],"args_string":"(address : String, display_name : String)","args_html":"(address : String, display_name : String)","location":{"filename":"src/mailjet/elements/address.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L13"},"def":{"name":"new","args":[{"name":"address","external_name":"address","restriction":"::String"},{"name":"display_name","external_name":"display_name","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address, display_name)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(address_list:String)-class-method","name":"new","abstract":false,"args":[{"name":"address_list","external_name":"address_list","restriction":"::String"}],"args_string":"(address_list : String)","args_html":"(address_list : String)","location":{"filename":"src/mailjet/elements/address.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L7"},"def":{"name":"new","args":[{"name":"address_list","external_name":"address_list","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address_list)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"address:String-instance-method","name":"address","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L3"},"def":{"name":"address","return_type":"String","visibility":"Public","body":"@address"}},{"html_id":"address_list:String-instance-method","name":"address_list","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L5"},"def":{"name":"address_list","return_type":"String","visibility":"Public","body":"@address_list"}},{"html_id":"display_name:String-instance-method","name":"display_name","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address.cr#L4"},"def":{"name":"display_name","return_type":"String","visibility":"Public","body":"@display_name"}}]},{"html_id":"mailjet/Mailjet/AddressList","path":"Mailjet/AddressList.html","kind":"struct","full_name":"Mailjet::AddressList","name":"AddressList","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/elements/address_list.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(address_list:String)-class-method","name":"new","abstract":false,"args":[{"name":"address_list","external_name":"address_list","restriction":"String"}],"args_string":"(address_list : String)","args_html":"(address_list : String)","location":{"filename":"src/mailjet/elements/address_list.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L8"},"def":{"name":"new","args":[{"name":"address_list","external_name":"address_list","restriction":"String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address_list)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"address_list:String-instance-method","name":"address_list","abstract":false,"location":{"filename":"src/mailjet/elements/address_list.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L3"},"def":{"name":"address_list","return_type":"String","visibility":"Public","body":"@address_list"}},{"html_id":"addresses:Array(Address)-instance-method","name":"addresses","abstract":false,"location":{"filename":"src/mailjet/elements/address_list.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L4"},"def":{"name":"addresses","return_type":"Array(Address)","visibility":"Public","body":"@addresses"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","location":{"filename":"src/mailjet/elements/address_list.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/elements/address_list.cr#L6"},"def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" addresses.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaign","path":"Mailjet/Campaign.html","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"When you send a campaign draft, a new campaign object is automatically\ncreated. Use the resources below to retrieve information about campaigns,\nmark selected campaigns as starred or delete them.\n\nhttps://dev.mailjet.com/email/reference/campaigns/sent-campaigns/\n","summary":"

When you send a campaign draft, a new campaign object is automatically created.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L37"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L37"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaign/Details","path":"Mailjet/Campaign/Details.html","kind":"struct","full_name":"Mailjet::Campaign::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"campaign_type:Int32-instance-method","name":"campaign_type","abstract":false,"def":{"name":"campaign_type","return_type":"Int32","visibility":"Public","body":"@campaign_type"}},{"html_id":"click_tracked:Int32-instance-method","name":"click_tracked","abstract":false,"def":{"name":"click_tracked","return_type":"Int32","visibility":"Public","body":"@click_tracked"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"custom_value:String-instance-method","name":"custom_value","abstract":false,"def":{"name":"custom_value","return_type":"String","visibility":"Public","body":"@custom_value"}},{"html_id":"first_message_id:Int64-instance-method","name":"first_message_id","abstract":false,"def":{"name":"first_message_id","return_type":"Int64","visibility":"Public","body":"@first_message_id"}},{"html_id":"from_email:String-instance-method","name":"from_email","abstract":false,"def":{"name":"from_email","return_type":"String","visibility":"Public","body":"@from_email"}},{"html_id":"from_id:Int32-instance-method","name":"from_id","abstract":false,"def":{"name":"from_id","return_type":"Int32","visibility":"Public","body":"@from_id"}},{"html_id":"from_name:String-instance-method","name":"from_name","abstract":false,"def":{"name":"from_name","return_type":"String","visibility":"Public","body":"@from_name"}},{"html_id":"has_html_count:Int32-instance-method","name":"has_html_count","abstract":false,"def":{"name":"has_html_count","return_type":"Int32","visibility":"Public","body":"@has_html_count"}},{"html_id":"has_txt_count:Int32-instance-method","name":"has_txt_count","abstract":false,"def":{"name":"has_txt_count","return_type":"Int32","visibility":"Public","body":"@has_txt_count"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_deleted:Bool-instance-method","name":"is_deleted","abstract":false,"def":{"name":"is_deleted","return_type":"Bool","visibility":"Public","body":"@is_deleted"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"news_letter_id:Int32-instance-method","name":"news_letter_id","abstract":false,"def":{"name":"news_letter_id","return_type":"Int32","visibility":"Public","body":"@news_letter_id"}},{"html_id":"open_tracked:Int32-instance-method","name":"open_tracked","abstract":false,"def":{"name":"open_tracked","return_type":"Int32","visibility":"Public","body":"@open_tracked"}},{"html_id":"segmentation_id:Int32-instance-method","name":"segmentation_id","abstract":false,"def":{"name":"segmentation_id","return_type":"Int32","visibility":"Public","body":"@segmentation_id"}},{"html_id":"send_end_at:Time-instance-method","name":"send_end_at","abstract":false,"def":{"name":"send_end_at","return_type":"Time","visibility":"Public","body":"@send_end_at"}},{"html_id":"send_start_at:Time-instance-method","name":"send_start_at","abstract":false,"def":{"name":"send_start_at","return_type":"Time","visibility":"Public","body":"@send_start_at"}},{"html_id":"spamass_score:String-instance-method","name":"spamass_score","abstract":false,"def":{"name":"spamass_score","return_type":"String","visibility":"Public","body":"@spamass_score"}},{"html_id":"status:Int32-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"Int32","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"unsubscribe_tracked_count:Int32-instance-method","name":"unsubscribe_tracked_count","abstract":false,"def":{"name":"unsubscribe_tracked_count","return_type":"Int32","visibility":"Public","body":"@unsubscribe_tracked_count"}},{"html_id":"workflow_id:Int32-instance-method","name":"workflow_id","abstract":false,"def":{"name":"workflow_id","return_type":"Int32","visibility":"Public","body":"@workflow_id"}}]},{"html_id":"mailjet/Mailjet/Campaign/FindPath","path":"Mailjet/Campaign/FindPath.html","kind":"struct","full_name":"Mailjet::Campaign::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/FindResponse","path":"Mailjet/Campaign/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaign::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaign/ListPath","path":"Mailjet/Campaign/ListPath.html","kind":"struct","full_name":"Mailjet::Campaign::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/ListResponse","path":"Mailjet/Campaign/ListResponse.html","kind":"struct","full_name":"Mailjet::Campaign::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaign/ResponseData","path":"Mailjet/Campaign/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaign::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Campaign::Details)","aliased_html":"Array(Mailjet::Campaign::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"}},{"html_id":"mailjet/Mailjet/Campaign/UpdatePath","path":"Mailjet/Campaign/UpdatePath.html","kind":"struct","full_name":"Mailjet::Campaign::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/UpdateResponse","path":"Mailjet/Campaign/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Campaign::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaign.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Campaigndraft","path":"Mailjet/Campaigndraft.html","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L9"},{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the contents of a campaign draft. It will be split between a Text\npart, HTML part, MJML content and/or additional headers.\n\nhttps://dev.mailjet.com/email/reference/campaigns/drafts/#v3_get_campaigndraft_draft_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/campaigns/drafts/#v3_post_campaigndraft_draft_ID_detailcontent\n","summary":"

Retrieve the contents of a campaign draft.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L38"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L48"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L48"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaigndraft/CreatePath","path":"Mailjet/Campaigndraft/CreatePath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/CreateResponse","path":"Mailjet/Campaigndraft/CreateResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","path":"Mailjet/Campaigndraft/Detailcontent.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"class_methods":[{"html_id":"create(id:ResourceId,payload:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"create","doc":"Create content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.create(12345, {\n \"Headers\": {\n \"Subject\": \"Hello There!\",\n \"From\": \"John Doe \",\n \"Reply-To\": \"\",\n },\n \"Html-part\": \"

Hello {{var:name}}

\",\n \"Text-part\": \"Hello {{var:name}}\",\n \"Mjml-part\": \"\",\n})\n```\n","summary":"

Create content for a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L40"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create(payload, {id: id}, client: client)"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindPath","path":"Mailjet/Campaigndraft/Detailcontent/FindPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},"doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindResponse","path":"Mailjet/Campaigndraft/Detailcontent/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},"doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/ResponseData","path":"Mailjet/Campaigndraft/Detailcontent/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaigndraft::Detailcontent::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft/detailcontent.cr#L12"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(JSON::Any)","aliased_html":"Array(JSON::Any)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Draft","path":"Mailjet/Campaigndraft/Draft.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Draft","name":"Draft","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":50,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L50"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"ax_fraction:Int32-instance-method","name":"ax_fraction","abstract":false,"def":{"name":"ax_fraction","return_type":"Int32","visibility":"Public","body":"@ax_fraction"}},{"html_id":"ax_fraction_name:String-instance-method","name":"ax_fraction_name","abstract":false,"def":{"name":"ax_fraction_name","return_type":"String","visibility":"Public","body":"@ax_fraction_name"}},{"html_id":"contacts_list_id:Union(Int32,Nil)-instance-method","name":"contacts_list_id","abstract":false,"def":{"name":"contacts_list_id","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@contacts_list_id"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"current:Int32-instance-method","name":"current","abstract":false,"def":{"name":"current","return_type":"Int32","visibility":"Public","body":"@current"}},{"html_id":"delivered_at:Union(Time,Nil)-instance-method","name":"delivered_at","abstract":false,"def":{"name":"delivered_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@delivered_at"}},{"html_id":"edit_mode:String-instance-method","name":"edit_mode","abstract":false,"def":{"name":"edit_mode","return_type":"String","visibility":"Public","body":"@edit_mode"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"is_text_part_included:Bool-instance-method","name":"is_text_part_included","abstract":false,"def":{"name":"is_text_part_included","return_type":"Bool","visibility":"Public","body":"@is_text_part_included"}},{"html_id":"locale:String-instance-method","name":"locale","abstract":false,"def":{"name":"locale","return_type":"String","visibility":"Public","body":"@locale"}},{"html_id":"modified_at:Union(Time,Nil)-instance-method","name":"modified_at","abstract":false,"def":{"name":"modified_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@modified_at"}},{"html_id":"preset:JSON::Any-instance-method","name":"preset","abstract":false,"def":{"name":"preset","return_type":"JSON::Any","visibility":"Public","body":"@preset"}},{"html_id":"sender:String-instance-method","name":"sender","abstract":false,"def":{"name":"sender","return_type":"String","visibility":"Public","body":"@sender"}},{"html_id":"sender_email:String-instance-method","name":"sender_email","abstract":false,"def":{"name":"sender_email","return_type":"String","visibility":"Public","body":"@sender_email"}},{"html_id":"sender_name:String-instance-method","name":"sender_name","abstract":false,"def":{"name":"sender_name","return_type":"String","visibility":"Public","body":"@sender_name"}},{"html_id":"status:Int32-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"Int32","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"template_id:Union(Int32,Nil)-instance-method","name":"template_id","abstract":false,"def":{"name":"template_id","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@template_id"}},{"html_id":"title:String-instance-method","name":"title","abstract":false,"def":{"name":"title","return_type":"String","visibility":"Public","body":"@title"}},{"html_id":"url:String-instance-method","name":"url","abstract":false,"def":{"name":"url","return_type":"String","visibility":"Public","body":"@url"}},{"html_id":"used:Bool-instance-method","name":"used","abstract":false,"def":{"name":"used","return_type":"Bool","visibility":"Public","body":"@used"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/FindPath","path":"Mailjet/Campaigndraft/FindPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/FindResponse","path":"Mailjet/Campaigndraft/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ListPath","path":"Mailjet/Campaigndraft/ListPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ListResponse","path":"Mailjet/Campaigndraft/ListResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ResponseData","path":"Mailjet/Campaigndraft/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaigndraft::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Campaigndraft::Draft)","aliased_html":"Array(Mailjet::Campaigndraft::Draft)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"}},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdatePath","path":"Mailjet/Campaigndraft/UpdatePath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdateResponse","path":"Mailjet/Campaigndraft/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/campaigndraft.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Client","path":"Mailjet/Client.html","kind":"struct","full_name":"Mailjet::Client","name":"Client","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/client.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"with_credentials(api_key:String|Nil,secret_key:String|Nil)-class-method","name":"with_credentials","doc":"Create a new instance with given api credentials","summary":"

Create a new instance with given api credentials

","abstract":false,"args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"},{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"args_string":"(api_key : String | Nil, secret_key : String | Nil)","args_html":"(api_key : String | Nil, secret_key : String | Nil)","location":{"filename":"src/mailjet/client.cr","line_number":98,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L98"},"def":{"name":"with_credentials","args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"},{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"new(api_key, secret_key)"}}],"constructors":[{"html_id":"new(api_key:Nil|String=Config.api_key,secret_key:Nil|String=Config.secret_key)-class-method","name":"new","doc":"Initialize with credentials\n\n```\nclient = Mailjet::Client.new(\"my_key\", \"my_secret\")\n```\n\nOr without, if credentials are configured globally:\n\n```\nclient = Mailjet::Client.new\n```","summary":"

Initialize with credentials

","abstract":false,"args":[{"name":"api_key","default_value":"Config.api_key","external_name":"api_key","restriction":"::Nil | ::String"},{"name":"secret_key","default_value":"Config.secret_key","external_name":"secret_key","restriction":"::Nil | ::String"}],"args_string":"(api_key : Nil | String = Config.api_key, secret_key : Nil | String = Config.secret_key)","args_html":"(api_key : Nil | String = Config.api_key, secret_key : Nil | String = Config.secret_key)","location":{"filename":"src/mailjet/client.cr","line_number":17,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L17"},"def":{"name":"new","args":[{"name":"api_key","default_value":"Config.api_key","external_name":"api_key","restriction":"::Nil | ::String"},{"name":"secret_key","default_value":"Config.secret_key","external_name":"secret_key","restriction":"::Nil | ::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(api_key, secret_key)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"api_key:String|Nil-instance-method","name":"api_key","abstract":false,"location":{"filename":"src/mailjet/client.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L3"},"def":{"name":"api_key","return_type":"String | ::Nil","visibility":"Public","body":"@api_key"}},{"html_id":"handle_api_call(method:String,path:String,query:Hash|NamedTuple={}ofString=>String,payload:Hash|NamedTuple={}ofString=>String,headers:Hash|NamedTuple={}ofString=>String)-instance-method","name":"handle_api_call","abstract":false,"args":[{"name":"method","external_name":"method","restriction":"String"},{"name":"path","external_name":"path","restriction":"String"},{"name":"query","default_value":"{} of String => String","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"{} of String => String","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"headers","default_value":"{} of String => String","external_name":"headers","restriction":"Hash | NamedTuple"}],"args_string":"(method : String, path : String, query : Hash | NamedTuple = {} of String => String, payload : Hash | NamedTuple = {} of String => String, headers : Hash | NamedTuple = {} of String => String)","args_html":"(method : String, path : String, query : Hash | NamedTuple = {} of String => String, payload : Hash | NamedTuple = {} of String => String, headers : Hash | NamedTuple = {} of String => String)","location":{"filename":"src/mailjet/client.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L27"},"def":{"name":"handle_api_call","args":[{"name":"method","external_name":"method","restriction":"String"},{"name":"path","external_name":"path","restriction":"String"},{"name":"query","default_value":"{} of String => String","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"{} of String => String","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"headers","default_value":"{} of String => String","external_name":"headers","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"client = http_client(URI.parse(Config.end_point))\nrequest_headers = http_headers\nheaders.each do |key, value|\n request_headers[key.to_s] = value\nend\nif query.empty?\nelse\n path = path + \"?#{Utilities.query_parameterize(query)}\"\nend\nbegin\n if {\"GET\", \"DELETE\"}.includes?(method)\n response = client.exec(method, path, headers: request_headers)\n else\n payload = payload.to_h.reject! do |_, v|\n v.nil?\n end.to_json\n response = client.exec(method, path, headers: request_headers, body: payload)\n end\n render(response)\nrescue e : IO::TimeoutError\n raise(RequestTimeoutException.new(e.message))\nrescue e : IO::EOFError\n raise(Exception.new(e.message))\nend\n"}},{"html_id":"secret_key:String|Nil-instance-method","name":"secret_key","abstract":false,"location":{"filename":"src/mailjet/client.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/client.cr#L4"},"def":{"name":"secret_key","return_type":"String | ::Nil","visibility":"Public","body":"@secret_key"}}]},{"html_id":"mailjet/Mailjet/Config","path":"Mailjet/Config.html","kind":"module","full_name":"Mailjet::Config","name":"Config","abstract":false,"locations":[{"filename":"src/mailjet/config.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"api_key:String|Nil-class-method","name":"api_key","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L3"},"def":{"name":"api_key","return_type":"String | ::Nil","visibility":"Public","body":"@@api_key"}},{"html_id":"api_key=(api_key:String|Nil)-class-method","name":"api_key=","abstract":false,"args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"}],"args_string":"(api_key : String | Nil)","args_html":"(api_key : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L3"},"def":{"name":"api_key=","args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@api_key = api_key"}},{"html_id":"api_version:String-class-method","name":"api_version","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L4"},"def":{"name":"api_version","return_type":"String","visibility":"Public","body":"@@api_version"}},{"html_id":"api_version=(api_version:String)-class-method","name":"api_version=","abstract":false,"args":[{"name":"api_version","external_name":"api_version","restriction":"String"}],"args_string":"(api_version : String)","args_html":"(api_version : String)","location":{"filename":"src/mailjet/config.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L4"},"def":{"name":"api_version=","args":[{"name":"api_version","external_name":"api_version","restriction":"String"}],"visibility":"Public","body":"@@api_version = api_version"}},{"html_id":"default_from:String|Nil-class-method","name":"default_from","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L5"},"def":{"name":"default_from","return_type":"String | ::Nil","visibility":"Public","body":"@@default_from"}},{"html_id":"default_from=(email:String)-class-method","name":"default_from=","abstract":false,"args":[{"name":"email","external_name":"email","restriction":"String"}],"args_string":"(email : String)","args_html":"(email : String)","location":{"filename":"src/mailjet/config.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L12"},"def":{"name":"default_from=","args":[{"name":"email","external_name":"email","restriction":"String"}],"visibility":"Public","body":"if email.match(/.+\\@.+\\..+/)\nelse\n raise(InvalidEmailAddressException.new)\nend\n@@default_from = email\n"}},{"html_id":"default_from=(default_from:String|Nil)-class-method","name":"default_from=","abstract":false,"args":[{"name":"default_from","external_name":"default_from","restriction":"String | ::Nil"}],"args_string":"(default_from : String | Nil)","args_html":"(default_from : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L5"},"def":{"name":"default_from=","args":[{"name":"default_from","external_name":"default_from","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@default_from = default_from"}},{"html_id":"end_point:String-class-method","name":"end_point","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L6"},"def":{"name":"end_point","return_type":"String","visibility":"Public","body":"@@end_point"}},{"html_id":"end_point=(end_point:String)-class-method","name":"end_point=","abstract":false,"args":[{"name":"end_point","external_name":"end_point","restriction":"String"}],"args_string":"(end_point : String)","args_html":"(end_point : String)","location":{"filename":"src/mailjet/config.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L6"},"def":{"name":"end_point=","args":[{"name":"end_point","external_name":"end_point","restriction":"String"}],"visibility":"Public","body":"@@end_point = end_point"}},{"html_id":"open_timeout:Time::Span-class-method","name":"open_timeout","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L7"},"def":{"name":"open_timeout","return_type":"Time::Span","visibility":"Public","body":"@@open_timeout"}},{"html_id":"open_timeout=(open_timeout:Time::Span)-class-method","name":"open_timeout=","abstract":false,"args":[{"name":"open_timeout","external_name":"open_timeout","restriction":"Time::Span"}],"args_string":"(open_timeout : Time::Span)","args_html":"(open_timeout : Time::Span)","location":{"filename":"src/mailjet/config.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L7"},"def":{"name":"open_timeout=","args":[{"name":"open_timeout","external_name":"open_timeout","restriction":"Time::Span"}],"visibility":"Public","body":"@@open_timeout = open_timeout"}},{"html_id":"read_timeout:Time::Span-class-method","name":"read_timeout","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L8"},"def":{"name":"read_timeout","return_type":"Time::Span","visibility":"Public","body":"@@read_timeout"}},{"html_id":"read_timeout=(read_timeout:Time::Span)-class-method","name":"read_timeout=","abstract":false,"args":[{"name":"read_timeout","external_name":"read_timeout","restriction":"Time::Span"}],"args_string":"(read_timeout : Time::Span)","args_html":"(read_timeout : Time::Span)","location":{"filename":"src/mailjet/config.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L8"},"def":{"name":"read_timeout=","args":[{"name":"read_timeout","external_name":"read_timeout","restriction":"Time::Span"}],"visibility":"Public","body":"@@read_timeout = read_timeout"}},{"html_id":"sandbox_mode=(sandbox_mode:Bool)-class-method","name":"sandbox_mode=","abstract":false,"args":[{"name":"sandbox_mode","external_name":"sandbox_mode","restriction":"Bool"}],"args_string":"(sandbox_mode : Bool)","args_html":"(sandbox_mode : Bool)","location":{"filename":"src/mailjet/config.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L10"},"def":{"name":"sandbox_mode=","args":[{"name":"sandbox_mode","external_name":"sandbox_mode","restriction":"Bool"}],"visibility":"Public","body":"@@sandbox_mode = sandbox_mode"}},{"html_id":"sandbox_mode?:Bool-class-method","name":"sandbox_mode?","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L10"},"def":{"name":"sandbox_mode?","return_type":"Bool","visibility":"Public","body":"@@sandbox_mode"}},{"html_id":"secret_key:String|Nil-class-method","name":"secret_key","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L9"},"def":{"name":"secret_key","return_type":"String | ::Nil","visibility":"Public","body":"@@secret_key"}},{"html_id":"secret_key=(secret_key:String|Nil)-class-method","name":"secret_key=","abstract":false,"args":[{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"args_string":"(secret_key : String | Nil)","args_html":"(secret_key : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/config.cr#L9"},"def":{"name":"secret_key=","args":[{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@secret_key = secret_key"}}]},{"html_id":"mailjet/Mailjet/Contact","path":"Mailjet/Contact.html","kind":"struct","full_name":"Mailjet::Contact","name":"Contact","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L7"},{"filename":"src/mailjet/resources/contact/list.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L2"},{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Contact objects represent the email addresses you intend to send (or have\nalready sent) messages to.\n\nhttps://dev.mailjet.com/email/reference/contacts/contact/\n","summary":"

Contact objects represent the email addresses you intend to send (or have already sent) messages to.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L38"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L49"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L49"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/CreatePath","path":"Mailjet/Contact/CreatePath.html","kind":"struct","full_name":"Mailjet::Contact::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/CreateResponse","path":"Mailjet/Contact/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contact::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contact/Details","path":"Mailjet/Contact/Details.html","kind":"struct","full_name":"Mailjet::Contact::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":51,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L51"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:String-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"String","visibility":"Public","body":"@created_at"}},{"html_id":"delivered_count:Int32-instance-method","name":"delivered_count","abstract":false,"def":{"name":"delivered_count","return_type":"Int32","visibility":"Public","body":"@delivered_count"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"exclusion_from_campaigns_updated_at:Union(Time,Nil)-instance-method","name":"exclusion_from_campaigns_updated_at","abstract":false,"def":{"name":"exclusion_from_campaigns_updated_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@exclusion_from_campaigns_updated_at"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_excluded_from_campaigns:Bool-instance-method","name":"is_excluded_from_campaigns","abstract":false,"def":{"name":"is_excluded_from_campaigns","return_type":"Bool","visibility":"Public","body":"@is_excluded_from_campaigns"}},{"html_id":"is_opt_in_pending:Bool-instance-method","name":"is_opt_in_pending","abstract":false,"def":{"name":"is_opt_in_pending","return_type":"Bool","visibility":"Public","body":"@is_opt_in_pending"}},{"html_id":"is_spam_complaining:Bool-instance-method","name":"is_spam_complaining","abstract":false,"def":{"name":"is_spam_complaining","return_type":"Bool","visibility":"Public","body":"@is_spam_complaining"}},{"html_id":"last_activity_at:Union(Time,Nil)-instance-method","name":"last_activity_at","abstract":false,"def":{"name":"last_activity_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_activity_at"}},{"html_id":"last_update_at:Union(Time,Nil)-instance-method","name":"last_update_at","abstract":false,"def":{"name":"last_update_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_update_at"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"unsubscribed_at:Union(Time,Nil)-instance-method","name":"unsubscribed_at","abstract":false,"def":{"name":"unsubscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_at"}},{"html_id":"unsubscribed_by:Union(Time,Nil)-instance-method","name":"unsubscribed_by","abstract":false,"def":{"name":"unsubscribed_by","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_by"}}]},{"html_id":"mailjet/Mailjet/Contact/FindPath","path":"Mailjet/Contact/FindPath.html","kind":"struct","full_name":"Mailjet::Contact::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/FindResponse","path":"Mailjet/Contact/FindResponse.html","kind":"struct","full_name":"Mailjet::Contact::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contact/List","path":"Mailjet/Contact/List.html","kind":"struct","full_name":"Mailjet::Contact::List","name":"List","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Retrieve all contact lists for a specific contact. You will receive\ninformation on the status of the contact for each list. Information about\nlists deleted within the last 60 days will be returned as well, since\nthose are soft-deleted and can be reinstated.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_contact_contact_ID_getcontactslists\n","summary":"

Retrieve all contact lists for a specific contact.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L20"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"all(contact_id:ResourceId,client:Client=Client.new)-class-method","name":"all","doc":"Convenience method allowing to pass the contact id and returning the\narray of lists directly\n\n```\ncontactlists = Mailjet::Contact::List.all(52856551)\n```\n","summary":"

Convenience method allowing to pass the contact id and returning the array of lists directly

","abstract":false,"args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(contact_id : ResourceId, client : Client = Client.new)","args_html":"(contact_id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact/list.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L29"},"def":{"name":"all","args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(params: {contact_id: contact_id}, client: client).data"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/List/Details","path":"Mailjet/Contact/List/Details.html","kind":"struct","full_name":"Mailjet::Contact::List::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"is_active:Bool-instance-method","name":"is_active","abstract":false,"def":{"name":"is_active","return_type":"Bool","visibility":"Public","body":"@is_active"}},{"html_id":"is_unsub:Bool-instance-method","name":"is_unsub","abstract":false,"def":{"name":"is_unsub","return_type":"Bool","visibility":"Public","body":"@is_unsub"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"subscribed_at:Time-instance-method","name":"subscribed_at","abstract":false,"def":{"name":"subscribed_at","return_type":"Time","visibility":"Public","body":"@subscribed_at"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ListPath","path":"Mailjet/Contact/List/ListPath.html","kind":"struct","full_name":"Mailjet::Contact::List::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ListResponse","path":"Mailjet/Contact/List/ListResponse.html","kind":"struct","full_name":"Mailjet::Contact::List::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ResponseData","path":"Mailjet/Contact/List/ResponseData.html","kind":"alias","full_name":"Mailjet::Contact::List::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/list.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contact::List::Details)","aliased_html":"Array(Mailjet::Contact::List::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"}}]},{"html_id":"mailjet/Mailjet/Contact/ListPath","path":"Mailjet/Contact/ListPath.html","kind":"struct","full_name":"Mailjet::Contact::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/ListResponse","path":"Mailjet/Contact/ListResponse.html","kind":"struct","full_name":"Mailjet::Contact::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","path":"Mailjet/Contact/Managecontactlists.html","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Manage the presence and subscription status of a contact for multiple\ncontact lists. Select the contact lists, as well as the desired action to\nbe performed on each one - add, remove or unsub. The contact should\nalready be present in the global contact list.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_post_contact_contact_ID_managecontactslists\n","summary":"

Manage the presence and subscription status of a contact for multiple contact lists.

","class_methods":[{"html_id":"create(contact_id:ResourceId,contacts_lists:Array)-class-method","name":"create","doc":"Manage the presence and subscription status of a contact for multiple\ncontact lists.\n\n```\ncontact_lists = Mailjet::Contact::Managecontactlists.create(54321987, [\n {list_id: 23847, action: \"addnoforce\"},\n {list_id: 26484, action: \"addforce\"},\n])\nputs contact_lists.first.list_id\n# => 23847\n```\n","summary":"

Manage the presence and subscription status of a contact for multiple contact lists.

","abstract":false,"args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"contacts_lists","external_name":"contacts_lists","restriction":"Array"}],"args_string":"(contact_id : ResourceId, contacts_lists : Array)","args_html":"(contact_id : ResourceId, contacts_lists : Array)","location":{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L28"},"def":{"name":"create","args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"contacts_lists","external_name":"contacts_lists","restriction":"Array"}],"visibility":"Public","body":"(create({contacts_lists: contacts_lists}, {contact_id: contact_id}))[\"ContactsLists\"]"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactList","path":"Mailjet/Contact/Managecontactlists/ContactList.html","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists::ContactList","name":"ContactList","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"action:String-instance-method","name":"action","abstract":false,"def":{"name":"action","return_type":"String","visibility":"Public","body":"@action"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}}]},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactLists","path":"Mailjet/Contact/Managecontactlists/ContactLists.html","kind":"alias","full_name":"Mailjet::Contact::Managecontactlists::ContactLists","name":"ContactLists","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact/managecontactlists.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Hash(String, Array(Mailjet::Contact::Managecontactlists::ContactList)))","aliased_html":"Array(Hash(String, Array(Mailjet::Contact::Managecontactlists::ContactList)))","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"}}]},{"html_id":"mailjet/Mailjet/Contact/ResponseData","path":"Mailjet/Contact/ResponseData.html","kind":"alias","full_name":"Mailjet::Contact::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contact::Details)","aliased_html":"Array(Mailjet::Contact::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"}},{"html_id":"mailjet/Mailjet/Contact/UpdatePath","path":"Mailjet/Contact/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contact::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/UpdateResponse","path":"Mailjet/Contact/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contact::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contact.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Contactfilter","path":"Mailjet/Contactfilter.html","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Segmentation is an extremely useful tool used to target a specific group of\ncustomers with a dedicated campaign. Create segments based on contact\nproperties or the contact activity (opens, clicks). Segmentation helps you\nfocus your campaigns on specific demographics, create re-engagement\ncampaigns, etc.\n\nhttps://dev.mailjet.com/email/reference/segmentation/\n","summary":"

Segmentation is an extremely useful tool used to target a specific group of customers with a dedicated campaign.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L20"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L40"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a contactfilter\n\n```\nMailjet::Contactfilter.delete(112334)\n```\n","summary":"

Delete a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L60"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L28"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L28"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L52"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L52"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contactfilter/CreatePath","path":"Mailjet/Contactfilter/CreatePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/CreateResponse","path":"Mailjet/Contactfilter/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/DeletePath","path":"Mailjet/Contactfilter/DeletePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Delete a contactfilter\n\n```\nMailjet::Contactfilter.delete(112334)\n```\n","summary":"

Delete a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/Filter","path":"Mailjet/Contactfilter/Filter.html","kind":"struct","full_name":"Mailjet::Contactfilter::Filter","name":"Filter","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":62,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L62"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"expression:String-instance-method","name":"expression","abstract":false,"def":{"name":"expression","return_type":"String","visibility":"Public","body":"@expression"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/FindPath","path":"Mailjet/Contactfilter/FindPath.html","kind":"struct","full_name":"Mailjet::Contactfilter::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L28"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/FindResponse","path":"Mailjet/Contactfilter/FindResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L28"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ListPath","path":"Mailjet/Contactfilter/ListPath.html","kind":"struct","full_name":"Mailjet::Contactfilter::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ListResponse","path":"Mailjet/Contactfilter/ListResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ResponseData","path":"Mailjet/Contactfilter/ResponseData.html","kind":"alias","full_name":"Mailjet::Contactfilter::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contactfilter::Filter)","aliased_html":"Array(Mailjet::Contactfilter::Filter)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"}},{"html_id":"mailjet/Mailjet/Contactfilter/UpdatePath","path":"Mailjet/Contactfilter/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/UpdateResponse","path":"Mailjet/Contactfilter/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactfilter.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Contactlist","path":"Mailjet/Contactlist.html","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Contact List objects help you organize your contacts into lists. Every time\nyou send a campaign you must select a recipient contact list. Segmentation\ncan help you target a portion of that list.\n\nhttps://dev.mailjet.com/email/reference/contacts/contact-list/\n","summary":"

Contact List objects help you organize your contacts into lists.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L36"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a contactlist\n\n```\nMailjet::Contactlist.delete(123456789)\n```\n","summary":"

Delete a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":54,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L54"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L46"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L46"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contactlist/CreatePath","path":"Mailjet/Contactlist/CreatePath.html","kind":"struct","full_name":"Mailjet::Contactlist::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/CreateResponse","path":"Mailjet/Contactlist/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactlist/DeletePath","path":"Mailjet/Contactlist/DeletePath.html","kind":"struct","full_name":"Mailjet::Contactlist::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":54,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L54"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Delete a contactlist\n\n```\nMailjet::Contactlist.delete(123456789)\n```\n","summary":"

Delete a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/Details","path":"Mailjet/Contactlist/Details.html","kind":"struct","full_name":"Mailjet::Contactlist::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":56,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L56"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"address:String-instance-method","name":"address","abstract":false,"def":{"name":"address","return_type":"String","visibility":"Public","body":"@address"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_deleted:Bool-instance-method","name":"is_deleted","abstract":false,"def":{"name":"is_deleted","return_type":"Bool","visibility":"Public","body":"@is_deleted"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"subscriber_count:Int32-instance-method","name":"subscriber_count","abstract":false,"def":{"name":"subscriber_count","return_type":"Int32","visibility":"Public","body":"@subscriber_count"}}]},{"html_id":"mailjet/Mailjet/Contactlist/FindPath","path":"Mailjet/Contactlist/FindPath.html","kind":"struct","full_name":"Mailjet::Contactlist::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/FindResponse","path":"Mailjet/Contactlist/FindResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ListPath","path":"Mailjet/Contactlist/ListPath.html","kind":"struct","full_name":"Mailjet::Contactlist::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ListResponse","path":"Mailjet/Contactlist/ListResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ResponseData","path":"Mailjet/Contactlist/ResponseData.html","kind":"alias","full_name":"Mailjet::Contactlist::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contactlist::Details)","aliased_html":"Array(Mailjet::Contactlist::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"}},{"html_id":"mailjet/Mailjet/Contactlist/UpdatePath","path":"Mailjet/Contactlist/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contactlist::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/UpdateResponse","path":"Mailjet/Contactlist/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/contactlist.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/DNS","path":"Mailjet/DNS.html","kind":"struct","full_name":"Mailjet::DNS","name":"DNS","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L9"},{"filename":"src/mailjet/resources/dns/check.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Whenever you register a new sender or metasender address with a new domain\nname, a new DNS object is created for this domain. Use the resources below\nto retrieve the DNS records you need to complete a successful domain\nvalidation and SPF / DKIM authentication.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/dns/\n","summary":"

Whenever you register a new sender or metasender address with a new domain name, a new DNS object is created for this domain.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/DNS/Check","path":"Mailjet/DNS/Check.html","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Perform a DNS validation of a sender domain. The Mailjet API will check\nfor a TXT record in the domain's DNS zone file.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/dns/#v3_post_dns_dns_ID_check\n","summary":"

Perform a DNS validation of a sender domain.

","class_methods":[{"html_id":"create(id:ResourceId,client:Client=Client.new)-class-method","name":"create","doc":"Check validit of a DNS record\n\n```\ncontact = Mailjet::DNS::Check.create(123456789)\n```\n","summary":"

Check validit of a DNS record

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns/check.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L20"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create({} of String => String, {id: id}, client)"}}],"types":[{"html_id":"mailjet/Mailjet/DNS/Check/Details","path":"Mailjet/DNS/Check/Details.html","kind":"struct","full_name":"Mailjet::DNS::Check::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"dkim_errors:Array(String)-instance-method","name":"dkim_errors","abstract":false,"def":{"name":"dkim_errors","return_type":"Array(String)","visibility":"Public","body":"@dkim_errors"}},{"html_id":"dkim_record_current_value:String-instance-method","name":"dkim_record_current_value","abstract":false,"def":{"name":"dkim_record_current_value","return_type":"String","visibility":"Public","body":"@dkim_record_current_value"}},{"html_id":"dkim_status:String-instance-method","name":"dkim_status","abstract":false,"def":{"name":"dkim_status","return_type":"String","visibility":"Public","body":"@dkim_status"}},{"html_id":"spf_errors:Array(String)-instance-method","name":"spf_errors","abstract":false,"def":{"name":"spf_errors","return_type":"Array(String)","visibility":"Public","body":"@spf_errors"}},{"html_id":"spf_records_current_values:Array(String)-instance-method","name":"spf_records_current_values","abstract":false,"def":{"name":"spf_records_current_values","return_type":"Array(String)","visibility":"Public","body":"@spf_records_current_values"}},{"html_id":"spf_status:String-instance-method","name":"spf_status","abstract":false,"def":{"name":"spf_status","return_type":"String","visibility":"Public","body":"@spf_status"}}]},{"html_id":"mailjet/Mailjet/DNS/Check/ResponseData","path":"Mailjet/DNS/Check/ResponseData.html","kind":"alias","full_name":"Mailjet::DNS::Check::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns/check.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::DNS::Check::Details)","aliased_html":"Array(Mailjet::DNS::Check::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"}}]},{"html_id":"mailjet/Mailjet/DNS/FindPath","path":"Mailjet/DNS/FindPath.html","kind":"struct","full_name":"Mailjet::DNS::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/DNS/FindResponse","path":"Mailjet/DNS/FindResponse.html","kind":"struct","full_name":"Mailjet::DNS::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/DNS/ListPath","path":"Mailjet/DNS/ListPath.html","kind":"struct","full_name":"Mailjet::DNS::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/DNS/ListResponse","path":"Mailjet/DNS/ListResponse.html","kind":"struct","full_name":"Mailjet::DNS::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/DNS/ResponseData","path":"Mailjet/DNS/ResponseData.html","kind":"alias","full_name":"Mailjet::DNS::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::DNS::Settings)","aliased_html":"Array(Mailjet::DNS::Settings)","const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"}},{"html_id":"mailjet/Mailjet/DNS/Settings","path":"Mailjet/DNS/Settings.html","kind":"struct","full_name":"Mailjet::DNS::Settings","name":"Settings","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/dns.cr#L29"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"dkim_record_name:String-instance-method","name":"dkim_record_name","abstract":false,"def":{"name":"dkim_record_name","return_type":"String","visibility":"Public","body":"@dkim_record_name"}},{"html_id":"dkim_record_value:String-instance-method","name":"dkim_record_value","abstract":false,"def":{"name":"dkim_record_value","return_type":"String","visibility":"Public","body":"@dkim_record_value"}},{"html_id":"dkim_status:String-instance-method","name":"dkim_status","abstract":false,"def":{"name":"dkim_status","return_type":"String","visibility":"Public","body":"@dkim_status"}},{"html_id":"domain:String-instance-method","name":"domain","abstract":false,"def":{"name":"domain","return_type":"String","visibility":"Public","body":"@domain"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_check_in_progress:Bool-instance-method","name":"is_check_in_progress","abstract":false,"def":{"name":"is_check_in_progress","return_type":"Bool","visibility":"Public","body":"@is_check_in_progress"}},{"html_id":"last_check_at:Union(Time,Nil)-instance-method","name":"last_check_at","abstract":false,"def":{"name":"last_check_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_check_at"}},{"html_id":"owner_ship_token:String-instance-method","name":"owner_ship_token","abstract":false,"def":{"name":"owner_ship_token","return_type":"String","visibility":"Public","body":"@owner_ship_token"}},{"html_id":"owner_ship_token_record_name:String-instance-method","name":"owner_ship_token_record_name","abstract":false,"def":{"name":"owner_ship_token_record_name","return_type":"String","visibility":"Public","body":"@owner_ship_token_record_name"}},{"html_id":"spf_record_value:String-instance-method","name":"spf_record_value","abstract":false,"def":{"name":"spf_record_value","return_type":"String","visibility":"Public","body":"@spf_record_value"}},{"html_id":"spf_status:String-instance-method","name":"spf_status","abstract":false,"def":{"name":"spf_status","return_type":"String","visibility":"Public","body":"@spf_status"}}]}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl","path":"Mailjet/Eventcallbackurl.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"The resources below helps you track email delivery and engagement events and\nforward the information to a webhook URL of your choice. You can use this\ndata to create additional workflows - react to spam reports, identify\nbounced email addresses, sync unsubscribed contacts, etc.\n\nhttps://dev.mailjet.com/email/reference/webhook/\n","summary":"

The resources below helps you track email delivery and engagement events and forward the information to a webhook URL of your choice.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L41"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a eventcallbackurl\n\n```\nMailjet::Eventcallbackurl.delete(112334)\n```\n","summary":"

Delete a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":63,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L63"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L55"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L55"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreatePath","path":"Mailjet/Eventcallbackurl/CreatePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L41"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreateResponse","path":"Mailjet/Eventcallbackurl/CreateResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L41"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/DeletePath","path":"Mailjet/Eventcallbackurl/DeletePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":63,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L63"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Delete a eventcallbackurl\n\n```\nMailjet::Eventcallbackurl.delete(112334)\n```\n","summary":"

Delete a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindPath","path":"Mailjet/Eventcallbackurl/FindPath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindResponse","path":"Mailjet/Eventcallbackurl/FindResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListPath","path":"Mailjet/Eventcallbackurl/ListPath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListResponse","path":"Mailjet/Eventcallbackurl/ListResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ResponseData","path":"Mailjet/Eventcallbackurl/ResponseData.html","kind":"alias","full_name":"Mailjet::Eventcallbackurl::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Eventcallbackurl::Webhook)","aliased_html":"Array(Mailjet::Eventcallbackurl::Webhook)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"}},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdatePath","path":"Mailjet/Eventcallbackurl/UpdatePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L55"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdateResponse","path":"Mailjet/Eventcallbackurl/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L55"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/Webhook","path":"Mailjet/Eventcallbackurl/Webhook.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::Webhook","name":"Webhook","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/eventcallbackurl.cr#L65"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"api_key_id:Int32-instance-method","name":"api_key_id","abstract":false,"def":{"name":"api_key_id","return_type":"Int32","visibility":"Public","body":"@api_key_id"}},{"html_id":"event_type:String-instance-method","name":"event_type","abstract":false,"def":{"name":"event_type","return_type":"String","visibility":"Public","body":"@event_type"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_backup:Bool-instance-method","name":"is_backup","abstract":false,"def":{"name":"is_backup","return_type":"Bool","visibility":"Public","body":"@is_backup"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"url:String-instance-method","name":"url","abstract":false,"def":{"name":"url","return_type":"String","visibility":"Public","body":"@url"}},{"html_id":"version:Int32-instance-method","name":"version","abstract":false,"def":{"name":"version","return_type":"Int32","visibility":"Public","body":"@version"}}]}]},{"html_id":"mailjet/Mailjet/Exception","path":"Mailjet/Exception.html","kind":"class","full_name":"Mailjet::Exception","name":"Exception","abstract":false,"superclass":{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/InvalidEmailAddressException","kind":"class","full_name":"Mailjet::InvalidEmailAddressException","name":"InvalidEmailAddressException"},{"html_id":"mailjet/Mailjet/MethodNotAllowedException","kind":"class","full_name":"Mailjet::MethodNotAllowedException","name":"MethodNotAllowedException"},{"html_id":"mailjet/Mailjet/MissingApiCredentialsException","kind":"class","full_name":"Mailjet::MissingApiCredentialsException","name":"MissingApiCredentialsException"},{"html_id":"mailjet/Mailjet/ParamsMissingException","kind":"class","full_name":"Mailjet::ParamsMissingException","name":"ParamsMissingException"},{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},{"html_id":"mailjet/Mailjet/RequestTimeoutException","kind":"class","full_name":"Mailjet::RequestTimeoutException","name":"RequestTimeoutException"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"types":[{"html_id":"mailjet/Mailjet/Exception/ErrorInfo","path":"Mailjet/Exception/ErrorInfo.html","kind":"alias","full_name":"Mailjet::Exception::ErrorInfo","name":"ErrorInfo","abstract":false,"locations":[{"filename":"src/mailjet/exception.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L4"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"(Hash(String, Array(Hash(String, Int32 | String))) | String | Nil)","aliased_html":"Hash(String, Array(Hash(String, Int32 | String))) | String | Nil","const":false,"namespace":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"}},{"html_id":"mailjet/Mailjet/Exception/ErrorInfoArray","path":"Mailjet/Exception/ErrorInfoArray.html","kind":"alias","full_name":"Mailjet::Exception::ErrorInfoArray","name":"ErrorInfoArray","abstract":false,"locations":[{"filename":"src/mailjet/exception.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Hash(String, Array(Hash(String, Int32 | String)))","aliased_html":"Hash(String, Array(Hash(String, Int32 | String)))","const":false,"namespace":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"}}]},{"html_id":"mailjet/Mailjet/InvalidEmailAddressException","path":"Mailjet/InvalidEmailAddressException.html","kind":"class","full_name":"Mailjet::InvalidEmailAddressException","name":"InvalidEmailAddressException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":44,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L44"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Json","path":"Mailjet/Json.html","kind":"struct","full_name":"Mailjet::Json","name":"Json","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L2"},{"filename":"src/mailjet/json/nilable_time.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"mailjet/Mailjet/Json/Fields","path":"Mailjet/Json/Fields.html","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields","abstract":false,"locations":[{"filename":"src/mailjet/json/fields.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"including_types":[{"html_id":"mailjet/Mailjet/Campaign/Details","kind":"struct","full_name":"Mailjet::Campaign::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Campaign/FindResponse","kind":"struct","full_name":"Mailjet::Campaign::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaign/ListResponse","kind":"struct","full_name":"Mailjet::Campaign::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Campaign/UpdateResponse","kind":"struct","full_name":"Mailjet::Campaign::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/CreateResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/Draft","kind":"struct","full_name":"Mailjet::Campaigndraft::Draft","name":"Draft"},{"html_id":"mailjet/Mailjet/Campaigndraft/FindResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/ListResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdateResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contact/CreateResponse","kind":"struct","full_name":"Mailjet::Contact::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contact/Details","kind":"struct","full_name":"Mailjet::Contact::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contact/FindResponse","kind":"struct","full_name":"Mailjet::Contact::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contact/List/Details","kind":"struct","full_name":"Mailjet::Contact::List::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contact/List/ListResponse","kind":"struct","full_name":"Mailjet::Contact::List::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contact/ListResponse","kind":"struct","full_name":"Mailjet::Contact::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactList","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists::ContactList","name":"ContactList"},{"html_id":"mailjet/Mailjet/Contact/UpdateResponse","kind":"struct","full_name":"Mailjet::Contact::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/CreateResponse","kind":"struct","full_name":"Mailjet::Contactfilter::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/Filter","kind":"struct","full_name":"Mailjet::Contactfilter::Filter","name":"Filter"},{"html_id":"mailjet/Mailjet/Contactfilter/FindResponse","kind":"struct","full_name":"Mailjet::Contactfilter::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/ListResponse","kind":"struct","full_name":"Mailjet::Contactfilter::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/UpdateResponse","kind":"struct","full_name":"Mailjet::Contactfilter::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contactlist/CreateResponse","kind":"struct","full_name":"Mailjet::Contactlist::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contactlist/Details","kind":"struct","full_name":"Mailjet::Contactlist::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contactlist/FindResponse","kind":"struct","full_name":"Mailjet::Contactlist::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contactlist/ListResponse","kind":"struct","full_name":"Mailjet::Contactlist::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contactlist/UpdateResponse","kind":"struct","full_name":"Mailjet::Contactlist::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/DNS/Check/Details","kind":"struct","full_name":"Mailjet::DNS::Check::Details","name":"Details"},{"html_id":"mailjet/Mailjet/DNS/FindResponse","kind":"struct","full_name":"Mailjet::DNS::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/DNS/ListResponse","kind":"struct","full_name":"Mailjet::DNS::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/DNS/Settings","kind":"struct","full_name":"Mailjet::DNS::Settings","name":"Settings"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreateResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdateResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/Webhook","kind":"struct","full_name":"Mailjet::Eventcallbackurl::Webhook","name":"Webhook"},{"html_id":"mailjet/Mailjet/Listrecipient/CreateResponse","kind":"struct","full_name":"Mailjet::Listrecipient::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/FindResponse","kind":"struct","full_name":"Mailjet::Listrecipient::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/Join","kind":"struct","full_name":"Mailjet::Listrecipient::Join","name":"Join"},{"html_id":"mailjet/Mailjet/Listrecipient/ListResponse","kind":"struct","full_name":"Mailjet::Listrecipient::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/UpdateResponse","kind":"struct","full_name":"Mailjet::Listrecipient::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Message/Details","kind":"struct","full_name":"Mailjet::Message::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Message/FindResponse","kind":"struct","full_name":"Mailjet::Message::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Message/ListResponse","kind":"struct","full_name":"Mailjet::Message::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Messagehistory/Event","kind":"struct","full_name":"Mailjet::Messagehistory::Event","name":"Event"},{"html_id":"mailjet/Mailjet/Messagehistory/ListResponse","kind":"struct","full_name":"Mailjet::Messagehistory::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Messageinformation/FindResponse","kind":"struct","full_name":"Mailjet::Messageinformation::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Messageinformation/Info","kind":"struct","full_name":"Mailjet::Messageinformation::Info","name":"Info"},{"html_id":"mailjet/Mailjet/Messageinformation/ListResponse","kind":"struct","full_name":"Mailjet::Messageinformation::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Metasender/CreateResponse","kind":"struct","full_name":"Mailjet::Metasender::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Metasender/Details","kind":"struct","full_name":"Mailjet::Metasender::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Metasender/FindResponse","kind":"struct","full_name":"Mailjet::Metasender::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Metasender/ListResponse","kind":"struct","full_name":"Mailjet::Metasender::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Metasender/UpdateResponse","kind":"struct","full_name":"Mailjet::Metasender::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Send/DeliveryError","kind":"struct","full_name":"Mailjet::Send::DeliveryError","name":"DeliveryError"},{"html_id":"mailjet/Mailjet/Send/DeliveryReceipt","kind":"struct","full_name":"Mailjet::Send::DeliveryReceipt","name":"DeliveryReceipt"},{"html_id":"mailjet/Mailjet/Send/ResponseMessage","kind":"struct","full_name":"Mailjet::Send::ResponseMessage","name":"ResponseMessage"},{"html_id":"mailjet/Mailjet/Send/SentMessage","kind":"struct","full_name":"Mailjet::Send::SentMessage","name":"SentMessage"},{"html_id":"mailjet/Mailjet/Sender/Address","kind":"struct","full_name":"Mailjet::Sender::Address","name":"Address"},{"html_id":"mailjet/Mailjet/Sender/CreateResponse","kind":"struct","full_name":"Mailjet::Sender::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Sender/FindResponse","kind":"struct","full_name":"Mailjet::Sender::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Sender/ListResponse","kind":"struct","full_name":"Mailjet::Sender::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Sender/UpdateResponse","kind":"struct","full_name":"Mailjet::Sender::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Statcounters/Counters","kind":"struct","full_name":"Mailjet::Statcounters::Counters","name":"Counters"},{"html_id":"mailjet/Mailjet/Statcounters/ListResponse","kind":"struct","full_name":"Mailjet::Statcounters::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Template/CreateResponse","kind":"struct","full_name":"Mailjet::Template::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindResponse","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdateResponse","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Template/Details","kind":"struct","full_name":"Mailjet::Template::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Template/FindResponse","kind":"struct","full_name":"Mailjet::Template::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Template/ListResponse","kind":"struct","full_name":"Mailjet::Template::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Template/UpdateResponse","kind":"struct","full_name":"Mailjet::Template::UpdateResponse","name":"UpdateResponse"}],"namespace":{"html_id":"mailjet/Mailjet/Json","kind":"struct","full_name":"Mailjet::Json","name":"Json"},"macros":[{"html_id":"json_fields(mapping)-macro","name":"json_fields","abstract":false,"args":[{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(mapping)","args_html":"(mapping)","location":{"filename":"src/mailjet/json/fields.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/fields.cr#L8"},"def":{"name":"json_fields","args":[{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% for name, type in mapping %}\n {% underscored = (name.gsub(/-/, \"_\")).underscore %}\n\n {% if type.id.starts_with?('{') %}\n @[JSON::Field(key: {{ name.id }},\n converter: {{ type[:converter].id }})]\n {% type = type[:type] %}\n {% else %}{% if [\"::Union(Time, ::Nil)\".id].includes?(type.id) %}\n @[JSON::Field(key: {{ name.id }},\n converter: Mailjet::Json::NilableTime)]\n {% else %}\n @[JSON::Field(key: {{ name.id }})]\n {% end %}{% end %}\n\n getter {{ underscored.id }} : {{ type }}\n {% end %}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Json/NilableTime","path":"Mailjet/Json/NilableTime.html","kind":"struct","full_name":"Mailjet::Json::NilableTime","name":"NilableTime","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Json","kind":"struct","full_name":"Mailjet::Json","name":"Json"},"class_methods":[{"html_id":"from_json(value:JSON::PullParser)-class-method","name":"from_json","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"JSON::PullParser"}],"args_string":"(value : JSON::PullParser)","args_html":"(value : JSON::PullParser)","location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L4"},"def":{"name":"from_json","args":[{"name":"value","external_name":"value","restriction":"JSON::PullParser"}],"visibility":"Public","body":"if value.kind.string? && (!(time_value = value.read_string).blank?)\n Time.parse_rfc3339(time_value.to_s)\nelse\n nil\nend"}},{"html_id":"to_json(value:self,json:JSON::Builder)-class-method","name":"to_json","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"self"},{"name":"json","external_name":"json","restriction":"JSON::Builder"}],"args_string":"(value : self, json : JSON::Builder)","args_html":"(value : self, json : JSON::Builder)","location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L12"},"def":{"name":"to_json","args":[{"name":"value","external_name":"value","restriction":"self"},{"name":"json","external_name":"json","restriction":"JSON::Builder"}],"visibility":"Public","body":"json.string(value.to_rfc3339)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L3"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/json/nilable_time.cr#L3"},"def":{"name":"initialize","visibility":"Public","body":""}}]}]},{"html_id":"mailjet/Mailjet/Listrecipient","path":"Mailjet/Listrecipient.html","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L13"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"A list recipient object manages the relationship between a contact and a\ncontactslist - every instance of a contact being added to a list creates a\nnew list recipient. Both the contact and the list need to be created\nbeforehand.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_listrecipient\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_listrecipient_listrecipient_ID\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions/#v3_post_listrecipient\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_put_listrecipient_listrecipient_ID\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_delete_listrecipient_listrecipient_ID\n","summary":"

A list recipient object manages the relationship between a contact and a contactslist - every instance of a contact being added to a list creates a new list recipient.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L27"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L47"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a listrecipient\n\n```\nMailjet::Listrecipient.delete(12345)\n```\n","summary":"

Delete a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L65"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L35"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L35"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L57"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L57"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Listrecipient/CreatePath","path":"Mailjet/Listrecipient/CreatePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/CreateResponse","path":"Mailjet/Listrecipient/CreateResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/DeletePath","path":"Mailjet/Listrecipient/DeletePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L65"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Delete a listrecipient\n\n```\nMailjet::Listrecipient.delete(12345)\n```\n","summary":"

Delete a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/FindPath","path":"Mailjet/Listrecipient/FindPath.html","kind":"struct","full_name":"Mailjet::Listrecipient::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L35"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/FindResponse","path":"Mailjet/Listrecipient/FindResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L35"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/Join","path":"Mailjet/Listrecipient/Join.html","kind":"struct","full_name":"Mailjet::Listrecipient::Join","name":"Join","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":67,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L67"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_active:Bool-instance-method","name":"is_active","abstract":false,"def":{"name":"is_active","return_type":"Bool","visibility":"Public","body":"@is_active"}},{"html_id":"is_unsubscribed:Bool-instance-method","name":"is_unsubscribed","abstract":false,"def":{"name":"is_unsubscribed","return_type":"Bool","visibility":"Public","body":"@is_unsubscribed"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"list_name:String-instance-method","name":"list_name","abstract":false,"def":{"name":"list_name","return_type":"String","visibility":"Public","body":"@list_name"}},{"html_id":"subscribed_at:Union(Time,Nil)-instance-method","name":"subscribed_at","abstract":false,"def":{"name":"subscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@subscribed_at"}},{"html_id":"unsubscribed_at:Union(Time,Nil)-instance-method","name":"unsubscribed_at","abstract":false,"def":{"name":"unsubscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_at"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ListPath","path":"Mailjet/Listrecipient/ListPath.html","kind":"struct","full_name":"Mailjet::Listrecipient::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ListResponse","path":"Mailjet/Listrecipient/ListResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ResponseData","path":"Mailjet/Listrecipient/ResponseData.html","kind":"alias","full_name":"Mailjet::Listrecipient::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":14,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L14"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Listrecipient::Join)","aliased_html":"Array(Mailjet::Listrecipient::Join)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"}},{"html_id":"mailjet/Mailjet/Listrecipient/UpdatePath","path":"Mailjet/Listrecipient/UpdatePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L57"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/UpdateResponse","path":"Mailjet/Listrecipient/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/listrecipient.cr#L57"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Message","path":"Mailjet/Message.html","kind":"struct","full_name":"Mailjet::Message","name":"Message","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Every time you send an email via Mailjet, a new message object is created.\nThe resources below help you retrieve details about these messages - sending\ntime, delivery and contact engagement info, recipients, message size, etc.\n\nhttps://dev.mailjet.com/email/reference/messages/\n","summary":"

Every time you send an email via Mailjet, a new message object is created.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L23"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L31"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L31"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Message/Details","path":"Mailjet/Message/Details.html","kind":"struct","full_name":"Mailjet::Message::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L33"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"arrived_at:Time-instance-method","name":"arrived_at","abstract":false,"def":{"name":"arrived_at","return_type":"Time","visibility":"Public","body":"@arrived_at"}},{"html_id":"attachment_count:Int32-instance-method","name":"attachment_count","abstract":false,"def":{"name":"attachment_count","return_type":"Int32","visibility":"Public","body":"@attachment_count"}},{"html_id":"attempt_count:Int32-instance-method","name":"attempt_count","abstract":false,"def":{"name":"attempt_count","return_type":"Int32","visibility":"Public","body":"@attempt_count"}},{"html_id":"contact_alt:String-instance-method","name":"contact_alt","abstract":false,"def":{"name":"contact_alt","return_type":"String","visibility":"Public","body":"@contact_alt"}},{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"delay:Int32-instance-method","name":"delay","abstract":false,"def":{"name":"delay","return_type":"Int32","visibility":"Public","body":"@delay"}},{"html_id":"destination_id:Int32-instance-method","name":"destination_id","abstract":false,"def":{"name":"destination_id","return_type":"Int32","visibility":"Public","body":"@destination_id"}},{"html_id":"filter_time:Int32-instance-method","name":"filter_time","abstract":false,"def":{"name":"filter_time","return_type":"Int32","visibility":"Public","body":"@filter_time"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_click_tracked:Bool-instance-method","name":"is_click_tracked","abstract":false,"def":{"name":"is_click_tracked","return_type":"Bool","visibility":"Public","body":"@is_click_tracked"}},{"html_id":"is_html_part_included:Bool-instance-method","name":"is_html_part_included","abstract":false,"def":{"name":"is_html_part_included","return_type":"Bool","visibility":"Public","body":"@is_html_part_included"}},{"html_id":"is_open_tracked:Bool-instance-method","name":"is_open_tracked","abstract":false,"def":{"name":"is_open_tracked","return_type":"Bool","visibility":"Public","body":"@is_open_tracked"}},{"html_id":"is_text_part_included:Bool-instance-method","name":"is_text_part_included","abstract":false,"def":{"name":"is_text_part_included","return_type":"Bool","visibility":"Public","body":"@is_text_part_included"}},{"html_id":"is_unsub_tracked:Bool-instance-method","name":"is_unsub_tracked","abstract":false,"def":{"name":"is_unsub_tracked","return_type":"Bool","visibility":"Public","body":"@is_unsub_tracked"}},{"html_id":"message_size:Int32-instance-method","name":"message_size","abstract":false,"def":{"name":"message_size","return_type":"Int32","visibility":"Public","body":"@message_size"}},{"html_id":"sender_id:Int32-instance-method","name":"sender_id","abstract":false,"def":{"name":"sender_id","return_type":"Int32","visibility":"Public","body":"@sender_id"}},{"html_id":"spamass_rules:String-instance-method","name":"spamass_rules","abstract":false,"def":{"name":"spamass_rules","return_type":"String","visibility":"Public","body":"@spamass_rules"}},{"html_id":"spamassassin_score:Int32-instance-method","name":"spamassassin_score","abstract":false,"def":{"name":"spamassassin_score","return_type":"Int32","visibility":"Public","body":"@spamassassin_score"}},{"html_id":"state_permanent:Bool-instance-method","name":"state_permanent","abstract":false,"def":{"name":"state_permanent","return_type":"Bool","visibility":"Public","body":"@state_permanent"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"uuid:String-instance-method","name":"uuid","abstract":false,"def":{"name":"uuid","return_type":"String","visibility":"Public","body":"@uuid"}}]},{"html_id":"mailjet/Mailjet/Message/FindPath","path":"Mailjet/Message/FindPath.html","kind":"struct","full_name":"Mailjet::Message::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Message/FindResponse","path":"Mailjet/Message/FindResponse.html","kind":"struct","full_name":"Mailjet::Message::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Message/ListPath","path":"Mailjet/Message/ListPath.html","kind":"struct","full_name":"Mailjet::Message::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L23"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Message/ListResponse","path":"Mailjet/Message/ListResponse.html","kind":"struct","full_name":"Mailjet::Message::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L23"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Message/ResponseData","path":"Mailjet/Message/ResponseData.html","kind":"alias","full_name":"Mailjet::Message::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/message.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Message::Details)","aliased_html":"Array(Mailjet::Message::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"}}]},{"html_id":"mailjet/Mailjet/Messagehistory","path":"Mailjet/Messagehistory.html","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the event history (sending, open, click etc.) for a specific\nmessage.\n\nhttps://dev.mailjet.com/email/reference/messages/#v3_get_messagehistory_message_ID\n","summary":"

Retrieve the event history (sending, open, click etc.) for a specific message.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"all(id:Int64|String,client:Client=Client.new)-class-method","name":"all","doc":"Convenience method allowing to pass the message id and returning the array\nof events directly\n\n```\nevents = Mailjet::Messagehistory.all(576460754655154659)\nevents.first.event_type\n# => \"opened\"\n```\n","summary":"

Convenience method allowing to pass the message id and returning the array of events directly

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"Int64 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : Int64 | String, client : Client = Client.new)","args_html":"(id : Int64 | String, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messagehistory.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L29"},"def":{"name":"all","args":[{"name":"id","external_name":"id","restriction":"Int64 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(params: {id: id}, client: client).data"}}],"types":[{"html_id":"mailjet/Mailjet/Messagehistory/Event","path":"Mailjet/Messagehistory/Event.html","kind":"struct","full_name":"Mailjet::Messagehistory::Event","name":"Event","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"comment:String-instance-method","name":"comment","abstract":false,"def":{"name":"comment","return_type":"String","visibility":"Public","body":"@comment"}},{"html_id":"event_at:Time-instance-method","name":"event_at","abstract":false,"def":{"name":"event_at","return_type":"Time","visibility":"Public","body":"@event_at"}},{"html_id":"event_type:String-instance-method","name":"event_type","abstract":false,"def":{"name":"event_type","return_type":"String","visibility":"Public","body":"@event_type"}},{"html_id":"state:String-instance-method","name":"state","abstract":false,"def":{"name":"state","return_type":"String","visibility":"Public","body":"@state"}},{"html_id":"useragent:String-instance-method","name":"useragent","abstract":false,"def":{"name":"useragent","return_type":"String","visibility":"Public","body":"@useragent"}},{"html_id":"useragent_id:Int32-instance-method","name":"useragent_id","abstract":false,"def":{"name":"useragent_id","return_type":"Int32","visibility":"Public","body":"@useragent_id"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ListPath","path":"Mailjet/Messagehistory/ListPath.html","kind":"struct","full_name":"Mailjet::Messagehistory::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ListResponse","path":"Mailjet/Messagehistory/ListResponse.html","kind":"struct","full_name":"Mailjet::Messagehistory::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ResponseData","path":"Mailjet/Messagehistory/ResponseData.html","kind":"alias","full_name":"Mailjet::Messagehistory::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messagehistory.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Messagehistory::Event)","aliased_html":"Array(Mailjet::Messagehistory::Event)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"}}]},{"html_id":"mailjet/Mailjet/Messageinformation","path":"Mailjet/Messageinformation.html","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve sending / size / spam information about all messages.\n\nhttps://dev.mailjet.com/email/reference/messages#v3_get_messageinformation\nhttps://dev.mailjet.com/email/reference/messages/#v3_get_messageinformation_message_ID\n","summary":"

Retrieve sending / size / spam information about all messages.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L21"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L31"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L31"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Messageinformation/FindPath","path":"Mailjet/Messageinformation/FindPath.html","kind":"struct","full_name":"Mailjet::Messageinformation::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/FindResponse","path":"Mailjet/Messageinformation/FindResponse.html","kind":"struct","full_name":"Mailjet::Messageinformation::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/Info","path":"Mailjet/Messageinformation/Info.html","kind":"struct","full_name":"Mailjet::Messageinformation::Info","name":"Info","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L33"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"campaign_id:Int32-instance-method","name":"campaign_id","abstract":false,"def":{"name":"campaign_id","return_type":"Int32","visibility":"Public","body":"@campaign_id"}},{"html_id":"click_tracked_count:Int32-instance-method","name":"click_tracked_count","abstract":false,"def":{"name":"click_tracked_count","return_type":"Int32","visibility":"Public","body":"@click_tracked_count"}},{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"message_size:Int32-instance-method","name":"message_size","abstract":false,"def":{"name":"message_size","return_type":"Int32","visibility":"Public","body":"@message_size"}},{"html_id":"open_tracked_count:Int32-instance-method","name":"open_tracked_count","abstract":false,"def":{"name":"open_tracked_count","return_type":"Int32","visibility":"Public","body":"@open_tracked_count"}},{"html_id":"queued_count:Int32-instance-method","name":"queued_count","abstract":false,"def":{"name":"queued_count","return_type":"Int32","visibility":"Public","body":"@queued_count"}},{"html_id":"send_end_at:Time-instance-method","name":"send_end_at","abstract":false,"def":{"name":"send_end_at","return_type":"Time","visibility":"Public","body":"@send_end_at"}},{"html_id":"sent_count:Int32-instance-method","name":"sent_count","abstract":false,"def":{"name":"sent_count","return_type":"Int32","visibility":"Public","body":"@sent_count"}},{"html_id":"spam_assassin_rules:Hash(String,String|Int32)-instance-method","name":"spam_assassin_rules","abstract":false,"def":{"name":"spam_assassin_rules","return_type":"Hash(String, String | Int32)","visibility":"Public","body":"@spam_assassin_rules"}},{"html_id":"spam_assassin_score:Int32-instance-method","name":"spam_assassin_score","abstract":false,"def":{"name":"spam_assassin_score","return_type":"Int32","visibility":"Public","body":"@spam_assassin_score"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ListPath","path":"Mailjet/Messageinformation/ListPath.html","kind":"struct","full_name":"Mailjet::Messageinformation::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ListResponse","path":"Mailjet/Messageinformation/ListResponse.html","kind":"struct","full_name":"Mailjet::Messageinformation::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ResponseData","path":"Mailjet/Messageinformation/ResponseData.html","kind":"alias","full_name":"Mailjet::Messageinformation::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/messageinformation.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Messageinformation::Info)","aliased_html":"Array(Mailjet::Messageinformation::Info)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"}}]},{"html_id":"mailjet/Mailjet/Metasender","path":"Mailjet/Metasender.html","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Metasender objects are senders, which can be used on the master account as\nwell as all sub-account API Keys. Use the resources below to manage your\nmetasenders.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/metasender/\n","summary":"

Metasender objects are senders, which can be used on the master account as well as all sub-account API Keys.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L37"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L47"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L47"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Metasender/CreatePath","path":"Mailjet/Metasender/CreatePath.html","kind":"struct","full_name":"Mailjet::Metasender::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/CreateResponse","path":"Mailjet/Metasender/CreateResponse.html","kind":"struct","full_name":"Mailjet::Metasender::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Metasender/Details","path":"Mailjet/Metasender/Details.html","kind":"struct","full_name":"Mailjet::Metasender::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"filename:String-instance-method","name":"filename","abstract":false,"def":{"name":"filename","return_type":"String","visibility":"Public","body":"@filename"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_enabled:Bool-instance-method","name":"is_enabled","abstract":false,"def":{"name":"is_enabled","return_type":"Bool","visibility":"Public","body":"@is_enabled"}}]},{"html_id":"mailjet/Mailjet/Metasender/FindPath","path":"Mailjet/Metasender/FindPath.html","kind":"struct","full_name":"Mailjet::Metasender::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/FindResponse","path":"Mailjet/Metasender/FindResponse.html","kind":"struct","full_name":"Mailjet::Metasender::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Metasender/ListPath","path":"Mailjet/Metasender/ListPath.html","kind":"struct","full_name":"Mailjet::Metasender::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/ListResponse","path":"Mailjet/Metasender/ListResponse.html","kind":"struct","full_name":"Mailjet::Metasender::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Metasender/ResponseData","path":"Mailjet/Metasender/ResponseData.html","kind":"alias","full_name":"Mailjet::Metasender::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Metasender::Details)","aliased_html":"Array(Mailjet::Metasender::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"}},{"html_id":"mailjet/Mailjet/Metasender/UpdatePath","path":"Mailjet/Metasender/UpdatePath.html","kind":"struct","full_name":"Mailjet::Metasender::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/UpdateResponse","path":"Mailjet/Metasender/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Metasender::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/metasender.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/MethodNotAllowedException","path":"Mailjet/MethodNotAllowedException.html","kind":"class","full_name":"Mailjet::MethodNotAllowedException","name":"MethodNotAllowedException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/MissingApiCredentialsException","path":"Mailjet/MissingApiCredentialsException.html","kind":"class","full_name":"Mailjet::MissingApiCredentialsException","name":"MissingApiCredentialsException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/ParamsMissingException","path":"Mailjet/ParamsMissingException.html","kind":"class","full_name":"Mailjet::ParamsMissingException","name":"ParamsMissingException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Path","path":"Mailjet/Path.html","kind":"struct","full_name":"Mailjet::Path","name":"Path","abstract":true,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/path.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/Campaign/FindPath","kind":"struct","full_name":"Mailjet::Campaign::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaign/ListPath","kind":"struct","full_name":"Mailjet::Campaign::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Campaign/UpdatePath","kind":"struct","full_name":"Mailjet::Campaign::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Campaigndraft/CreatePath","kind":"struct","full_name":"Mailjet::Campaigndraft::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindPath","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/FindPath","kind":"struct","full_name":"Mailjet::Campaigndraft::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/ListPath","kind":"struct","full_name":"Mailjet::Campaigndraft::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdatePath","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contact/CreatePath","kind":"struct","full_name":"Mailjet::Contact::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contact/FindPath","kind":"struct","full_name":"Mailjet::Contact::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contact/List/ListPath","kind":"struct","full_name":"Mailjet::Contact::List::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contact/ListPath","kind":"struct","full_name":"Mailjet::Contact::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contact/UpdatePath","kind":"struct","full_name":"Mailjet::Contact::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contactfilter/CreatePath","kind":"struct","full_name":"Mailjet::Contactfilter::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contactfilter/DeletePath","kind":"struct","full_name":"Mailjet::Contactfilter::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Contactfilter/FindPath","kind":"struct","full_name":"Mailjet::Contactfilter::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contactfilter/ListPath","kind":"struct","full_name":"Mailjet::Contactfilter::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contactfilter/UpdatePath","kind":"struct","full_name":"Mailjet::Contactfilter::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contactlist/CreatePath","kind":"struct","full_name":"Mailjet::Contactlist::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contactlist/DeletePath","kind":"struct","full_name":"Mailjet::Contactlist::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Contactlist/FindPath","kind":"struct","full_name":"Mailjet::Contactlist::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contactlist/ListPath","kind":"struct","full_name":"Mailjet::Contactlist::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contactlist/UpdatePath","kind":"struct","full_name":"Mailjet::Contactlist::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/DNS/FindPath","kind":"struct","full_name":"Mailjet::DNS::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/DNS/ListPath","kind":"struct","full_name":"Mailjet::DNS::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreatePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/DeletePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindPath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListPath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdatePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Listrecipient/CreatePath","kind":"struct","full_name":"Mailjet::Listrecipient::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Listrecipient/DeletePath","kind":"struct","full_name":"Mailjet::Listrecipient::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Listrecipient/FindPath","kind":"struct","full_name":"Mailjet::Listrecipient::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Listrecipient/ListPath","kind":"struct","full_name":"Mailjet::Listrecipient::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Listrecipient/UpdatePath","kind":"struct","full_name":"Mailjet::Listrecipient::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Message/FindPath","kind":"struct","full_name":"Mailjet::Message::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Message/ListPath","kind":"struct","full_name":"Mailjet::Message::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Messagehistory/ListPath","kind":"struct","full_name":"Mailjet::Messagehistory::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Messageinformation/FindPath","kind":"struct","full_name":"Mailjet::Messageinformation::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Messageinformation/ListPath","kind":"struct","full_name":"Mailjet::Messageinformation::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Metasender/CreatePath","kind":"struct","full_name":"Mailjet::Metasender::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Metasender/FindPath","kind":"struct","full_name":"Mailjet::Metasender::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Metasender/ListPath","kind":"struct","full_name":"Mailjet::Metasender::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Metasender/UpdatePath","kind":"struct","full_name":"Mailjet::Metasender::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Sender/CreatePath","kind":"struct","full_name":"Mailjet::Sender::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Sender/DeletePath","kind":"struct","full_name":"Mailjet::Sender::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Sender/FindPath","kind":"struct","full_name":"Mailjet::Sender::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Sender/ListPath","kind":"struct","full_name":"Mailjet::Sender::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Sender/UpdatePath","kind":"struct","full_name":"Mailjet::Sender::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Statcounters/ListPath","kind":"struct","full_name":"Mailjet::Statcounters::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Template/CreatePath","kind":"struct","full_name":"Mailjet::Template::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Template/DeletePath","kind":"struct","full_name":"Mailjet::Template::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindPath","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdatePath","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Template/FindPath","kind":"struct","full_name":"Mailjet::Template::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Template/ListPath","kind":"struct","full_name":"Mailjet::Template::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Template/UpdatePath","kind":"struct","full_name":"Mailjet::Template::UpdatePath","name":"UpdatePath"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(params:Hash|NamedTuple=Hash(String,String).new)-class-method","name":"new","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new)","location":{"filename":"src/mailjet/path.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L7"},"def":{"name":"new","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"_ = allocate\n_.initialize(params)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"params:Hash(String,String)-instance-method","name":"params","abstract":false,"location":{"filename":"src/mailjet/path.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L3"},"def":{"name":"params","return_type":"Hash(String, String)","visibility":"Public","body":"@params"}},{"html_id":"pattern-instance-method","name":"pattern","abstract":true,"location":{"filename":"src/mailjet/path.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L5"},"def":{"name":"pattern","visibility":"Public","body":""}},{"html_id":"to_s:String-instance-method","name":"to_s","doc":"Returns a nicely readable and concise string representation of this object,\ntypically intended for users.\n\nThis method should usually **not** be overridden. It delegates to\n`#to_s(IO)` which can be overridden for custom implementations.\n\nAlso see `#inspect`.","summary":"

Returns a nicely readable and concise string representation of this object, typically intended for users.

","abstract":false,"location":{"filename":"src/mailjet/path.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/path.cr#L11"},"def":{"name":"to_s","return_type":"String","visibility":"Public","body":"path = \"/:version/#{pattern.lchop(\"/\")}\"\n(path.scan(/:([a-z_]+)/)).each do |match|\n if value = @params[match[1]]?\n path = path.gsub(match[0], value)\n else\n raise(ParamsMissingException.new(\"Missing param \\\"#{match[1]}\\\"\"))\n end\nend\npath\n"}}]},{"html_id":"mailjet/Mailjet/RequestException","path":"Mailjet/RequestException.html","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":22,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L22"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/ResourceNotFoundException","kind":"class","full_name":"Mailjet::ResourceNotFoundException","name":"ResourceNotFoundException"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"The error info value may return anything from a string to an array of\nhashes, so some juggling is needed to drill down to the actual errors. Here\nis an example:\n\n```\ncase exception.error_info\nwhen String\n puts exception.error_info\nwhen Mailjet::Exception::ErrorInfoArray\n if contactslists = exception.error_info[\"ContactsLists\"]?\n puts contactslists.map(&.[\"Error\"]).join(\", \")\n end\nend\n```\n","summary":"

The error info value may return anything from a string to an array of hashes, so some juggling is needed to drill down to the actual errors.

","constructors":[{"html_id":"new(__temp_78:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"__temp_78","external_name":"__temp_78","restriction":"::JSON::PullParser"}],"args_string":"(__temp_78 : JSON::PullParser)","args_html":"(__temp_78 : JSON::PullParser)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"new","args":[{"name":"__temp_78","external_name":"__temp_78","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"_ = allocate\n_.initialize(__temp_78)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"error_info:Exception::ErrorInfo-instance-method","name":"error_info","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"error_info","return_type":"Exception::ErrorInfo","visibility":"Public","body":"@error_info"}},{"html_id":"error_info=(_error_info:Exception::ErrorInfo)-instance-method","name":"error_info=","abstract":false,"args":[{"name":"_error_info","external_name":"_error_info","restriction":"Exception::ErrorInfo"}],"args_string":"(_error_info : Exception::ErrorInfo)","args_html":"(_error_info : Exception::ErrorInfo)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"error_info=","args":[{"name":"_error_info","external_name":"_error_info","restriction":"Exception::ErrorInfo"}],"visibility":"Public","body":"@error_info = _error_info"}},{"html_id":"error_message:Union(String,Nil)-instance-method","name":"error_message","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"error_message","return_type":"::Union(String, ::Nil)","visibility":"Public","body":"@error_message"}},{"html_id":"error_message=(_error_message:Union(String,Nil))-instance-method","name":"error_message=","abstract":false,"args":[{"name":"_error_message","external_name":"_error_message","restriction":"::Union(String, ::Nil)"}],"args_string":"(_error_message : Union(String, Nil))","args_html":"(_error_message : Union(String, Nil))","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"error_message=","args":[{"name":"_error_message","external_name":"_error_message","restriction":"::Union(String, ::Nil)"}],"visibility":"Public","body":"@error_message = _error_message"}},{"html_id":"message-instance-method","name":"message","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L29"},"def":{"name":"message","visibility":"Public","body":"\"#{error_message} (#{status_code})\""}},{"html_id":"status_code:Union(Int32,Nil)-instance-method","name":"status_code","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"status_code","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@status_code"}},{"html_id":"status_code=(_status_code:Union(Int32,Nil))-instance-method","name":"status_code=","abstract":false,"args":[{"name":"_status_code","external_name":"_status_code","restriction":"::Union(Int32, ::Nil)"}],"args_string":"(_status_code : Union(Int32, Nil))","args_html":"(_status_code : Union(Int32, Nil))","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"status_code=","args":[{"name":"_status_code","external_name":"_status_code","restriction":"::Union(Int32, ::Nil)"}],"visibility":"Public","body":"@status_code = _status_code"}},{"html_id":"to_json(json:JSON::Builder)-instance-method","name":"to_json","abstract":false,"args":[{"name":"json","external_name":"json","restriction":"::JSON::Builder"}],"args_string":"(json : JSON::Builder)","args_html":"(json : JSON::Builder)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L23"},"def":{"name":"to_json","args":[{"name":"json","external_name":"json","restriction":"::JSON::Builder"}],"visibility":"Public","body":"json.object do\n _error_message = @error_message\n if _error_message.nil?\n else\n json.field(\"ErrorMessage\") do\n _error_message.to_json(json)\n end\n end\n _error_info = @error_info\n if _error_info.nil?\n else\n json.field(\"ErrorInfo\") do\n _error_info.to_json(json)\n end\n end\n _status_code = @status_code\n if _status_code.nil?\n else\n json.field(\"StatusCode\") do\n _status_code.to_json(json)\n end\n end\nend"}},{"html_id":"to_s-instance-method","name":"to_s","doc":"Returns a nicely readable and concise string representation of this object,\ntypically intended for users.\n\nThis method should usually **not** be overridden. It delegates to\n`#to_s(IO)` which can be overridden for custom implementations.\n\nAlso see `#inspect`.","summary":"

Returns a nicely readable and concise string representation of this object, typically intended for users.

","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L33"},"def":{"name":"to_s","visibility":"Public","body":"message"}}]},{"html_id":"mailjet/Mailjet/RequestTimeoutException","path":"Mailjet/RequestTimeoutException.html","kind":"class","full_name":"Mailjet::RequestTimeoutException","name":"RequestTimeoutException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Resource","path":"Mailjet/Resource.html","kind":"struct","full_name":"Mailjet::Resource","name":"Resource","abstract":true,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"},{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"},{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},{"html_id":"mailjet/Mailjet/Sender/Validate","kind":"struct","full_name":"Mailjet::Sender::Validate","name":"Validate"},{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}],"macros":[{"html_id":"can_create(pattern,mapping)-macro","name":"can_create","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":70,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L70"},"def":{"name":"can_create","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.create(\n payload : Hash | NamedTuple,\n params : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = CreatePath.new(params).to_s\n response = client.handle_api_call(\"POST\", path,\n payload: Utilities.to_camelcased_hash(payload))\n\n CreateResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n\n struct CreateResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct CreatePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_delete(pattern)-macro","name":"can_delete","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""}],"args_string":"(pattern)","args_html":"(pattern)","location":{"filename":"src/mailjet/resource.cr","line_number":138,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L138"},"def":{"name":"can_delete","args":[{"name":"pattern","external_name":"pattern","restriction":""}],"visibility":"Public","body":" def self.delete(\n id : ResourceId,\n client : Client = Client.new\n )\n path = DeletePath.new(\n{id: id}).to_s\n client.handle_api_call(\"DELETE\", path)\n nil\n \nend\n\n struct DeletePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_find(pattern,mapping)-macro","name":"can_find","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":34,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L34"},"def":{"name":"can_find","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.find(\n params : Hash | NamedTuple = Hash(String, String).new,\n query : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = FindPath.new(params).to_s\n response = client.handle_api_call(\"GET\", path, query: query)\n\n FindResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n\n def self.find(\n id : ResourceId,\n query : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n find(\n{id: id}, query: query, client: client)\n \nend\n\n struct FindResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct FindPath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_list(pattern,mapping)-macro","name":"can_list","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L3"},"def":{"name":"can_list","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Count: Int32, Data: mapping, Total: Int32} %}\n {% end %}\n\n\n def self.all(\n query : Hash | NamedTuple = Hash(String, String).new,\n params : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = ListPath.new(params).to_s\n response = client.handle_api_call(\"GET\", path, query: query)\n\n ListResponse.from_json(response)\n \nend\n\n struct ListResponse\n include Mailjet::Json::Fields\n\n \n{% if mapping.keys.includes?(\"Data\".id) %}\n forward_missing_to data\n {% end %}\n\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct ListPath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_update(pattern,mapping)-macro","name":"can_update","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":99,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resource.cr#L99"},"def":{"name":"can_update","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.update(\n params : Hash | NamedTuple = Hash(String, String).new,\n payload : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = UpdatePath.new(params).to_s\n response = client.handle_api_call(\"PUT\", path,\n payload: Utilities.to_camelcased_hash(payload))\n\n unless response.empty?\n UpdateResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n \nend\n\n def self.update(\n id : ResourceId,\n payload : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n update(\n{id: id}, payload: payload, client: client)\n \nend\n\n struct UpdateResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct UpdatePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}}]},{"html_id":"mailjet/Mailjet/ResourceId","path":"Mailjet/ResourceId.html","kind":"alias","full_name":"Mailjet::ResourceId","name":"ResourceId","abstract":false,"locations":[{"filename":"src/mailjet/alias.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/alias.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"(Int32 | Int64 | String)","aliased_html":"Int32 | Int64 | String","const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/ResourceNotFoundException","path":"Mailjet/ResourceNotFoundException.html","kind":"class","full_name":"Mailjet::ResourceNotFoundException","name":"ResourceNotFoundException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},"ancestors":[{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/exception.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Send","path":"Mailjet/Send.html","kind":"struct","full_name":"Mailjet::Send","name":"Send","abstract":true,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/SendV3","kind":"struct","full_name":"Mailjet::SendV3","name":"SendV3"},{"html_id":"mailjet/Mailjet/SendV3_1","kind":"struct","full_name":"Mailjet::SendV3_1","name":"SendV3_1"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Send API v3 and v3.1 are part of Mailjet's transactional messaging suite.\nSend API v3.1 (`Mailjet::SendV3_1`) gives more detailed feedback information\non your sendings, while Send API v3 (`Mailjet::SendV3`) gives you a higher\nsending limit per single API call.\n\nhttps://dev.mailjet.com/email/reference/send-emails/\n","summary":"

Send API v3 and v3.1 are part of Mailjet's transactional messaging suite.

","class_methods":[{"html_id":"message(message:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"message","doc":"Deliver a single message\n\n```\nMailjet::SendV3.message({...})\n# or\nMailjet::SendV3_1.message({...})\n```\n","summary":"

Deliver a single message

","abstract":false,"args":[{"name":"message","external_name":"message","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(message : Hash | NamedTuple, client : Client = Client.new)","args_html":"(message : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L18"},"def":{"name":"message","args":[{"name":"message","external_name":"message","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(self.messages([message], client)).first"}}],"types":[{"html_id":"mailjet/Mailjet/Send/DeliveryError","path":"Mailjet/Send/DeliveryError.html","kind":"struct","full_name":"Mailjet::Send::DeliveryError","name":"DeliveryError","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":59,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L59"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"error_code:String-instance-method","name":"error_code","abstract":false,"def":{"name":"error_code","return_type":"String","visibility":"Public","body":"@error_code"}},{"html_id":"error_identifier:String-instance-method","name":"error_identifier","abstract":false,"def":{"name":"error_identifier","return_type":"String","visibility":"Public","body":"@error_identifier"}},{"html_id":"error_message:String-instance-method","name":"error_message","abstract":false,"def":{"name":"error_message","return_type":"String","visibility":"Public","body":"@error_message"}},{"html_id":"error_related_to:Array(String)-instance-method","name":"error_related_to","abstract":false,"def":{"name":"error_related_to","return_type":"Array(String)","visibility":"Public","body":"@error_related_to"}},{"html_id":"status_code:Int32-instance-method","name":"status_code","abstract":false,"def":{"name":"status_code","return_type":"Int32","visibility":"Public","body":"@status_code"}}]},{"html_id":"mailjet/Mailjet/Send/DeliveryReceipt","path":"Mailjet/Send/DeliveryReceipt.html","kind":"struct","full_name":"Mailjet::Send::DeliveryReceipt","name":"DeliveryReceipt","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"message_href:String-instance-method","name":"message_href","abstract":false,"def":{"name":"message_href","return_type":"String","visibility":"Public","body":"@message_href"}},{"html_id":"message_id:Int64-instance-method","name":"message_id","abstract":false,"def":{"name":"message_id","return_type":"Int64","visibility":"Public","body":"@message_id"}},{"html_id":"message_uuid:String-instance-method","name":"message_uuid","abstract":false,"def":{"name":"message_uuid","return_type":"String","visibility":"Public","body":"@message_uuid"}}]},{"html_id":"mailjet/Mailjet/Send/ResponseMessage","path":"Mailjet/Send/ResponseMessage.html","kind":"struct","full_name":"Mailjet::Send::ResponseMessage","name":"ResponseMessage","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":25,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L25"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"bcc:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"bcc","abstract":false,"def":{"name":"bcc","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@bcc"}},{"html_id":"cc:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"cc","abstract":false,"def":{"name":"cc","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@cc"}},{"html_id":"custom_id:Union(String,Nil)-instance-method","name":"custom_id","abstract":false,"def":{"name":"custom_id","return_type":"::Union(String, ::Nil)","visibility":"Public","body":"@custom_id"}},{"html_id":"errors:Union(Array(DeliveryError),Nil)-instance-method","name":"errors","abstract":false,"def":{"name":"errors","return_type":"::Union(Array(DeliveryError), ::Nil)","visibility":"Public","body":"@errors"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"to:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"to","abstract":false,"def":{"name":"to","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@to"}}]},{"html_id":"mailjet/Mailjet/Send/SentMessage","path":"Mailjet/Send/SentMessage.html","kind":"struct","full_name":"Mailjet::Send::SentMessage","name":"SentMessage","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"message_id:Int64-instance-method","name":"message_id","abstract":false,"def":{"name":"message_id","return_type":"Int64","visibility":"Public","body":"@message_id"}},{"html_id":"message_uuid:String-instance-method","name":"message_uuid","abstract":false,"def":{"name":"message_uuid","return_type":"String","visibility":"Public","body":"@message_uuid"}}]}]},{"html_id":"mailjet/Mailjet/Sender","path":"Mailjet/Sender.html","kind":"struct","full_name":"Mailjet::Sender","name":"Sender","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L7"},{"filename":"src/mailjet/resources/sender/validate.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender/validate.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Senders objects are used to select the From email address for the emails\nyou are sending. Use the resources below to manage and validate your senders.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/sender/\n","summary":"

Senders objects are used to select the From email address for the emails you are sending.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L39"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a sender\n\n```\nMailjet::Sender.delete(1324)\n```\n","summary":"

Delete a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L60"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L52"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L52"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Sender/Address","path":"Mailjet/Sender/Address.html","kind":"struct","full_name":"Mailjet::Sender::Address","name":"Address","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":62,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L62"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"dnsid:Int64-instance-method","name":"dnsid","abstract":false,"def":{"name":"dnsid","return_type":"Int64","visibility":"Public","body":"@dnsid"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"email_type:String-instance-method","name":"email_type","abstract":false,"def":{"name":"email_type","return_type":"String","visibility":"Public","body":"@email_type"}},{"html_id":"filename:String-instance-method","name":"filename","abstract":false,"def":{"name":"filename","return_type":"String","visibility":"Public","body":"@filename"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_default_sender:Bool-instance-method","name":"is_default_sender","abstract":false,"def":{"name":"is_default_sender","return_type":"Bool","visibility":"Public","body":"@is_default_sender"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}}]},{"html_id":"mailjet/Mailjet/Sender/CreatePath","path":"Mailjet/Sender/CreatePath.html","kind":"struct","full_name":"Mailjet::Sender::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/CreateResponse","path":"Mailjet/Sender/CreateResponse.html","kind":"struct","full_name":"Mailjet::Sender::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/DeletePath","path":"Mailjet/Sender/DeletePath.html","kind":"struct","full_name":"Mailjet::Sender::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Delete a sender\n\n```\nMailjet::Sender.delete(1324)\n```\n","summary":"

Delete a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/FindPath","path":"Mailjet/Sender/FindPath.html","kind":"struct","full_name":"Mailjet::Sender::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/FindResponse","path":"Mailjet/Sender/FindResponse.html","kind":"struct","full_name":"Mailjet::Sender::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/ListPath","path":"Mailjet/Sender/ListPath.html","kind":"struct","full_name":"Mailjet::Sender::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/ListResponse","path":"Mailjet/Sender/ListResponse.html","kind":"struct","full_name":"Mailjet::Sender::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Sender/ResponseData","path":"Mailjet/Sender/ResponseData.html","kind":"alias","full_name":"Mailjet::Sender::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Sender::Address)","aliased_html":"Array(Mailjet::Sender::Address)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"}},{"html_id":"mailjet/Mailjet/Sender/UpdatePath","path":"Mailjet/Sender/UpdatePath.html","kind":"struct","full_name":"Mailjet::Sender::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/UpdateResponse","path":"Mailjet/Sender/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Sender::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/Validate","path":"Mailjet/Sender/Validate.html","kind":"struct","full_name":"Mailjet::Sender::Validate","name":"Validate","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender/validate.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender/validate.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Validate a registered sender email address or domain. A sender domain\n(*@domain.com) is validated by checking the caller's rights, the existence\nof a metasender for that domain or by searching for the ownership token on\nthe domain root or in the DNS.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/sender#v3_post_sender_sender_ID_validate\n","summary":"

Validate a registered sender email address or domain.

","class_methods":[{"html_id":"create(sender_id:ResourceId,client:Client=Client.new)-class-method","name":"create","doc":"Check if sender is validated\n\n```\nvalidation = Mailjet::Sender::Validate.create(12345)\nputs validation.validation_method\n# => \"ActivationEmail\"\n```\n\nNote: If the user is already activated, a http status 400 will be\nreturned, which will result in a `Mailjet::RequestException` to be\nraised.\n","summary":"

Check if sender is validated

","abstract":false,"args":[{"name":"sender_id","external_name":"sender_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(sender_id : ResourceId, client : Client = Client.new)","args_html":"(sender_id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender/validate.cr","line_number":30,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/sender/validate.cr#L30"},"def":{"name":"create","args":[{"name":"sender_id","external_name":"sender_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create({} of String => String, {sender_id: sender_id}, client)"}}]}]},{"html_id":"mailjet/Mailjet/SendV3","path":"Mailjet/SendV3.html","kind":"struct","full_name":"Mailjet::SendV3","name":"SendV3","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"ancestors":[{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":72,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L72"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"messages(messages:Array(Hash)|Array(NamedTuple),client:Client=Client.new)-class-method","name":"messages","doc":"Deliver an array of messages\n\n```\nmessages = [\n {...},\n {...},\n]\nMailjet::SendV3.messages(messages)\n```\n","summary":"

Deliver an array of messages

","abstract":false,"args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","args_html":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":86,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L86"},"def":{"name":"messages","args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(create({Messages: messages}, params: {version: \"v3\"}, client: client)).sent"}}]},{"html_id":"mailjet/Mailjet/SendV3_1","path":"Mailjet/SendV3_1.html","kind":"struct","full_name":"Mailjet::SendV3_1","name":"SendV3_1","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"ancestors":[{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":98,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L98"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"messages(messages:Array(Hash)|Array(NamedTuple),client:Client=Client.new)-class-method","name":"messages","doc":"Deliver an array of messages\n\n```\nmessages = [\n {...},\n {...},\n]\nMailjet::SendV3_1.messages(messages)\n```\n","summary":"

Deliver an array of messages

","abstract":false,"args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","args_html":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":112,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/send.cr#L112"},"def":{"name":"messages","args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(create({Messages: messages}, params: {version: \"v3.1\"}, client: client)).messages"}}]},{"html_id":"mailjet/Mailjet/Statcounters","path":"Mailjet/Statcounters.html","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Get aggregated statistics for a specific campaign, list, API Key or sender\nemail address. Both message-based and event-based stats can be retrieved.\n\nhttps://dev.mailjet.com/email/reference/statistics#v3_get_statcounters\n","summary":"

Get aggregated statistics for a specific campaign, list, API Key or sender email address.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L21"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"by_api_key(query:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"by_api_key","doc":"Convenience method to retrieve statistics at current API key level\n\n```\nresponse = Mailjet::Statcounters.by_api_key({\n counter_timing: \"event\",\n counter_resolution: \"hour\",\n from_ts: Time.local.at_beginning_of_week.to_unix,\n to_ts: Time.local.to_unix,\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at current API key level

","abstract":false,"args":[{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L35"},"def":{"name":"by_api_key","args":[{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_source => \"api_key\"}), client: client)"}},{"html_id":"by_campaign(campaign_id:Int32|String,query:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"by_campaign","doc":"Convenience method to retrieve statistics at campaign level\n\n```\nresponse = Mailjet::Statcounters.by_campaign(123456, {\n counter_timing: \"event\",\n counter_resolution: \"day\",\n from_ts: Time.local.at_beginning_of_day.to_unix,\n to_ts: Time.local.to_unix,\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at campaign level

","abstract":false,"args":[{"name":"campaign_id","external_name":"campaign_id","restriction":"Int32 | String"},{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(campaign_id : Int32 | String, query : Hash | NamedTuple, client : Client = Client.new)","args_html":"(campaign_id : Int32 | String, query : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":56,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L56"},"def":{"name":"by_campaign","args":[{"name":"campaign_id","external_name":"campaign_id","restriction":"Int32 | String"},{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_source => \"campaign\", :source_id => campaign_id}), client: client)"}},{"html_id":"by_list(list_id:Int32|String,client:Client=Client.new)-class-method","name":"by_list","doc":"Convenience method to retrieve statistics at list level\n\n```\nresponse = Mailjet::Statcounters.by_list(123456)\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at list level

","abstract":false,"args":[{"name":"list_id","external_name":"list_id","restriction":"Int32 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(list_id : Int32 | String, client : Client = Client.new)","args_html":"(list_id : Int32 | String, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":74,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L74"},"def":{"name":"by_list","args":[{"name":"list_id","external_name":"list_id","restriction":"Int32 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: {:counter_timing => \"message\", :counter_resolution => \"lifetime\", :counter_source => \"list\", :source_id => list_id}, client: client)"}},{"html_id":"by_sender(sender_id:Int32|String,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"by_sender","doc":"Convenience method to retrieve statistics at sender level\n\n```\nresponse = Mailjet::Statcounters.by_sender(123456, {\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at sender level

","abstract":false,"args":[{"name":"sender_id","external_name":"sender_id","restriction":"Int32 | String"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(sender_id : Int32 | String, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(sender_id : Int32 | String, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":95,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L95"},"def":{"name":"by_sender","args":[{"name":"sender_id","external_name":"sender_id","restriction":"Int32 | String"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_timing => \"message\", :counter_source => \"sender\", :source_id => sender_id}), client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Statcounters/Counters","path":"Mailjet/Statcounters/Counters.html","kind":"struct","full_name":"Mailjet::Statcounters::Counters","name":"Counters","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":107,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L107"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"api_key_id:Int32-instance-method","name":"api_key_id","abstract":false,"def":{"name":"api_key_id","return_type":"Int32","visibility":"Public","body":"@api_key_id"}},{"html_id":"event_click_delay:Int32-instance-method","name":"event_click_delay","abstract":false,"def":{"name":"event_click_delay","return_type":"Int32","visibility":"Public","body":"@event_click_delay"}},{"html_id":"event_clicked_count:Int32-instance-method","name":"event_clicked_count","abstract":false,"def":{"name":"event_clicked_count","return_type":"Int32","visibility":"Public","body":"@event_clicked_count"}},{"html_id":"event_open_delay:Int32-instance-method","name":"event_open_delay","abstract":false,"def":{"name":"event_open_delay","return_type":"Int32","visibility":"Public","body":"@event_open_delay"}},{"html_id":"event_opened_count:Int32-instance-method","name":"event_opened_count","abstract":false,"def":{"name":"event_opened_count","return_type":"Int32","visibility":"Public","body":"@event_opened_count"}},{"html_id":"event_spam_count:Int32-instance-method","name":"event_spam_count","abstract":false,"def":{"name":"event_spam_count","return_type":"Int32","visibility":"Public","body":"@event_spam_count"}},{"html_id":"event_unsubscribed_count:Int32-instance-method","name":"event_unsubscribed_count","abstract":false,"def":{"name":"event_unsubscribed_count","return_type":"Int32","visibility":"Public","body":"@event_unsubscribed_count"}},{"html_id":"event_workflow_exited_count:Int32-instance-method","name":"event_workflow_exited_count","abstract":false,"def":{"name":"event_workflow_exited_count","return_type":"Int32","visibility":"Public","body":"@event_workflow_exited_count"}},{"html_id":"message_blocked_count:Int32-instance-method","name":"message_blocked_count","abstract":false,"def":{"name":"message_blocked_count","return_type":"Int32","visibility":"Public","body":"@message_blocked_count"}},{"html_id":"message_clicked_count:Int32-instance-method","name":"message_clicked_count","abstract":false,"def":{"name":"message_clicked_count","return_type":"Int32","visibility":"Public","body":"@message_clicked_count"}},{"html_id":"message_deferred_count:Int32-instance-method","name":"message_deferred_count","abstract":false,"def":{"name":"message_deferred_count","return_type":"Int32","visibility":"Public","body":"@message_deferred_count"}},{"html_id":"message_hard_bounced_count:Int32-instance-method","name":"message_hard_bounced_count","abstract":false,"def":{"name":"message_hard_bounced_count","return_type":"Int32","visibility":"Public","body":"@message_hard_bounced_count"}},{"html_id":"message_opened_count:Int32-instance-method","name":"message_opened_count","abstract":false,"def":{"name":"message_opened_count","return_type":"Int32","visibility":"Public","body":"@message_opened_count"}},{"html_id":"message_queued_count:Int32-instance-method","name":"message_queued_count","abstract":false,"def":{"name":"message_queued_count","return_type":"Int32","visibility":"Public","body":"@message_queued_count"}},{"html_id":"message_sent_count:Int32-instance-method","name":"message_sent_count","abstract":false,"def":{"name":"message_sent_count","return_type":"Int32","visibility":"Public","body":"@message_sent_count"}},{"html_id":"message_soft_bounced_count:Int32-instance-method","name":"message_soft_bounced_count","abstract":false,"def":{"name":"message_soft_bounced_count","return_type":"Int32","visibility":"Public","body":"@message_soft_bounced_count"}},{"html_id":"message_spam_count:Int32-instance-method","name":"message_spam_count","abstract":false,"def":{"name":"message_spam_count","return_type":"Int32","visibility":"Public","body":"@message_spam_count"}},{"html_id":"message_unsubscribed_count:Int32-instance-method","name":"message_unsubscribed_count","abstract":false,"def":{"name":"message_unsubscribed_count","return_type":"Int32","visibility":"Public","body":"@message_unsubscribed_count"}},{"html_id":"message_work_flow_exited_count:Int32-instance-method","name":"message_work_flow_exited_count","abstract":false,"def":{"name":"message_work_flow_exited_count","return_type":"Int32","visibility":"Public","body":"@message_work_flow_exited_count"}},{"html_id":"source_id:Int32-instance-method","name":"source_id","abstract":false,"def":{"name":"source_id","return_type":"Int32","visibility":"Public","body":"@source_id"}},{"html_id":"timeslice:String-instance-method","name":"timeslice","abstract":false,"def":{"name":"timeslice","return_type":"String","visibility":"Public","body":"@timeslice"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ListPath","path":"Mailjet/Statcounters/ListPath.html","kind":"struct","full_name":"Mailjet::Statcounters::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ListResponse","path":"Mailjet/Statcounters/ListResponse.html","kind":"struct","full_name":"Mailjet::Statcounters::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ResponseData","path":"Mailjet/Statcounters/ResponseData.html","kind":"alias","full_name":"Mailjet::Statcounters::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/statcounters.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Statcounters::Counters)","aliased_html":"Array(Mailjet::Statcounters::Counters)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"}}]},{"html_id":"mailjet/Mailjet/Template","path":"Mailjet/Template.html","kind":"struct","full_name":"Mailjet::Template","name":"Template","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L8"},{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the contents of an email template. It will be split between a Text\npart, HTML part, MJML content and/or additional headers.\n\nhttps://dev.mailjet.com/email/reference/templates/#v3_get_template_template_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/templates/#v3_post_template_template_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/templates/#v3_put_template_template_ID_detailcontent\n","summary":"

Retrieve the contents of an email template.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L42"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a template\n\n```\nMailjet::Template.delete(123456789)\n```\n","summary":"

Delete a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":66,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L66"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L58"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L58"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Template/CreatePath","path":"Mailjet/Template/CreatePath.html","kind":"struct","full_name":"Mailjet::Template::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/CreateResponse","path":"Mailjet/Template/CreateResponse.html","kind":"struct","full_name":"Mailjet::Template::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/DeletePath","path":"Mailjet/Template/DeletePath.html","kind":"struct","full_name":"Mailjet::Template::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":66,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L66"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Delete a template\n\n```\nMailjet::Template.delete(123456789)\n```\n","summary":"

Delete a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent","path":"Mailjet/Template/Detailcontent.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"class_methods":[{"html_id":"create(id:ResourceId,payload:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"create","doc":"Create content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.create(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L38"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create(payload, {id: id}, client: client)"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L19"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L19"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L60"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L60"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindPath","path":"Mailjet/Template/Detailcontent/FindPath.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindResponse","path":"Mailjet/Template/Detailcontent/FindResponse.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/ResponseData","path":"Mailjet/Template/Detailcontent/ResponseData.html","kind":"alias","full_name":"Mailjet::Template::Detailcontent::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(JSON::Any)","aliased_html":"Array(JSON::Any)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"}},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdatePath","path":"Mailjet/Template/Detailcontent/UpdatePath.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdateResponse","path":"Mailjet/Template/Detailcontent/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template/detailcontent.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Template/Details","path":"Mailjet/Template/Details.html","kind":"struct","full_name":"Mailjet::Template::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":68,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L68"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"author:String-instance-method","name":"author","abstract":false,"def":{"name":"author","return_type":"String","visibility":"Public","body":"@author"}},{"html_id":"categories:Array(String)-instance-method","name":"categories","abstract":false,"def":{"name":"categories","return_type":"Array(String)","visibility":"Public","body":"@categories"}},{"html_id":"copyright:String-instance-method","name":"copyright","abstract":false,"def":{"name":"copyright","return_type":"String","visibility":"Public","body":"@copyright"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"edit_mode:Int32-instance-method","name":"edit_mode","abstract":false,"def":{"name":"edit_mode","return_type":"Int32","visibility":"Public","body":"@edit_mode"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"is_text_part_generation_enabled:Bool-instance-method","name":"is_text_part_generation_enabled","abstract":false,"def":{"name":"is_text_part_generation_enabled","return_type":"Bool","visibility":"Public","body":"@is_text_part_generation_enabled"}},{"html_id":"last_updated_at:Time-instance-method","name":"last_updated_at","abstract":false,"def":{"name":"last_updated_at","return_type":"Time","visibility":"Public","body":"@last_updated_at"}},{"html_id":"locale:String-instance-method","name":"locale","abstract":false,"def":{"name":"locale","return_type":"String","visibility":"Public","body":"@locale"}},{"html_id":"locale_list:Union(Array(String),Nil)-instance-method","name":"locale_list","abstract":false,"def":{"name":"locale_list","return_type":"::Union(Array(String), ::Nil)","visibility":"Public","body":"@locale_list"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"owner_id:Int32-instance-method","name":"owner_id","abstract":false,"def":{"name":"owner_id","return_type":"Int32","visibility":"Public","body":"@owner_id"}},{"html_id":"owner_type:String-instance-method","name":"owner_type","abstract":false,"def":{"name":"owner_type","return_type":"String","visibility":"Public","body":"@owner_type"}},{"html_id":"presets:JSON::Any-instance-method","name":"presets","abstract":false,"def":{"name":"presets","return_type":"JSON::Any","visibility":"Public","body":"@presets"}},{"html_id":"previews:Array(Int32)-instance-method","name":"previews","abstract":false,"def":{"name":"previews","return_type":"Array(Int32)","visibility":"Public","body":"@previews"}},{"html_id":"purposes:Array(String)-instance-method","name":"purposes","abstract":false,"def":{"name":"purposes","return_type":"Array(String)","visibility":"Public","body":"@purposes"}}]},{"html_id":"mailjet/Mailjet/Template/FindPath","path":"Mailjet/Template/FindPath.html","kind":"struct","full_name":"Mailjet::Template::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/FindResponse","path":"Mailjet/Template/FindResponse.html","kind":"struct","full_name":"Mailjet::Template::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/ListPath","path":"Mailjet/Template/ListPath.html","kind":"struct","full_name":"Mailjet::Template::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/ListResponse","path":"Mailjet/Template/ListResponse.html","kind":"struct","full_name":"Mailjet::Template::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Template/ResponseData","path":"Mailjet/Template/ResponseData.html","kind":"alias","full_name":"Mailjet::Template::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Template::Details)","aliased_html":"Array(Mailjet::Template::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"}},{"html_id":"mailjet/Mailjet/Template/UpdatePath","path":"Mailjet/Template/UpdatePath.html","kind":"struct","full_name":"Mailjet::Template::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L58"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/UpdateResponse","path":"Mailjet/Template/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Template::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/resources/template.cr#L58"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Utilities","path":"Mailjet/Utilities.html","kind":"struct","full_name":"Mailjet::Utilities","name":"Utilities","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"query_parameterize(value:Hash|NamedTuple):String-class-method","name":"query_parameterize","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple) : String","args_html":"(value : Hash | NamedTuple) : String","location":{"filename":"src/mailjet/utilities.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L23"},"def":{"name":"query_parameterize","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"return_type":"String","visibility":"Public","body":"query = to_camelcased_hash(to_stringified_hash(value))\nHTTP::Params.encode(query)\n"}},{"html_id":"to_camelcased_hash(value:Hash|NamedTuple)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple)","args_html":"(value : Hash | NamedTuple)","location":{"filename":"src/mailjet/utilities.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L7"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"value.to_h.transform_keys() do |__arg2|\n __arg2.to_s.camelcase\nend.transform_values do |v|\n to_camelcased_hash(v)\nend"}},{"html_id":"to_camelcased_hash(value:Array)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Array"}],"args_string":"(value : Array)","args_html":"(value : Array)","location":{"filename":"src/mailjet/utilities.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L13"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Array"}],"visibility":"Public","body":"value.map do |v|\n to_camelcased_hash(v)\nend"}},{"html_id":"to_camelcased_hash(value:Bool|Int32|String|Nil)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Bool | Int32 | String | ::Nil"}],"args_string":"(value : Bool | Int32 | String | Nil)","args_html":"(value : Bool | Int32 | String | Nil)","location":{"filename":"src/mailjet/utilities.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L19"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Bool | Int32 | String | ::Nil"}],"visibility":"Public","body":"value"}},{"html_id":"to_stringified_hash(value:Hash|NamedTuple)-class-method","name":"to_stringified_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple)","args_html":"(value : Hash | NamedTuple)","location":{"filename":"src/mailjet/utilities.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L3"},"def":{"name":"to_stringified_hash","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"value.to_h.transform_keys(&.to_s).transform_values(&.to_s)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/8f70d4870e2e88920cf4496c9b8d0e42baf1213b/src/mailjet/utilities.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}]}]}]}}) \ No newline at end of file +crystal_doc_search_index_callback({"repository_name":"mailjet","body":"# Mailjet API client for Crystal\n\nMailjet is an email platform for teams to send transactional & marketing emails.\nIt is a GDPR compliant and ISO 27001 certified Email Service Provider.\n\n![GitHub](https://img.shields.io/github/license/wout/mollie.cr)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/wout/mailjet.cr)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/wout/mailjet.cr/ci.yml?branch=master)\n\n## Disclaimer\n\nThis is the unofficial [Crystal](https://crystal-lang.org/) shard for Mailjet.\nThe majority of the API is covered, but some parts still need to be added.\n\n## Requirements\n\nTo use the Mailjet API client, you will need a free\n[Mailjet account](https://app.mailjet.com/signup).\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n```yaml\ndependencies:\n mailjet:\n github: wout/mailjet.cr\n```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"mailjet\"\n```\n\n### Send your first email\n\n```crystal\nresponse = Mailjet::SendV3_1.message({\n \"From\": {\n \"Email\": \"from@email.com\",\n \"Name\": \"Me\",\n },\n \"To\": [\n {\n \"Email\": \"to@email.com\",\n \"Name\": \"You\",\n },\n ],\n \"Subject\": \"My first Mailjet Email!\",\n \"TextPart\": \"Greetings from Mailjet!\",\n \"HTMLPart\": <<-HTML\n

\n Dear passenger 1, welcome to\n Mailjet!\n

\n
\n May the delivery force be with you!\n HTML\n})\n\nputs response.status\n# => \"success\"\n```\n\n### Send multiple messages\n\n```crystal\nresponse = Mailjet::SendV3_1.messages([\n {...},\n {...}\n])\n\nputs response.first.status\n# => \"success\"\n```\n\n### Retrieve sent messages\n\nNow, let’s view the status of the sent message and its configuration specifics.\n\n```crystal\nmessage = Mailjet::Message.find(576460754655154659)\nputs message.status\n# => \"opened\"\n```\n\n### View message history\n\nYou can track important events linked to the sent emails, for example whether\nthe recipient opened the message, or clicked on a link within.\n\n```crystal\nevents = Mailjet::Messagehistory.all(576460754655154659)\nputs events.first.event_type\n# => \"sent\"\nputs events.last.event_type\n# => \"opened\"\n```\n\n### Retrieve Statistics\n\nThe Mailjet API also has a variety of resources that help retrieve aggregated\nstatistics for key performance indicators like opens, clicks, unsubscribes, etc.\n\nLet's take a look at just one of those resources to give you a sample of the\ndata you can read - we’ll retrieve total aggregated statistics for your API key.\n\n```crystal\ncounters = Mailjet::Statcounters.by_api_key({\n counter_timing: \"event\",\n counter_resolution: \"hour\",\n from_ts: Time.local.at_beginning_of_day.to_unix,\n to_ts: Time.local.to_unix,\n})\nputs counters.first.event_opened_count\n# => 28\n```\n\n## Documentation\n\n- [Shard API Docs](https://wout.github.io/mailjet.cr/)\n\n## To-do\n\nMost of the API is covered, but the following endpoints are not:\n\n- [ ] All Message Events\n- [ ] Bulk contact management and CSV import\n- [ ] Parse\n- [ ] Settings\n- [ ] SMS\n- [ ] Statistics (only statcounters is done)\n- [ ] Webhook\n\n## Contributing\n\n1. Fork it ()\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'feat: add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [wout](https://github.com/wout) - creator and maintainer\n","program":{"html_id":"mailjet/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"locations":[],"repository_name":"mailjet","program":true,"enum":false,"alias":false,"const":false,"types":[{"html_id":"mailjet/Mailjet","path":"Mailjet.html","kind":"struct","full_name":"Mailjet","name":"Mailjet","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet.cr#L11"},{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/alias.cr#L1"},{"filename":"src/mailjet/client.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L1"},{"filename":"src/mailjet/config.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L1"},{"filename":"src/mailjet/elements/address.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L1"},{"filename":"src/mailjet/elements/address_list.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L1"},{"filename":"src/mailjet/exception.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L1"},{"filename":"src/mailjet/json/fields.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L1"},{"filename":"src/mailjet/json/nilable_time.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L1"},{"filename":"src/mailjet/path.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L1"},{"filename":"src/mailjet/resource.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L1"},{"filename":"src/mailjet/resources/campaign.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L1"},{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L1"},{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L3"},{"filename":"src/mailjet/resources/contact.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L1"},{"filename":"src/mailjet/resources/contact/list.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L1"},{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L1"},{"filename":"src/mailjet/resources/contactfilter.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L1"},{"filename":"src/mailjet/resources/contactlist.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L1"},{"filename":"src/mailjet/resources/dns.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L1"},{"filename":"src/mailjet/resources/dns/check.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L1"},{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L1"},{"filename":"src/mailjet/resources/listrecipient.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L1"},{"filename":"src/mailjet/resources/message.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L1"},{"filename":"src/mailjet/resources/messagehistory.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L1"},{"filename":"src/mailjet/resources/messageinformation.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L1"},{"filename":"src/mailjet/resources/metasender.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L1"},{"filename":"src/mailjet/resources/send.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L1"},{"filename":"src/mailjet/resources/sender.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L1"},{"filename":"src/mailjet/resources/sender/validate.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender/validate.cr#L1"},{"filename":"src/mailjet/resources/statcounters.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L1"},{"filename":"src/mailjet/resources/template.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L1"},{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L1"},{"filename":"src/mailjet/utilities.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L1"},{"filename":"src/mailjet/version.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/version.cr#L1"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"VERSION","name":"VERSION","value":"{{ (`shards version \\\"/home/runner/work/mailjet.cr/mailjet.cr/src/mailjet\\\"`).chomp.stringify }}"}],"class_methods":[{"html_id":"configure(&)-class-method","name":"configure","abstract":false,"location":{"filename":"src/mailjet.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet.cr#L12"},"def":{"name":"configure","yields":1,"block_arity":1,"visibility":"Public","body":"yield(Mailjet::Config)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/alias.cr#L1"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/alias.cr","line_number":1,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/alias.cr#L1"},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"mailjet/Mailjet/Address","path":"Mailjet/Address.html","kind":"struct","full_name":"Mailjet::Address","name":"Address","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/elements/address.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(address:String,display_name:String)-class-method","name":"new","abstract":false,"args":[{"name":"address","external_name":"address","restriction":"::String"},{"name":"display_name","external_name":"display_name","restriction":"::String"}],"args_string":"(address : String, display_name : String)","args_html":"(address : String, display_name : String)","location":{"filename":"src/mailjet/elements/address.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L13"},"def":{"name":"new","args":[{"name":"address","external_name":"address","restriction":"::String"},{"name":"display_name","external_name":"display_name","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address, display_name)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(address_list:String)-class-method","name":"new","abstract":false,"args":[{"name":"address_list","external_name":"address_list","restriction":"::String"}],"args_string":"(address_list : String)","args_html":"(address_list : String)","location":{"filename":"src/mailjet/elements/address.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L7"},"def":{"name":"new","args":[{"name":"address_list","external_name":"address_list","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address_list)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"address:String-instance-method","name":"address","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L3"},"def":{"name":"address","return_type":"String","visibility":"Public","body":"@address"}},{"html_id":"address_list:String-instance-method","name":"address_list","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L5"},"def":{"name":"address_list","return_type":"String","visibility":"Public","body":"@address_list"}},{"html_id":"display_name:String-instance-method","name":"display_name","abstract":false,"location":{"filename":"src/mailjet/elements/address.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address.cr#L4"},"def":{"name":"display_name","return_type":"String","visibility":"Public","body":"@display_name"}}]},{"html_id":"mailjet/Mailjet/AddressList","path":"Mailjet/AddressList.html","kind":"struct","full_name":"Mailjet::AddressList","name":"AddressList","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/elements/address_list.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(address_list:String)-class-method","name":"new","abstract":false,"args":[{"name":"address_list","external_name":"address_list","restriction":"String"}],"args_string":"(address_list : String)","args_html":"(address_list : String)","location":{"filename":"src/mailjet/elements/address_list.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L8"},"def":{"name":"new","args":[{"name":"address_list","external_name":"address_list","restriction":"String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(address_list)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"address_list:String-instance-method","name":"address_list","abstract":false,"location":{"filename":"src/mailjet/elements/address_list.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L3"},"def":{"name":"address_list","return_type":"String","visibility":"Public","body":"@address_list"}},{"html_id":"addresses:Array(Address)-instance-method","name":"addresses","abstract":false,"location":{"filename":"src/mailjet/elements/address_list.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L4"},"def":{"name":"addresses","return_type":"Array(Address)","visibility":"Public","body":"@addresses"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","location":{"filename":"src/mailjet/elements/address_list.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/elements/address_list.cr#L6"},"def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" addresses.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaign","path":"Mailjet/Campaign.html","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"When you send a campaign draft, a new campaign object is automatically\ncreated. Use the resources below to retrieve information about campaigns,\nmark selected campaigns as starred or delete them.\n\nhttps://dev.mailjet.com/email/reference/campaigns/sent-campaigns/\n","summary":"

When you send a campaign draft, a new campaign object is automatically created.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L37"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L37"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaign/Details","path":"Mailjet/Campaign/Details.html","kind":"struct","full_name":"Mailjet::Campaign::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"campaign_type:Int32-instance-method","name":"campaign_type","abstract":false,"def":{"name":"campaign_type","return_type":"Int32","visibility":"Public","body":"@campaign_type"}},{"html_id":"click_tracked:Int32-instance-method","name":"click_tracked","abstract":false,"def":{"name":"click_tracked","return_type":"Int32","visibility":"Public","body":"@click_tracked"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"custom_value:String-instance-method","name":"custom_value","abstract":false,"def":{"name":"custom_value","return_type":"String","visibility":"Public","body":"@custom_value"}},{"html_id":"first_message_id:Int64-instance-method","name":"first_message_id","abstract":false,"def":{"name":"first_message_id","return_type":"Int64","visibility":"Public","body":"@first_message_id"}},{"html_id":"from_email:String-instance-method","name":"from_email","abstract":false,"def":{"name":"from_email","return_type":"String","visibility":"Public","body":"@from_email"}},{"html_id":"from_id:Int32-instance-method","name":"from_id","abstract":false,"def":{"name":"from_id","return_type":"Int32","visibility":"Public","body":"@from_id"}},{"html_id":"from_name:String-instance-method","name":"from_name","abstract":false,"def":{"name":"from_name","return_type":"String","visibility":"Public","body":"@from_name"}},{"html_id":"has_html_count:Int32-instance-method","name":"has_html_count","abstract":false,"def":{"name":"has_html_count","return_type":"Int32","visibility":"Public","body":"@has_html_count"}},{"html_id":"has_txt_count:Int32-instance-method","name":"has_txt_count","abstract":false,"def":{"name":"has_txt_count","return_type":"Int32","visibility":"Public","body":"@has_txt_count"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_deleted:Bool-instance-method","name":"is_deleted","abstract":false,"def":{"name":"is_deleted","return_type":"Bool","visibility":"Public","body":"@is_deleted"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"news_letter_id:Int32-instance-method","name":"news_letter_id","abstract":false,"def":{"name":"news_letter_id","return_type":"Int32","visibility":"Public","body":"@news_letter_id"}},{"html_id":"open_tracked:Int32-instance-method","name":"open_tracked","abstract":false,"def":{"name":"open_tracked","return_type":"Int32","visibility":"Public","body":"@open_tracked"}},{"html_id":"segmentation_id:Int32-instance-method","name":"segmentation_id","abstract":false,"def":{"name":"segmentation_id","return_type":"Int32","visibility":"Public","body":"@segmentation_id"}},{"html_id":"send_end_at:Time-instance-method","name":"send_end_at","abstract":false,"def":{"name":"send_end_at","return_type":"Time","visibility":"Public","body":"@send_end_at"}},{"html_id":"send_start_at:Time-instance-method","name":"send_start_at","abstract":false,"def":{"name":"send_start_at","return_type":"Time","visibility":"Public","body":"@send_start_at"}},{"html_id":"spamass_score:String-instance-method","name":"spamass_score","abstract":false,"def":{"name":"spamass_score","return_type":"String","visibility":"Public","body":"@spamass_score"}},{"html_id":"status:Int32-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"Int32","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"unsubscribe_tracked_count:Int32-instance-method","name":"unsubscribe_tracked_count","abstract":false,"def":{"name":"unsubscribe_tracked_count","return_type":"Int32","visibility":"Public","body":"@unsubscribe_tracked_count"}},{"html_id":"workflow_id:Int32-instance-method","name":"workflow_id","abstract":false,"def":{"name":"workflow_id","return_type":"Int32","visibility":"Public","body":"@workflow_id"}}]},{"html_id":"mailjet/Mailjet/Campaign/FindPath","path":"Mailjet/Campaign/FindPath.html","kind":"struct","full_name":"Mailjet::Campaign::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/FindResponse","path":"Mailjet/Campaign/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaign::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find a campaign\n\n```\ncampaign = Mailjet::Campaign.find(1234567890987654400)\n```\n","summary":"

Find a campaign

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaign/ListPath","path":"Mailjet/Campaign/ListPath.html","kind":"struct","full_name":"Mailjet::Campaign::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/ListResponse","path":"Mailjet/Campaign/ListResponse.html","kind":"struct","full_name":"Mailjet::Campaign::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Find all campaigns\n\n```\nresponse = Mailjet::Campaign.all\ncampaigns = response.data\n```\n","summary":"

Find all campaigns

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaign/ResponseData","path":"Mailjet/Campaign/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaign::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Campaign::Details)","aliased_html":"Array(Mailjet::Campaign::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"}},{"html_id":"mailjet/Mailjet/Campaign/UpdatePath","path":"Mailjet/Campaign/UpdatePath.html","kind":"struct","full_name":"Mailjet::Campaign::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaign/UpdateResponse","path":"Mailjet/Campaign/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Campaign::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaign.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaign.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},"doc":"Update a campaign\n\n```\ncampaign = Mailjet::Campaign.update(1234567890987654400, {\n is_deleted: true,\n is_starred: false,\n})\n```\n","summary":"

Update a campaign

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Campaigndraft","path":"Mailjet/Campaigndraft.html","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L9"},{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the contents of a campaign draft. It will be split between a Text\npart, HTML part, MJML content and/or additional headers.\n\nhttps://dev.mailjet.com/email/reference/campaigns/drafts/#v3_get_campaigndraft_draft_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/campaigns/drafts/#v3_post_campaigndraft_draft_ID_detailcontent\n","summary":"

Retrieve the contents of a campaign draft.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L38"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L48"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L48"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaigndraft/CreatePath","path":"Mailjet/Campaigndraft/CreatePath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/CreateResponse","path":"Mailjet/Campaigndraft/CreateResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Create a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.create({\n locale: \"en_US\",\n subject: \"It's going to be fabulous!\",\n})\n```\n","summary":"

Create a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","path":"Mailjet/Campaigndraft/Detailcontent.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"class_methods":[{"html_id":"create(id:ResourceId,payload:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"create","doc":"Create content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.create(12345, {\n \"Headers\": {\n \"Subject\": \"Hello There!\",\n \"From\": \"John Doe \",\n \"Reply-To\": \"\",\n },\n \"Html-part\": \"

Hello {{var:name}}

\",\n \"Text-part\": \"Hello {{var:name}}\",\n \"Mjml-part\": \"\",\n})\n```\n","summary":"

Create content for a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L40"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create(payload, {id: id}, client: client)"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindPath","path":"Mailjet/Campaigndraft/Detailcontent/FindPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},"doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindResponse","path":"Mailjet/Campaigndraft/Detailcontent/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},"doc":"Find content for a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)\n```\n","summary":"

Find content for a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/ResponseData","path":"Mailjet/Campaigndraft/Detailcontent/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaigndraft::Detailcontent::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaigndraft/detailcontent.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft/detailcontent.cr#L12"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(JSON::Any)","aliased_html":"Array(JSON::Any)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/Draft","path":"Mailjet/Campaigndraft/Draft.html","kind":"struct","full_name":"Mailjet::Campaigndraft::Draft","name":"Draft","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":50,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L50"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"ax_fraction:Int32-instance-method","name":"ax_fraction","abstract":false,"def":{"name":"ax_fraction","return_type":"Int32","visibility":"Public","body":"@ax_fraction"}},{"html_id":"ax_fraction_name:String-instance-method","name":"ax_fraction_name","abstract":false,"def":{"name":"ax_fraction_name","return_type":"String","visibility":"Public","body":"@ax_fraction_name"}},{"html_id":"contacts_list_id:Union(Int32,Nil)-instance-method","name":"contacts_list_id","abstract":false,"def":{"name":"contacts_list_id","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@contacts_list_id"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"current:Int32-instance-method","name":"current","abstract":false,"def":{"name":"current","return_type":"Int32","visibility":"Public","body":"@current"}},{"html_id":"delivered_at:Union(Time,Nil)-instance-method","name":"delivered_at","abstract":false,"def":{"name":"delivered_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@delivered_at"}},{"html_id":"edit_mode:String-instance-method","name":"edit_mode","abstract":false,"def":{"name":"edit_mode","return_type":"String","visibility":"Public","body":"@edit_mode"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"is_text_part_included:Bool-instance-method","name":"is_text_part_included","abstract":false,"def":{"name":"is_text_part_included","return_type":"Bool","visibility":"Public","body":"@is_text_part_included"}},{"html_id":"locale:String-instance-method","name":"locale","abstract":false,"def":{"name":"locale","return_type":"String","visibility":"Public","body":"@locale"}},{"html_id":"modified_at:Union(Time,Nil)-instance-method","name":"modified_at","abstract":false,"def":{"name":"modified_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@modified_at"}},{"html_id":"preset:JSON::Any-instance-method","name":"preset","abstract":false,"def":{"name":"preset","return_type":"JSON::Any","visibility":"Public","body":"@preset"}},{"html_id":"sender:String-instance-method","name":"sender","abstract":false,"def":{"name":"sender","return_type":"String","visibility":"Public","body":"@sender"}},{"html_id":"sender_email:String-instance-method","name":"sender_email","abstract":false,"def":{"name":"sender_email","return_type":"String","visibility":"Public","body":"@sender_email"}},{"html_id":"sender_name:String-instance-method","name":"sender_name","abstract":false,"def":{"name":"sender_name","return_type":"String","visibility":"Public","body":"@sender_name"}},{"html_id":"status:Int32-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"Int32","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"template_id:Union(Int32,Nil)-instance-method","name":"template_id","abstract":false,"def":{"name":"template_id","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@template_id"}},{"html_id":"title:String-instance-method","name":"title","abstract":false,"def":{"name":"title","return_type":"String","visibility":"Public","body":"@title"}},{"html_id":"url:String-instance-method","name":"url","abstract":false,"def":{"name":"url","return_type":"String","visibility":"Public","body":"@url"}},{"html_id":"used:Bool-instance-method","name":"used","abstract":false,"def":{"name":"used","return_type":"Bool","visibility":"Public","body":"@used"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/FindPath","path":"Mailjet/Campaigndraft/FindPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/FindResponse","path":"Mailjet/Campaigndraft/FindResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.find(112334)\n```\n","summary":"

Find a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ListPath","path":"Mailjet/Campaigndraft/ListPath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ListResponse","path":"Mailjet/Campaigndraft/ListResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Campaigndraft.all\ncampaigndrafts = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/ResponseData","path":"Mailjet/Campaigndraft/ResponseData.html","kind":"alias","full_name":"Mailjet::Campaigndraft::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Campaigndraft::Draft)","aliased_html":"Array(Mailjet::Campaigndraft::Draft)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"}},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdatePath","path":"Mailjet/Campaigndraft/UpdatePath.html","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdateResponse","path":"Mailjet/Campaigndraft/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/campaigndraft.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/campaigndraft.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},"doc":"Update a campaigndraft\n\n```\ncampaigndraft = Mailjet::Campaigndraft.update(112334, {\n subject: \"It's going to be gorgeous!\",\n})\n```\n","summary":"

Update a campaigndraft

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Client","path":"Mailjet/Client.html","kind":"struct","full_name":"Mailjet::Client","name":"Client","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/client.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"with_credentials(api_key:String|Nil,secret_key:String|Nil)-class-method","name":"with_credentials","doc":"Create a new instance with given api credentials","summary":"

Create a new instance with given api credentials

","abstract":false,"args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"},{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"args_string":"(api_key : String | Nil, secret_key : String | Nil)","args_html":"(api_key : String | Nil, secret_key : String | Nil)","location":{"filename":"src/mailjet/client.cr","line_number":98,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L98"},"def":{"name":"with_credentials","args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"},{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"new(api_key, secret_key)"}}],"constructors":[{"html_id":"new(api_key:Nil|String=Config.api_key,secret_key:Nil|String=Config.secret_key)-class-method","name":"new","doc":"Initialize with credentials\n\n```\nclient = Mailjet::Client.new(\"my_key\", \"my_secret\")\n```\n\nOr without, if credentials are configured globally:\n\n```\nclient = Mailjet::Client.new\n```","summary":"

Initialize with credentials

","abstract":false,"args":[{"name":"api_key","default_value":"Config.api_key","external_name":"api_key","restriction":"::Nil | ::String"},{"name":"secret_key","default_value":"Config.secret_key","external_name":"secret_key","restriction":"::Nil | ::String"}],"args_string":"(api_key : Nil | String = Config.api_key, secret_key : Nil | String = Config.secret_key)","args_html":"(api_key : Nil | String = Config.api_key, secret_key : Nil | String = Config.secret_key)","location":{"filename":"src/mailjet/client.cr","line_number":17,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L17"},"def":{"name":"new","args":[{"name":"api_key","default_value":"Config.api_key","external_name":"api_key","restriction":"::Nil | ::String"},{"name":"secret_key","default_value":"Config.secret_key","external_name":"secret_key","restriction":"::Nil | ::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(api_key, secret_key)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"api_key:String|Nil-instance-method","name":"api_key","abstract":false,"location":{"filename":"src/mailjet/client.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L3"},"def":{"name":"api_key","return_type":"String | ::Nil","visibility":"Public","body":"@api_key"}},{"html_id":"handle_api_call(method:String,path:String,query:Hash|NamedTuple={}ofString=>String,payload:Hash|NamedTuple={}ofString=>String,headers:Hash|NamedTuple={}ofString=>String)-instance-method","name":"handle_api_call","abstract":false,"args":[{"name":"method","external_name":"method","restriction":"String"},{"name":"path","external_name":"path","restriction":"String"},{"name":"query","default_value":"{} of String => String","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"{} of String => String","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"headers","default_value":"{} of String => String","external_name":"headers","restriction":"Hash | NamedTuple"}],"args_string":"(method : String, path : String, query : Hash | NamedTuple = {} of String => String, payload : Hash | NamedTuple = {} of String => String, headers : Hash | NamedTuple = {} of String => String)","args_html":"(method : String, path : String, query : Hash | NamedTuple = {} of String => String, payload : Hash | NamedTuple = {} of String => String, headers : Hash | NamedTuple = {} of String => String)","location":{"filename":"src/mailjet/client.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L27"},"def":{"name":"handle_api_call","args":[{"name":"method","external_name":"method","restriction":"String"},{"name":"path","external_name":"path","restriction":"String"},{"name":"query","default_value":"{} of String => String","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"{} of String => String","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"headers","default_value":"{} of String => String","external_name":"headers","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"client = http_client(URI.parse(Config.end_point))\nrequest_headers = http_headers\nheaders.each do |key, value|\n request_headers[key.to_s] = value\nend\nif query.empty?\nelse\n path = path + \"?#{Utilities.query_parameterize(query)}\"\nend\nbegin\n if {\"GET\", \"DELETE\"}.includes?(method)\n response = client.exec(method, path, headers: request_headers)\n else\n payload = payload.to_h.reject! do |_, v|\n v.nil?\n end.to_json\n response = client.exec(method, path, headers: request_headers, body: payload)\n end\n render(response)\nrescue e : IO::TimeoutError\n raise(RequestTimeoutException.new(e.message))\nrescue e : IO::EOFError\n raise(Exception.new(e.message))\nend\n"}},{"html_id":"secret_key:String|Nil-instance-method","name":"secret_key","abstract":false,"location":{"filename":"src/mailjet/client.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/client.cr#L4"},"def":{"name":"secret_key","return_type":"String | ::Nil","visibility":"Public","body":"@secret_key"}}]},{"html_id":"mailjet/Mailjet/Config","path":"Mailjet/Config.html","kind":"module","full_name":"Mailjet::Config","name":"Config","abstract":false,"locations":[{"filename":"src/mailjet/config.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"api_key:String|Nil-class-method","name":"api_key","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L3"},"def":{"name":"api_key","return_type":"String | ::Nil","visibility":"Public","body":"@@api_key"}},{"html_id":"api_key=(api_key:String|Nil)-class-method","name":"api_key=","abstract":false,"args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"}],"args_string":"(api_key : String | Nil)","args_html":"(api_key : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L3"},"def":{"name":"api_key=","args":[{"name":"api_key","external_name":"api_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@api_key = api_key"}},{"html_id":"api_version:String-class-method","name":"api_version","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L4"},"def":{"name":"api_version","return_type":"String","visibility":"Public","body":"@@api_version"}},{"html_id":"api_version=(api_version:String)-class-method","name":"api_version=","abstract":false,"args":[{"name":"api_version","external_name":"api_version","restriction":"String"}],"args_string":"(api_version : String)","args_html":"(api_version : String)","location":{"filename":"src/mailjet/config.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L4"},"def":{"name":"api_version=","args":[{"name":"api_version","external_name":"api_version","restriction":"String"}],"visibility":"Public","body":"@@api_version = api_version"}},{"html_id":"default_from:String|Nil-class-method","name":"default_from","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L5"},"def":{"name":"default_from","return_type":"String | ::Nil","visibility":"Public","body":"@@default_from"}},{"html_id":"default_from=(email:String)-class-method","name":"default_from=","abstract":false,"args":[{"name":"email","external_name":"email","restriction":"String"}],"args_string":"(email : String)","args_html":"(email : String)","location":{"filename":"src/mailjet/config.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L12"},"def":{"name":"default_from=","args":[{"name":"email","external_name":"email","restriction":"String"}],"visibility":"Public","body":"if email.match(/.+\\@.+\\..+/)\nelse\n raise(InvalidEmailAddressException.new)\nend\n@@default_from = email\n"}},{"html_id":"default_from=(default_from:String|Nil)-class-method","name":"default_from=","abstract":false,"args":[{"name":"default_from","external_name":"default_from","restriction":"String | ::Nil"}],"args_string":"(default_from : String | Nil)","args_html":"(default_from : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L5"},"def":{"name":"default_from=","args":[{"name":"default_from","external_name":"default_from","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@default_from = default_from"}},{"html_id":"end_point:String-class-method","name":"end_point","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L6"},"def":{"name":"end_point","return_type":"String","visibility":"Public","body":"@@end_point"}},{"html_id":"end_point=(end_point:String)-class-method","name":"end_point=","abstract":false,"args":[{"name":"end_point","external_name":"end_point","restriction":"String"}],"args_string":"(end_point : String)","args_html":"(end_point : String)","location":{"filename":"src/mailjet/config.cr","line_number":6,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L6"},"def":{"name":"end_point=","args":[{"name":"end_point","external_name":"end_point","restriction":"String"}],"visibility":"Public","body":"@@end_point = end_point"}},{"html_id":"open_timeout:Time::Span-class-method","name":"open_timeout","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L7"},"def":{"name":"open_timeout","return_type":"Time::Span","visibility":"Public","body":"@@open_timeout"}},{"html_id":"open_timeout=(open_timeout:Time::Span)-class-method","name":"open_timeout=","abstract":false,"args":[{"name":"open_timeout","external_name":"open_timeout","restriction":"Time::Span"}],"args_string":"(open_timeout : Time::Span)","args_html":"(open_timeout : Time::Span)","location":{"filename":"src/mailjet/config.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L7"},"def":{"name":"open_timeout=","args":[{"name":"open_timeout","external_name":"open_timeout","restriction":"Time::Span"}],"visibility":"Public","body":"@@open_timeout = open_timeout"}},{"html_id":"read_timeout:Time::Span-class-method","name":"read_timeout","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L8"},"def":{"name":"read_timeout","return_type":"Time::Span","visibility":"Public","body":"@@read_timeout"}},{"html_id":"read_timeout=(read_timeout:Time::Span)-class-method","name":"read_timeout=","abstract":false,"args":[{"name":"read_timeout","external_name":"read_timeout","restriction":"Time::Span"}],"args_string":"(read_timeout : Time::Span)","args_html":"(read_timeout : Time::Span)","location":{"filename":"src/mailjet/config.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L8"},"def":{"name":"read_timeout=","args":[{"name":"read_timeout","external_name":"read_timeout","restriction":"Time::Span"}],"visibility":"Public","body":"@@read_timeout = read_timeout"}},{"html_id":"sandbox_mode=(sandbox_mode:Bool)-class-method","name":"sandbox_mode=","abstract":false,"args":[{"name":"sandbox_mode","external_name":"sandbox_mode","restriction":"Bool"}],"args_string":"(sandbox_mode : Bool)","args_html":"(sandbox_mode : Bool)","location":{"filename":"src/mailjet/config.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L10"},"def":{"name":"sandbox_mode=","args":[{"name":"sandbox_mode","external_name":"sandbox_mode","restriction":"Bool"}],"visibility":"Public","body":"@@sandbox_mode = sandbox_mode"}},{"html_id":"sandbox_mode?:Bool-class-method","name":"sandbox_mode?","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L10"},"def":{"name":"sandbox_mode?","return_type":"Bool","visibility":"Public","body":"@@sandbox_mode"}},{"html_id":"secret_key:String|Nil-class-method","name":"secret_key","abstract":false,"location":{"filename":"src/mailjet/config.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L9"},"def":{"name":"secret_key","return_type":"String | ::Nil","visibility":"Public","body":"@@secret_key"}},{"html_id":"secret_key=(secret_key:String|Nil)-class-method","name":"secret_key=","abstract":false,"args":[{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"args_string":"(secret_key : String | Nil)","args_html":"(secret_key : String | Nil)","location":{"filename":"src/mailjet/config.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/config.cr#L9"},"def":{"name":"secret_key=","args":[{"name":"secret_key","external_name":"secret_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"@@secret_key = secret_key"}}]},{"html_id":"mailjet/Mailjet/Contact","path":"Mailjet/Contact.html","kind":"struct","full_name":"Mailjet::Contact","name":"Contact","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L7"},{"filename":"src/mailjet/resources/contact/list.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L2"},{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Contact objects represent the email addresses you intend to send (or have\nalready sent) messages to.\n\nhttps://dev.mailjet.com/email/reference/contacts/contact/\n","summary":"

Contact objects represent the email addresses you intend to send (or have already sent) messages to.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L38"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L49"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L49"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/CreatePath","path":"Mailjet/Contact/CreatePath.html","kind":"struct","full_name":"Mailjet::Contact::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/CreateResponse","path":"Mailjet/Contact/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contact::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\ncontact = Mailjet::Contact.create({\n name: \"Contact name\",\n email: \"contact@email.com\",\n is_excluded_from_campaigns: false,\n})\n```\n","summary":"

Create a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contact/Details","path":"Mailjet/Contact/Details.html","kind":"struct","full_name":"Mailjet::Contact::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":51,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L51"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:String-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"String","visibility":"Public","body":"@created_at"}},{"html_id":"delivered_count:Int32-instance-method","name":"delivered_count","abstract":false,"def":{"name":"delivered_count","return_type":"Int32","visibility":"Public","body":"@delivered_count"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"exclusion_from_campaigns_updated_at:Union(Time,Nil)-instance-method","name":"exclusion_from_campaigns_updated_at","abstract":false,"def":{"name":"exclusion_from_campaigns_updated_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@exclusion_from_campaigns_updated_at"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_excluded_from_campaigns:Bool-instance-method","name":"is_excluded_from_campaigns","abstract":false,"def":{"name":"is_excluded_from_campaigns","return_type":"Bool","visibility":"Public","body":"@is_excluded_from_campaigns"}},{"html_id":"is_opt_in_pending:Bool-instance-method","name":"is_opt_in_pending","abstract":false,"def":{"name":"is_opt_in_pending","return_type":"Bool","visibility":"Public","body":"@is_opt_in_pending"}},{"html_id":"is_spam_complaining:Bool-instance-method","name":"is_spam_complaining","abstract":false,"def":{"name":"is_spam_complaining","return_type":"Bool","visibility":"Public","body":"@is_spam_complaining"}},{"html_id":"last_activity_at:Union(Time,Nil)-instance-method","name":"last_activity_at","abstract":false,"def":{"name":"last_activity_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_activity_at"}},{"html_id":"last_update_at:Union(Time,Nil)-instance-method","name":"last_update_at","abstract":false,"def":{"name":"last_update_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_update_at"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"unsubscribed_at:Union(Time,Nil)-instance-method","name":"unsubscribed_at","abstract":false,"def":{"name":"unsubscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_at"}},{"html_id":"unsubscribed_by:Union(Time,Nil)-instance-method","name":"unsubscribed_by","abstract":false,"def":{"name":"unsubscribed_by","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_by"}}]},{"html_id":"mailjet/Mailjet/Contact/FindPath","path":"Mailjet/Contact/FindPath.html","kind":"struct","full_name":"Mailjet::Contact::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/FindResponse","path":"Mailjet/Contact/FindResponse.html","kind":"struct","full_name":"Mailjet::Contact::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Find a contact\n\n```\ncontact = Mailjet::Contact.find(123456789)\n```\n","summary":"

Find a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contact/List","path":"Mailjet/Contact/List.html","kind":"struct","full_name":"Mailjet::Contact::List","name":"List","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Retrieve all contact lists for a specific contact. You will receive\ninformation on the status of the contact for each list. Information about\nlists deleted within the last 60 days will be returned as well, since\nthose are soft-deleted and can be reinstated.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_contact_contact_ID_getcontactslists\n","summary":"

Retrieve all contact lists for a specific contact.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L20"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"all(contact_id:ResourceId,client:Client=Client.new)-class-method","name":"all","doc":"Convenience method allowing to pass the contact id and returning the\narray of lists directly\n\n```\ncontactlists = Mailjet::Contact::List.all(52856551)\n```\n","summary":"

Convenience method allowing to pass the contact id and returning the array of lists directly

","abstract":false,"args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(contact_id : ResourceId, client : Client = Client.new)","args_html":"(contact_id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contact/list.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L29"},"def":{"name":"all","args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(params: {contact_id: contact_id}, client: client).data"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/List/Details","path":"Mailjet/Contact/List/Details.html","kind":"struct","full_name":"Mailjet::Contact::List::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"is_active:Bool-instance-method","name":"is_active","abstract":false,"def":{"name":"is_active","return_type":"Bool","visibility":"Public","body":"@is_active"}},{"html_id":"is_unsub:Bool-instance-method","name":"is_unsub","abstract":false,"def":{"name":"is_unsub","return_type":"Bool","visibility":"Public","body":"@is_unsub"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"subscribed_at:Time-instance-method","name":"subscribed_at","abstract":false,"def":{"name":"subscribed_at","return_type":"Time","visibility":"Public","body":"@subscribed_at"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ListPath","path":"Mailjet/Contact/List/ListPath.html","kind":"struct","full_name":"Mailjet::Contact::List::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ListResponse","path":"Mailjet/Contact/List/ListResponse.html","kind":"struct","full_name":"Mailjet::Contact::List::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},"doc":"Find all contact lists for a given contact id\n\n```\nresponse = Mailjet::Contact::List.all(params: {contact_id: 52856551})\ncontactlists = response.data\n```\n","summary":"

Find all contact lists for a given contact id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contact/List/ResponseData","path":"Mailjet/Contact/List/ResponseData.html","kind":"alias","full_name":"Mailjet::Contact::List::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact/list.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/list.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contact::List::Details)","aliased_html":"Array(Mailjet::Contact::List::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"}}]},{"html_id":"mailjet/Mailjet/Contact/ListPath","path":"Mailjet/Contact/ListPath.html","kind":"struct","full_name":"Mailjet::Contact::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/ListResponse","path":"Mailjet/Contact/ListResponse.html","kind":"struct","full_name":"Mailjet::Contact::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Create a contact\n\n```\nresponse = Mailjet::Contact.all\ncontacts = response.data\nemail_addresses = response.map(&.email)\n```\n","summary":"

Create a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","path":"Mailjet/Contact/Managecontactlists.html","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Manage the presence and subscription status of a contact for multiple\ncontact lists. Select the contact lists, as well as the desired action to\nbe performed on each one - add, remove or unsub. The contact should\nalready be present in the global contact list.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_post_contact_contact_ID_managecontactslists\n","summary":"

Manage the presence and subscription status of a contact for multiple contact lists.

","class_methods":[{"html_id":"create(contact_id:ResourceId,contacts_lists:Array)-class-method","name":"create","doc":"Manage the presence and subscription status of a contact for multiple\ncontact lists.\n\n```\ncontact_lists = Mailjet::Contact::Managecontactlists.create(54321987, [\n {list_id: 23847, action: \"addnoforce\"},\n {list_id: 26484, action: \"addforce\"},\n])\nputs contact_lists.first.list_id\n# => 23847\n```\n","summary":"

Manage the presence and subscription status of a contact for multiple contact lists.

","abstract":false,"args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"contacts_lists","external_name":"contacts_lists","restriction":"Array"}],"args_string":"(contact_id : ResourceId, contacts_lists : Array)","args_html":"(contact_id : ResourceId, contacts_lists : Array)","location":{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L28"},"def":{"name":"create","args":[{"name":"contact_id","external_name":"contact_id","restriction":"ResourceId"},{"name":"contacts_lists","external_name":"contacts_lists","restriction":"Array"}],"visibility":"Public","body":"(create({contacts_lists: contacts_lists}, {contact_id: contact_id}))[\"ContactsLists\"]"}}],"types":[{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactList","path":"Mailjet/Contact/Managecontactlists/ContactList.html","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists::ContactList","name":"ContactList","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"action:String-instance-method","name":"action","abstract":false,"def":{"name":"action","return_type":"String","visibility":"Public","body":"@action"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}}]},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactLists","path":"Mailjet/Contact/Managecontactlists/ContactLists.html","kind":"alias","full_name":"Mailjet::Contact::Managecontactlists::ContactLists","name":"ContactLists","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact/managecontactlists.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact/managecontactlists.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Hash(String, Array(Mailjet::Contact::Managecontactlists::ContactList)))","aliased_html":"Array(Hash(String, Array(Mailjet::Contact::Managecontactlists::ContactList)))","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"}}]},{"html_id":"mailjet/Mailjet/Contact/ResponseData","path":"Mailjet/Contact/ResponseData.html","kind":"alias","full_name":"Mailjet::Contact::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contact::Details)","aliased_html":"Array(Mailjet::Contact::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"}},{"html_id":"mailjet/Mailjet/Contact/UpdatePath","path":"Mailjet/Contact/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contact::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contact/UpdateResponse","path":"Mailjet/Contact/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contact::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contact.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contact.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},"doc":"Update a contact\n\n```\ncontact = Mailjet::Contact.update(123456789, {\n name: \"Another name\",\n is_excluded_from_campaigns: true,\n})\n```\n","summary":"

Update a contact

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Contactfilter","path":"Mailjet/Contactfilter.html","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Segmentation is an extremely useful tool used to target a specific group of\ncustomers with a dedicated campaign. Create segments based on contact\nproperties or the contact activity (opens, clicks). Segmentation helps you\nfocus your campaigns on specific demographics, create re-engagement\ncampaigns, etc.\n\nhttps://dev.mailjet.com/email/reference/segmentation/\n","summary":"

Segmentation is an extremely useful tool used to target a specific group of customers with a dedicated campaign.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L20"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L40"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a contactfilter\n\n```\nMailjet::Contactfilter.delete(112334)\n```\n","summary":"

Delete a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L60"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L28"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L28"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L52"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L52"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contactfilter/CreatePath","path":"Mailjet/Contactfilter/CreatePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/CreateResponse","path":"Mailjet/Contactfilter/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Create a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.create({\n description: \"Users that have not clicked on an email link in the last 14 days\",\n expression: \"((not hasclickedsince(14)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Create a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/DeletePath","path":"Mailjet/Contactfilter/DeletePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Delete a contactfilter\n\n```\nMailjet::Contactfilter.delete(112334)\n```\n","summary":"

Delete a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/Filter","path":"Mailjet/Contactfilter/Filter.html","kind":"struct","full_name":"Mailjet::Contactfilter::Filter","name":"Filter","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":62,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L62"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"expression:String-instance-method","name":"expression","abstract":false,"def":{"name":"expression","return_type":"String","visibility":"Public","body":"@expression"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/FindPath","path":"Mailjet/Contactfilter/FindPath.html","kind":"struct","full_name":"Mailjet::Contactfilter::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L28"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/FindResponse","path":"Mailjet/Contactfilter/FindResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":28,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L28"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ListPath","path":"Mailjet/Contactfilter/ListPath.html","kind":"struct","full_name":"Mailjet::Contactfilter::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ListResponse","path":"Mailjet/Contactfilter/ListResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L20"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Find all contactfilters\n\n```\nresponse = Mailjet::Contactfilter.all\ncontactfilters = response.data\n```\n","summary":"

Find all contactfilters

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/ResponseData","path":"Mailjet/Contactfilter/ResponseData.html","kind":"alias","full_name":"Mailjet::Contactfilter::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contactfilter::Filter)","aliased_html":"Array(Mailjet::Contactfilter::Filter)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"}},{"html_id":"mailjet/Mailjet/Contactfilter/UpdatePath","path":"Mailjet/Contactfilter/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contactfilter::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactfilter/UpdateResponse","path":"Mailjet/Contactfilter/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contactfilter::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactfilter.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactfilter.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},"doc":"Update a contactfilter\n\n```\ncontactfilter = Mailjet::Contactfilter.update(112334, {\n description: \"Users that have not clicked on an email link in the last 7 days\",\n expression: \"((not hasclickedsince(7)))\",\n name: \"Inactive customers\",\n})\n```\n","summary":"

Update a contactfilter

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Contactlist","path":"Mailjet/Contactlist.html","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Contact List objects help you organize your contacts into lists. Every time\nyou send a campaign you must select a recipient contact list. Segmentation\ncan help you target a portion of that list.\n\nhttps://dev.mailjet.com/email/reference/contacts/contact-list/\n","summary":"

Contact List objects help you organize your contacts into lists.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L36"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a contactlist\n\n```\nMailjet::Contactlist.delete(123456789)\n```\n","summary":"

Delete a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":54,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L54"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L46"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L46"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Contactlist/CreatePath","path":"Mailjet/Contactlist/CreatePath.html","kind":"struct","full_name":"Mailjet::Contactlist::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/CreateResponse","path":"Mailjet/Contactlist/CreateResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Create a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.create({\n name: \"New name\",\n})\n```\n","summary":"

Create a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactlist/DeletePath","path":"Mailjet/Contactlist/DeletePath.html","kind":"struct","full_name":"Mailjet::Contactlist::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":54,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L54"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Delete a contactlist\n\n```\nMailjet::Contactlist.delete(123456789)\n```\n","summary":"

Delete a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/Details","path":"Mailjet/Contactlist/Details.html","kind":"struct","full_name":"Mailjet::Contactlist::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":56,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L56"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"address:String-instance-method","name":"address","abstract":false,"def":{"name":"address","return_type":"String","visibility":"Public","body":"@address"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_deleted:Bool-instance-method","name":"is_deleted","abstract":false,"def":{"name":"is_deleted","return_type":"Bool","visibility":"Public","body":"@is_deleted"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"subscriber_count:Int32-instance-method","name":"subscriber_count","abstract":false,"def":{"name":"subscriber_count","return_type":"Int32","visibility":"Public","body":"@subscriber_count"}}]},{"html_id":"mailjet/Mailjet/Contactlist/FindPath","path":"Mailjet/Contactlist/FindPath.html","kind":"struct","full_name":"Mailjet::Contactlist::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/FindResponse","path":"Mailjet/Contactlist/FindResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.find(123456789)\n```\n","summary":"

Find a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ListPath","path":"Mailjet/Contactlist/ListPath.html","kind":"struct","full_name":"Mailjet::Contactlist::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ListResponse","path":"Mailjet/Contactlist/ListResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Contactlist.all\ncontactlists = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Contactlist/ResponseData","path":"Mailjet/Contactlist/ResponseData.html","kind":"alias","full_name":"Mailjet::Contactlist::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Contactlist::Details)","aliased_html":"Array(Mailjet::Contactlist::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"}},{"html_id":"mailjet/Mailjet/Contactlist/UpdatePath","path":"Mailjet/Contactlist/UpdatePath.html","kind":"struct","full_name":"Mailjet::Contactlist::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Contactlist/UpdateResponse","path":"Mailjet/Contactlist/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Contactlist::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/contactlist.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/contactlist.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},"doc":"Update a contactlist\n\n```\ncontactlist = Mailjet::Contactlist.update(123456789, {\n name: \"New name\",\n})\n```\n","summary":"

Update a contactlist

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/DNS","path":"Mailjet/DNS.html","kind":"struct","full_name":"Mailjet::DNS","name":"DNS","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L9"},{"filename":"src/mailjet/resources/dns/check.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Whenever you register a new sender or metasender address with a new domain\nname, a new DNS object is created for this domain. Use the resources below\nto retrieve the DNS records you need to complete a successful domain\nvalidation and SPF / DKIM authentication.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/dns/\n","summary":"

Whenever you register a new sender or metasender address with a new domain name, a new DNS object is created for this domain.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/DNS/Check","path":"Mailjet/DNS/Check.html","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Perform a DNS validation of a sender domain. The Mailjet API will check\nfor a TXT record in the domain's DNS zone file.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/dns/#v3_post_dns_dns_ID_check\n","summary":"

Perform a DNS validation of a sender domain.

","class_methods":[{"html_id":"create(id:ResourceId,client:Client=Client.new)-class-method","name":"create","doc":"Check validit of a DNS record\n\n```\ncontact = Mailjet::DNS::Check.create(123456789)\n```\n","summary":"

Check validit of a DNS record

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/dns/check.cr","line_number":20,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L20"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create({} of String => String, {id: id}, client)"}}],"types":[{"html_id":"mailjet/Mailjet/DNS/Check/Details","path":"Mailjet/DNS/Check/Details.html","kind":"struct","full_name":"Mailjet::DNS::Check::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"dkim_errors:Array(String)-instance-method","name":"dkim_errors","abstract":false,"def":{"name":"dkim_errors","return_type":"Array(String)","visibility":"Public","body":"@dkim_errors"}},{"html_id":"dkim_record_current_value:String-instance-method","name":"dkim_record_current_value","abstract":false,"def":{"name":"dkim_record_current_value","return_type":"String","visibility":"Public","body":"@dkim_record_current_value"}},{"html_id":"dkim_status:String-instance-method","name":"dkim_status","abstract":false,"def":{"name":"dkim_status","return_type":"String","visibility":"Public","body":"@dkim_status"}},{"html_id":"spf_errors:Array(String)-instance-method","name":"spf_errors","abstract":false,"def":{"name":"spf_errors","return_type":"Array(String)","visibility":"Public","body":"@spf_errors"}},{"html_id":"spf_records_current_values:Array(String)-instance-method","name":"spf_records_current_values","abstract":false,"def":{"name":"spf_records_current_values","return_type":"Array(String)","visibility":"Public","body":"@spf_records_current_values"}},{"html_id":"spf_status:String-instance-method","name":"spf_status","abstract":false,"def":{"name":"spf_status","return_type":"String","visibility":"Public","body":"@spf_status"}}]},{"html_id":"mailjet/Mailjet/DNS/Check/ResponseData","path":"Mailjet/DNS/Check/ResponseData.html","kind":"alias","full_name":"Mailjet::DNS::Check::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/dns/check.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns/check.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::DNS::Check::Details)","aliased_html":"Array(Mailjet::DNS::Check::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"}}]},{"html_id":"mailjet/Mailjet/DNS/FindPath","path":"Mailjet/DNS/FindPath.html","kind":"struct","full_name":"Mailjet::DNS::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/DNS/FindResponse","path":"Mailjet/DNS/FindResponse.html","kind":"struct","full_name":"Mailjet::DNS::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find dns settings for one record\n\n```\nsettings = Mailjet::Contactfilter.find(112334)\n```\n","summary":"

Find dns settings for one record

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/DNS/ListPath","path":"Mailjet/DNS/ListPath.html","kind":"struct","full_name":"Mailjet::DNS::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/DNS/ListResponse","path":"Mailjet/DNS/ListResponse.html","kind":"struct","full_name":"Mailjet::DNS::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"doc":"Find all dns settings\n\n```\nresponse = Mailjet::Contactfilter.all\nsettings = response.data\n```\n","summary":"

Find all dns settings

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/DNS/ResponseData","path":"Mailjet/DNS/ResponseData.html","kind":"alias","full_name":"Mailjet::DNS::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::DNS::Settings)","aliased_html":"Array(Mailjet::DNS::Settings)","const":false,"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"}},{"html_id":"mailjet/Mailjet/DNS/Settings","path":"Mailjet/DNS/Settings.html","kind":"struct","full_name":"Mailjet::DNS::Settings","name":"Settings","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/dns.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/dns.cr#L29"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"dkim_record_name:String-instance-method","name":"dkim_record_name","abstract":false,"def":{"name":"dkim_record_name","return_type":"String","visibility":"Public","body":"@dkim_record_name"}},{"html_id":"dkim_record_value:String-instance-method","name":"dkim_record_value","abstract":false,"def":{"name":"dkim_record_value","return_type":"String","visibility":"Public","body":"@dkim_record_value"}},{"html_id":"dkim_status:String-instance-method","name":"dkim_status","abstract":false,"def":{"name":"dkim_status","return_type":"String","visibility":"Public","body":"@dkim_status"}},{"html_id":"domain:String-instance-method","name":"domain","abstract":false,"def":{"name":"domain","return_type":"String","visibility":"Public","body":"@domain"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_check_in_progress:Bool-instance-method","name":"is_check_in_progress","abstract":false,"def":{"name":"is_check_in_progress","return_type":"Bool","visibility":"Public","body":"@is_check_in_progress"}},{"html_id":"last_check_at:Union(Time,Nil)-instance-method","name":"last_check_at","abstract":false,"def":{"name":"last_check_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@last_check_at"}},{"html_id":"owner_ship_token:String-instance-method","name":"owner_ship_token","abstract":false,"def":{"name":"owner_ship_token","return_type":"String","visibility":"Public","body":"@owner_ship_token"}},{"html_id":"owner_ship_token_record_name:String-instance-method","name":"owner_ship_token_record_name","abstract":false,"def":{"name":"owner_ship_token_record_name","return_type":"String","visibility":"Public","body":"@owner_ship_token_record_name"}},{"html_id":"spf_record_value:String-instance-method","name":"spf_record_value","abstract":false,"def":{"name":"spf_record_value","return_type":"String","visibility":"Public","body":"@spf_record_value"}},{"html_id":"spf_status:String-instance-method","name":"spf_status","abstract":false,"def":{"name":"spf_status","return_type":"String","visibility":"Public","body":"@spf_status"}}]}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl","path":"Mailjet/Eventcallbackurl.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"The resources below helps you track email delivery and engagement events and\nforward the information to a webhook URL of your choice. You can use this\ndata to create additional workflows - react to spam reports, identify\nbounced email addresses, sync unsubscribed contacts, etc.\n\nhttps://dev.mailjet.com/email/reference/webhook/\n","summary":"

The resources below helps you track email delivery and engagement events and forward the information to a webhook URL of your choice.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L19"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L41"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a eventcallbackurl\n\n```\nMailjet::Eventcallbackurl.delete(112334)\n```\n","summary":"

Delete a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":63,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L63"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L27"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L27"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L55"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L55"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreatePath","path":"Mailjet/Eventcallbackurl/CreatePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L41"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreateResponse","path":"Mailjet/Eventcallbackurl/CreateResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":41,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L41"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Create a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.create({\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Create a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/DeletePath","path":"Mailjet/Eventcallbackurl/DeletePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":63,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L63"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Delete a eventcallbackurl\n\n```\nMailjet::Eventcallbackurl.delete(112334)\n```\n","summary":"

Delete a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindPath","path":"Mailjet/Eventcallbackurl/FindPath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindResponse","path":"Mailjet/Eventcallbackurl/FindResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.find(112334)\n```\n","summary":"

Find a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListPath","path":"Mailjet/Eventcallbackurl/ListPath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListResponse","path":"Mailjet/Eventcallbackurl/ListResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Find all eventcallbackurls\n\n```\nresponse = Mailjet::Eventcallbackurl.all\neventcallbackurls = response.data\n```\n","summary":"

Find all eventcallbackurls

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ResponseData","path":"Mailjet/Eventcallbackurl/ResponseData.html","kind":"alias","full_name":"Mailjet::Eventcallbackurl::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Eventcallbackurl::Webhook)","aliased_html":"Array(Mailjet::Eventcallbackurl::Webhook)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"}},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdatePath","path":"Mailjet/Eventcallbackurl/UpdatePath.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L55"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdateResponse","path":"Mailjet/Eventcallbackurl/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":55,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L55"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"doc":"Update a eventcallbackurl\n\n```\neventcallbackurl = Mailjet::Eventcallbackurl.update(112334, {\n event_type: \"open\",\n is_backup: false,\n status: \"alive\",\n version: 1,\n url: \"https://somesite.com/123/\",\n})\n```\n","summary":"

Update a eventcallbackurl

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Eventcallbackurl/Webhook","path":"Mailjet/Eventcallbackurl/Webhook.html","kind":"struct","full_name":"Mailjet::Eventcallbackurl::Webhook","name":"Webhook","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/eventcallbackurl.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/eventcallbackurl.cr#L65"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"api_key_id:Int32-instance-method","name":"api_key_id","abstract":false,"def":{"name":"api_key_id","return_type":"Int32","visibility":"Public","body":"@api_key_id"}},{"html_id":"event_type:String-instance-method","name":"event_type","abstract":false,"def":{"name":"event_type","return_type":"String","visibility":"Public","body":"@event_type"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_backup:Bool-instance-method","name":"is_backup","abstract":false,"def":{"name":"is_backup","return_type":"Bool","visibility":"Public","body":"@is_backup"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"url:String-instance-method","name":"url","abstract":false,"def":{"name":"url","return_type":"String","visibility":"Public","body":"@url"}},{"html_id":"version:Int32-instance-method","name":"version","abstract":false,"def":{"name":"version","return_type":"Int32","visibility":"Public","body":"@version"}}]}]},{"html_id":"mailjet/Mailjet/Exception","path":"Mailjet/Exception.html","kind":"class","full_name":"Mailjet::Exception","name":"Exception","abstract":false,"superclass":{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/InvalidEmailAddressException","kind":"class","full_name":"Mailjet::InvalidEmailAddressException","name":"InvalidEmailAddressException"},{"html_id":"mailjet/Mailjet/MethodNotAllowedException","kind":"class","full_name":"Mailjet::MethodNotAllowedException","name":"MethodNotAllowedException"},{"html_id":"mailjet/Mailjet/MissingApiCredentialsException","kind":"class","full_name":"Mailjet::MissingApiCredentialsException","name":"MissingApiCredentialsException"},{"html_id":"mailjet/Mailjet/ParamsMissingException","kind":"class","full_name":"Mailjet::ParamsMissingException","name":"ParamsMissingException"},{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},{"html_id":"mailjet/Mailjet/RequestTimeoutException","kind":"class","full_name":"Mailjet::RequestTimeoutException","name":"RequestTimeoutException"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"types":[{"html_id":"mailjet/Mailjet/Exception/ErrorInfo","path":"Mailjet/Exception/ErrorInfo.html","kind":"alias","full_name":"Mailjet::Exception::ErrorInfo","name":"ErrorInfo","abstract":false,"locations":[{"filename":"src/mailjet/exception.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L4"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"(Hash(String, Array(Hash(String, Int32 | String))) | String | Nil)","aliased_html":"Hash(String, Array(Hash(String, Int32 | String))) | String | Nil","const":false,"namespace":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"}},{"html_id":"mailjet/Mailjet/Exception/ErrorInfoArray","path":"Mailjet/Exception/ErrorInfoArray.html","kind":"alias","full_name":"Mailjet::Exception::ErrorInfoArray","name":"ErrorInfoArray","abstract":false,"locations":[{"filename":"src/mailjet/exception.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Hash(String, Array(Hash(String, Int32 | String)))","aliased_html":"Hash(String, Array(Hash(String, Int32 | String)))","const":false,"namespace":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"}}]},{"html_id":"mailjet/Mailjet/InvalidEmailAddressException","path":"Mailjet/InvalidEmailAddressException.html","kind":"class","full_name":"Mailjet::InvalidEmailAddressException","name":"InvalidEmailAddressException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":44,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L44"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Json","path":"Mailjet/Json.html","kind":"struct","full_name":"Mailjet::Json","name":"Json","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L2"},{"filename":"src/mailjet/json/nilable_time.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/json/fields.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"mailjet/Mailjet/Json/Fields","path":"Mailjet/Json/Fields.html","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields","abstract":false,"locations":[{"filename":"src/mailjet/json/fields.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"including_types":[{"html_id":"mailjet/Mailjet/Campaign/Details","kind":"struct","full_name":"Mailjet::Campaign::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Campaign/FindResponse","kind":"struct","full_name":"Mailjet::Campaign::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaign/ListResponse","kind":"struct","full_name":"Mailjet::Campaign::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Campaign/UpdateResponse","kind":"struct","full_name":"Mailjet::Campaign::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/CreateResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/Draft","kind":"struct","full_name":"Mailjet::Campaigndraft::Draft","name":"Draft"},{"html_id":"mailjet/Mailjet/Campaigndraft/FindResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/ListResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdateResponse","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contact/CreateResponse","kind":"struct","full_name":"Mailjet::Contact::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contact/Details","kind":"struct","full_name":"Mailjet::Contact::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contact/FindResponse","kind":"struct","full_name":"Mailjet::Contact::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contact/List/Details","kind":"struct","full_name":"Mailjet::Contact::List::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contact/List/ListResponse","kind":"struct","full_name":"Mailjet::Contact::List::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contact/ListResponse","kind":"struct","full_name":"Mailjet::Contact::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists/ContactList","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists::ContactList","name":"ContactList"},{"html_id":"mailjet/Mailjet/Contact/UpdateResponse","kind":"struct","full_name":"Mailjet::Contact::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/CreateResponse","kind":"struct","full_name":"Mailjet::Contactfilter::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/Filter","kind":"struct","full_name":"Mailjet::Contactfilter::Filter","name":"Filter"},{"html_id":"mailjet/Mailjet/Contactfilter/FindResponse","kind":"struct","full_name":"Mailjet::Contactfilter::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/ListResponse","kind":"struct","full_name":"Mailjet::Contactfilter::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contactfilter/UpdateResponse","kind":"struct","full_name":"Mailjet::Contactfilter::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Contactlist/CreateResponse","kind":"struct","full_name":"Mailjet::Contactlist::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Contactlist/Details","kind":"struct","full_name":"Mailjet::Contactlist::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Contactlist/FindResponse","kind":"struct","full_name":"Mailjet::Contactlist::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Contactlist/ListResponse","kind":"struct","full_name":"Mailjet::Contactlist::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Contactlist/UpdateResponse","kind":"struct","full_name":"Mailjet::Contactlist::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/DNS/Check/Details","kind":"struct","full_name":"Mailjet::DNS::Check::Details","name":"Details"},{"html_id":"mailjet/Mailjet/DNS/FindResponse","kind":"struct","full_name":"Mailjet::DNS::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/DNS/ListResponse","kind":"struct","full_name":"Mailjet::DNS::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/DNS/Settings","kind":"struct","full_name":"Mailjet::DNS::Settings","name":"Settings"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreateResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdateResponse","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/Webhook","kind":"struct","full_name":"Mailjet::Eventcallbackurl::Webhook","name":"Webhook"},{"html_id":"mailjet/Mailjet/Listrecipient/CreateResponse","kind":"struct","full_name":"Mailjet::Listrecipient::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/FindResponse","kind":"struct","full_name":"Mailjet::Listrecipient::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/Join","kind":"struct","full_name":"Mailjet::Listrecipient::Join","name":"Join"},{"html_id":"mailjet/Mailjet/Listrecipient/ListResponse","kind":"struct","full_name":"Mailjet::Listrecipient::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Listrecipient/UpdateResponse","kind":"struct","full_name":"Mailjet::Listrecipient::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Message/Details","kind":"struct","full_name":"Mailjet::Message::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Message/FindResponse","kind":"struct","full_name":"Mailjet::Message::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Message/ListResponse","kind":"struct","full_name":"Mailjet::Message::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Messagehistory/Event","kind":"struct","full_name":"Mailjet::Messagehistory::Event","name":"Event"},{"html_id":"mailjet/Mailjet/Messagehistory/ListResponse","kind":"struct","full_name":"Mailjet::Messagehistory::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Messageinformation/FindResponse","kind":"struct","full_name":"Mailjet::Messageinformation::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Messageinformation/Info","kind":"struct","full_name":"Mailjet::Messageinformation::Info","name":"Info"},{"html_id":"mailjet/Mailjet/Messageinformation/ListResponse","kind":"struct","full_name":"Mailjet::Messageinformation::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Metasender/CreateResponse","kind":"struct","full_name":"Mailjet::Metasender::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Metasender/Details","kind":"struct","full_name":"Mailjet::Metasender::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Metasender/FindResponse","kind":"struct","full_name":"Mailjet::Metasender::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Metasender/ListResponse","kind":"struct","full_name":"Mailjet::Metasender::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Metasender/UpdateResponse","kind":"struct","full_name":"Mailjet::Metasender::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Send/DeliveryError","kind":"struct","full_name":"Mailjet::Send::DeliveryError","name":"DeliveryError"},{"html_id":"mailjet/Mailjet/Send/DeliveryReceipt","kind":"struct","full_name":"Mailjet::Send::DeliveryReceipt","name":"DeliveryReceipt"},{"html_id":"mailjet/Mailjet/Send/ResponseMessage","kind":"struct","full_name":"Mailjet::Send::ResponseMessage","name":"ResponseMessage"},{"html_id":"mailjet/Mailjet/Send/SentMessage","kind":"struct","full_name":"Mailjet::Send::SentMessage","name":"SentMessage"},{"html_id":"mailjet/Mailjet/Sender/Address","kind":"struct","full_name":"Mailjet::Sender::Address","name":"Address"},{"html_id":"mailjet/Mailjet/Sender/CreateResponse","kind":"struct","full_name":"Mailjet::Sender::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Sender/FindResponse","kind":"struct","full_name":"Mailjet::Sender::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Sender/ListResponse","kind":"struct","full_name":"Mailjet::Sender::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Sender/UpdateResponse","kind":"struct","full_name":"Mailjet::Sender::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Statcounters/Counters","kind":"struct","full_name":"Mailjet::Statcounters::Counters","name":"Counters"},{"html_id":"mailjet/Mailjet/Statcounters/ListResponse","kind":"struct","full_name":"Mailjet::Statcounters::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Template/CreateResponse","kind":"struct","full_name":"Mailjet::Template::CreateResponse","name":"CreateResponse"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindResponse","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdateResponse","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdateResponse","name":"UpdateResponse"},{"html_id":"mailjet/Mailjet/Template/Details","kind":"struct","full_name":"Mailjet::Template::Details","name":"Details"},{"html_id":"mailjet/Mailjet/Template/FindResponse","kind":"struct","full_name":"Mailjet::Template::FindResponse","name":"FindResponse"},{"html_id":"mailjet/Mailjet/Template/ListResponse","kind":"struct","full_name":"Mailjet::Template::ListResponse","name":"ListResponse"},{"html_id":"mailjet/Mailjet/Template/UpdateResponse","kind":"struct","full_name":"Mailjet::Template::UpdateResponse","name":"UpdateResponse"}],"namespace":{"html_id":"mailjet/Mailjet/Json","kind":"struct","full_name":"Mailjet::Json","name":"Json"},"macros":[{"html_id":"json_fields(mapping)-macro","name":"json_fields","abstract":false,"args":[{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(mapping)","args_html":"(mapping)","location":{"filename":"src/mailjet/json/fields.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/fields.cr#L8"},"def":{"name":"json_fields","args":[{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% for name, type in mapping %}\n {% underscored = (name.gsub(/-/, \"_\")).underscore %}\n\n {% if type.id.starts_with?('{') %}\n @[JSON::Field(key: {{ name.id }},\n converter: {{ type[:converter].id }})]\n {% type = type[:type] %}\n {% else %}{% if [\"::Union(Time, ::Nil)\".id].includes?(type.id) %}\n @[JSON::Field(key: {{ name.id }},\n converter: Mailjet::Json::NilableTime)]\n {% else %}\n @[JSON::Field(key: {{ name.id }})]\n {% end %}{% end %}\n\n getter {{ underscored.id }} : {{ type }}\n {% end %}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Json/NilableTime","path":"Mailjet/Json/NilableTime.html","kind":"struct","full_name":"Mailjet::Json::NilableTime","name":"NilableTime","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L3"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Json","kind":"struct","full_name":"Mailjet::Json","name":"Json"},"class_methods":[{"html_id":"from_json(value:JSON::PullParser)-class-method","name":"from_json","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"JSON::PullParser"}],"args_string":"(value : JSON::PullParser)","args_html":"(value : JSON::PullParser)","location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":4,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L4"},"def":{"name":"from_json","args":[{"name":"value","external_name":"value","restriction":"JSON::PullParser"}],"visibility":"Public","body":"if value.kind.string? && (!(time_value = value.read_string).blank?)\n Time.parse_rfc3339(time_value.to_s)\nelse\n nil\nend"}},{"html_id":"to_json(value:self,json:JSON::Builder)-class-method","name":"to_json","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"self"},{"name":"json","external_name":"json","restriction":"JSON::Builder"}],"args_string":"(value : self, json : JSON::Builder)","args_html":"(value : self, json : JSON::Builder)","location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":12,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L12"},"def":{"name":"to_json","args":[{"name":"value","external_name":"value","restriction":"self"},{"name":"json","external_name":"json","restriction":"JSON::Builder"}],"visibility":"Public","body":"json.string(value.to_rfc3339)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L3"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/json/nilable_time.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/json/nilable_time.cr#L3"},"def":{"name":"initialize","visibility":"Public","body":""}}]}]},{"html_id":"mailjet/Mailjet/Listrecipient","path":"Mailjet/Listrecipient.html","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L13"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"A list recipient object manages the relationship between a contact and a\ncontactslist - every instance of a contact being added to a list creates a\nnew list recipient. Both the contact and the list need to be created\nbeforehand.\n\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_listrecipient\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_listrecipient_listrecipient_ID\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions/#v3_post_listrecipient\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_put_listrecipient_listrecipient_ID\nhttps://dev.mailjet.com/email/reference/contacts/subscriptions#v3_delete_listrecipient_listrecipient_ID\n","summary":"

A list recipient object manages the relationship between a contact and a contactslist - every instance of a contact being added to a list creates a new list recipient.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L27"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L47"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a listrecipient\n\n```\nMailjet::Listrecipient.delete(12345)\n```\n","summary":"

Delete a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L65"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L35"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L35"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L57"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L57"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Listrecipient/CreatePath","path":"Mailjet/Listrecipient/CreatePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/CreateResponse","path":"Mailjet/Listrecipient/CreateResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Create a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.create({\n is_unsubscribed: false,\n contact_alt: \"some@one.com\",\n list_id: 12345,\n})\n```\n","summary":"

Create a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/DeletePath","path":"Mailjet/Listrecipient/DeletePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":65,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L65"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Delete a listrecipient\n\n```\nMailjet::Listrecipient.delete(12345)\n```\n","summary":"

Delete a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/FindPath","path":"Mailjet/Listrecipient/FindPath.html","kind":"struct","full_name":"Mailjet::Listrecipient::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L35"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/FindResponse","path":"Mailjet/Listrecipient/FindResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L35"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.find(12345)\n```\n","summary":"

Find a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/Join","path":"Mailjet/Listrecipient/Join.html","kind":"struct","full_name":"Mailjet::Listrecipient::Join","name":"Join","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":67,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L67"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_active:Bool-instance-method","name":"is_active","abstract":false,"def":{"name":"is_active","return_type":"Bool","visibility":"Public","body":"@is_active"}},{"html_id":"is_unsubscribed:Bool-instance-method","name":"is_unsubscribed","abstract":false,"def":{"name":"is_unsubscribed","return_type":"Bool","visibility":"Public","body":"@is_unsubscribed"}},{"html_id":"list_id:Int32-instance-method","name":"list_id","abstract":false,"def":{"name":"list_id","return_type":"Int32","visibility":"Public","body":"@list_id"}},{"html_id":"list_name:String-instance-method","name":"list_name","abstract":false,"def":{"name":"list_name","return_type":"String","visibility":"Public","body":"@list_name"}},{"html_id":"subscribed_at:Union(Time,Nil)-instance-method","name":"subscribed_at","abstract":false,"def":{"name":"subscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@subscribed_at"}},{"html_id":"unsubscribed_at:Union(Time,Nil)-instance-method","name":"unsubscribed_at","abstract":false,"def":{"name":"unsubscribed_at","return_type":"::Union(Time, ::Nil)","visibility":"Public","body":"@unsubscribed_at"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ListPath","path":"Mailjet/Listrecipient/ListPath.html","kind":"struct","full_name":"Mailjet::Listrecipient::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ListResponse","path":"Mailjet/Listrecipient/ListResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":27,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L27"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Listrecipient.all\nlistrecipients = response.data\n# or\nresponse.each do |listrecipient|\n listrecipient.list_name\nend\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/ResponseData","path":"Mailjet/Listrecipient/ResponseData.html","kind":"alias","full_name":"Mailjet::Listrecipient::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":14,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L14"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Listrecipient::Join)","aliased_html":"Array(Mailjet::Listrecipient::Join)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"}},{"html_id":"mailjet/Mailjet/Listrecipient/UpdatePath","path":"Mailjet/Listrecipient/UpdatePath.html","kind":"struct","full_name":"Mailjet::Listrecipient::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L57"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Listrecipient/UpdateResponse","path":"Mailjet/Listrecipient/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Listrecipient::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/listrecipient.cr","line_number":57,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/listrecipient.cr#L57"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},"doc":"Update a listrecipient\n\n```\nlistrecipient = Mailjet::Listrecipient.update(12345, {\n is_unsubscribed: true,\n})\n```\n","summary":"

Update a listrecipient

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Message","path":"Mailjet/Message.html","kind":"struct","full_name":"Mailjet::Message","name":"Message","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Every time you send an email via Mailjet, a new message object is created.\nThe resources below help you retrieve details about these messages - sending\ntime, delivery and contact engagement info, recipients, message size, etc.\n\nhttps://dev.mailjet.com/email/reference/messages/\n","summary":"

Every time you send an email via Mailjet, a new message object is created.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L23"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L31"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L31"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Message/Details","path":"Mailjet/Message/Details.html","kind":"struct","full_name":"Mailjet::Message::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L33"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"arrived_at:Time-instance-method","name":"arrived_at","abstract":false,"def":{"name":"arrived_at","return_type":"Time","visibility":"Public","body":"@arrived_at"}},{"html_id":"attachment_count:Int32-instance-method","name":"attachment_count","abstract":false,"def":{"name":"attachment_count","return_type":"Int32","visibility":"Public","body":"@attachment_count"}},{"html_id":"attempt_count:Int32-instance-method","name":"attempt_count","abstract":false,"def":{"name":"attempt_count","return_type":"Int32","visibility":"Public","body":"@attempt_count"}},{"html_id":"contact_alt:String-instance-method","name":"contact_alt","abstract":false,"def":{"name":"contact_alt","return_type":"String","visibility":"Public","body":"@contact_alt"}},{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"delay:Int32-instance-method","name":"delay","abstract":false,"def":{"name":"delay","return_type":"Int32","visibility":"Public","body":"@delay"}},{"html_id":"destination_id:Int32-instance-method","name":"destination_id","abstract":false,"def":{"name":"destination_id","return_type":"Int32","visibility":"Public","body":"@destination_id"}},{"html_id":"filter_time:Int32-instance-method","name":"filter_time","abstract":false,"def":{"name":"filter_time","return_type":"Int32","visibility":"Public","body":"@filter_time"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"is_click_tracked:Bool-instance-method","name":"is_click_tracked","abstract":false,"def":{"name":"is_click_tracked","return_type":"Bool","visibility":"Public","body":"@is_click_tracked"}},{"html_id":"is_html_part_included:Bool-instance-method","name":"is_html_part_included","abstract":false,"def":{"name":"is_html_part_included","return_type":"Bool","visibility":"Public","body":"@is_html_part_included"}},{"html_id":"is_open_tracked:Bool-instance-method","name":"is_open_tracked","abstract":false,"def":{"name":"is_open_tracked","return_type":"Bool","visibility":"Public","body":"@is_open_tracked"}},{"html_id":"is_text_part_included:Bool-instance-method","name":"is_text_part_included","abstract":false,"def":{"name":"is_text_part_included","return_type":"Bool","visibility":"Public","body":"@is_text_part_included"}},{"html_id":"is_unsub_tracked:Bool-instance-method","name":"is_unsub_tracked","abstract":false,"def":{"name":"is_unsub_tracked","return_type":"Bool","visibility":"Public","body":"@is_unsub_tracked"}},{"html_id":"message_size:Int32-instance-method","name":"message_size","abstract":false,"def":{"name":"message_size","return_type":"Int32","visibility":"Public","body":"@message_size"}},{"html_id":"sender_id:Int32-instance-method","name":"sender_id","abstract":false,"def":{"name":"sender_id","return_type":"Int32","visibility":"Public","body":"@sender_id"}},{"html_id":"spamass_rules:String-instance-method","name":"spamass_rules","abstract":false,"def":{"name":"spamass_rules","return_type":"String","visibility":"Public","body":"@spamass_rules"}},{"html_id":"spamassassin_score:Int32-instance-method","name":"spamassassin_score","abstract":false,"def":{"name":"spamassassin_score","return_type":"Int32","visibility":"Public","body":"@spamassassin_score"}},{"html_id":"state_permanent:Bool-instance-method","name":"state_permanent","abstract":false,"def":{"name":"state_permanent","return_type":"Bool","visibility":"Public","body":"@state_permanent"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"subject:String-instance-method","name":"subject","abstract":false,"def":{"name":"subject","return_type":"String","visibility":"Public","body":"@subject"}},{"html_id":"uuid:String-instance-method","name":"uuid","abstract":false,"def":{"name":"uuid","return_type":"String","visibility":"Public","body":"@uuid"}}]},{"html_id":"mailjet/Mailjet/Message/FindPath","path":"Mailjet/Message/FindPath.html","kind":"struct","full_name":"Mailjet::Message::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Message/FindResponse","path":"Mailjet/Message/FindResponse.html","kind":"struct","full_name":"Mailjet::Message::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch a message for the given id\n\n```\nmessage = Mailjet::Message.find(123456789)\n```\n","summary":"

Fetch a message for the given id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Message/ListPath","path":"Mailjet/Message/ListPath.html","kind":"struct","full_name":"Mailjet::Message::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L23"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Message/ListResponse","path":"Mailjet/Message/ListResponse.html","kind":"struct","full_name":"Mailjet::Message::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L23"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},"doc":"Fetch all messages\n\n```\nmessages = Mailjet::Message.all\n```\n\nOptionally with query params\n\n```\nmessages = Mailjet::Message.all({contact_alt: \"some@one.com\"})\n```\n","summary":"

Fetch all messages

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Message/ResponseData","path":"Mailjet/Message/ResponseData.html","kind":"alias","full_name":"Mailjet::Message::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/message.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/message.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Message::Details)","aliased_html":"Array(Mailjet::Message::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"}}]},{"html_id":"mailjet/Mailjet/Messagehistory","path":"Mailjet/Messagehistory.html","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the event history (sending, open, click etc.) for a specific\nmessage.\n\nhttps://dev.mailjet.com/email/reference/messages/#v3_get_messagehistory_message_ID\n","summary":"

Retrieve the event history (sending, open, click etc.) for a specific message.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"all(id:Int64|String,client:Client=Client.new)-class-method","name":"all","doc":"Convenience method allowing to pass the message id and returning the array\nof events directly\n\n```\nevents = Mailjet::Messagehistory.all(576460754655154659)\nevents.first.event_type\n# => \"opened\"\n```\n","summary":"

Convenience method allowing to pass the message id and returning the array of events directly

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"Int64 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : Int64 | String, client : Client = Client.new)","args_html":"(id : Int64 | String, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messagehistory.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L29"},"def":{"name":"all","args":[{"name":"id","external_name":"id","restriction":"Int64 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(params: {id: id}, client: client).data"}}],"types":[{"html_id":"mailjet/Mailjet/Messagehistory/Event","path":"Mailjet/Messagehistory/Event.html","kind":"struct","full_name":"Mailjet::Messagehistory::Event","name":"Event","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":36,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L36"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"comment:String-instance-method","name":"comment","abstract":false,"def":{"name":"comment","return_type":"String","visibility":"Public","body":"@comment"}},{"html_id":"event_at:Time-instance-method","name":"event_at","abstract":false,"def":{"name":"event_at","return_type":"Time","visibility":"Public","body":"@event_at"}},{"html_id":"event_type:String-instance-method","name":"event_type","abstract":false,"def":{"name":"event_type","return_type":"String","visibility":"Public","body":"@event_type"}},{"html_id":"state:String-instance-method","name":"state","abstract":false,"def":{"name":"state","return_type":"String","visibility":"Public","body":"@state"}},{"html_id":"useragent:String-instance-method","name":"useragent","abstract":false,"def":{"name":"useragent","return_type":"String","visibility":"Public","body":"@useragent"}},{"html_id":"useragent_id:Int32-instance-method","name":"useragent_id","abstract":false,"def":{"name":"useragent_id","return_type":"Int32","visibility":"Public","body":"@useragent_id"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ListPath","path":"Mailjet/Messagehistory/ListPath.html","kind":"struct","full_name":"Mailjet::Messagehistory::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ListResponse","path":"Mailjet/Messagehistory/ListResponse.html","kind":"struct","full_name":"Mailjet::Messagehistory::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},"doc":"Fetches the history of a message\n\n```\nresponse = Mailjet::Messagehistory.all(params: {id: 576460754655154659})\nresponse.data.first.event_type\n# => \"opened\"\n```\n","summary":"

Fetches the history of a message

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Messagehistory/ResponseData","path":"Mailjet/Messagehistory/ResponseData.html","kind":"alias","full_name":"Mailjet::Messagehistory::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/messagehistory.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messagehistory.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Messagehistory::Event)","aliased_html":"Array(Mailjet::Messagehistory::Event)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"}}]},{"html_id":"mailjet/Mailjet/Messageinformation","path":"Mailjet/Messageinformation.html","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve sending / size / spam information about all messages.\n\nhttps://dev.mailjet.com/email/reference/messages#v3_get_messageinformation\nhttps://dev.mailjet.com/email/reference/messages/#v3_get_messageinformation_message_ID\n","summary":"

Retrieve sending / size / spam information about all messages.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L21"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L31"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L31"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Messageinformation/FindPath","path":"Mailjet/Messageinformation/FindPath.html","kind":"struct","full_name":"Mailjet::Messageinformation::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/FindResponse","path":"Mailjet/Messageinformation/FindResponse.html","kind":"struct","full_name":"Mailjet::Messageinformation::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":31,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L31"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history for a given message id\n\n```\ninformation = Mailjet::Messageinformation.find(576460754655154659)\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history for a given message id

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/Info","path":"Mailjet/Messageinformation/Info.html","kind":"struct","full_name":"Mailjet::Messageinformation::Info","name":"Info","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L33"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"campaign_id:Int32-instance-method","name":"campaign_id","abstract":false,"def":{"name":"campaign_id","return_type":"Int32","visibility":"Public","body":"@campaign_id"}},{"html_id":"click_tracked_count:Int32-instance-method","name":"click_tracked_count","abstract":false,"def":{"name":"click_tracked_count","return_type":"Int32","visibility":"Public","body":"@click_tracked_count"}},{"html_id":"contact_id:Int32-instance-method","name":"contact_id","abstract":false,"def":{"name":"contact_id","return_type":"Int32","visibility":"Public","body":"@contact_id"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"id:Int64-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int64","visibility":"Public","body":"@id"}},{"html_id":"message_size:Int32-instance-method","name":"message_size","abstract":false,"def":{"name":"message_size","return_type":"Int32","visibility":"Public","body":"@message_size"}},{"html_id":"open_tracked_count:Int32-instance-method","name":"open_tracked_count","abstract":false,"def":{"name":"open_tracked_count","return_type":"Int32","visibility":"Public","body":"@open_tracked_count"}},{"html_id":"queued_count:Int32-instance-method","name":"queued_count","abstract":false,"def":{"name":"queued_count","return_type":"Int32","visibility":"Public","body":"@queued_count"}},{"html_id":"send_end_at:Time-instance-method","name":"send_end_at","abstract":false,"def":{"name":"send_end_at","return_type":"Time","visibility":"Public","body":"@send_end_at"}},{"html_id":"sent_count:Int32-instance-method","name":"sent_count","abstract":false,"def":{"name":"sent_count","return_type":"Int32","visibility":"Public","body":"@sent_count"}},{"html_id":"spam_assassin_rules:Hash(String,String|Int32)-instance-method","name":"spam_assassin_rules","abstract":false,"def":{"name":"spam_assassin_rules","return_type":"Hash(String, String | Int32)","visibility":"Public","body":"@spam_assassin_rules"}},{"html_id":"spam_assassin_score:Int32-instance-method","name":"spam_assassin_score","abstract":false,"def":{"name":"spam_assassin_score","return_type":"Int32","visibility":"Public","body":"@spam_assassin_score"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ListPath","path":"Mailjet/Messageinformation/ListPath.html","kind":"struct","full_name":"Mailjet::Messageinformation::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ListResponse","path":"Mailjet/Messageinformation/ListResponse.html","kind":"struct","full_name":"Mailjet::Messageinformation::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},"doc":"Fetches the history of all messages between two dates\n\n```\ninformation = Mailjet::Messageinformation.all({\n from_ts: Time.local.at_beginning_of_week.to_rfc3339,\n to_ts: Time.local.to_rfc3339,\n})\ninformation.data.first.spam_assassin_score\n=> 0\n```\n","summary":"

Fetches the history of all messages between two dates

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Messageinformation/ResponseData","path":"Mailjet/Messageinformation/ResponseData.html","kind":"alias","full_name":"Mailjet::Messageinformation::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/messageinformation.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/messageinformation.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Messageinformation::Info)","aliased_html":"Array(Mailjet::Messageinformation::Info)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"}}]},{"html_id":"mailjet/Mailjet/Metasender","path":"Mailjet/Metasender.html","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Metasender objects are senders, which can be used on the master account as\nwell as all sub-account API Keys. Use the resources below to manage your\nmetasenders.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/metasender/\n","summary":"

Metasender objects are senders, which can be used on the master account as well as all sub-account API Keys.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L37"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L47"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L47"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Metasender/CreatePath","path":"Mailjet/Metasender/CreatePath.html","kind":"struct","full_name":"Mailjet::Metasender::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/CreateResponse","path":"Mailjet/Metasender/CreateResponse.html","kind":"struct","full_name":"Mailjet::Metasender::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":37,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L37"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Create a metasender\n\n```\nmetasender = Mailjet::Metasender.create({\n description: \"Metasender 2 - used for Promo emails\",\n email: \"info@some.one\",\n})\n```\n","summary":"

Create a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Metasender/Details","path":"Mailjet/Metasender/Details.html","kind":"struct","full_name":"Mailjet::Metasender::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":49,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L49"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"filename:String-instance-method","name":"filename","abstract":false,"def":{"name":"filename","return_type":"String","visibility":"Public","body":"@filename"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_enabled:Bool-instance-method","name":"is_enabled","abstract":false,"def":{"name":"is_enabled","return_type":"Bool","visibility":"Public","body":"@is_enabled"}}]},{"html_id":"mailjet/Mailjet/Metasender/FindPath","path":"Mailjet/Metasender/FindPath.html","kind":"struct","full_name":"Mailjet::Metasender::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/FindResponse","path":"Mailjet/Metasender/FindResponse.html","kind":"struct","full_name":"Mailjet::Metasender::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find a metasender\n\n```\nmetasender = Mailjet::Metasender.find(112334)\n```\n","summary":"

Find a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Metasender/ListPath","path":"Mailjet/Metasender/ListPath.html","kind":"struct","full_name":"Mailjet::Metasender::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/ListResponse","path":"Mailjet/Metasender/ListResponse.html","kind":"struct","full_name":"Mailjet::Metasender::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Find all metasenders\n\n```\nresponse = Mailjet::Metasender.all\nmetasenders = response.data\n```\n","summary":"

Find all metasenders

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Metasender/ResponseData","path":"Mailjet/Metasender/ResponseData.html","kind":"alias","full_name":"Mailjet::Metasender::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Metasender::Details)","aliased_html":"Array(Mailjet::Metasender::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"}},{"html_id":"mailjet/Mailjet/Metasender/UpdatePath","path":"Mailjet/Metasender/UpdatePath.html","kind":"struct","full_name":"Mailjet::Metasender::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Metasender/UpdateResponse","path":"Mailjet/Metasender/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Metasender::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/metasender.cr","line_number":47,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/metasender.cr#L47"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},"doc":"Update a metasender\n\n```\nmetasender = Mailjet::Metasender.update(112334, {\n email: \"info@someone.com\",\n})\n```\n","summary":"

Update a metasender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/MethodNotAllowedException","path":"Mailjet/MethodNotAllowedException.html","kind":"class","full_name":"Mailjet::MethodNotAllowedException","name":"MethodNotAllowedException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/MissingApiCredentialsException","path":"Mailjet/MissingApiCredentialsException.html","kind":"class","full_name":"Mailjet::MissingApiCredentialsException","name":"MissingApiCredentialsException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":46,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L46"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/ParamsMissingException","path":"Mailjet/ParamsMissingException.html","kind":"class","full_name":"Mailjet::ParamsMissingException","name":"ParamsMissingException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Path","path":"Mailjet/Path.html","kind":"struct","full_name":"Mailjet::Path","name":"Path","abstract":true,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/path.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/Campaign/FindPath","kind":"struct","full_name":"Mailjet::Campaign::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaign/ListPath","kind":"struct","full_name":"Mailjet::Campaign::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Campaign/UpdatePath","kind":"struct","full_name":"Mailjet::Campaign::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Campaigndraft/CreatePath","kind":"struct","full_name":"Mailjet::Campaigndraft::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent/FindPath","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/FindPath","kind":"struct","full_name":"Mailjet::Campaigndraft::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/ListPath","kind":"struct","full_name":"Mailjet::Campaigndraft::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Campaigndraft/UpdatePath","kind":"struct","full_name":"Mailjet::Campaigndraft::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contact/CreatePath","kind":"struct","full_name":"Mailjet::Contact::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contact/FindPath","kind":"struct","full_name":"Mailjet::Contact::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contact/List/ListPath","kind":"struct","full_name":"Mailjet::Contact::List::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contact/ListPath","kind":"struct","full_name":"Mailjet::Contact::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contact/UpdatePath","kind":"struct","full_name":"Mailjet::Contact::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contactfilter/CreatePath","kind":"struct","full_name":"Mailjet::Contactfilter::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contactfilter/DeletePath","kind":"struct","full_name":"Mailjet::Contactfilter::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Contactfilter/FindPath","kind":"struct","full_name":"Mailjet::Contactfilter::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contactfilter/ListPath","kind":"struct","full_name":"Mailjet::Contactfilter::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contactfilter/UpdatePath","kind":"struct","full_name":"Mailjet::Contactfilter::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Contactlist/CreatePath","kind":"struct","full_name":"Mailjet::Contactlist::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Contactlist/DeletePath","kind":"struct","full_name":"Mailjet::Contactlist::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Contactlist/FindPath","kind":"struct","full_name":"Mailjet::Contactlist::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Contactlist/ListPath","kind":"struct","full_name":"Mailjet::Contactlist::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Contactlist/UpdatePath","kind":"struct","full_name":"Mailjet::Contactlist::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/DNS/FindPath","kind":"struct","full_name":"Mailjet::DNS::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/DNS/ListPath","kind":"struct","full_name":"Mailjet::DNS::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/CreatePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/DeletePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/FindPath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/ListPath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Eventcallbackurl/UpdatePath","kind":"struct","full_name":"Mailjet::Eventcallbackurl::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Listrecipient/CreatePath","kind":"struct","full_name":"Mailjet::Listrecipient::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Listrecipient/DeletePath","kind":"struct","full_name":"Mailjet::Listrecipient::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Listrecipient/FindPath","kind":"struct","full_name":"Mailjet::Listrecipient::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Listrecipient/ListPath","kind":"struct","full_name":"Mailjet::Listrecipient::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Listrecipient/UpdatePath","kind":"struct","full_name":"Mailjet::Listrecipient::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Message/FindPath","kind":"struct","full_name":"Mailjet::Message::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Message/ListPath","kind":"struct","full_name":"Mailjet::Message::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Messagehistory/ListPath","kind":"struct","full_name":"Mailjet::Messagehistory::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Messageinformation/FindPath","kind":"struct","full_name":"Mailjet::Messageinformation::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Messageinformation/ListPath","kind":"struct","full_name":"Mailjet::Messageinformation::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Metasender/CreatePath","kind":"struct","full_name":"Mailjet::Metasender::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Metasender/FindPath","kind":"struct","full_name":"Mailjet::Metasender::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Metasender/ListPath","kind":"struct","full_name":"Mailjet::Metasender::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Metasender/UpdatePath","kind":"struct","full_name":"Mailjet::Metasender::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Sender/CreatePath","kind":"struct","full_name":"Mailjet::Sender::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Sender/DeletePath","kind":"struct","full_name":"Mailjet::Sender::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Sender/FindPath","kind":"struct","full_name":"Mailjet::Sender::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Sender/ListPath","kind":"struct","full_name":"Mailjet::Sender::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Sender/UpdatePath","kind":"struct","full_name":"Mailjet::Sender::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Statcounters/ListPath","kind":"struct","full_name":"Mailjet::Statcounters::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Template/CreatePath","kind":"struct","full_name":"Mailjet::Template::CreatePath","name":"CreatePath"},{"html_id":"mailjet/Mailjet/Template/DeletePath","kind":"struct","full_name":"Mailjet::Template::DeletePath","name":"DeletePath"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindPath","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdatePath","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdatePath","name":"UpdatePath"},{"html_id":"mailjet/Mailjet/Template/FindPath","kind":"struct","full_name":"Mailjet::Template::FindPath","name":"FindPath"},{"html_id":"mailjet/Mailjet/Template/ListPath","kind":"struct","full_name":"Mailjet::Template::ListPath","name":"ListPath"},{"html_id":"mailjet/Mailjet/Template/UpdatePath","kind":"struct","full_name":"Mailjet::Template::UpdatePath","name":"UpdatePath"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new(params:Hash|NamedTuple=Hash(String,String).new)-class-method","name":"new","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new)","location":{"filename":"src/mailjet/path.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L7"},"def":{"name":"new","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"_ = allocate\n_.initialize(params)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"params:Hash(String,String)-instance-method","name":"params","abstract":false,"location":{"filename":"src/mailjet/path.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L3"},"def":{"name":"params","return_type":"Hash(String, String)","visibility":"Public","body":"@params"}},{"html_id":"pattern-instance-method","name":"pattern","abstract":true,"location":{"filename":"src/mailjet/path.cr","line_number":5,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L5"},"def":{"name":"pattern","visibility":"Public","body":""}},{"html_id":"to_s:String-instance-method","name":"to_s","doc":"Returns a nicely readable and concise string representation of this object,\ntypically intended for users.\n\nThis method should usually **not** be overridden. It delegates to\n`#to_s(IO)` which can be overridden for custom implementations.\n\nAlso see `#inspect`.","summary":"

Returns a nicely readable and concise string representation of this object, typically intended for users.

","abstract":false,"location":{"filename":"src/mailjet/path.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/path.cr#L11"},"def":{"name":"to_s","return_type":"String","visibility":"Public","body":"path = \"/:version/#{pattern.lchop(\"/\")}\"\n(path.scan(/:([a-z_]+)/)).each do |match|\n if value = @params[match[1]]?\n path = path.gsub(match[0], value)\n else\n raise(ParamsMissingException.new(\"Missing param \\\"#{match[1]}\\\"\"))\n end\nend\npath\n"}}]},{"html_id":"mailjet/Mailjet/RequestException","path":"Mailjet/RequestException.html","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":22,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L22"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/ResourceNotFoundException","kind":"class","full_name":"Mailjet::ResourceNotFoundException","name":"ResourceNotFoundException"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"The error info value may return anything from a string to an array of\nhashes, so some juggling is needed to drill down to the actual errors. Here\nis an example:\n\n```\ncase exception.error_info\nwhen String\n puts exception.error_info\nwhen Mailjet::Exception::ErrorInfoArray\n if contactslists = exception.error_info[\"ContactsLists\"]?\n puts contactslists.map(&.[\"Error\"]).join(\", \")\n end\nend\n```\n","summary":"

The error info value may return anything from a string to an array of hashes, so some juggling is needed to drill down to the actual errors.

","constructors":[{"html_id":"new(__temp_78:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"__temp_78","external_name":"__temp_78","restriction":"::JSON::PullParser"}],"args_string":"(__temp_78 : JSON::PullParser)","args_html":"(__temp_78 : JSON::PullParser)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"new","args":[{"name":"__temp_78","external_name":"__temp_78","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"_ = allocate\n_.initialize(__temp_78)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"error_info:Exception::ErrorInfo-instance-method","name":"error_info","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"error_info","return_type":"Exception::ErrorInfo","visibility":"Public","body":"@error_info"}},{"html_id":"error_info=(_error_info:Exception::ErrorInfo)-instance-method","name":"error_info=","abstract":false,"args":[{"name":"_error_info","external_name":"_error_info","restriction":"Exception::ErrorInfo"}],"args_string":"(_error_info : Exception::ErrorInfo)","args_html":"(_error_info : Exception::ErrorInfo)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"error_info=","args":[{"name":"_error_info","external_name":"_error_info","restriction":"Exception::ErrorInfo"}],"visibility":"Public","body":"@error_info = _error_info"}},{"html_id":"error_message:Union(String,Nil)-instance-method","name":"error_message","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"error_message","return_type":"::Union(String, ::Nil)","visibility":"Public","body":"@error_message"}},{"html_id":"error_message=(_error_message:Union(String,Nil))-instance-method","name":"error_message=","abstract":false,"args":[{"name":"_error_message","external_name":"_error_message","restriction":"::Union(String, ::Nil)"}],"args_string":"(_error_message : Union(String, Nil))","args_html":"(_error_message : Union(String, Nil))","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"error_message=","args":[{"name":"_error_message","external_name":"_error_message","restriction":"::Union(String, ::Nil)"}],"visibility":"Public","body":"@error_message = _error_message"}},{"html_id":"message-instance-method","name":"message","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":29,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L29"},"def":{"name":"message","visibility":"Public","body":"\"#{error_message} (#{status_code})\""}},{"html_id":"status_code:Union(Int32,Nil)-instance-method","name":"status_code","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"status_code","return_type":"::Union(Int32, ::Nil)","visibility":"Public","body":"@status_code"}},{"html_id":"status_code=(_status_code:Union(Int32,Nil))-instance-method","name":"status_code=","abstract":false,"args":[{"name":"_status_code","external_name":"_status_code","restriction":"::Union(Int32, ::Nil)"}],"args_string":"(_status_code : Union(Int32, Nil))","args_html":"(_status_code : Union(Int32, Nil))","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"status_code=","args":[{"name":"_status_code","external_name":"_status_code","restriction":"::Union(Int32, ::Nil)"}],"visibility":"Public","body":"@status_code = _status_code"}},{"html_id":"to_json(json:JSON::Builder)-instance-method","name":"to_json","abstract":false,"args":[{"name":"json","external_name":"json","restriction":"::JSON::Builder"}],"args_string":"(json : JSON::Builder)","args_html":"(json : JSON::Builder)","location":{"filename":"src/mailjet/exception.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L23"},"def":{"name":"to_json","args":[{"name":"json","external_name":"json","restriction":"::JSON::Builder"}],"visibility":"Public","body":"json.object do\n _error_message = @error_message\n if _error_message.nil?\n else\n json.field(\"ErrorMessage\") do\n _error_message.to_json(json)\n end\n end\n _error_info = @error_info\n if _error_info.nil?\n else\n json.field(\"ErrorInfo\") do\n _error_info.to_json(json)\n end\n end\n _status_code = @status_code\n if _status_code.nil?\n else\n json.field(\"StatusCode\") do\n _status_code.to_json(json)\n end\n end\nend"}},{"html_id":"to_s-instance-method","name":"to_s","doc":"Returns a nicely readable and concise string representation of this object,\ntypically intended for users.\n\nThis method should usually **not** be overridden. It delegates to\n`#to_s(IO)` which can be overridden for custom implementations.\n\nAlso see `#inspect`.","summary":"

Returns a nicely readable and concise string representation of this object, typically intended for users.

","abstract":false,"location":{"filename":"src/mailjet/exception.cr","line_number":33,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L33"},"def":{"name":"to_s","visibility":"Public","body":"message"}}]},{"html_id":"mailjet/Mailjet/RequestTimeoutException","path":"Mailjet/RequestTimeoutException.html","kind":"class","full_name":"Mailjet::RequestTimeoutException","name":"RequestTimeoutException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},"ancestors":[{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":40,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L40"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Resource","path":"Mailjet/Resource.html","kind":"struct","full_name":"Mailjet::Resource","name":"Resource","abstract":true,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/Campaign","kind":"struct","full_name":"Mailjet::Campaign","name":"Campaign"},{"html_id":"mailjet/Mailjet/Campaigndraft","kind":"struct","full_name":"Mailjet::Campaigndraft","name":"Campaigndraft"},{"html_id":"mailjet/Mailjet/Campaigndraft/Detailcontent","kind":"struct","full_name":"Mailjet::Campaigndraft::Detailcontent","name":"Detailcontent"},{"html_id":"mailjet/Mailjet/Contact","kind":"struct","full_name":"Mailjet::Contact","name":"Contact"},{"html_id":"mailjet/Mailjet/Contact/List","kind":"struct","full_name":"Mailjet::Contact::List","name":"List"},{"html_id":"mailjet/Mailjet/Contact/Managecontactlists","kind":"struct","full_name":"Mailjet::Contact::Managecontactlists","name":"Managecontactlists"},{"html_id":"mailjet/Mailjet/Contactfilter","kind":"struct","full_name":"Mailjet::Contactfilter","name":"Contactfilter"},{"html_id":"mailjet/Mailjet/Contactlist","kind":"struct","full_name":"Mailjet::Contactlist","name":"Contactlist"},{"html_id":"mailjet/Mailjet/DNS","kind":"struct","full_name":"Mailjet::DNS","name":"DNS"},{"html_id":"mailjet/Mailjet/DNS/Check","kind":"struct","full_name":"Mailjet::DNS::Check","name":"Check"},{"html_id":"mailjet/Mailjet/Eventcallbackurl","kind":"struct","full_name":"Mailjet::Eventcallbackurl","name":"Eventcallbackurl"},{"html_id":"mailjet/Mailjet/Listrecipient","kind":"struct","full_name":"Mailjet::Listrecipient","name":"Listrecipient"},{"html_id":"mailjet/Mailjet/Message","kind":"struct","full_name":"Mailjet::Message","name":"Message"},{"html_id":"mailjet/Mailjet/Messagehistory","kind":"struct","full_name":"Mailjet::Messagehistory","name":"Messagehistory"},{"html_id":"mailjet/Mailjet/Messageinformation","kind":"struct","full_name":"Mailjet::Messageinformation","name":"Messageinformation"},{"html_id":"mailjet/Mailjet/Metasender","kind":"struct","full_name":"Mailjet::Metasender","name":"Metasender"},{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},{"html_id":"mailjet/Mailjet/Sender/Validate","kind":"struct","full_name":"Mailjet::Sender::Validate","name":"Validate"},{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/resource.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}],"macros":[{"html_id":"can_create(pattern,mapping)-macro","name":"can_create","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":70,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L70"},"def":{"name":"can_create","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.create(\n payload : Hash | NamedTuple,\n params : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = CreatePath.new(params).to_s\n response = client.handle_api_call(\"POST\", path,\n payload: Utilities.to_camelcased_hash(payload))\n\n CreateResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n\n struct CreateResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct CreatePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_delete(pattern)-macro","name":"can_delete","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""}],"args_string":"(pattern)","args_html":"(pattern)","location":{"filename":"src/mailjet/resource.cr","line_number":138,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L138"},"def":{"name":"can_delete","args":[{"name":"pattern","external_name":"pattern","restriction":""}],"visibility":"Public","body":" def self.delete(\n id : ResourceId,\n client : Client = Client.new\n )\n path = DeletePath.new(\n{id: id}).to_s\n client.handle_api_call(\"DELETE\", path)\n nil\n \nend\n\n struct DeletePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_find(pattern,mapping)-macro","name":"can_find","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":34,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L34"},"def":{"name":"can_find","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.find(\n params : Hash | NamedTuple = Hash(String, String).new,\n query : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = FindPath.new(params).to_s\n response = client.handle_api_call(\"GET\", path, query: query)\n\n FindResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n\n def self.find(\n id : ResourceId,\n query : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n find(\n{id: id}, query: query, client: client)\n \nend\n\n struct FindResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct FindPath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_list(pattern,mapping)-macro","name":"can_list","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L3"},"def":{"name":"can_list","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Count: Int32, Data: mapping, Total: Int32} %}\n {% end %}\n\n\n def self.all(\n query : Hash | NamedTuple = Hash(String, String).new,\n params : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = ListPath.new(params).to_s\n response = client.handle_api_call(\"GET\", path, query: query)\n\n ListResponse.from_json(response)\n \nend\n\n struct ListResponse\n include Mailjet::Json::Fields\n\n \n{% if mapping.keys.includes?(\"Data\".id) %}\n forward_missing_to data\n {% end %}\n\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct ListPath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}},{"html_id":"can_update(pattern,mapping)-macro","name":"can_update","abstract":false,"args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"args_string":"(pattern, mapping)","args_html":"(pattern, mapping)","location":{"filename":"src/mailjet/resource.cr","line_number":99,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resource.cr#L99"},"def":{"name":"can_update","args":[{"name":"pattern","external_name":"pattern","restriction":""},{"name":"mapping","external_name":"mapping","restriction":""}],"visibility":"Public","body":" \n{% if mapping.id.stringify.starts_with?('{') %}{% else %}\n {% mapping = {Data: mapping} %}\n {% end %}\n\n\n def self.update(\n params : Hash | NamedTuple = Hash(String, String).new,\n payload : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n path = UpdatePath.new(params).to_s\n response = client.handle_api_call(\"PUT\", path,\n payload: Utilities.to_camelcased_hash(payload))\n\n unless response.empty?\n UpdateResponse.from_json(response)\n \n{% if mapping.keys.includes?(\"Data\".id) %}.data.first{% end %}\n\n \nend\n \nend\n\n def self.update(\n id : ResourceId,\n payload : Hash | NamedTuple = Hash(String, String).new,\n client : Client = Client.new\n )\n update(\n{id: id}, payload: payload, client: client)\n \nend\n\n struct UpdateResponse\n include Mailjet::Json::Fields\n\n json_fields(\n{{ mapping }}\n)\n \nend\n\n struct UpdatePath < Mailjet::Path\n getter pattern = \n{{ pattern }}\n\n \nend\n \n"}}]},{"html_id":"mailjet/Mailjet/ResourceId","path":"Mailjet/ResourceId.html","kind":"alias","full_name":"Mailjet::ResourceId","name":"ResourceId","abstract":false,"locations":[{"filename":"src/mailjet/alias.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/alias.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"(Int32 | Int64 | String)","aliased_html":"Int32 | Int64 | String","const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/ResourceNotFoundException","path":"Mailjet/ResourceNotFoundException.html","kind":"class","full_name":"Mailjet::ResourceNotFoundException","name":"ResourceNotFoundException","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},"ancestors":[{"html_id":"mailjet/Mailjet/RequestException","kind":"class","full_name":"Mailjet::RequestException","name":"RequestException"},{"html_id":"mailjet/Mailjet/Exception","kind":"class","full_name":"Mailjet::Exception","name":"Exception"},{"html_id":"mailjet/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"mailjet/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/exception.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/exception.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"}},{"html_id":"mailjet/Mailjet/Send","path":"Mailjet/Send.html","kind":"struct","full_name":"Mailjet::Send","name":"Send","abstract":true,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"mailjet/Mailjet/SendV3","kind":"struct","full_name":"Mailjet::SendV3","name":"SendV3"},{"html_id":"mailjet/Mailjet/SendV3_1","kind":"struct","full_name":"Mailjet::SendV3_1","name":"SendV3_1"}],"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Send API v3 and v3.1 are part of Mailjet's transactional messaging suite.\nSend API v3.1 (`Mailjet::SendV3_1`) gives more detailed feedback information\non your sendings, while Send API v3 (`Mailjet::SendV3`) gives you a higher\nsending limit per single API call.\n\nhttps://dev.mailjet.com/email/reference/send-emails/\n","summary":"

Send API v3 and v3.1 are part of Mailjet's transactional messaging suite.

","class_methods":[{"html_id":"message(message:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"message","doc":"Deliver a single message\n\n```\nMailjet::SendV3.message({...})\n# or\nMailjet::SendV3_1.message({...})\n```\n","summary":"

Deliver a single message

","abstract":false,"args":[{"name":"message","external_name":"message","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(message : Hash | NamedTuple, client : Client = Client.new)","args_html":"(message : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L18"},"def":{"name":"message","args":[{"name":"message","external_name":"message","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(self.messages([message], client)).first"}}],"types":[{"html_id":"mailjet/Mailjet/Send/DeliveryError","path":"Mailjet/Send/DeliveryError.html","kind":"struct","full_name":"Mailjet::Send::DeliveryError","name":"DeliveryError","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":59,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L59"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"error_code:String-instance-method","name":"error_code","abstract":false,"def":{"name":"error_code","return_type":"String","visibility":"Public","body":"@error_code"}},{"html_id":"error_identifier:String-instance-method","name":"error_identifier","abstract":false,"def":{"name":"error_identifier","return_type":"String","visibility":"Public","body":"@error_identifier"}},{"html_id":"error_message:String-instance-method","name":"error_message","abstract":false,"def":{"name":"error_message","return_type":"String","visibility":"Public","body":"@error_message"}},{"html_id":"error_related_to:Array(String)-instance-method","name":"error_related_to","abstract":false,"def":{"name":"error_related_to","return_type":"Array(String)","visibility":"Public","body":"@error_related_to"}},{"html_id":"status_code:Int32-instance-method","name":"status_code","abstract":false,"def":{"name":"status_code","return_type":"Int32","visibility":"Public","body":"@status_code"}}]},{"html_id":"mailjet/Mailjet/Send/DeliveryReceipt","path":"Mailjet/Send/DeliveryReceipt.html","kind":"struct","full_name":"Mailjet::Send::DeliveryReceipt","name":"DeliveryReceipt","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":48,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L48"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"message_href:String-instance-method","name":"message_href","abstract":false,"def":{"name":"message_href","return_type":"String","visibility":"Public","body":"@message_href"}},{"html_id":"message_id:Int64-instance-method","name":"message_id","abstract":false,"def":{"name":"message_id","return_type":"Int64","visibility":"Public","body":"@message_id"}},{"html_id":"message_uuid:String-instance-method","name":"message_uuid","abstract":false,"def":{"name":"message_uuid","return_type":"String","visibility":"Public","body":"@message_uuid"}}]},{"html_id":"mailjet/Mailjet/Send/ResponseMessage","path":"Mailjet/Send/ResponseMessage.html","kind":"struct","full_name":"Mailjet::Send::ResponseMessage","name":"ResponseMessage","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":25,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L25"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"bcc:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"bcc","abstract":false,"def":{"name":"bcc","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@bcc"}},{"html_id":"cc:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"cc","abstract":false,"def":{"name":"cc","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@cc"}},{"html_id":"custom_id:Union(String,Nil)-instance-method","name":"custom_id","abstract":false,"def":{"name":"custom_id","return_type":"::Union(String, ::Nil)","visibility":"Public","body":"@custom_id"}},{"html_id":"errors:Union(Array(DeliveryError),Nil)-instance-method","name":"errors","abstract":false,"def":{"name":"errors","return_type":"::Union(Array(DeliveryError), ::Nil)","visibility":"Public","body":"@errors"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}},{"html_id":"to:Union(Array(DeliveryReceipt),Nil)-instance-method","name":"to","abstract":false,"def":{"name":"to","return_type":"::Union(Array(DeliveryReceipt), ::Nil)","visibility":"Public","body":"@to"}}]},{"html_id":"mailjet/Mailjet/Send/SentMessage","path":"Mailjet/Send/SentMessage.html","kind":"struct","full_name":"Mailjet::Send::SentMessage","name":"SentMessage","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L38"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"message_id:Int64-instance-method","name":"message_id","abstract":false,"def":{"name":"message_id","return_type":"Int64","visibility":"Public","body":"@message_id"}},{"html_id":"message_uuid:String-instance-method","name":"message_uuid","abstract":false,"def":{"name":"message_uuid","return_type":"String","visibility":"Public","body":"@message_uuid"}}]}]},{"html_id":"mailjet/Mailjet/Sender","path":"Mailjet/Sender.html","kind":"struct","full_name":"Mailjet::Sender","name":"Sender","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L7"},{"filename":"src/mailjet/resources/sender/validate.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender/validate.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Senders objects are used to select the From email address for the emails\nyou are sending. Use the resources below to manage and validate your senders.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/sender/\n","summary":"

Senders objects are used to select the From email address for the emails you are sending.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L39"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a sender\n\n```\nMailjet::Sender.delete(1324)\n```\n","summary":"

Delete a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L60"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L52"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L52"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Sender/Address","path":"Mailjet/Sender/Address.html","kind":"struct","full_name":"Mailjet::Sender::Address","name":"Address","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":62,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L62"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"dnsid:Int64-instance-method","name":"dnsid","abstract":false,"def":{"name":"dnsid","return_type":"Int64","visibility":"Public","body":"@dnsid"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"email_type:String-instance-method","name":"email_type","abstract":false,"def":{"name":"email_type","return_type":"String","visibility":"Public","body":"@email_type"}},{"html_id":"filename:String-instance-method","name":"filename","abstract":false,"def":{"name":"filename","return_type":"String","visibility":"Public","body":"@filename"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_default_sender:Bool-instance-method","name":"is_default_sender","abstract":false,"def":{"name":"is_default_sender","return_type":"Bool","visibility":"Public","body":"@is_default_sender"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"status:String-instance-method","name":"status","abstract":false,"def":{"name":"status","return_type":"String","visibility":"Public","body":"@status"}}]},{"html_id":"mailjet/Mailjet/Sender/CreatePath","path":"Mailjet/Sender/CreatePath.html","kind":"struct","full_name":"Mailjet::Sender::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/CreateResponse","path":"Mailjet/Sender/CreateResponse.html","kind":"struct","full_name":"Mailjet::Sender::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":39,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L39"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Create a sender\n\n```\nsender = Mailjet::Sender.create({\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Create a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/DeletePath","path":"Mailjet/Sender/DeletePath.html","kind":"struct","full_name":"Mailjet::Sender::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Delete a sender\n\n```\nMailjet::Sender.delete(1324)\n```\n","summary":"

Delete a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/FindPath","path":"Mailjet/Sender/FindPath.html","kind":"struct","full_name":"Mailjet::Sender::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/FindResponse","path":"Mailjet/Sender/FindResponse.html","kind":"struct","full_name":"Mailjet::Sender::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find a sender\n\n```\nsender = Mailjet::Sender.find(1324)\n```\n","summary":"

Find a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/ListPath","path":"Mailjet/Sender/ListPath.html","kind":"struct","full_name":"Mailjet::Sender::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/ListResponse","path":"Mailjet/Sender/ListResponse.html","kind":"struct","full_name":"Mailjet::Sender::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Find all senders\n\n```\nresponse = Mailjet::Sender.all\nsenders = response.data\naddresses = response.map(&.email)\n```\n","summary":"

Find all senders

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Sender/ResponseData","path":"Mailjet/Sender/ResponseData.html","kind":"alias","full_name":"Mailjet::Sender::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Sender::Address)","aliased_html":"Array(Mailjet::Sender::Address)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"}},{"html_id":"mailjet/Mailjet/Sender/UpdatePath","path":"Mailjet/Sender/UpdatePath.html","kind":"struct","full_name":"Mailjet::Sender::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Sender/UpdateResponse","path":"Mailjet/Sender/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Sender::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender.cr","line_number":52,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender.cr#L52"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Update a sender\n\n```\nsender = Mailjet::Sender.update(1324, {\n email_type: \"transactional\",\n is_default_sender: true,\n name: \"Sender1\",\n email: \"user@example.com\",\n})\n```\n","summary":"

Update a sender

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Sender/Validate","path":"Mailjet/Sender/Validate.html","kind":"struct","full_name":"Mailjet::Sender::Validate","name":"Validate","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/sender/validate.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender/validate.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Sender","kind":"struct","full_name":"Mailjet::Sender","name":"Sender"},"doc":"Validate a registered sender email address or domain. A sender domain\n(*@domain.com) is validated by checking the caller's rights, the existence\nof a metasender for that domain or by searching for the ownership token on\nthe domain root or in the DNS.\n\nhttps://dev.mailjet.com/email/reference/sender-addresses-and-domains/sender#v3_post_sender_sender_ID_validate\n","summary":"

Validate a registered sender email address or domain.

","class_methods":[{"html_id":"create(sender_id:ResourceId,client:Client=Client.new)-class-method","name":"create","doc":"Check if sender is validated\n\n```\nvalidation = Mailjet::Sender::Validate.create(12345)\nputs validation.validation_method\n# => \"ActivationEmail\"\n```\n\nNote: If the user is already activated, a http status 400 will be\nreturned, which will result in a `Mailjet::RequestException` to be\nraised.\n","summary":"

Check if sender is validated

","abstract":false,"args":[{"name":"sender_id","external_name":"sender_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(sender_id : ResourceId, client : Client = Client.new)","args_html":"(sender_id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/sender/validate.cr","line_number":30,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/sender/validate.cr#L30"},"def":{"name":"create","args":[{"name":"sender_id","external_name":"sender_id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create({} of String => String, {sender_id: sender_id}, client)"}}]}]},{"html_id":"mailjet/Mailjet/SendV3","path":"Mailjet/SendV3.html","kind":"struct","full_name":"Mailjet::SendV3","name":"SendV3","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"ancestors":[{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":72,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L72"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"messages(messages:Array(Hash)|Array(NamedTuple),client:Client=Client.new)-class-method","name":"messages","doc":"Deliver an array of messages\n\n```\nmessages = [\n {...},\n {...},\n]\nMailjet::SendV3.messages(messages)\n```\n","summary":"

Deliver an array of messages

","abstract":false,"args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","args_html":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":86,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L86"},"def":{"name":"messages","args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(create({Messages: messages}, params: {version: \"v3\"}, client: client)).sent"}}]},{"html_id":"mailjet/Mailjet/SendV3_1","path":"Mailjet/SendV3_1.html","kind":"struct","full_name":"Mailjet::SendV3_1","name":"SendV3_1","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},"ancestors":[{"html_id":"mailjet/Mailjet/Send","kind":"struct","full_name":"Mailjet::Send","name":"Send"},{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/send.cr","line_number":98,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L98"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"messages(messages:Array(Hash)|Array(NamedTuple),client:Client=Client.new)-class-method","name":"messages","doc":"Deliver an array of messages\n\n```\nmessages = [\n {...},\n {...},\n]\nMailjet::SendV3_1.messages(messages)\n```\n","summary":"

Deliver an array of messages

","abstract":false,"args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","args_html":"(messages : Array(Hash) | Array(NamedTuple), client : Client = Client.new)","location":{"filename":"src/mailjet/resources/send.cr","line_number":112,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/send.cr#L112"},"def":{"name":"messages","args":[{"name":"messages","external_name":"messages","restriction":"Array(Hash) | Array(NamedTuple)"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"(create({Messages: messages}, params: {version: \"v3.1\"}, client: client)).messages"}}]},{"html_id":"mailjet/Mailjet/Statcounters","path":"Mailjet/Statcounters.html","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L7"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Get aggregated statistics for a specific campaign, list, API Key or sender\nemail address. Both message-based and event-based stats can be retrieved.\n\nhttps://dev.mailjet.com/email/reference/statistics#v3_get_statcounters\n","summary":"

Get aggregated statistics for a specific campaign, list, API Key or sender email address.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L21"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"by_api_key(query:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"by_api_key","doc":"Convenience method to retrieve statistics at current API key level\n\n```\nresponse = Mailjet::Statcounters.by_api_key({\n counter_timing: \"event\",\n counter_resolution: \"hour\",\n from_ts: Time.local.at_beginning_of_week.to_unix,\n to_ts: Time.local.to_unix,\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at current API key level

","abstract":false,"args":[{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":35,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L35"},"def":{"name":"by_api_key","args":[{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_source => \"api_key\"}), client: client)"}},{"html_id":"by_campaign(campaign_id:Int32|String,query:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"by_campaign","doc":"Convenience method to retrieve statistics at campaign level\n\n```\nresponse = Mailjet::Statcounters.by_campaign(123456, {\n counter_timing: \"event\",\n counter_resolution: \"day\",\n from_ts: Time.local.at_beginning_of_day.to_unix,\n to_ts: Time.local.to_unix,\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at campaign level

","abstract":false,"args":[{"name":"campaign_id","external_name":"campaign_id","restriction":"Int32 | String"},{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(campaign_id : Int32 | String, query : Hash | NamedTuple, client : Client = Client.new)","args_html":"(campaign_id : Int32 | String, query : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":56,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L56"},"def":{"name":"by_campaign","args":[{"name":"campaign_id","external_name":"campaign_id","restriction":"Int32 | String"},{"name":"query","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_source => \"campaign\", :source_id => campaign_id}), client: client)"}},{"html_id":"by_list(list_id:Int32|String,client:Client=Client.new)-class-method","name":"by_list","doc":"Convenience method to retrieve statistics at list level\n\n```\nresponse = Mailjet::Statcounters.by_list(123456)\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at list level

","abstract":false,"args":[{"name":"list_id","external_name":"list_id","restriction":"Int32 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(list_id : Int32 | String, client : Client = Client.new)","args_html":"(list_id : Int32 | String, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":74,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L74"},"def":{"name":"by_list","args":[{"name":"list_id","external_name":"list_id","restriction":"Int32 | String"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: {:counter_timing => \"message\", :counter_resolution => \"lifetime\", :counter_source => \"list\", :source_id => list_id}, client: client)"}},{"html_id":"by_sender(sender_id:Int32|String,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"by_sender","doc":"Convenience method to retrieve statistics at sender level\n\n```\nresponse = Mailjet::Statcounters.by_sender(123456, {\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Convenience method to retrieve statistics at sender level

","abstract":false,"args":[{"name":"sender_id","external_name":"sender_id","restriction":"Int32 | String"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(sender_id : Int32 | String, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(sender_id : Int32 | String, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/statcounters.cr","line_number":95,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L95"},"def":{"name":"by_sender","args":[{"name":"sender_id","external_name":"sender_id","restriction":"Int32 | String"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"all(query: query.to_h.merge({:counter_timing => \"message\", :counter_source => \"sender\", :source_id => sender_id}), client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Statcounters/Counters","path":"Mailjet/Statcounters/Counters.html","kind":"struct","full_name":"Mailjet::Statcounters::Counters","name":"Counters","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":107,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L107"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"api_key_id:Int32-instance-method","name":"api_key_id","abstract":false,"def":{"name":"api_key_id","return_type":"Int32","visibility":"Public","body":"@api_key_id"}},{"html_id":"event_click_delay:Int32-instance-method","name":"event_click_delay","abstract":false,"def":{"name":"event_click_delay","return_type":"Int32","visibility":"Public","body":"@event_click_delay"}},{"html_id":"event_clicked_count:Int32-instance-method","name":"event_clicked_count","abstract":false,"def":{"name":"event_clicked_count","return_type":"Int32","visibility":"Public","body":"@event_clicked_count"}},{"html_id":"event_open_delay:Int32-instance-method","name":"event_open_delay","abstract":false,"def":{"name":"event_open_delay","return_type":"Int32","visibility":"Public","body":"@event_open_delay"}},{"html_id":"event_opened_count:Int32-instance-method","name":"event_opened_count","abstract":false,"def":{"name":"event_opened_count","return_type":"Int32","visibility":"Public","body":"@event_opened_count"}},{"html_id":"event_spam_count:Int32-instance-method","name":"event_spam_count","abstract":false,"def":{"name":"event_spam_count","return_type":"Int32","visibility":"Public","body":"@event_spam_count"}},{"html_id":"event_unsubscribed_count:Int32-instance-method","name":"event_unsubscribed_count","abstract":false,"def":{"name":"event_unsubscribed_count","return_type":"Int32","visibility":"Public","body":"@event_unsubscribed_count"}},{"html_id":"event_workflow_exited_count:Int32-instance-method","name":"event_workflow_exited_count","abstract":false,"def":{"name":"event_workflow_exited_count","return_type":"Int32","visibility":"Public","body":"@event_workflow_exited_count"}},{"html_id":"message_blocked_count:Int32-instance-method","name":"message_blocked_count","abstract":false,"def":{"name":"message_blocked_count","return_type":"Int32","visibility":"Public","body":"@message_blocked_count"}},{"html_id":"message_clicked_count:Int32-instance-method","name":"message_clicked_count","abstract":false,"def":{"name":"message_clicked_count","return_type":"Int32","visibility":"Public","body":"@message_clicked_count"}},{"html_id":"message_deferred_count:Int32-instance-method","name":"message_deferred_count","abstract":false,"def":{"name":"message_deferred_count","return_type":"Int32","visibility":"Public","body":"@message_deferred_count"}},{"html_id":"message_hard_bounced_count:Int32-instance-method","name":"message_hard_bounced_count","abstract":false,"def":{"name":"message_hard_bounced_count","return_type":"Int32","visibility":"Public","body":"@message_hard_bounced_count"}},{"html_id":"message_opened_count:Int32-instance-method","name":"message_opened_count","abstract":false,"def":{"name":"message_opened_count","return_type":"Int32","visibility":"Public","body":"@message_opened_count"}},{"html_id":"message_queued_count:Int32-instance-method","name":"message_queued_count","abstract":false,"def":{"name":"message_queued_count","return_type":"Int32","visibility":"Public","body":"@message_queued_count"}},{"html_id":"message_sent_count:Int32-instance-method","name":"message_sent_count","abstract":false,"def":{"name":"message_sent_count","return_type":"Int32","visibility":"Public","body":"@message_sent_count"}},{"html_id":"message_soft_bounced_count:Int32-instance-method","name":"message_soft_bounced_count","abstract":false,"def":{"name":"message_soft_bounced_count","return_type":"Int32","visibility":"Public","body":"@message_soft_bounced_count"}},{"html_id":"message_spam_count:Int32-instance-method","name":"message_spam_count","abstract":false,"def":{"name":"message_spam_count","return_type":"Int32","visibility":"Public","body":"@message_spam_count"}},{"html_id":"message_unsubscribed_count:Int32-instance-method","name":"message_unsubscribed_count","abstract":false,"def":{"name":"message_unsubscribed_count","return_type":"Int32","visibility":"Public","body":"@message_unsubscribed_count"}},{"html_id":"message_work_flow_exited_count:Int32-instance-method","name":"message_work_flow_exited_count","abstract":false,"def":{"name":"message_work_flow_exited_count","return_type":"Int32","visibility":"Public","body":"@message_work_flow_exited_count"}},{"html_id":"source_id:Int32-instance-method","name":"source_id","abstract":false,"def":{"name":"source_id","return_type":"Int32","visibility":"Public","body":"@source_id"}},{"html_id":"timeslice:String-instance-method","name":"timeslice","abstract":false,"def":{"name":"timeslice","return_type":"String","visibility":"Public","body":"@timeslice"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ListPath","path":"Mailjet/Statcounters/ListPath.html","kind":"struct","full_name":"Mailjet::Statcounters::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ListResponse","path":"Mailjet/Statcounters/ListResponse.html","kind":"struct","full_name":"Mailjet::Statcounters::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":21,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L21"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"},"doc":"Raw statcounter endpoint, requiring a series of parameters\n\n```\nresponse = Mailjet::Statcounters.all({\n counter_source: \"apikey\",\n counter_timing: \"message\",\n counter_resolution: \"lifetime\",\n})\nstats = response.data.first\n```\n","summary":"

Raw statcounter endpoint, requiring a series of parameters

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Statcounters/ResponseData","path":"Mailjet/Statcounters/ResponseData.html","kind":"alias","full_name":"Mailjet::Statcounters::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/statcounters.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/statcounters.cr#L8"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Statcounters::Counters)","aliased_html":"Array(Mailjet::Statcounters::Counters)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Statcounters","kind":"struct","full_name":"Mailjet::Statcounters","name":"Statcounters"}}]},{"html_id":"mailjet/Mailjet/Template","path":"Mailjet/Template.html","kind":"struct","full_name":"Mailjet::Template","name":"Template","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":8,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L8"},{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"doc":"Retrieve the contents of an email template. It will be split between a Text\npart, HTML part, MJML content and/or additional headers.\n\nhttps://dev.mailjet.com/email/reference/templates/#v3_get_template_template_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/templates/#v3_post_template_template_ID_detailcontent\nhttps://dev.mailjet.com/email/reference/templates/#v3_put_template_template_ID_detailcontent\n","summary":"

Retrieve the contents of an email template.

","class_methods":[{"html_id":"all(query:Hash|NamedTuple=Hash(String,String).new,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"all","doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","abstract":false,"args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L18"},"def":{"name":"all","args":[{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (ListPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\nListResponse.from_json(response)\n"}},{"html_id":"create(payload:Hash|NamedTuple,params:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"create","doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","abstract":false,"args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(payload : Hash | NamedTuple, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L42"},"def":{"name":"create","args":[{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (CreatePath.new(params)).to_s\nresponse = client.handle_api_call(\"POST\", path, payload: Utilities.to_camelcased_hash(payload))\n(CreateResponse.from_json(response)).data.first\n"}},{"html_id":"delete(id:ResourceId,client:Client=Client.new)-class-method","name":"delete","doc":"Delete a template\n\n```\nMailjet::Template.delete(123456789)\n```\n","summary":"

Delete a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, client : Client = Client.new)","args_html":"(id : ResourceId, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":66,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L66"},"def":{"name":"delete","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (DeletePath.new({id: id})).to_s\nclient.handle_api_call(\"DELETE\", path)\nnil\n"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L26"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L26"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L58"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L58"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Template/CreatePath","path":"Mailjet/Template/CreatePath.html","kind":"struct","full_name":"Mailjet::Template::CreatePath","name":"CreatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/CreateResponse","path":"Mailjet/Template/CreateResponse.html","kind":"struct","full_name":"Mailjet::Template::CreateResponse","name":"CreateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":42,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L42"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Create a template\n\n```\ntemplate = Mailjet::Template.create({\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/DeletePath","path":"Mailjet/Template/DeletePath.html","kind":"struct","full_name":"Mailjet::Template::DeletePath","name":"DeletePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":66,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L66"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Delete a template\n\n```\nMailjet::Template.delete(123456789)\n```\n","summary":"

Delete a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent","path":"Mailjet/Template/Detailcontent.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},"ancestors":[{"html_id":"mailjet/Mailjet/Resource","kind":"struct","full_name":"Mailjet::Resource","name":"Resource"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":10,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L10"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"class_methods":[{"html_id":"create(id:ResourceId,payload:Hash|NamedTuple,client:Client=Client.new)-class-method","name":"create","doc":"Create content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.create(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Create content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":38,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L38"},"def":{"name":"create","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"create(payload, {id: id}, client: client)"}},{"html_id":"find(params:Hash|NamedTuple=Hash(String,String).new,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L19"},"def":{"name":"find","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (FindPath.new(params)).to_s\nresponse = client.handle_api_call(\"GET\", path, query: query)\n(FindResponse.from_json(response)).data.first\n"}},{"html_id":"find(id:ResourceId,query:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"find","doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L19"},"def":{"name":"find","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"query","default_value":"Hash(String, String).new","external_name":"query","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"find({id: id}, query: query, client: client)"}},{"html_id":"update(params:Hash|NamedTuple=Hash(String,String).new,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","abstract":false,"args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(params : Hash | NamedTuple = Hash(String, String).new, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L60"},"def":{"name":"update","args":[{"name":"params","default_value":"Hash(String, String).new","external_name":"params","restriction":"Hash | NamedTuple"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"path = (UpdatePath.new(params)).to_s\nresponse = client.handle_api_call(\"PUT\", path, payload: Utilities.to_camelcased_hash(payload))\nif response.empty?\nelse\n (UpdateResponse.from_json(response)).data.first\nend\n"}},{"html_id":"update(id:ResourceId,payload:Hash|NamedTuple=Hash(String,String).new,client:Client=Client.new)-class-method","name":"update","doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"args_string":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","args_html":"(id : ResourceId, payload : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)","location":{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L60"},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"ResourceId"},{"name":"payload","default_value":"Hash(String, String).new","external_name":"payload","restriction":"Hash | NamedTuple"},{"name":"client","default_value":"Client.new","external_name":"client","restriction":"Client"}],"visibility":"Public","body":"update({id: id}, payload: payload, client: client)"}}],"types":[{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindPath","path":"Mailjet/Template/Detailcontent/FindPath.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/FindResponse","path":"Mailjet/Template/Detailcontent/FindResponse.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L19"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Find content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.find(12345)\n```\n","summary":"

Find content details for a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/ResponseData","path":"Mailjet/Template/Detailcontent/ResponseData.html","kind":"alias","full_name":"Mailjet::Template::Detailcontent::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":11,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L11"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(JSON::Any)","aliased_html":"Array(JSON::Any)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"}},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdatePath","path":"Mailjet/Template/Detailcontent/UpdatePath.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/Detailcontent/UpdateResponse","path":"Mailjet/Template/Detailcontent/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Template::Detailcontent::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template/detailcontent.cr","line_number":60,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template/detailcontent.cr#L60"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template/Detailcontent","kind":"struct","full_name":"Mailjet::Template::Detailcontent","name":"Detailcontent"},"doc":"Update content details for a template\n\n```\ntemplate = Mailjet::Template::Detailcontent.update(12345, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update content details for a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Template/Details","path":"Mailjet/Template/Details.html","kind":"struct","full_name":"Mailjet::Template::Details","name":"Details","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":68,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L68"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"author:String-instance-method","name":"author","abstract":false,"def":{"name":"author","return_type":"String","visibility":"Public","body":"@author"}},{"html_id":"categories:Array(String)-instance-method","name":"categories","abstract":false,"def":{"name":"categories","return_type":"Array(String)","visibility":"Public","body":"@categories"}},{"html_id":"copyright:String-instance-method","name":"copyright","abstract":false,"def":{"name":"copyright","return_type":"String","visibility":"Public","body":"@copyright"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"edit_mode:Int32-instance-method","name":"edit_mode","abstract":false,"def":{"name":"edit_mode","return_type":"Int32","visibility":"Public","body":"@edit_mode"}},{"html_id":"id:Int32-instance-method","name":"id","abstract":false,"def":{"name":"id","return_type":"Int32","visibility":"Public","body":"@id"}},{"html_id":"is_starred:Bool-instance-method","name":"is_starred","abstract":false,"def":{"name":"is_starred","return_type":"Bool","visibility":"Public","body":"@is_starred"}},{"html_id":"is_text_part_generation_enabled:Bool-instance-method","name":"is_text_part_generation_enabled","abstract":false,"def":{"name":"is_text_part_generation_enabled","return_type":"Bool","visibility":"Public","body":"@is_text_part_generation_enabled"}},{"html_id":"last_updated_at:Time-instance-method","name":"last_updated_at","abstract":false,"def":{"name":"last_updated_at","return_type":"Time","visibility":"Public","body":"@last_updated_at"}},{"html_id":"locale:String-instance-method","name":"locale","abstract":false,"def":{"name":"locale","return_type":"String","visibility":"Public","body":"@locale"}},{"html_id":"locale_list:Union(Array(String),Nil)-instance-method","name":"locale_list","abstract":false,"def":{"name":"locale_list","return_type":"::Union(Array(String), ::Nil)","visibility":"Public","body":"@locale_list"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"owner_id:Int32-instance-method","name":"owner_id","abstract":false,"def":{"name":"owner_id","return_type":"Int32","visibility":"Public","body":"@owner_id"}},{"html_id":"owner_type:String-instance-method","name":"owner_type","abstract":false,"def":{"name":"owner_type","return_type":"String","visibility":"Public","body":"@owner_type"}},{"html_id":"presets:JSON::Any-instance-method","name":"presets","abstract":false,"def":{"name":"presets","return_type":"JSON::Any","visibility":"Public","body":"@presets"}},{"html_id":"previews:Array(Int32)-instance-method","name":"previews","abstract":false,"def":{"name":"previews","return_type":"Array(Int32)","visibility":"Public","body":"@previews"}},{"html_id":"purposes:Array(String)-instance-method","name":"purposes","abstract":false,"def":{"name":"purposes","return_type":"Array(String)","visibility":"Public","body":"@purposes"}}]},{"html_id":"mailjet/Mailjet/Template/FindPath","path":"Mailjet/Template/FindPath.html","kind":"struct","full_name":"Mailjet::Template::FindPath","name":"FindPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/FindResponse","path":"Mailjet/Template/FindResponse.html","kind":"struct","full_name":"Mailjet::Template::FindResponse","name":"FindResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":26,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L26"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find a template\n\n```\ntemplate = Mailjet::Template.find(123456789)\n```\n","summary":"

Find a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]},{"html_id":"mailjet/Mailjet/Template/ListPath","path":"Mailjet/Template/ListPath.html","kind":"struct","full_name":"Mailjet::Template::ListPath","name":"ListPath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/ListResponse","path":"Mailjet/Template/ListResponse.html","kind":"struct","full_name":"Mailjet::Template::ListResponse","name":"ListResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":18,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L18"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Find all contact lists\n\n```\nresponse = Mailjet::Template.all\ntemplates = response.data\n```\n","summary":"

Find all contact lists

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"count:Int32-instance-method","name":"count","abstract":false,"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}},{"html_id":"total:Int32-instance-method","name":"total","abstract":false,"def":{"name":"total","return_type":"Int32","visibility":"Public","body":"@total"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" data.\n{{ call }}\n\n \n"}}]},{"html_id":"mailjet/Mailjet/Template/ResponseData","path":"Mailjet/Template/ResponseData.html","kind":"alias","full_name":"Mailjet::Template::ResponseData","name":"ResponseData","abstract":false,"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":9,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L9"}],"repository_name":"mailjet","program":false,"enum":false,"alias":true,"aliased":"Array(Mailjet::Template::Details)","aliased_html":"Array(Mailjet::Template::Details)","const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"}},{"html_id":"mailjet/Mailjet/Template/UpdatePath","path":"Mailjet/Template/UpdatePath.html","kind":"struct","full_name":"Mailjet::Template::UpdatePath","name":"UpdatePath","abstract":false,"superclass":{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},"ancestors":[{"html_id":"mailjet/Mailjet/Path","kind":"struct","full_name":"Mailjet::Path","name":"Path"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L58"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","instance_methods":[{"html_id":"pattern:String-instance-method","name":"pattern","abstract":false,"def":{"name":"pattern","visibility":"Public","body":"@pattern"}}]},{"html_id":"mailjet/Mailjet/Template/UpdateResponse","path":"Mailjet/Template/UpdateResponse.html","kind":"struct","full_name":"Mailjet::Template::UpdateResponse","name":"UpdateResponse","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"},{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/resources/template.cr","line_number":58,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/resources/template.cr#L58"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"mailjet/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"mailjet/Mailjet/Json/Fields","kind":"module","full_name":"Mailjet::Json::Fields","name":"Fields"}],"namespace":{"html_id":"mailjet/Mailjet/Template","kind":"struct","full_name":"Mailjet::Template","name":"Template"},"doc":"Update a template\n\n```\ntemplate = Mailjet::Template.update(123456789, {\n author: \"John Doe\",\n categories: [\n \"commerce\",\n ],\n copyright: \"John Doe\",\n description: \"Used for discount promotion.\",\n ...\n})\n```\n","summary":"

Update a template

","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:ResponseData-instance-method","name":"data","abstract":false,"def":{"name":"data","return_type":"ResponseData","visibility":"Public","body":"@data"}}]}]},{"html_id":"mailjet/Mailjet/Utilities","path":"Mailjet/Utilities.html","kind":"struct","full_name":"Mailjet::Utilities","name":"Utilities","abstract":false,"superclass":{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"mailjet/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"mailjet/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"mailjet/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L2"}],"repository_name":"mailjet","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"mailjet/Mailjet","kind":"struct","full_name":"Mailjet","name":"Mailjet"},"class_methods":[{"html_id":"query_parameterize(value:Hash|NamedTuple):String-class-method","name":"query_parameterize","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple) : String","args_html":"(value : Hash | NamedTuple) : String","location":{"filename":"src/mailjet/utilities.cr","line_number":23,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L23"},"def":{"name":"query_parameterize","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"return_type":"String","visibility":"Public","body":"query = to_camelcased_hash(to_stringified_hash(value))\nHTTP::Params.encode(query)\n"}},{"html_id":"to_camelcased_hash(value:Hash|NamedTuple)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple)","args_html":"(value : Hash | NamedTuple)","location":{"filename":"src/mailjet/utilities.cr","line_number":7,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L7"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"value.to_h.transform_keys() do |__arg2|\n __arg2.to_s.camelcase\nend.transform_values do |v|\n to_camelcased_hash(v)\nend"}},{"html_id":"to_camelcased_hash(value:Array)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Array"}],"args_string":"(value : Array)","args_html":"(value : Array)","location":{"filename":"src/mailjet/utilities.cr","line_number":13,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L13"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Array"}],"visibility":"Public","body":"value.map do |v|\n to_camelcased_hash(v)\nend"}},{"html_id":"to_camelcased_hash(value:Bool|Int32|String|Nil)-class-method","name":"to_camelcased_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Bool | Int32 | String | ::Nil"}],"args_string":"(value : Bool | Int32 | String | Nil)","args_html":"(value : Bool | Int32 | String | Nil)","location":{"filename":"src/mailjet/utilities.cr","line_number":19,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L19"},"def":{"name":"to_camelcased_hash","args":[{"name":"value","external_name":"value","restriction":"Bool | Int32 | String | ::Nil"}],"visibility":"Public","body":"value"}},{"html_id":"to_stringified_hash(value:Hash|NamedTuple)-class-method","name":"to_stringified_hash","abstract":false,"args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"args_string":"(value : Hash | NamedTuple)","args_html":"(value : Hash | NamedTuple)","location":{"filename":"src/mailjet/utilities.cr","line_number":3,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L3"},"def":{"name":"to_stringified_hash","args":[{"name":"value","external_name":"value","restriction":"Hash | NamedTuple"}],"visibility":"Public","body":"value.to_h.transform_keys(&.to_s).transform_values(&.to_s)"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L2"},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/mailjet/utilities.cr","line_number":2,"url":"https://github.com/wout/mailjet.cr/blob/44239c31623aedd328417f7e4e265c8f7874f408/src/mailjet/utilities.cr#L2"},"def":{"name":"initialize","visibility":"Public","body":""}}]}]}]}}) \ No newline at end of file