Skip to content

Commit

Permalink
Update mailchimp-transactional-php to v1.0.40
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 23, 2021
1 parent 8ec8bf1 commit 78105d5
Show file tree
Hide file tree
Showing 22 changed files with 119 additions and 21 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mailchimp/transactional",
"version": "1.0.39",
"version": "1.0.40",
"description": "",
"keywords": [
"swagger",
Expand Down
78 changes: 78 additions & 0 deletions lib/Api/AllowlistsApi.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?php

/**
* AllowlistsApi
* PHP version 5
*
* @category Class
* @package MailchimpTransactional
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/

/**
* Mailchimp Transactional API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.40
* Contact: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
*/

/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/

namespace MailchimpTransactional\Api;

use MailchimpTransactional\ApiException;
use MailchimpTransactional\Configuration;
use MailchimpTransactional\HeaderSelector;
use MailchimpTransactional\ObjectSerializer;

/**
* AllowlistsApi Class Doc Comment
*
* @category Class
* @package MailchimpTransactional
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class AllowlistsApi
{
protected $Configuration;

public function __construct(Configuration $config = null)
{
$this->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);
}
}
12 changes: 10 additions & 2 deletions lib/Api/ExportsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down Expand Up @@ -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&#39;s state is &#39;complete&#39;, 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.
Expand All @@ -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 = [])
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/InboundApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/IpsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/MessagesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/MetadataApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/RejectsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
4 changes: 2 additions & 2 deletions lib/Api/SendersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down Expand Up @@ -61,7 +61,7 @@ public function addDomain($body = [])
}
/**
* Check domain settings
* Checks the SPF and DKIM settings for a domain. If you haven&#39;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&#39;t already added this domain to your account, it will be added automatically.
*/
public function checkDomain($body = [])
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/SubaccountsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/TagsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/TemplatesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/UrlsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/UsersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/WebhooksApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/WhitelistsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
4 changes: 3 additions & 1 deletion lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down
2 changes: 1 addition & 1 deletion lib/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
Expand Down

0 comments on commit 78105d5

Please sign in to comment.