From 78105d5b71739f4b60caba9d168d17f0d71e2590 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 23 Sep 2021 19:52:56 +0000 Subject: [PATCH] Update mailchimp-transactional-php to v1.0.40 --- CHANGELOG.md | 6 +++ README.md | 4 ++ composer.json | 2 +- lib/Api/AllowlistsApi.php | 78 ++++++++++++++++++++++++++++++++++++++ lib/Api/ExportsApi.php | 12 +++++- lib/Api/InboundApi.php | 2 +- lib/Api/IpsApi.php | 2 +- lib/Api/MessagesApi.php | 2 +- lib/Api/MetadataApi.php | 2 +- lib/Api/RejectsApi.php | 2 +- lib/Api/SendersApi.php | 4 +- lib/Api/SubaccountsApi.php | 2 +- lib/Api/TagsApi.php | 2 +- lib/Api/TemplatesApi.php | 2 +- lib/Api/UrlsApi.php | 2 +- lib/Api/UsersApi.php | 2 +- lib/Api/WebhooksApi.php | 2 +- lib/Api/WhitelistsApi.php | 2 +- lib/ApiException.php | 2 +- lib/Configuration.php | 4 +- lib/HeaderSelector.php | 2 +- lib/ObjectSerializer.php | 2 +- 22 files changed, 119 insertions(+), 21 deletions(-) create mode 100644 lib/Api/AllowlistsApi.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 77b80ba..c9445dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Transactional +### 1.0.40 +* Added the new /allowlists/ series of endpoints and the /exports/allowlist endpoint to the API reference + ### 1.0.39 * Fixes the output directory for the Changelog for the php client library @@ -13,6 +16,9 @@ ## Marketing +### 3.0.65 +* Added a new API endpoint, `/3.0/account-exports`, allowing users to programatically export their account information + ### 3.0.64 * Fixes the output directory for the Changelog for the php client library diff --git a/README.md b/README.md index e2e0ff2..4cdb24f 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,11 @@ All URIs are relative to *https://mandrillapp.com/api/1.0* | Method | Endpoint | | ---------- | -------- | +| **allowlists.add** | /allowlists/add | +| **allowlists.delete** | /allowlists/delete | +| **allowlists.list** | /allowlists/list | | **exports.activity** | /exports/activity | +| **exports.allowlist** | /exports/allowlist | | **exports.info** | /exports/info | | **exports.list** | /exports/list | | **exports.rejects** | /exports/rejects | diff --git a/composer.json b/composer.json index 48c44d5..8acd0e9 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mailchimp/transactional", - "version": "1.0.39", + "version": "1.0.40", "description": "", "keywords": [ "swagger", diff --git a/lib/Api/AllowlistsApi.php b/lib/Api/AllowlistsApi.php new file mode 100644 index 0000000..507986e --- /dev/null +++ b/lib/Api/AllowlistsApi.php @@ -0,0 +1,78 @@ +config = $config ?: new Configuration(); + } + + /** + * Add email to allowlist + * Adds an email to your email rejection allowlist. If the address is currently on your denylist, that denylist entry will be removed automatically. + */ + public function add($body = []) + { + return $this->config->post('/allowlists/add', $body); + } + /** + * Remove email from allowlist + * Removes an email address from the allowlist. + */ + public function delete($body = []) + { + return $this->config->post('/allowlists/delete', $body); + } + /** + * List allowlisted emails + * Retrieves your email rejection allowlist. You can provide an email address or search prefix to limit the results. Returns up to 1000 results. + */ + public function list($body = []) + { + return $this->config->post('/allowlists/list', $body); + } +} diff --git a/lib/Api/ExportsApi.php b/lib/Api/ExportsApi.php index 15397d8..831af83 100644 --- a/lib/Api/ExportsApi.php +++ b/lib/Api/ExportsApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 @@ -59,6 +59,14 @@ public function activity($body = []) { return $this->config->post('/exports/activity', $body); } + /** + * Export Allowlist + * Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named allowlist.csv that includes the following fields: email, detail, created_at. + */ + public function allowlist($body = []) + { + return $this->config->post('/exports/allowlist', $body); + } /** * View export info * Returns information about an export job. If the export job's state is 'complete', the returned data will include a URL you can use to fetch the results. Every export job produces a zip archive, but the format of the archive is distinct for each job type. The api calls that initiate exports include more details about the output format for that job type. @@ -85,7 +93,7 @@ public function rejects($body = []) } /** * Export Allowlist - * Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named whitelist.csv that includes the following fields: email, detail, created_at. + * Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named allowlist.csv that includes the following fields: email, detail, created_at. */ public function whitelist($body = []) { diff --git a/lib/Api/InboundApi.php b/lib/Api/InboundApi.php index 98a4346..1592fcc 100644 --- a/lib/Api/InboundApi.php +++ b/lib/Api/InboundApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/IpsApi.php b/lib/Api/IpsApi.php index 4019229..87f2394 100644 --- a/lib/Api/IpsApi.php +++ b/lib/Api/IpsApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/MessagesApi.php b/lib/Api/MessagesApi.php index 683e0d6..9f6a518 100644 --- a/lib/Api/MessagesApi.php +++ b/lib/Api/MessagesApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/MetadataApi.php b/lib/Api/MetadataApi.php index b9c3406..69327b5 100644 --- a/lib/Api/MetadataApi.php +++ b/lib/Api/MetadataApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/RejectsApi.php b/lib/Api/RejectsApi.php index e6a657b..3e6992f 100644 --- a/lib/Api/RejectsApi.php +++ b/lib/Api/RejectsApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/SendersApi.php b/lib/Api/SendersApi.php index a1be23b..dcb97f5 100644 --- a/lib/Api/SendersApi.php +++ b/lib/Api/SendersApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 @@ -61,7 +61,7 @@ public function addDomain($body = []) } /** * Check domain settings - * Checks the SPF and DKIM settings for a domain. If you haven't already added this domain to your account, it will be added automatically. + * Checks the SPF and DKIM settings for a domain, as well the domain verification. If you haven't already added this domain to your account, it will be added automatically. */ public function checkDomain($body = []) { diff --git a/lib/Api/SubaccountsApi.php b/lib/Api/SubaccountsApi.php index 7dbfc68..87dd3a2 100644 --- a/lib/Api/SubaccountsApi.php +++ b/lib/Api/SubaccountsApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/TagsApi.php b/lib/Api/TagsApi.php index a88ac72..ee3ce6e 100644 --- a/lib/Api/TagsApi.php +++ b/lib/Api/TagsApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/TemplatesApi.php b/lib/Api/TemplatesApi.php index 4bd2cf1..4d1b493 100644 --- a/lib/Api/TemplatesApi.php +++ b/lib/Api/TemplatesApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/UrlsApi.php b/lib/Api/UrlsApi.php index 17037e0..df9558d 100644 --- a/lib/Api/UrlsApi.php +++ b/lib/Api/UrlsApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/UsersApi.php b/lib/Api/UsersApi.php index a830833..2ac33ac 100644 --- a/lib/Api/UsersApi.php +++ b/lib/Api/UsersApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/WebhooksApi.php b/lib/Api/WebhooksApi.php index 0609527..f439fa5 100644 --- a/lib/Api/WebhooksApi.php +++ b/lib/Api/WebhooksApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Api/WhitelistsApi.php b/lib/Api/WhitelistsApi.php index 0ea20b1..b3a2389 100644 --- a/lib/Api/WhitelistsApi.php +++ b/lib/Api/WhitelistsApi.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/ApiException.php b/lib/ApiException.php index e3371b1..3591537 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -14,7 +14,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/Configuration.php b/lib/Configuration.php index 85ac11e..4e711f8 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -5,7 +5,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 @@ -23,6 +23,7 @@ use GuzzleHttp\Psr7; use GuzzleHttp\Exception\RequestException; +use MailchimpTransactional\Api\AllowlistsApi; use MailchimpTransactional\Api\ExportsApi; use MailchimpTransactional\Api\InboundApi; use MailchimpTransactional\Api\IpsApi; @@ -56,6 +57,7 @@ public function __construct() ]); // API Routes + $this->allowlists = new AllowlistsApi($this); $this->exports = new ExportsApi($this); $this->inbound = new InboundApi($this); $this->ips = new IpsApi($this); diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index a849a5b..43dbe0d 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -14,7 +14,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12 diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 0d13f30..fcce09e 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -15,7 +15,7 @@ * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 1.0.39 + * OpenAPI spec version: 1.0.40 * Contact: apihelp@mailchimp.com * Generated by: https://github.com/swagger-api/swagger-codegen.git * Swagger Codegen version: 2.4.12